configure.ac (ea16fa1f) | configure.ac (1e1ac450) |
---|---|
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 --- 1665 unchanged lines hidden (view full) --- 1674fi 1675 1676COMPATH=`dirname "$CC"` 1677if test "$COMPATH" = "." ; then 1678 AC_PATH_PROGS(COMPATH, $CC) 1679 dnl double square bracket to get single because of M4 quote... 1680 COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`; 1681fi | 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 --- 1665 unchanged lines hidden (view full) --- 1674fi 1675 1676COMPATH=`dirname "$CC"` 1677if test "$COMPATH" = "." ; then 1678 AC_PATH_PROGS(COMPATH, $CC) 1679 dnl double square bracket to get single because of M4 quote... 1680 COMPATH=`echo $COMPATH | $SED "s@/[[^/:]]*\\\$@@"`; 1681fi |
1682CC_PATH="$COMPATH/" |
|
1682COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`; 1683 1684dnl =================================================================== 1685dnl Test the gcc version, 3 is OK 1686dnl =================================================================== 1687GCCVER=20995 1688if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then 1689 AC_MSG_CHECKING([the GNU gcc compiler version]) --- 5 unchanged lines hidden (view full) --- 1695 AC_MSG_ERROR([found version "$_gcc_version", use version 3+ of the gcc compiler]) 1696 else 1697 if test "$GCCVER" -eq "030203"; then 1698 if test "$ENABLE_SYMBOLS" = "SMALL"; then 1699 AC_MSG_ERROR([version "$_gcc_version" gives internal error with small.]) 1700 fi 1701 fi 1702 fi | 1683COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`; 1684 1685dnl =================================================================== 1686dnl Test the gcc version, 3 is OK 1687dnl =================================================================== 1688GCCVER=20995 1689if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then 1690 AC_MSG_CHECKING([the GNU gcc compiler version]) --- 5 unchanged lines hidden (view full) --- 1696 AC_MSG_ERROR([found version "$_gcc_version", use version 3+ of the gcc compiler]) 1697 else 1698 if test "$GCCVER" -eq "030203"; then 1699 if test "$ENABLE_SYMBOLS" = "SMALL"; then 1700 AC_MSG_ERROR([version "$_gcc_version" gives internal error with small.]) 1701 fi 1702 fi 1703 fi |
1703 if test "$_os" = "Darwin" -a "$GCCVER" -ge "040100" ; then 1704 if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0" ; then 1705 export CC=$GCC_HOME/bin/gcc-4.0 1706 dnl export CC to have it available in set_soenv -> config.guess 1707 GCCVER2=`"$CC" -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'` 1708 if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100" ; then 1709 GCCVER=$GCCVER2 1710 fi 1711 fi 1712 if test "$GCCVER" -ge "040100" ; then 1713 AC_MSG_ERROR([You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly]) 1714 else | 1704 if test "$_os" = "Darwin" ; then |
1715 AC_MSG_RESULT([implicitly using CC=$CC]) | 1705 AC_MSG_RESULT([implicitly using CC=$CC]) |
1716 fi | |
1717 else 1718 AC_MSG_RESULT([checked (gcc $_gcc_version)]) 1719 fi 1720 if test "$_os" = "SunOS"; then 1721 AC_MSG_CHECKING([gcc linker]) 1722 if $CC -Wl,--version 2>&1 |head -n 1| grep -v GNU > /dev/null;then 1723 AC_MSG_ERROR([failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris]) 1724 fi --- 68 unchanged lines hidden (view full) --- 1793 AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed]) 1794fi 1795AC_SUBST(GNUMAKE) 1796 1797dnl =================================================================== 1798dnl Search for a pre-installed dmake 1799dnl =================================================================== 1800AC_MSG_CHECKING([for dmake]) | 1706 else 1707 AC_MSG_RESULT([checked (gcc $_gcc_version)]) 1708 fi 1709 if test "$_os" = "SunOS"; then 1710 AC_MSG_CHECKING([gcc linker]) 1711 if $CC -Wl,--version 2>&1 |head -n 1| grep -v GNU > /dev/null;then 1712 AC_MSG_ERROR([failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris]) 1713 fi --- 68 unchanged lines hidden (view full) --- 1782 AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed]) 1783fi 1784AC_SUBST(GNUMAKE) 1785 1786dnl =================================================================== 1787dnl Search for a pre-installed dmake 1788dnl =================================================================== 1789AC_MSG_CHECKING([for dmake]) |
1801DMAKE="no" 1802# Override system dmake if --with-dmake-path or --with-dmake-url is used. 1803if test -z "$with_dmake_path" && test -z "$with_dmake_url"; then 1804 AC_PATH_PROG(DMAKE, dmake, no) 1805 IS_SYSTEM_DMAKE=NO 1806 if test "$DMAKE" != "no"; then 1807 AC_MSG_RESULT([using system dmake]) 1808 DMAKE_PATH="$DMAKE" 1809 IS_SYSTEM_DMAKE=YES 1810 fi | 1790AC_PATH_PROG(DMAKE, dmake, no) 1791IS_SYSTEM_DMAKE=NO 1792if test "$DMAKE" != "no"; then 1793 AC_MSG_RESULT([using system dmake]) 1794 DMAKE_PATH="$DMAKE" 1795 IS_SYSTEM_DMAKE=YES |
1811elif test -n "$with_dmake_path" ; then 1812 # Did not find pre-installed dmake. 1813 # Is it at a nonstandard location provided by --with-dmake-path ? 1814 AC_MSG_NOTICE([looking for dmake at $DMAKE_PATH]) 1815 if test -x "$with_dmake_path" ; then 1816 AC_MSG_RESULT([using user provided dmake]) 1817 DMAKE=$with_dmake_path 1818 fi --- 540 unchanged lines hidden (view full) --- 2359 2360dnl check if we are using a buggy version of g++ (currently 3.4.0, 3.4.1 and trunk) 2361if test "$GXX" = "yes"; then 2362 AC_MSG_CHECKING([the GNU C++ compiler version]) 2363 2364 _gpp_version=`$CXX -dumpversion` 2365 _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'` 2366 | 1796elif test -n "$with_dmake_path" ; then 1797 # Did not find pre-installed dmake. 1798 # Is it at a nonstandard location provided by --with-dmake-path ? 1799 AC_MSG_NOTICE([looking for dmake at $DMAKE_PATH]) 1800 if test -x "$with_dmake_path" ; then 1801 AC_MSG_RESULT([using user provided dmake]) 1802 DMAKE=$with_dmake_path 1803 fi --- 540 unchanged lines hidden (view full) --- 2344 2345dnl check if we are using a buggy version of g++ (currently 3.4.0, 3.4.1 and trunk) 2346if test "$GXX" = "yes"; then 2347 AC_MSG_CHECKING([the GNU C++ compiler version]) 2348 2349 _gpp_version=`$CXX -dumpversion` 2350 _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'` 2351 |
2367 if test "$_os" = "Darwin" -a "$_gpp_majmin" -ge "401" ; then 2368 if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0" ; then 2369 CXX=$GCC_HOME/bin/g++-4.0 2370 _gpp_majmin_2=`"$CXX" -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'` 2371 if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401" ; then 2372 _gpp_majmin=$_gpp_majmin_2 2373 fi 2374 fi 2375 if test "$_gpp_majmin" -ge "401" ; then 2376 AC_MSG_ERROR([You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly]) 2377 else 2378 AC_MSG_RESULT([implicitly using CXX=$CXX]) 2379 fi 2380 else 2381 AC_MSG_RESULT([checked (g++ $_gpp_version)]) 2382 fi | 2352 AC_MSG_RESULT([checked (g++ $_gpp_version)]) |
2383 2384 if test "$_gpp_majmin" = "304"; then 2385 AC_MSG_CHECKING([whether $CXX has the enum bug]) 2386AC_TRY_RUN([ 2387extern "C" void abort (void); 2388extern "C" void exit (int status); 2389 2390enum E { E0, E1, E2, E3, E4, E5 }; --- 1416 unchanged lines hidden (view full) --- 3807AC_MSG_CHECKING([which cppunit to use]) 3808if test -n "$with_system_cppunit" -o -n "$with_system_libs" && \ 3809 test "$with_system_cppunit" != "no"; then 3810 SYSTEM_CPPUNIT=YES 3811 # might work for earlier, too but go sure: 3812 PKG_CHECK_MODULES( CPPUNIT, 3813 cppunit >= 1.12.0, 3814 WITH_CPPUNIT="YES", | 2353 2354 if test "$_gpp_majmin" = "304"; then 2355 AC_MSG_CHECKING([whether $CXX has the enum bug]) 2356AC_TRY_RUN([ 2357extern "C" void abort (void); 2358extern "C" void exit (int status); 2359 2360enum E { E0, E1, E2, E3, E4, E5 }; --- 1416 unchanged lines hidden (view full) --- 3777AC_MSG_CHECKING([which cppunit to use]) 3778if test -n "$with_system_cppunit" -o -n "$with_system_libs" && \ 3779 test "$with_system_cppunit" != "no"; then 3780 SYSTEM_CPPUNIT=YES 3781 # might work for earlier, too but go sure: 3782 PKG_CHECK_MODULES( CPPUNIT, 3783 cppunit >= 1.12.0, 3784 WITH_CPPUNIT="YES", |
3815 WITH_CPPUNIT=") | 3785 WITH_CPPUNIT="") |
3816 if test -n "$WITH_CPPUNIT"; then 3817 AC_MSG_RESULT([found system cppunit $CPPUNIT]) 3818 else 3819 AC_MSG_WARN([dit not find system cppunit version 1.12.0 or later]) 3820 fi 3821 3822else 3823 AC_MSG_WARN([not using cppunit]) --- 122 unchanged lines hidden (view full) --- 3946 _python="/usr/bin/python" 3947 fi 3948 AC_MSG_RESULT([compiling against system python ($_python)]) 3949 3950 _python_hexversion=`$_python -c "import sys; print(sys.hexversion);"` 3951 3952 dnl hex version of Python 2.7.1 = 34013680 3953 if test $_python_hexversion -ge 34013680 ; then | 3786 if test -n "$WITH_CPPUNIT"; then 3787 AC_MSG_RESULT([found system cppunit $CPPUNIT]) 3788 else 3789 AC_MSG_WARN([dit not find system cppunit version 1.12.0 or later]) 3790 fi 3791 3792else 3793 AC_MSG_WARN([not using cppunit]) --- 122 unchanged lines hidden (view full) --- 3916 _python="/usr/bin/python" 3917 fi 3918 AC_MSG_RESULT([compiling against system python ($_python)]) 3919 3920 _python_hexversion=`$_python -c "import sys; print(sys.hexversion);"` 3921 3922 dnl hex version of Python 2.7.1 = 34013680 3923 if test $_python_hexversion -ge 34013680 ; then |
3954 _python_version=`$_python -c "import sys; print sys.version;" | head -n 1` | 3924 _python_version=`$_python -c "import sys; print sys.version;" | head -c 3` |
3955 AC_MSG_RESULT([compiling against system python (version $_python_version)]) 3956 3957 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 3958 3959 if test -d "/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then 3960 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" | 3925 AC_MSG_RESULT([compiling against system python (version $_python_version)]) 3926 3927 _python_ver=`$_python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 3928 3929 if test -d "/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then 3930 PYTHON_CFLAGS="-I/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" |
3961 elif test -d "/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver"; then 3962 PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" | 3931 elif test -d "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/python$_python_ver"; then 3932 PYTHON_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/python$_python_ver" |
3963 else 3964 PYTHON_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 3965 fi 3966 else 3967 AC_MSG_ERROR([Python 2.7.1 or higher is required]) 3968 fi 3969 3970 PYTHON_LIBS="-framework Python" 3971elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 3972 test "$with_system_python" != "no"; then 3973 with_system_python=yes 3974 AC_MSG_RESULT([external]) | 3933 else 3934 PYTHON_CFLAGS="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/$_python_ver/include/python$_python_ver" 3935 fi 3936 else 3937 AC_MSG_ERROR([Python 2.7.1 or higher is required]) 3938 fi 3939 3940 PYTHON_LIBS="-framework Python" 3941elif test -n "$with_system_python" -o -n "$with_system_libs" && \ 3942 test "$with_system_python" != "no"; then 3943 with_system_python=yes 3944 AC_MSG_RESULT([external]) |
3975 AM_PATH_PYTHON([2.3]) | 3945 AM_PATH_PYTHON([2.7]) |
3976 3977 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"` 3978 python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 3979 PYTHON_CFLAGS="-I$python_include" 3980 PYTHON_LIBS="-lpython$python_version" 3981fi 3982if test "$with_system_python" = "yes" ; then 3983 SYSTEM_PYTHON=YES --- 3289 unchanged lines hidden (view full) --- 7273echo "* Setting up the build environment variables. *" 7274echo "* *" 7275echo "********************************************************************" 7276 7277if test -z "$COMPATH"; then 7278 AC_MSG_ERROR([No compiler found.]) 7279fi 7280AC_SUBST(COMPATH) | 3946 3947 python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"` 3948 python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"` 3949 PYTHON_CFLAGS="-I$python_include" 3950 PYTHON_LIBS="-lpython$python_version" 3951fi 3952if test "$with_system_python" = "yes" ; then 3953 SYSTEM_PYTHON=YES --- 3289 unchanged lines hidden (view full) --- 7243echo "* Setting up the build environment variables. *" 7244echo "* *" 7245echo "********************************************************************" 7246 7247if test -z "$COMPATH"; then 7248 AC_MSG_ERROR([No compiler found.]) 7249fi 7250AC_SUBST(COMPATH) |
7251AC_SUBST(CC_PATH) |
|
7281 7282AC_MSG_CHECKING([solver path]) 7283if test -z "$with_local_solver"; then 7284 LOCAL_SOLVER="DEFAULT" 7285 AC_MSG_RESULT([default]) 7286else 7287 LOCAL_SOLVER=$with_local_solver 7288 AC_MSG_RESULT([$with_local_solver]) --- 37 unchanged lines hidden --- | 7252 7253AC_MSG_CHECKING([solver path]) 7254if test -z "$with_local_solver"; then 7255 LOCAL_SOLVER="DEFAULT" 7256 AC_MSG_RESULT([default]) 7257else 7258 LOCAL_SOLVER=$with_local_solver 7259 AC_MSG_RESULT([$with_local_solver]) --- 37 unchanged lines hidden --- |