[gjs] check for C++ compiler in configure and define CXXFLAGS warnings
- From: Havoc Pennington <hp src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gjs] check for C++ compiler in configure and define CXXFLAGS warnings
- Date: Mon, 4 Jan 2010 21:09:39 +0000 (UTC)
commit 817919c2f60aa46209d88e92a2fae060e4d3b540
Author: Havoc Pennington <hp pobox com>
Date: Sun Jan 3 11:45:19 2010 -0500
check for C++ compiler in configure and define CXXFLAGS warnings
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 56141c7..3cca6cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,7 @@ PKG_PROG_PKG_CONFIG
AC_PROG_CC
AM_PROG_CC_C_O
+AC_PROG_CXX
AC_ISC_POSIX
AC_HEADER_STDC
@@ -51,6 +52,7 @@ if test "$GCC" = "yes"; then
-Wsign-compare -Wfloat-equal;
do
CFLAGS="`ensureflag $flag $CFLAGS`"
+ CXXFLAGS="`ensureflag $flag $CXXFLAGS`"
done
fi
@@ -72,6 +74,7 @@ if test x$enable_coverage = xyes; then
fi
CFLAGS="$CFLAGS -g -O0 -fprofile-arcs -ftest-coverage"
+ CXXFLAGS="$CXXFLAGS -g -O0 -fprofile-arcs -ftest-coverage"
fi
AM_CONDITIONAL([ENABLE_COVERAGE], [test x$enable_coverage = xyes])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]