[ostree] configure: Use AS_IF() consistently



commit 5a4b7d708f8bb7133e0e7d432965e6679d3a77f5
Author: Colin Walters <walters verbum org>
Date:   Thu Aug 15 18:33:19 2013 -0400

    configure: Use AS_IF() consistently
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=681413

 configure.ac |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cf50487..74e9169 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,12 +87,12 @@ AC_ARG_ENABLE(documentation,
               AC_HELP_STRING([--enable-documentation],
                              [build documentation]),,
               enable_documentation=yes)
-if test x$enable_documentation = xyes; then
+AS_IF([test x$enable_documentation = xyes], [
    AC_PATH_PROG([XSLTPROC], [xsltproc])
-   if test x$XSLTPROC = x; then
+   AS_IF([test x$XSLTPROC = x], [
       AC_MSG_ERROR([xsltproc is required to build documentation])
-   fi
-fi
+   ])
+])
 AM_CONDITIONAL(BUILD_DOCUMENTATION, test x$enable_documentation = xyes)
 
 AC_ARG_WITH(libarchive,
@@ -151,7 +151,7 @@ echo "
     libarchive (parse tar files directly): $with_libarchive
     documentation: $enable_documentation
     dracut: $with_dracut"
-if test "x$with_dracut" = "xyes" ; then
+AS_IF([test "x$with_dracut" = "xyes"], [
     echo "    systemd unit dir: $with_systemdsystemunitdir"
-fi
+])
 echo ""


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