diff options
-rwxr-xr-x | autogen.sh | 8 | ||||
-rwxr-xr-x | libgc/autogen.sh | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/autogen.sh b/autogen.sh index 7c58e092150..f9c20ca0d7c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -89,9 +89,11 @@ if test x$NOCONFIGURE = x && test -z "$*"; then echo fi +am_opt="--add-missing --copy --gnu -Wno-portability -Wno-obsolete" + case $CC in xlc ) - am_opt=--include-deps;; + am_opt="$am_opt --include-deps";; esac @@ -142,8 +144,8 @@ if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then autoheader || { echo "**Error**: autoheader failed."; exit 1; } fi -echo "Running automake --gnu $am_opt ..." -automake --add-missing --gnu -Wno-portability -Wno-obsolete $am_opt || +echo "Running automake $am_opt ..." +automake $am_opt || { echo "**Error**: automake failed."; exit 1; } echo "Running autoconf ..." autoconf || { echo "**Error**: autoconf failed."; exit 1; } diff --git a/libgc/autogen.sh b/libgc/autogen.sh index 65e1f25f39c..3bc6e781905 100755 --- a/libgc/autogen.sh +++ b/libgc/autogen.sh @@ -74,12 +74,13 @@ if test x$NOCONFIGURE = x && test -z "$*"; then echo fi +am_opt="--add-missing --copy --gnu -Wno-obsolete" + case $CC in xlc ) - am_opt=--include-deps;; + am_opt="$am_opt --include-deps";; esac - if grep "^AC_PROG_LIBTOOL" configure.ac >/dev/null; then if test -z "$NO_LIBTOOLIZE" ; then echo "Running libtoolize..." @@ -104,8 +105,8 @@ if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then autoheader || { echo "**Error**: autoheader failed."; exit 1; } fi -echo "Running automake --gnu $am_opt ..." -automake --add-missing --gnu -Wno-obsolete $am_opt || +echo "Running automake $am_opt ..." +automake $am_opt || { echo "**Error**: automake failed."; exit 1; } echo "Running autoconf ..." autoconf || { echo "**Error**: autoconf failed."; exit 1; } |