Changeset 385 in openpam


Ignore:
Timestamp:
Mar 20, 2006, 4:55:55 PM (13 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add a configure option to turn debugging on by default.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL

    r320 r385  
    1616  Use the "configure" shell script to configure OpenPAM for your
    1717  system.  Options include:
     18
     19    --enable-debug
     20        Turn debugging on by default.
    1821
    1922    --with-modules-dir=DIR
  • trunk/configure.ac

    r320 r385  
    1515AC_SUBST(LIB_MAJ)
    1616AC_DEFINE_UNQUOTED(LIB_MAJ, $LIB_MAJ, [OpenPAM library major number])
     17
     18AC_ARG_ENABLE(debug,
     19        AC_HELP_STRING([--enable-debug],
     20                [turn debugging on by default]),
     21        AC_DEFINE(OPENPAM_DEBUG, 1, [Turn debugging on by default]))
    1722
    1823AC_MSG_CHECKING([whether loading unversioned modules support is enabled])
  • trunk/lib/openpam_log.c

    r320 r385  
    4646#include "openpam_impl.h"
    4747
     48#ifdef OPENPAM_DEBUG
     49int _openpam_debug = 1;
     50#else
    4851int _openpam_debug = 0;
     52#endif
    4953
    5054#if !defined(openpam_log)
Note: See TracChangeset for help on using the changeset viewer.