diff options
author | Matt Turner <mattst88@gmail.com> | 2012-08-20 13:35:28 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-08-28 20:53:27 -0700 |
commit | 6960eeef4ac3fe1cec883b6fef15f404dbbd5787 (patch) | |
tree | 5736d41fdb9f521e22c971871a57c4077b6a828e /configure.ac | |
parent | 3b41134e17954279a99a671d2a8b87e60a2dad7e (diff) | |
download | glu-6960eeef4ac3fe1cec883b6fef15f404dbbd5787.tar.gz |
build: Set AM_C* instead of CFLAGS/CPPFLAGS
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 |