diff -urN scli-0.2.12.orig/configure.in scli-0.2.12/configure.in --- scli-0.2.12.orig/configure.in 2005-01-28 08:56:45.739067213 -0500 +++ scli-0.2.12/configure.in 2005-01-28 08:59:11.769984430 -0500 @@ -21,7 +21,7 @@ AC_CHECK_PROG(SMIDUMP, smidump, smidump) AC_SUBST(SMIDUMP) -AC_DEFINE_UNQUOTED(SCLI_PLUGIN_PATH, "${exec_prefix}/lib/scli") +AC_DEFINE_UNQUOTED(SCLI_PLUGIN_PATH, "${exec_prefix}/lib/scli", [Define loction of plugins]) AC_MSG_CHECKING([whether to enable -Wall]) AC_ARG_ENABLE(warnings, @@ -72,12 +72,17 @@ dnl Check for configure options AC_ARG_ENABLE(dmalloc, -[ --enable-dmalloc enable dmalloc debugging (www.dmalloc.com)], - [ - AC_CHECK_HEADERS(dmalloc.h) - AC_CHECK_LIB(dmalloc, malloc) - ] -) + [ --enable-dmalloc enable dmalloc debugging (www.dmalloc.com)], + [case "${enableval}" in + yes) ac_arg_enable_dmalloc=yes ;; + no) ac_arg_enable_dmalloc=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-dmalloc) ;; + esac], [ac_arg_enable_dmalloc=no]) + +if test x$ac_arg_enable_dmalloc = xyes ; then + AC_CHECK_HEADERS(dmalloc.h) + AC_CHECK_LIB(dmalloc, malloc) +fi dnl Create all the Makefiles we need and we are done.