Changes in configure.ac [791:f8c468367dab:482:ed54c0d13df0] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r791 r482 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 2> /dev/null]))])8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))]) 9 9 m4_define([lemon_version], [ifelse(lemon_version_number(), 10 [], 11 [ifelse(lemon_hg_revision(), 12 [], 13 [hg-tip], 14 [lemon_hg_path().lemon_hg_revision()])], 15 [lemon_version_number()])]) 10 [], 11 [lemon_hg_path().lemon_hg_revision()], 12 [lemon_version_number()])]) 16 13 17 14 AC_PREREQ([2.59]) … … 23 20 AC_CONFIG_HEADERS([config.h lemon/config.h]) 24 21 25 AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string])26 27 22 dnl Do compilation tests using the C++ compiler. 28 23 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"; then33 AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])34 fi35 24 36 25 dnl Checks for programs. … … 42 31 43 32 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no]) 44 AC_CHECK_PROG([python_found],[python],[yes],[no])45 33 AC_CHECK_PROG([gs_found],[gs],[yes],[no]) 46 34 … … 66 54 LX_CHECK_CPLEX 67 55 LX_CHECK_SOPLEX 68 LX_CHECK_C OIN56 LX_CHECK_CLP 69 57 70 58 AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"]) 71 59 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"; then 68 AC_MSG_RESULT([yes]) 69 else 70 AC_MSG_RESULT([no]) 71 fi 72 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"]) 72 73 73 74 dnl Disable/enable building the binary tools. … … 100 101 dnl Add dependencies on files generated by configure. 101 102 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], 102 ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])103 ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in']) 103 104 104 105 AC_CONFIG_FILES([ 105 106 Makefile 106 demo/Makefile107 cmake/version.cmake108 107 doc/Doxyfile 109 108 lemon/lemon.pc … … 120 119 echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS 121 120 echo 122 echo Compiler supports long long... : $long_long_found123 echo124 121 echo GLPK support.................. : $lx_glpk_found 125 122 echo CPLEX support................. : $lx_cplex_found 126 123 echo SOPLEX support................ : $lx_soplex_found 127 124 echo CLP support................... : $lx_clp_found 128 echo CBC support................... : $lx_cbc_found129 125 echo 126 echo Build demo programs........... : $enable_demo 130 127 echo Build additional tools........ : $enable_tools 131 128 echo
Note: See TracChangeset
for help on using the changeset viewer.