From: Frederic Marchal Date: Sat, 13 Jun 2015 14:45:28 +0000 (+0200) Subject: Indent the configure script for more readability. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82aba1f76795d95bed1c1b948e2e521168e97fc9;p=thirdparty%2Fsarg.git Indent the configure script for more readability. --- diff --git a/configure.ac b/configure.ac index 5ae954a..2e81e28 100644 --- a/configure.ac +++ b/configure.ac @@ -80,8 +80,8 @@ AS_IF([test $ac_cv_header_getopt_h = "no"],[AC_MSG_ERROR("getopt.h is required t # Build with gd AC_ARG_WITH([gd], -AS_HELP_STRING([--with-gd],[Compile with support for the graphical gd library]), -[],[with_gd=check]) + AS_HELP_STRING([--with-gd],[Compile with support for the graphical gd library]), + [],[with_gd=check]) AS_IF([test "x$with_gd" != "xno"], [ AC_CHECK_HEADERS(gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h) @@ -101,8 +101,8 @@ AS_IF([test "x$with_gd" != "xno"], # Build with LDAP AC_ARG_WITH([ldap], -AS_HELP_STRING([--with-ldap],[Compile with LDAP support]), -[],[with_ldap=check]) + AS_HELP_STRING([--with-ldap],[Compile with LDAP support]), + [],[with_ldap=check]) AS_IF([test "x$with_ldap" != "xno"], [ AC_CHECK_HEADERS([ldap_cdefs.h] [ldap_features.h] [ldap.h],,break) @@ -118,8 +118,8 @@ AS_IF([test "x$with_ldap" != "xno"], # Build with iconv AC_ARG_WITH([iconv], -AS_HELP_STRING([--with-iconv],[Compile with support for iconv]), -[],[with_iconv=check]) + AS_HELP_STRING([--with-iconv],[Compile with support for iconv]), + [],[with_iconv=check]) AS_IF([test "x$with_iconv" != "xno"], [ dnl Check for iconv @@ -132,8 +132,8 @@ AS_IF([test "x$with_iconv" != "xno"], # Build with pcre AC_ARG_WITH([pcre], -AS_HELP_STRING([--with-pcre],[Compile with support for the Perl Compatible Regular Expressions library]), -[],[with_pcre=check]) + AS_HELP_STRING([--with-pcre],[Compile with support for the Perl Compatible Regular Expressions library]), + [],[with_pcre=check]) AS_IF([test "x$with_pcre" != "xno"], [ AC_CHECK_HEADERS(pcre.h) @@ -150,8 +150,8 @@ AS_IF([test "x$with_pcre" != "xno"], # Build with file globbing AC_ARG_WITH([glob], -AS_HELP_STRING([--without-glob],[Ignore wildcards in file names]), -[],[with_glob=yes]) + AS_HELP_STRING([--without-glob],[Ignore wildcards in file names]), + [],[with_glob=yes]) AS_IF([test "x$with_glob" != "xno"], [ AC_CHECK_HEADERS([glob.h],[], @@ -167,8 +167,8 @@ AS_IF([test "x$with_glob" != "xno"], # Build with zlib AC_ARG_WITH([zlib], -AS_HELP_STRING([--with-zlib],[Compile with support to decompress gz files]), -[],[with_zlib=check]) + AS_HELP_STRING([--with-zlib],[Compile with support to decompress gz files]), + [],[with_zlib=check]) AS_IF([test "x$with_zlib" != "xno" ], [ AC_CHECK_HEADERS(zlib.h) @@ -267,11 +267,11 @@ AS_IF([test "x$ac_cv_have_decl_LLONG_MAX" != "xyes"], dnl Select sarg-php directory AC_ARG_ENABLE(sargphp, -AS_HELP_STRING([--enable-sargphp=sargphpdir], -[Select sargphpdir as the directory to install sarg-php into]), -[ - AS_IF([test "$enableval" -a "x$enableval" != "xno"],[SARGPHPDIR=$enableval]) -],[SARGPHPDIR="/var/www/html"]) + AS_HELP_STRING([--enable-sargphp=sargphpdir], + [Select sargphpdir as the directory to install sarg-php into]), + [ + AS_IF([test "$enableval" -a "x$enableval" != "xno"],[SARGPHPDIR=$enableval]) + ],[SARGPHPDIR="/var/www/html"]) AS_IF([test "$SARGPHPDIR"], [ AC_MSG_NOTICE([using $SARGPHPDIR as the directory to install sarg-php]) @@ -280,11 +280,11 @@ AS_IF([test "$SARGPHPDIR"], dnl Select fonts dir AC_ARG_ENABLE(fontdir, -AS_HELP_STRING([--enable-fontdir=fontdir], -[Select fontdir as the directory with the fonts to use in the reports]), -[ - AS_IF([test "$enableval" -a "x$enableval" != "xno"],[FONTDIR=$enableval]) -],[FONTDIR="${datarootdir}/sarg/fonts"]) + AS_HELP_STRING([--enable-fontdir=fontdir], + [Select fontdir as the directory with the fonts to use in the reports]), + [ + AS_IF([test "$enableval" -a "x$enableval" != "xno"],[FONTDIR=$enableval]) + ],[FONTDIR="${datarootdir}/sarg/fonts"]) AS_IF([test "$FONTDIR"], [ AS_IF([test "x$prefix" = "xNONE"], @@ -299,11 +299,11 @@ AS_IF([test "$FONTDIR"], dnl Select images dir AC_ARG_ENABLE(imagedir, -AS_HELP_STRING([--enable-imagedir=imagedir], -[Select imagedir as the directory with the images to use in the reports]), -[ - AS_IF([test "$enableval"],[IMAGEDIR=$enableval]) -],[IMAGEDIR="${datarootdir}/sarg/images"]) + AS_HELP_STRING([--enable-imagedir=imagedir], + [Select imagedir as the directory with the images to use in the reports]), + [ + AS_IF([test "$enableval"],[IMAGEDIR=$enableval]) + ],[IMAGEDIR="${datarootdir}/sarg/images"]) AS_IF([test "x$prefix" = "xNONE"], [ tempfullpath=`prefix=$ac_default_prefix ; eval "echo $IMAGEDIR"` @@ -315,8 +315,8 @@ AC_SUBST(IMAGEDIR) dnl Enable extra compile and run time protection AC_ARG_ENABLE(extraprotection, -AS_HELP_STRING([--enable-extraprotection], -[Enable compile and runtime extra protections]), + AS_HELP_STRING([--enable-extraprotection], + [Enable compile and runtime extra protections]), [ AS_IF([test "$enableval"], [ @@ -342,8 +342,8 @@ AS_HELP_STRING([--enable-extraprotection], dnl Enable double check of the data written in the reports AC_ARG_ENABLE(doublecheck, -AS_HELP_STRING([--enable-doublecheck], -[Make sarg double check the data it manipulates and output a warning if an error is found]), + AS_HELP_STRING([--enable-doublecheck], + [Make sarg double check the data it manipulates and output a warning if an error is found]), [ AS_IF([test "$enableval"], [ @@ -353,8 +353,8 @@ AS_HELP_STRING([--enable-doublecheck], dnl Get the xsl stylesheet to produce the manpage AC_ARG_ENABLE(xsl-man, -AS_HELP_STRING([--enable-xsl-man=man-xsl-style-sheet], -[Select the directory containing the the XSL stylesheets to convert DocBook into man page]), + AS_HELP_STRING([--enable-xsl-man=man-xsl-style-sheet], + [Select the directory containing the the XSL stylesheets to convert DocBook into man page]), [ AS_IF([test "$enableval"], [ @@ -367,20 +367,19 @@ AC_CHECK_FILES([/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.x # debian XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl" AC_SUBST(XSL_MAN_STYLESHEET) -], -[ -AC_CHECK_FILES([/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl], -[ - # gentoo - XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" - AC_SUBST(XSL_MAN_STYLESHEET) -]) +],[ + AC_CHECK_FILES([/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl], + [ + # gentoo + XSL_MAN_STYLESHEET="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl" + AC_SUBST(XSL_MAN_STYLESHEET) + ]) ])) dnl Get the xsl stylesheet to produce the html page AC_ARG_ENABLE(xsl-html, -AS_HELP_STRING([--enable-xsl-html=html-xsl-style-sheet], -[Select the directory containing the the XSL stylesheets to convert DocBook into html page]), + AS_HELP_STRING([--enable-xsl-html=html-xsl-style-sheet], + [Select the directory containing the the XSL stylesheets to convert DocBook into html page]), [ AS_IF([test "$enableval"], [