Update of /cvsroot/gqclient/gq
In directory usw-pr-cvs1:/tmp/cvs-serv18058
Modified Files:
configure.in acconfig.h
Log Message:
* New debugging code. Now there is a commandline option -d <flags> where
flags is a bitmask to select various debugging information. The meaning
of the bits is defined in src/debug.h.
* Also introduced a way to get rid of all debugging related code by
adding the --disable-debugging configure option.
Index: configure.in
===================================================================
RCS file: /cvsroot/gqclient/gq/configure.in,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** configure.in 13 Jul 2002 16:42:31 -0000 1.35
--- configure.in 15 Jul 2002 18:36:51 -0000 1.36
***************
*** 22,25 ****
--- 22,36 ----
)
+ DEBUG=1
+ AC_ARG_ENABLE(debugging,
+ [ --disable-debugging Disables the -d commandline flag to set debug flags],
+ [ DEBUG= ]
+ )
+
+ if test "$DEBUG" = "1" ; then
+ AC_DEFINE(DEBUG)
+ fi
+ echo DEBUG=$DEBUG
+
AC_ARG_WITH(ldap-prefix,
[ --with-ldap-prefix=PFX Prefix where LDAP libs and headers \
***************
*** 347,349 ****
--- 358,361 ----
echo -n "OpenLDAP client-side caching... " ARG_YESNO($HAVE_OLCACHE)
echo -n "Internationalization........... " ARG_YESNO($ENABLE_NLS)
+ echo -n "Debugging support ............. " ARG_YESNO($DEBUG)
echo
Index: acconfig.h
===================================================================
RCS file: /cvsroot/gqclient/gq/acconfig.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** acconfig.h 18 Jun 2002 06:19:31 -0000 1.13
--- acconfig.h 15 Jul 2002 18:36:51 -0000 1.14
***************
*** 31,34 ****
--- 31,38 ----
#undef HAVE_STPCPY
+ /* debugging */
+
+ #undef DEBUG
+
@BOTTOM@
|