]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Format the help of the configure script
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 29 Dec 2011 16:18:19 +0000 (16:18 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 29 Dec 2011 16:18:19 +0000 (16:18 +0000)
The help messages of the configuration script is formated with
AS_HELP_STRING instead of using a hardcoded layout.

configure.in

index 13b681bf0df489b1daca1fb066e1c7bd608e3ebd..dbde3e9c9afd7b3585280d7a450c9c871045be6a 100644 (file)
@@ -6,7 +6,7 @@ AC_CONFIG_AUX_DIR(cfgaux)
 AC_CANONICAL_HOST
 
 AC_ARG_WITH(gcc,
-[  --without-gcc           use CC to compile])
+AS_HELP_STRING([--without-gcc],[use CC to compile]))
 
 test -n "$CC" && cc_specified=yes
 case ${with_gcc} in
@@ -77,7 +77,7 @@ fi
 
 # Build with gd
 AC_ARG_WITH([gd],
-[  --with-gd               Compile with support for the graphical gd library],
+AS_HELP_STRING([--with-gd],[Compile with support for the graphical gd library]),
 [],[with_gd=check])
 if ( test "x$with_gd" != "xno" ) ; then
        AC_CHECK_HEADERS(gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h)
@@ -88,7 +88,7 @@ fi
 
 # Build with LDAP
 AC_ARG_WITH([ldap],
-[  --with-ldap             Compile with LDAP support],
+AS_HELP_STRING([--with-ldap],[Compile with LDAP support]),
 [],[with_ldap=check])
 if ( test "x$with_ldap" != "xno" ) ; then
        AC_CHECK_HEADERS(ldap.h)
@@ -99,7 +99,7 @@ fi
 
 # Build with iconv
 AC_ARG_WITH([iconv],
-[  --with-iconv            Compile with support for iconv],
+AS_HELP_STRING([--with-iconv],[Compile with support for iconv]),
 [],[with_iconv=check])
 if ( test "x$with_iconv" != "xno" ) ; then
        dnl Check for iconv
@@ -180,8 +180,8 @@ fi
 
 dnl Select sarg-php directory
 AC_ARG_ENABLE(sargphp,
-[  --enable-sargphp=sargphpdir
-                        Select sargphpdir as the directory to install sarg-php into ],
+AS_HELP_STRING([--enable-sargphp=sargphpdir],
+[Select sargphpdir as the directory to install sarg-php into]),
 [
     if test "$enableval" -a "x$enableval" != "xno" ; then
         SARGPHPDIR=$enableval
@@ -194,8 +194,8 @@ fi
 
 dnl Select fonts dir
 AC_ARG_ENABLE(fontdir,
-[  --enable-fontdir=fontdir
-                        Select fontdir as the directory with the fonts to use in the reports ],
+AS_HELP_STRING([--enable-fontdir=fontdir],
+[Select fontdir as the directory with the fonts to use in the reports]),
 [
     if test "$enableval" -a "x$enableval" != "xno" ; then
         FONTDIR=$enableval
@@ -213,8 +213,8 @@ fi
 
 dnl Select images dir
 AC_ARG_ENABLE(imagedir,
-[  --enable-imagedir=imagedir
-                        Select imagedir as the directory with the images to use in the reports ],
+AS_HELP_STRING([--enable-imagedir=imagedir],
+[Select imagedir as the directory with the images to use in the reports]),
 [
     if test "$enableval"; then
         IMAGEDIR=$enableval
@@ -230,8 +230,8 @@ AC_SUBST(IMAGEDIR)
 
 dnl Enable extra compile and run time protection
 AC_ARG_ENABLE(extraprotection,
-[  --enable-extraprotection
-                        Enable compile and runtime extra protections ],
+AS_HELP_STRING([--enable-extraprotection],
+[Enable compile and runtime extra protections]),
 [
     if test "$enableval"; then
        CFLAGS="${CFLAGS} -fstack-protector -D_FORTIFY_SOURCE=2"
@@ -261,8 +261,8 @@ AC_ARG_ENABLE(extraprotection,
 
 dnl Enable double check of the data written in the reports
 AC_ARG_ENABLE(doublecheck,
-[  --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]),
 [
    if test "$enableval"; then
       AC_DEFINE(ENABLE_DOUBLE_CHECK_DATA)