1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

check for sys/ioctl.h as well

added commented more aggressive compiler options for gcc, subject to be used
instead of the current ones when --enable-debug is used
This commit is contained in:
Daniel Stenberg 2004-01-29 15:38:27 +00:00
parent bfe5568c85
commit a435151735

View File

@ -849,6 +849,7 @@ AC_CHECK_HEADERS(
sys/time.h \ sys/time.h \
sys/select.h \ sys/select.h \
sys/socket.h \ sys/socket.h \
sys/ioctl.h \
assert.h \ assert.h \
unistd.h \ unistd.h \
malloc.h \ malloc.h \
@ -1013,6 +1014,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
CFLAGS="$CFLAGS -g" CFLAGS="$CFLAGS -g"
if test "$GCC" = "yes"; then if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs" CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs"
dnl here's a more aggressive set to use:
dnl CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wfloat-equal -Wsign-compare -Wunreachable-code"
fi fi
dnl strip off optimizer flags dnl strip off optimizer flags
NEWFLAGS="" NEWFLAGS=""