diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-22 10:16:58 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-22 10:16:58 +0000 |
commit | 50647aadd9fb18fa47f955d9b8d1c5105ad79d1b (patch) | |
tree | 34d958fb3e353769a98258a39f8b6adfc6f38ce3 | |
parent | 350c75714c2926ec86e1369219f7c28b5b76ec0f (diff) | |
download | irssi-50647aadd9fb18fa47f955d9b8d1c5105ad79d1b.zip |
more and more glib*.m4 kludges, maybe it finally works? :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2706 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rwxr-xr-x | autogen.sh | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -106,18 +106,26 @@ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then fi aclocalinclude="$ACLOCAL_FLAGS -I ." echo "Running aclocal $aclocalinclude ..." -error=`aclocal $aclocalinclude 2>&1` # see if we don't have glib.m4 or glib-2.0.m4 there yet -if `echo $error|grep AM_PATH_GLIB_2_0`; then - cp glib-2.0.m4_ glib-2.0.m4 -fi -if `echo $error|grep AM_PATH_GLIB[^_]`; then +error=`aclocal $aclocalinclude 2>&1` +if test "x`echo $error|grep AM_PATH_GLIB[^_]`" != "x"; then cp glib.m4_ glib.m4 + error=`aclocal $aclocalinclude 2>&1` +fi +if test "x`echo $error|grep AM_PATH_GLIB_2_0`" != "x"; then + cp glib-2.0.m4_ glib-2.0.m4 fi aclocal $aclocalinclude +# aclocal for some reason doesn't complain about glib2, so we still need +# to check it later again.. +if ! grep "^AC_DEFUN.AM_PATH_GLIB_2_0" aclocal.m4 >/dev/null; then + cp glib-2.0.m4_ glib-2.0.m4 + aclocal $aclocalinclude +fi + if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then echo "Running autoheader..." autoheader |