| configure.ac (906a4e93) | configure.ac (386ca866) |
|---|---|
| 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 1684 unchanged lines hidden (view full) --- 1693 fi 1694fi 1695 1696dnl The following checks for gcc, cc and then cl (if it weren't guarded for win32) 1697if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then 1698 AC_PROG_CC 1699fi 1700 | 1dnl * ************************************************************* 2dnl * 3dnl * Licensed to the Apache Software Foundation (ASF) under one 4dnl * or more contributor license agreements. See the NOTICE file 5dnl * distributed with this work for additional information 6dnl * regarding copyright ownership. The ASF licenses this file 7dnl * to you under the Apache License, Version 2.0 (the 8dnl * "License"); you may not use this file except in compliance --- 1684 unchanged lines hidden (view full) --- 1693 fi 1694fi 1695 1696dnl The following checks for gcc, cc and then cl (if it weren't guarded for win32) 1697if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then 1698 AC_PROG_CC 1699fi 1700 |
| 1701dnl Clang detection on supported platforms 1702if test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then 1703 if $CC --version 2>&1 | $GREP clang > /dev/null ; then 1704 COM_IS=CLANG 1705 else 1706 COM_IS=GCC 1707 fi 1708 AC_SUBST(COM_IS) 1709fi 1710 1711if test "$_os" = "FreeBSD"; then 1712 FBSD_GCC_RPATH= 1713 if "$COM_IS" = "GCC"; then 1714 rpath=`$CC --print-file-name libstdc++.so` 1715 rpath=`realpath $rpath` 1716 rpath=`dirname $rpath` 1717 if test "$rpath" != "/usr/lib" ; then 1718 FBSD_GCC_RPATH="-Wl,-rpath=$rpath" 1719 fi 1720 fi 1721 AC_SUBST(FBSD_GCC_RPATH) 1722fi 1723 | |
| 1724COMPATH=`dirname "$CC"` 1725if test "$COMPATH" = "." ; then 1726 AC_PATH_PROGS(COMPATH, $CC) 1727 dnl double square bracket to get single because of M4 quote... 1728 COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`; 1729fi 1730CC_PATH="$COMPATH/" 1731COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`; --- 433 unchanged lines hidden (view full) --- 2165 AC_MSG_ERROR([Mingwin32 C++ Compiler not found.]) 2166 fi 2167 fi 2168fi 2169AC_SUBST(COMEX) 2170AC_SUBST(MSPDB_PATH) 2171AC_SUBST(USE_MINGW) 2172 | 1701COMPATH=`dirname "$CC"` 1702if test "$COMPATH" = "." ; then 1703 AC_PATH_PROGS(COMPATH, $CC) 1704 dnl double square bracket to get single because of M4 quote... 1705 COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`; 1706fi 1707CC_PATH="$COMPATH/" 1708COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`; --- 433 unchanged lines hidden (view full) --- 2142 AC_MSG_ERROR([Mingwin32 C++ Compiler not found.]) 2143 fi 2144 fi 2145fi 2146AC_SUBST(COMEX) 2147AC_SUBST(MSPDB_PATH) 2148AC_SUBST(USE_MINGW) 2149 |
| 2150dnl Compiler detection, logic from setsoenv.in 2151case "$build_os" in 2152 *cygwin*) 2153 if test "$WITH_MINGWIN" = "yes"; then 2154 COM="GCC"; 2155 else 2156 COM="MSC"; 2157 fi;; 2158 os2*) 2159 COM="GCC";; 2160 netbsd | kfreebsd* | freebsd* | linux* | darwin* ) 2161 if $CC --version 2>&1 | $GREP clang > /dev/null ; then 2162 COM="CLANG"; 2163 else 2164 COM="GCC"; 2165 fi;; 2166 solaris*) 2167 case "$CC" in 2168 *gcc*) COM="GCC";; 2169 *) COM="C52";; 2170 esac;; 2171 osf | aix*) 2172 COM="CXX";; 2173 *) AC_MSG_ERROR([Unable to decipher compiler for $build_os]);; 2174esac 2175AC_SUBST(COM) 2176 2177dnl Decode the compiler version. Logic from main/solenv/inc/tg_compv.mk. 2178case $COM in 2179 GCC) 2180 CCVER=`${CC} -dumpversion 2>&1`; 2181 CCNUMVER=`echo ${CCVER} | $AWK -v num=true -f ${_solenv}/bin/getcompver.awk`; 2182 if test "${CCNUMVER}" -ge 000300000001; then 2183 COMID="gcc3"; 2184 COMNAME="gcc3"; 2185 elif test "${CCNUMVER}" -ge 000300000001; then 2186 COMID="GCC"; 2187 COMNAME="gcc2"; 2188 else 2189 AC_MSG_ERROR([gcc too old]); 2190 fi 2191 ;; 2192 CLANG) 2193 CCVER=`${CC} --version 2>&1 | head -n1 | sed -e"s/.*version //" -e"s/ .*//"`; 2194 CCNUMVER=`echo ${CCVER} | $AWK -v num=true -f ${_solenv}/bin/getcompver.awk`; 2195 # The version in tg_compv.mk for darwin does not look correct 2196 # CCNUMVER = `echo ${CCVER} | sed -e"s/\.//"; 2197 if test "$build_os" == "darwin"; then 2198 COMID="s5abi"; 2199 COMNAME="s5abi"; 2200 else 2201 COMID="gcc3"; 2202 COMNAME="gcc3"; 2203 fi;; 2204 MSC) 2205 CCVER=`${CC} 2>&1 | $AWK -f ${_solenv}/bin/getcompver.awk`; 2206 CCNUMVER=`${CC} 2>&1 | $AWK -v num=true -f ${_solenv}/bin/getcompver.awk`; 2207 if test "${CCNUMVER}" -ge 001200000000; then 2208 COMID="MSC"; 2209 COMNAME="msci"; 2210 else 2211 AC_MSG_ERROR([MSC compiler too old]); 2212 fi 2213 ;; 2214 C55 | C54 | C52 | C40 | sunpro) 2215 CCVER=`${CC} -V 2>&1 | $AWK -f ${_solenv}/bin/getcompver.awk`; 2216 CCNUMVER=`${CC} -V 2>&1 | $AWK -v num=true -f ${_solenv}/bin/getcompver.awk`; 2217 if test "${CCNUMVER}" -ge 00050002; then 2218 COMID="C52"; 2219 COMNAME="sunpro5"; 2220 else 2221 AC_MSG_ERROR([Sun compiler too old]); 2222 fi 2223 ;; 2224 *) 2225 AC_MSG_ERROR([Unable to detect compiler version]);; 2226esac 2227AC_SUBST(CCVER) 2228AC_SUBST(CCNUMVER) 2229AC_SUBST(COMID) 2230AC_SUBST(COMNAME) 2231 2232if test "$_os" = "FreeBSD"; then 2233 FBSD_GCC_RPATH= 2234 if "$COM" = "GCC"; then 2235 rpath=`$CC --print-file-name libstdc++.so` 2236 rpath=`realpath $rpath` 2237 rpath=`dirname $rpath` 2238 if test "$rpath" != "/usr/lib" ; then 2239 FBSD_GCC_RPATH="-Wl,-rpath=$rpath" 2240 fi 2241 fi 2242 AC_SUBST(FBSD_GCC_RPATH) 2243fi 2244 |
|
| 2173dnl =================================================================== 2174dnl .NET needs special treatment 2175dnl =================================================================== 2176if test "$_os" = "WINNT"; then 2177if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then 2178 dnl Check midl.exe 2179 AC_PATH_PROG(MIDL_PATH, midl.exe) 2180 if test -n "$MIDL_PATH";then --- 5121 unchanged lines hidden --- | 2245dnl =================================================================== 2246dnl .NET needs special treatment 2247dnl =================================================================== 2248if test "$_os" = "WINNT"; then 2249if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then 2250 dnl Check midl.exe 2251 AC_PATH_PROG(MIDL_PATH, midl.exe) 2252 if test -n "$MIDL_PATH";then --- 5121 unchanged lines hidden --- |