[ejabberd] autoconf bugs

Tony Finch dot at dotat.at
Wed Mar 7 20:38:28 MSK 2007


On Tue, 6 Mar 2007, Tony Finch wrote:

> I install various libraries in non-standard places which tends to show up
> bugs in configure scripts....

Also:

--- aclocal.m4~ 2007-03-07 17:30:43.000000000 +0000
+++ aclocal.m4  2007-03-07 17:31:45.000000000 +0000
@@ -19,11 +19,14 @@
        fi
        expat_save_CFLAGS="$CFLAGS"
        CFLAGS="$CFLAGS $EXPAT_CFLAGS"
+       expat_save_CPPFLAGS="$CPPFLAGS"
+       CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
        AC_CHECK_HEADERS(expat.h, , expat_found=no)
        if test $expat_found = no; then
                AC_MSG_ERROR([Could not find expat.h])
        fi
        CFLAGS="$expat_save_CFLAGS"
+       CPPFLAGS="$expat_save_CPPFLAGS"

   AC_SUBST(EXPAT_CFLAGS)
   AC_SUBST(EXPAT_LIBS)
@@ -50,11 +53,14 @@
        fi
        zlib_save_CFLAGS="$CFLAGS"
        CFLAGS="$CFLAGS $ZLIB_CFLAGS"
+       zlib_save_CPPFLAGS="$CFLAGS"
+       CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
        AC_CHECK_HEADERS(zlib.h, , zlib_found=no)
        if test $zlib_found = no; then
                AC_MSG_ERROR([Could not find zlib.h])
        fi
        CFLAGS="$zlib_save_CFLAGS"
+       CPPFLAGS="$zlib_save_CPPFLAGS"

   AC_SUBST(ZLIB_CFLAGS)
   AC_SUBST(ZLIB_LIBS)

Tony.
-- 
f.a.n.finch  <dot at dotat.at>  http://dotat.at/
HUMBER THAMES DOVER:: NORTHWEST BACKING SOUTHWEST 3 OR 4, OCCASIONALLY 5.
SLIGHT OR MODERATE, OCCASIONALLY ROUGH. SHOWERS. GOOD..


More information about the ejabberd mailing list