diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index dd63141..e0ee467 100644 --- a/configure.ac +++ b/configure.ac @@ -61,14 +61,19 @@ PKG_CHECK_MODULES(GL, [gl], [], [ dnl Set up C warning flags. if test "x$GCC" = xyes; then - CFLAGS="$CFLAGS -Wall" - CXXFLAGS="$CXXFLAGS -Wall" + WARNCFLAGS="-Wall" + if test "x$GXX" = xyes; then + WARNCXXFLAGS="-Wall" + fi else AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) if test "x$SUNCC" = "xyes"; then - WARNFLAGS="-v" + WARNCFLAGS="-v" + WARNCXXFLAGS="-v" fi fi +AC_SUBST([WARNCFLAGS]) +AC_SUBST([WARNCXXFLAGS]) AC_OUTPUT([ Makefile |