From: John Dennis Date: Thu, 24 Mar 2011 15:59:37 +0000 (-0400) Subject: Fix autogen.sh X-Git-Tag: release_2_1_11~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9635c5ef3743d5a2354cfeac2aac1ae95647d55a;p=thirdparty%2Ffreeradius-server.git Fix autogen.sh The script is invoked with -e which causes the script to exit immediately if a subshell command enclosed in parentheses has a non-zero exit status. The command grep "^AC_CONFIG_HEADER" configure.in > /dev/null returns non-zero for many of the subdirs which causes the autogen.sh script to immediately exit. In fact it exits on the very first subdirectory (src/modules/rlm_sql) prematurely aborting the entire operation. --- diff --git a/autogen.sh b/autogen.sh index 9cba64239b3..20887a859a0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -16,6 +16,6 @@ mysubdirs=`echo $mysubdirs` for F in $mysubdirs do echo "Configuring in $F..." - (cd $F && grep "^AC_CONFIG_HEADER" configure.in > /dev/null && autoheader -I$parentdir) + (cd $F && grep "^AC_CONFIG_HEADER" configure.in > /dev/null || exit 0; autoheader -I$parentdir) (cd $F && autoconf -I$parentdir) done