comparison configure.in @ 101:ce8191c38f44 noffle

[svn] * configure, configure.in: Changed the --enable-debug option of configure. It now accepts the parameters 'no', 'min' and 'yes', i.e. no compiler- warnings, minimum compiler-warnings and maximum compiler-warnings. Default is 'min'. Stable releases should have 'no' as default, IHMO. * NEWS: Update.
author uh1763
date Mon, 29 May 2000 17:35:01 +0100
parents 688bd51704e0
children 8eb2975c8c1a
comparison
equal deleted inserted replaced
100:af51bf245bc3 101:ce8191c38f44
127 dnl Handle user-specified configure options 127 dnl Handle user-specified configure options
128 dnl --------------------------------------------------------------------------- 128 dnl ---------------------------------------------------------------------------
129 129
130 AC_ARG_ENABLE(debug, [ 130 AC_ARG_ENABLE(debug, [
131 NOFFLE options: 131 NOFFLE options:
132 --enable-debug turn on debugging (default=yes)], , 132 --enable-debug=[no/min/yes] turn on debugging [default=min]], ,
133 enable_debug=yes) 133 enable_debug=min)
134 134
135 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes" 135 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes"; then
136 then
137 CFLAGS="$CFLAGS \ 136 CFLAGS="$CFLAGS \
138 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ 137 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \
139 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ 138 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \
140 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ 139 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
141 -Wmissing-declarations -Wnested-externs -Winline \ 140 -Wmissing-declarations -Wnested-externs -Winline \
142 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" 141 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG"
142 else
143
144 dnl Do nothing if --enable-debug=no
145
146 if test "x$enable_debug" != "xno" && test "x$GCC" = "xyes"; then
147 CFLAGS="$CFLAGS \
148 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow \
149 -Wcast-qual -Wcast-align -Wwrite-strings \
150 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
151 -Wmissing-declarations -Wnested-externs -Winline \
152 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG"
153 fi
143 fi 154 fi
144 155
145 156
146 # [ This is adapted from mutt. ] 157 # [ This is adapted from mutt. ]
147 AC_ARG_WITH(docdir, 158 AC_ARG_WITH(docdir,