Mercurial > noffle
comparison configure.in @ 56:688bd51704e0 noffle
[svn] * configure, configure.in: Only add all those compiler-switches
like -ansi, -pedantic etc. if we use gcc. Other c-compilers are unlikely
to have those switches.
author | uh1763 |
---|---|
date | Fri, 12 May 2000 09:20:00 +0100 |
parents | 48b7f28c3189 |
children | ce8191c38f44 |
comparison
equal
deleted
inserted
replaced
55:3b3750063786 | 56:688bd51704e0 |
---|---|
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 turn on debugging (default=yes)], , |
133 enable_debug=yes) | 133 enable_debug=yes) |
134 | 134 |
135 if test "x$enable_debug" = "xyes" | 135 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes" |
136 then | 136 then |
137 CFLAGS="$CFLAGS \ | 137 CFLAGS="$CFLAGS \ |
138 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ | 138 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ |
139 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ | 139 -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ |
140 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ | 140 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \ |