]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Support for gd, ldap and iconv can be disabled during configuration
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 29 Dec 2011 15:05:52 +0000 (15:05 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 29 Dec 2011 15:05:52 +0000 (15:05 +0000)
The configuration script support the three command line switches
--without-gd, --without-ldap and --without-iconv to build sarg without
one of those external module.

CMakeLists.txt
ChangeLog
configure.in
include/info.h

index 42c26c57cbf74a5f1f56656054d70685bc6b0dac..586bd37fe34cec1dca29ce2b16293dc1fcdda8ab 100755 (executable)
@@ -3,7 +3,7 @@ PROJECT(sarg C)
 SET(sarg_VERSION 2)
 SET(sarg_REVISION "3.3-pre1")
 SET(sarg_BUILD "")
-SET(sarg_BUILDDATE "Dec-07-2011")
+SET(sarg_BUILDDATE "Dec-29-2011")
 
 INCLUDE(AddFileDependencies)
 INCLUDE(CheckIncludeFile)
index e44f814d10ba4b590a82e978886bb7c8eb705a0e..75eadf909f2af9f73f896469655dedb8ae663b71 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 SARG ChangeLog
 
-Nov-01-2011 Version 2.3.2-pre2
+Dec-29-2011 Version 2.3.3-pre1
+               - Don't abort the report generation due to an error in a squidGuard error (wrapped over log lines).
+               - Support for gd, ldap and iconv can be disabled during configuration.
+
+Dec-07-2011 Version 2.3.2
                - Add support for sorttable.js (http://www.kryogenix.org/code/browser/sorttable/) to dynamically sort some tables (thanks to Éric).
                - Add the two command line options --lastlog and --keeplogs to set the number of reports to keep or to keep all the reports respectively (thanks to Emmanuel Lacour for the suggestion).
                - Report the user ID in the e-mail report.
index 1bf9710c52c9bac08082bf743aeb0c2040ae8fc1..13b681bf0df489b1daca1fb066e1c7bd608e3ebd 100644 (file)
@@ -65,24 +65,52 @@ dnl Check for headers
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 
-dnl Check for iconv
-AM_ICONV
-if test -n "$LIBICONV" ; then
-  LIBS="$LIBS $LIBICONV"
-fi
 
 AC_CHECK_HEADERS(stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
                dirent.h sys/types.h sys/socket.h netdb.h arpa/inet.h netinet/in.h sys/stat.h \
-               ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \
-               errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
-               execinfo.h ldap.h math.h libintl.h libgen.h stdbool.h getopt.h fcntl.h)
+               ctype.h errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
+               execinfo.h math.h libintl.h libgen.h stdbool.h getopt.h fcntl.h)
 
 if test $ac_cv_header_getopt_h = "no" ; then
    AC_MSG_ERROR("getopt.h is required to compile sarg")
 fi
 
-AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD_LIB="yes", HAVE_GD_LIB="")
-AC_CHECK_LIB(ldap, ldap_init,LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes", HAVE_LDAP="")
+# Build with gd
+AC_ARG_WITH([gd],
+[  --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)
+       AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD_LIB="yes", HAVE_GD_LIB="")
+else
+       AC_MSG_NOTICE([Not building with gd as requested on the configuration command line])
+fi
+
+# Build with LDAP
+AC_ARG_WITH([ldap],
+[  --with-ldap             Compile with LDAP support],
+[],[with_ldap=check])
+if ( test "x$with_ldap" != "xno" ) ; then
+       AC_CHECK_HEADERS(ldap.h)
+       AC_CHECK_LIB(ldap, ldap_init,LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes", HAVE_LDAP="")
+else
+       AC_MSG_NOTICE([Not building with LDAP support as requested on the configuration command line])
+fi
+
+# Build with iconv
+AC_ARG_WITH([iconv],
+[  --with-iconv            Compile with support for iconv],
+[],[with_iconv=check])
+if ( test "x$with_iconv" != "xno" ) ; then
+       dnl Check for iconv
+       AM_ICONV
+       if test -n "$LIBICONV" ; then
+         LIBS="$LIBS $LIBICONV"
+       fi
+       AC_CHECK_HEADERS(iconv.h)
+else
+       AC_MSG_NOTICE([Not building with iconv as requested on the configuration command line])
+fi
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
index 5564860b19aeaa6e18b6e0f3f46a9189f4205fa7..866038bec60f47db9c8ed536e8a326651786c99f 100755 (executable)
@@ -1,3 +1,3 @@
-#define VERSION PACKAGE_VERSION" Dec-07-2011"
+#define VERSION PACKAGE_VERSION" Dec-29-2011"
 #define PGM PACKAGE_NAME
 #define URL "http://sarg.sourceforge.net"