From 5a4b7d708f8bb7133e0e7d432965e6679d3a77f5 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 15 Aug 2013 18:33:19 -0400 Subject: [PATCH] configure: Use AS_IF() consistently See https://bugzilla.gnome.org/show_bug.cgi?id=681413 --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index cf504870..74e91692 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 ""