@@ -, +, @@ configure.ac: Fix error when using dash as /bin/sh For POSIX shells like dash sourcing a script while passing arguments to it doesn't work. 'set --' is needed to pass arguments to a script when sourcing it. --- a/configure.ac +++ a/configure.ac @@ -116,7 +116,10 @@ PKG_PROG_PKG_CONFIG([pkgconfig_required_version]) # Developers only ################# AC_MSG_CHECKING([for version]) -. $srcdir/build/version.sh "$srcdir" +old=$@ # Store the old arguments +set -- "$srcdir" # Allows version.sh to see $srcdir as argument. +. $srcdir/build/version.sh +set -- $old # Put the old arguments back. AC_MSG_RESULT([$BUILD_GIT_VERSION_STRING $VERSION_SOURCE]) AC_MSG_CHECKING([for build date])