You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by dc...@apache.org on 2013/03/20 15:07:37 UTC
git commit: updated refs/heads/master to d9e3c58
Updated Branches:
refs/heads/master 4e3d67456 -> d9e3c58b9
COUCHDB-1699: configure: C++ compiler detection improvement
- amended patch to resolve detection failures on Windows, OSX, and gentoo
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d9e3c58b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d9e3c58b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d9e3c58b
Branch: refs/heads/master
Commit: d9e3c58b930315189a4141891bd49d5d212c1059
Parents: 4e3d674
Author: Ben Reser <be...@reser.org>
Authored: Tue Mar 19 21:19:05 2013 +0100
Committer: Dave Cottlehuber <dc...@apache.org>
Committed: Wed Mar 20 15:07:28 2013 +0100
----------------------------------------------------------------------
configure.ac | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/d9e3c58b/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 9042528..91e2d3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,14 +44,9 @@ m4_define([snappy_minor], [0])
m4_define([snappy_patchlevel], [3])
AC_PROG_CXX
-AC_MSG_CHECKING([that we found a C++ compiler])
-if test -n "$ac_ct_CXX" ; then
- AC_MSG_RESULT([yes])
-else
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([A C++ compiler is required.])
-fi
AC_LANG([C++])
+AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],,
+ AC_MSG_ERROR([A C++ compiler is required.]))
AC_C_BIGENDIAN
AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h])
AC_CHECK_FUNC([mmap])