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.
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