--- configure.in 2010-03-28 22:11:26.000000000 +0300 +++ configure.in.fixed 2010-03-28 22:18:14.000000000 +0300 @@ -16,9 +16,14 @@ ## Determine hostname & OS ## AC_CANONICAL_HOST - -AC_ARG_ENABLE([debug], [ --enable-debug enable debugging output], - AC_DEFINE(DEBUG, 1, [enable debugging output])) +AC_ARG_ENABLE(debug, + [ --enable-debug Enable debugging output if available (default=no)], + [ case "${enableval}" in + yes|"") enabled=yes; AC_DEFINE(DEBUG, 1, [enable debugging output]) ;; + no) ;; + *) ;; + esac], +) ## Check for programs ## we want libtool to build our libs