diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-02-01 07:58:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-02-01 07:58:49 +0000 |
commit | 572c29a4a357dd3a8d3fceae2be9da02383e9e1a (patch) | |
tree | 022c842984e9e1651c0366a3876be0f6eb602512 /configure.in | |
parent | 9464c5430d8c8355a3245e5c62f33eea6761a5d0 (diff) | |
download | curl-572c29a4a357dd3a8d3fceae2be9da02383e9e1a.tar.gz |
Added support for --enable-debug
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 052ed826c..4ad067aea 100644 --- a/configure.in +++ b/configure.in @@ -26,6 +26,25 @@ dnl The install stuff has already been taken care of by the automake stuff dnl AC_PROG_INSTALL AC_PROG_MAKE_SET +dnl ************************************************************ +dnl lame option to switch on debug options +dnl +AC_MSG_CHECKING([whether to enable debug options]) +AC_ARG_ENABLE(debug, +[ --enable-debug Enable pedantic debug options + --disable-debug Disable debug options], +[ case "$enableval" in + no) + AC_MSG_RESULT(no) + ;; + *) AC_MSG_RESULT(yes) + + CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG" + CFLAGS="-Wall -pedantic -g" + ;; + esac ], + AC_MSG_RESULT(no) +) dnl |