[PATCH v2] configure: use cc/c++ instead of gcc/g++

Subject: [PATCH v2] configure: use cc/c++ instead of gcc/g++

Date: Thu, 22 May 2014 20:10:06 +1000

To: notmuch@notmuchmail.org

Cc: Fraser Tweedale

From: Fraser Tweedale


Some systems (e.g. FreeBSD 10) do not ship with the GNU Compiler
Collection.  Use generic cc/c++ instead of gcc/g++ (unless the
CC/CXX environment variables are used).
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 9bde2eb..7d015c6 100755
--- a/configure
+++ b/configure
@@ -43,8 +43,8 @@ fi
 
 # Set several defaults (optionally specified by the user in
 # environment variables)
-CC=${CC:-gcc}
-CXX=${CXX:-g++}
+CC=${CC:-cc}
+CXX=${CXX:-c++}
 CFLAGS=${CFLAGS:--O2}
 CPPFLAGS=${CPPFLAGS:-}
 CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
-- 
1.9.2


Thread: