]> git.notmuchmail.org Git - notmuch/commitdiff
configure: use cc/c++ instead of gcc/g++
authorFraser Tweedale <frase@frase.id.au>
Thu, 22 May 2014 10:10:06 +0000 (20:10 +1000)
committerDavid Bremner <david@tethera.net>
Fri, 4 Jul 2014 11:56:32 +0000 (08:56 -0300)
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

index 99ab74dcfb97c515a8c2b96ffd7d75f551652e0c..9514d4d90c1f38d3d738f933ab110b869120d9fc 100755 (executable)
--- 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)}