[glib] configure.ac: use AS_IF



commit e30823d93ff643c82d4037c2cf0f509e347f49de
Author: Michael Olbrich <m olbrich pengutronix de>
Date:   Thu May 3 08:44:12 2012 +0200

    configure.ac: use AS_IF
    
    This way any prerequisites for e.g. AC_CHECK_HEADER are always executed
    before the 'if'.
    
    Signed-off-by: Michael Olbrich <m olbrich pengutronix de>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674483

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0e1fd6c..fca43a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -462,14 +462,14 @@ dnl
 dnl zlib support
 dnl
 PKG_CHECK_MODULES([ZLIB], [zlib], [found_zlib=yes], [found_zlib=no])
-if test "x$found_zlib" = "xno" ; then
+AS_IF([test "x$found_zlib" = "xno"], [
   AC_CHECK_LIB(z, inflate, [AC_CHECK_HEADER(zlib.h, found_zlib=yes)])
   if test "x$found_zlib" = "xno" ; then
     AC_MSG_ERROR([*** Working zlib library and headers not found ***])
   fi
   ZLIB_LIBS='-lz'
   AC_SUBST(ZLIB_LIBS)
-fi
+])
 
 PKG_CHECK_MODULES(LIBFFI, [libffi >= 3.0.0])
 AC_SUBST(LIBFFI_CFLAGS)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]