Changes in configure.ac [482:ed54c0d13df0:791:f8c468367dab] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r482 r791 3 3 dnl Version information. 4 4 m4_define([lemon_version_number], 5 5 [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))]) 6 6 dnl m4_define([lemon_version_number], []) 7 7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))]) 8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i ]))])8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))]) 9 9 m4_define([lemon_version], [ifelse(lemon_version_number(), 10 [], 11 [lemon_hg_path().lemon_hg_revision()], 12 [lemon_version_number()])]) 10 [], 11 [ifelse(lemon_hg_revision(), 12 [], 13 [hg-tip], 14 [lemon_hg_path().lemon_hg_revision()])], 15 [lemon_version_number()])]) 13 16 14 17 AC_PREREQ([2.59]) … … 20 23 AC_CONFIG_HEADERS([config.h lemon/config.h]) 21 24 25 AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string]) 26 22 27 dnl Do compilation tests using the C++ compiler. 23 28 AC_LANG([C++]) 29 30 dnl Check the existence of long long type. 31 AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no]) 32 if test x"$long_long_found" = x"yes"; then 33 AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.]) 34 fi 24 35 25 36 dnl Checks for programs. … … 31 42 32 43 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no]) 44 AC_CHECK_PROG([python_found],[python],[yes],[no]) 33 45 AC_CHECK_PROG([gs_found],[gs],[yes],[no]) 34 46 … … 54 66 LX_CHECK_CPLEX 55 67 LX_CHECK_SOPLEX 56 LX_CHECK_C LP68 LX_CHECK_COIN 57 69 58 70 AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"]) 59 71 AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"]) 60 61 dnl Disable/enable building the demo programs.62 AC_ARG_ENABLE([demo],63 AS_HELP_STRING([--enable-demo], [build the demo programs])64 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),65 [], [enable_demo=no])66 AC_MSG_CHECKING([whether to build the demo programs])67 if test x"$enable_demo" != x"no"; then68 AC_MSG_RESULT([yes])69 else70 AC_MSG_RESULT([no])71 fi72 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])73 72 74 73 dnl Disable/enable building the binary tools. … … 101 100 dnl Add dependencies on files generated by configure. 102 101 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], 103 ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in '])102 ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in']) 104 103 105 104 AC_CONFIG_FILES([ 106 105 Makefile 106 demo/Makefile 107 cmake/version.cmake 107 108 doc/Doxyfile 108 109 lemon/lemon.pc … … 119 120 echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS 120 121 echo 122 echo Compiler supports long long... : $long_long_found 123 echo 121 124 echo GLPK support.................. : $lx_glpk_found 122 125 echo CPLEX support................. : $lx_cplex_found 123 126 echo SOPLEX support................ : $lx_soplex_found 124 127 echo CLP support................... : $lx_clp_found 128 echo CBC support................... : $lx_cbc_found 125 129 echo 126 echo Build demo programs........... : $enable_demo127 130 echo Build additional tools........ : $enable_tools 128 131 echo
Note: See TracChangeset
for help on using the changeset viewer.