portability fix: use -Wall only with gcc (e.g. Sun Studio fails)

master
szaka 2008-08-11 13:02:09 +00:00
parent ce1d83ef06
commit 1212a635bb
1 changed files with 4 additions and 2 deletions

View File

@ -271,8 +271,10 @@ AC_CHECK_FUNCS([ \
])
AC_SYS_LARGEFILE
# We add -Wall to enable some compiler warnings.
CFLAGS="${CFLAGS} -Wall"
if test "$GCC" = "yes" ; then
# We add -Wall to enable some compiler warnings.
CFLAGS="${CFLAGS} -Wall"
fi
if test "${enable_pedantic}" = "yes"; then
enable_warnings="yes"