Changes in configure.ac [236:da953e387d31:310:a9e8f310507f] in lemon-1.2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r236 r310 2 2 3 3 dnl Version information. 4 m4_define([lemon_version_number], []) 4 m4_define([lemon_version_number], 5 [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))]) 6 dnl m4_define([lemon_version_number], []) 7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))]) 5 8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))]) 6 m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])]) 9 m4_define([lemon_version], [ifelse(lemon_version_number(), 10 [], 11 [lemon_hg_path().lemon_hg_revision()], 12 [lemon_version_number()])]) 7 13 8 14 AC_PREREQ([2.59]) … … 16 22 lx_cmdline_cxxflags_set=${CXXFLAGS+set} 17 23 24 dnl Do compilation tests using the C++ compiler. 25 AC_LANG([C++]) 26 18 27 dnl Checks for programs. 19 28 AC_PROG_CXX … … 26 35 AC_CHECK_PROG([gs_found],[gs],[yes],[no]) 27 36 37 dnl Detect Intel compiler. 38 AC_MSG_CHECKING([whether we are using the Intel C++ compiler]) 39 AC_COMPILE_IFELSE([#ifndef __INTEL_COMPILER 40 choke me 41 #endif], [ICC=[yes]], [ICC=[no]]) 42 if test x"$ICC" = x"yes"; then 43 AC_MSG_RESULT([yes]) 44 else 45 AC_MSG_RESULT([no]) 46 fi 47 28 48 dnl Set custom compiler flags when using g++. 29 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes ; then49 if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then 30 50 CXXFLAGS="$CXXFLAGS -Wall -W -Wall -W -Wunused -Wformat=2 -Wctor-dtor-privacy -Wnon-virtual-dtor -Wno-char-subscripts -Wwrite-strings -Wno-char-subscripts -Wreturn-type -Wcast-qual -Wcast-align -Wsign-promo -Woverloaded-virtual -Woverloaded-virtual -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas" 31 51 fi 32 52 33 53 dnl Checks for libraries. 34 LX_CHECK_GLPK35 LX_CHECK_CPLEX36 LX_CHECK_SOPLEX54 #LX_CHECK_GLPK 55 #LX_CHECK_CPLEX 56 #LX_CHECK_SOPLEX 37 57 38 58 dnl Disable/enable building the demo programs. … … 61 81 fi 62 82 AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"]) 63 64 dnl Disable/enable building the benchmarks.65 AC_ARG_ENABLE([benchmark],66 AS_HELP_STRING([--enable-benchmark], [build the benchmarks])67 AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),68 [], [enable_benchmark=no])69 AC_MSG_CHECKING([whether to build the benchmarks])70 if test x"$enable_benchmark" != x"no"; then71 AC_MSG_RESULT([yes])72 else73 AC_MSG_RESULT([no])74 fi75 AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])76 83 77 84 dnl Checks for header files. … … 109 116 echo C++ compiles flags............ : $CXXFLAGS 110 117 echo 111 echo GLPK support.................. : $lx_glpk_found 112 echo CPLEX support................. : $lx_cplex_found 113 echo SOPLEX support................ : $lx_soplex_found 114 echo 115 echo Build benchmarks.............. : $enable_benchmark 118 #echo GLPK support.................. : $lx_glpk_found 119 #echo CPLEX support................. : $lx_cplex_found 120 #echo SOPLEX support................ : $lx_soplex_found 121 #echo 116 122 echo Build demo programs........... : $enable_demo 117 123 echo Build additional tools........ : $enable_tools
Note: See TracChangeset
for help on using the changeset viewer.