# 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)
# 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)
# 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
# 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)
# 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],[],
# 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)
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])
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"],
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"`
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"],
[
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"],
[
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"],
[
# 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"],
[