]> granicus.if.org Git - curl/commitdiff
When calling aclocal, user defined ACLOCAL_FLAGS will now precede ours.
authorYang Tse <yangsita@gmail.com>
Sun, 27 Jul 2008 18:10:54 +0000 (18:10 +0000)
committerYang Tse <yangsita@gmail.com>
Sun, 27 Jul 2008 18:10:54 +0000 (18:10 +0000)
ares/buildconf
buildconf

index 434a308fddf4bd566a1641ac0e3e5277101b0e23..7e5e077b2316704717282933618cf49898f826b4 100755 (executable)
@@ -1,7 +1,12 @@
 #!/bin/sh
 
+if test -z "$ACLOCAL_FLAGS"; then
+  ACLOCAL_FLAGS="-I m4"
+else
+  ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
+fi
+
 ${LIBTOOLIZE:-libtoolize} --copy --automake --force
-ACLOCAL_FLAGS="-I m4 $ACLOCAL_FLAGS"
 ${ACLOCAL:-aclocal} $ACLOCAL_FLAGS
 ${AUTOHEADER:-autoheader}
 ${AUTOCONF:-autoconf}
index eecc28f662c77ab9302c4e34697e251bda4ea518..578d76ecd0cfbc25f720ff140739872c0a392eeb 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -206,15 +206,20 @@ PERL=`findtool ${PERL:-perl}`
 
 # run the correct scripts now
 
+if test -z "$ACLOCAL_FLAGS"; then
+  ACLOCAL_FLAGS="-I m4"
+else
+  ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
+fi
+
 tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
 if test "x$tmp_host_type" = "xSunOS"; then
-ACLOCAL_FLAGS="--verbose $ACLOCAL_FLAGS"
+  ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
 fi
 
 echo "buildconf: running libtoolize"
 $libtoolize --copy --automake --force || die "The libtoolize command failed"
 echo "buildconf: running aclocal"
-ACLOCAL_FLAGS="-I m4 $ACLOCAL_FLAGS"
 ${ACLOCAL:-aclocal} $ACLOCAL_FLAGS || die "The aclocal command line failed"
 if test -n "$PERL"; then
   echo "buildconf: running aclocal hack to convert all mv to mv -f"