aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorEdd Dumbill <edd@usefulinc.com>2003-05-06 20:03:12 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-06 20:03:12 +0800
commitc712d82632f1208519bd2c41ca7f7e8f4aaaa785 (patch)
treef9c0a38ec6a19e614d3001488769e60f0b4ed023 /configure.in
parent6f4d431c2ea7384aec032c691cd0743755d364a7 (diff)
downloadgsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.tar
gsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.tar.gz
gsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.tar.bz2
gsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.tar.lz
gsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.tar.xz
gsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.tar.zst
gsoc2013-epiphany-c712d82632f1208519bd2c41ca7f7e8f4aaaa785.zip
Use AM_CXX_FLAGS
2003-05-06 Edd Dumbill <edd@usefulinc.com> * configure.in: Use AM_CXX_FLAGS
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 4172794e6..6368f50e4 100644
--- a/configure.in
+++ b/configure.in
@@ -43,6 +43,8 @@ AC_HEADER_STDC
AC_PROG_INTLTOOL
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
+AC_SUBST(AM_CXXFLAGS)
+
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
GNOME_DEBUG_CHECK
@@ -121,14 +123,14 @@ AC_SUBST(MOZILLA_HOME)
dnl whether to build with DEBUG defined
AC_ARG_WITH(mozilla-debug,
[ --with-mozilla-debug Use a debug mozilla build],
- CXXFLAGS="-DDEBUG $CXXFLAGS",)
+ AM_CXXFLAGS="-DDEBUG $AM_CXXFLAGS",)
AC_ARG_ENABLE(cpp-rtti,
[ --enable-cpp-rtti Enable C++ RTTI (for cvs gcc)],,
enable_cpp_rtti=no)
if test "x$enable_cpp_rtti" = "xno"; then
- CXXFLAGS="-fno-rtti $CXXFLAGS"
+ AM_CXXFLAGS="-fno-rtti $AM_CXXFLAGS"
fi
dnl Specify the gconf configuration source,
@@ -152,7 +154,9 @@ dnl 2.95-2.97 have a signed wchar_t in c++ only and some versions
dnl only have short-wchar support for c++.
AC_LANG_PUSH(C++)
_SAVE_CXXFLAGS=$CXXFLAGS
-CXXFLAGS="$CXXFLAGS -fshort-wchar"
+_SAVE_AM_CXXFLAGS=$AM_CXXFLAGS
+AM_CXXFLAGS="$AM_CXXFLAGS -fshort-wchar"
+CXXFLAGS="$CXXFLAGS $AM_CXXFLAGS"
AC_CACHE_CHECK(for compiler -fshort-wchar option,
ac_cv_have_usable_wchar_option,
@@ -165,8 +169,9 @@ AC_CACHE_CHECK(for compiler -fshort-wchar option,
ac_cv_have_usable_wchar_option="maybe")])
if test "$ac_cv_have_usable_wchar_option" != "yes"; then
- CXXFLAGS=$_SAVE_CXXFLAGS
+ AM_CXXFLAGS=$_SAVE_AM_CXXFLAGS
fi
+CXXFLAGS=$_SAVE_CXXFLAGS
AC_LANG_POP(C++)
AC_MSG_CHECKING(for mozilla version)