Only set CWARNFLAGS to gnu flags if $GCC is set. Otherwise check for Sun compiler and use its enhanced warning flag.
This commit is contained in:
parent
6f369fde3c
commit
f705456744
11
configure.ac
11
configure.ac
|
@ -106,8 +106,15 @@ AC_HELP_STRING([--without-debug], [compile without debugging]),
|
||||||
AC_CACHE_CHECK([what debugging options to apply], [CDEBUGFLAGS], [CDEBUGFLAGS="-g"])
|
AC_CACHE_CHECK([what debugging options to apply], [CDEBUGFLAGS], [CDEBUGFLAGS="-g"])
|
||||||
AC_SUBST(CDEBUGFLAGS)
|
AC_SUBST(CDEBUGFLAGS)
|
||||||
|
|
||||||
CWARNFLAGS="-Wall -pedantic -Wpointer-arith \
|
if test "x$GCC" = xyes ; then
|
||||||
-Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
|
CWARNFLAGS="-Wall -pedantic -Wpointer-arith \
|
||||||
|
-Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
|
||||||
|
else
|
||||||
|
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
|
||||||
|
if test "x$SUNCC" = "xyes"; then
|
||||||
|
CWARNFLAGS="-v"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
AC_SUBST(CWARNFLAGS)
|
AC_SUBST(CWARNFLAGS)
|
||||||
|
|
||||||
GCC_CHECK_VISIBILITY()
|
GCC_CHECK_VISIBILITY()
|
||||||
|
|
Loading…
Reference in New Issue