summaryrefslogtreecommitdiff
path: root/m4/ax_enable_builddir.m4
diff options
context:
space:
mode:
authorJeremie Knuesel <jeremie.knusel@sensefly.com>2014-06-25 14:14:37 +0200
committerPeter Simons <simons@cryp.to>2014-10-15 10:14:14 +0200
commitdb7daf6260e061527b0918f39e197ce67699e69e (patch)
tree3a37834174a7d61ee15e788805414504527b81ef /m4/ax_enable_builddir.m4
parent3d67989c26ee464b3e57d96e379ddc514fd7d5ca (diff)
downloadautoconf-archive-db7daf6260e061527b0918f39e197ce67699e69e.tar.gz
Fix AX_ENABLE_BUILDDIR in case of absolute configure path
Diffstat (limited to 'm4/ax_enable_builddir.m4')
-rw-r--r--m4/ax_enable_builddir.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/ax_enable_builddir.m4 b/m4/ax_enable_builddir.m4
index 3fb8731..17a74dd 100644
--- a/m4/ax_enable_builddir.m4
+++ b/m4/ax_enable_builddir.m4
@@ -79,7 +79,7 @@
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 23
+#serial 24
AC_DEFUN([AX_ENABLE_BUILDDIR],[
AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
@@ -121,7 +121,8 @@ if test ".$srcdir" = ".." ; then
test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
AC_MSG_RESULT(....exec $SHELL $srcdir/[$]0 "--srcdir=$srcdir" "--enable-builddir=$SUB" ${1+"[$]@"})
case "[$]0" in # restart
- [/\\]*) eval $SHELL "'[$]0'" "'--srcdir=$srcdir'" "'--enable-builddir=$SUB'" $ac_configure_args ;;
+ [[\\/]]* | ?:[[\\/]]*) # Asbolute name
+ eval $SHELL "'[$]0'" "'--srcdir=$srcdir'" "'--enable-builddir=$SUB'" $ac_configure_args ;;
*) eval $SHELL "'$srcdir/[$]0'" "'--srcdir=$srcdir'" "'--enable-builddir=$SUB'" $ac_configure_args ;;
esac ; exit $?
fi