Commit 24ddea60d5544c65c168eef75b36681bc5f7e9ca

Authored by Jürgen Knödlseder
1 parent 865f272e

clang++/clang takes precedence over g++/gcc.

On new Mac OS X systems (>=10.7) we should select by default the clang++ compiler instead of the g++ compiler. The order of the compilers was thus changed on the compiler search, so that clang++ is detected before g++. As most other systems have no clang++ compiler (at least for the moment), this should not distrube the g++ discovery on these systems.
Showing 1 changed file with 3 additions and 3 deletions
configure.ac
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 ############################################################################# 29 #############################################################################
30 # Initialisation # 30 # Initialisation #
31 ############################################################################# 31 #############################################################################
32 -AC_INIT([gammalib], [0.6.0], [jurgen.knodlseder@irap.omp.eu], [gammalib]) 32 +AC_INIT([gammalib], [0.6.1], [jurgen.knodlseder@irap.omp.eu], [gammalib])
33 AC_CONFIG_SRCDIR([src/support/GTools.cpp]) 33 AC_CONFIG_SRCDIR([src/support/GTools.cpp])
34 AC_CONFIG_MACRO_DIR([m4]) 34 AC_CONFIG_MACRO_DIR([m4])
35 AM_INIT_AUTOMAKE([gnu no-dependencies]) 35 AM_INIT_AUTOMAKE([gnu no-dependencies])
@@ -80,8 +80,8 @@ AC_CANONICAL_HOST @@ -80,8 +80,8 @@ AC_CANONICAL_HOST
80 # header files, otherwise we won't detect if the C++ compiler is missing. # 80 # header files, otherwise we won't detect if the C++ compiler is missing. #
81 ############################################################################# 81 #############################################################################
82 AC_LANG(C++) 82 AC_LANG(C++)
83 -AC_PROG_CXX([g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++])  
84 -AC_PROG_CC([gcc cc cl.exe clang]) 83 +AC_PROG_CXX([clang++ g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC])
  84 +AC_PROG_CC([clang gcc cc cl.exe])
85 85
86 86
87 ############################################################################# 87 #############################################################################