about summary refs log tree commit diff homepage
path: root/configure
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2016-01-14 10:00:56 +0000
committerDan Liew <daniel.liew@imperial.ac.uk>2016-01-14 11:52:41 +0000
commit87a695ed4bcae356587fc7133232772ce9ab9742 (patch)
treea2a3c1bcb5bdb9d034c25305fc843ef6fef09f29 /configure
parent8a7705ad979096d4e611fb2b8b397c48dd5fffc1 (diff)
downloadklee-87a695ed4bcae356587fc7133232772ce9ab9742.tar.gz
Fix behaviour of --with-metasmt when passed a path that doesn't exist.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index af871ce6..832c35e5 100755
--- a/configure
+++ b/configure
@@ -5031,7 +5031,11 @@ fi
 if test X$with_metasmt = X ; then
   ENABLE_METASMT=0
 else
-  metasmt_root=`cd $with_metasmt 2> /dev/null; pwd`
+  metasmt_root=`(cd $with_metasmt && pwd) 2> /dev/null`
+  #Check for bad path
+  if test "X$metasmt_root" = X ; then
+    as_fn_error $? "Cannot access path $with_metasmt passed to --with-metasmt" "$LINENO" 5
+  fi
 
     old_CPPFLAGS="$CPPFLAGS"
   old_LDFLAGS="$LDFLAGS"