diff autogen.sh @ 2162:a464da684307

[gaim-migrate @ 2172] couple fixes. Max Horn told me about one of them. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 24 Aug 2001 01:36:05 +0000
parents fe7cd241f0eb
children f9dfd802e31c
line wrap: on
line diff
--- a/autogen.sh	Fri Aug 24 01:10:51 2001 +0000
+++ b/autogen.sh	Fri Aug 24 01:36:05 2001 +0000
@@ -40,6 +40,13 @@
 echo n | gettextize --copy --force;
 echo "Running libtoolize, please ignore non-fatal messages...."
 echo n | libtoolize --copy --force;
+
+# we do this because autoconf defaults to installing to /usr/local
+# and aclocal defaults to only looking in /usr/share/aclocal
+if test -d /usr/local/share/aclocal ; then
+	export ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I /usr/local/share/aclocal"
+fi
+
 aclocal -I m4 $ACLOCAL_FLAGS;
 autoheader;
 automake --add-missing --copy;