COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r1039 r540  
    33dnl Version information.
    44m4_define([lemon_version_number],
    5           [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
     5        [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
    66dnl m4_define([lemon_version_number], [])
    77m4_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]))])
     8m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
    99m4_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()])])
    1613
    1714AC_PREREQ([2.59])
     
    2320AC_CONFIG_HEADERS([config.h lemon/config.h])
    2421
    25 AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string])
     22lx_cmdline_cxxflags_set=${CXXFLAGS+set}
    2623
    2724dnl Do compilation tests using the C++ compiler.
     
    4239
    4340AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    44 AC_CHECK_PROG([python_found],[python],[yes],[no])
    4541AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    4642
     
    5753
    5854dnl Set custom compiler flags when using g++.
    59 if test "$GXX" = yes -a "$ICC" = no; then
    60   WARNINGCXXFLAGS="-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 -ansi -fno-strict-aliasing -Wold-style-cast -Wno-unknown-pragmas"
     55if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes -a "$ICC" = no; then
     56  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"
    6157fi
    62 AC_SUBST([WARNINGCXXFLAGS])
    6358
    6459dnl Checks for libraries.
    65 LX_CHECK_GLPK
    66 LX_CHECK_CPLEX
    67 LX_CHECK_SOPLEX
    68 LX_CHECK_COIN
     60#LX_CHECK_GLPK
     61#LX_CHECK_CPLEX
     62#LX_CHECK_SOPLEX
    6963
    70 AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
    71 AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
     64dnl Disable/enable building the demo programs.
     65AC_ARG_ENABLE([demo],
     66AS_HELP_STRING([--enable-demo], [build the demo programs])
     67AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
     68              [], [enable_demo=no])
     69AC_MSG_CHECKING([whether to build the demo programs])
     70if test x"$enable_demo" != x"no"; then
     71  AC_MSG_RESULT([yes])
     72else
     73  AC_MSG_RESULT([no])
     74fi
     75AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
    7276
    7377dnl Disable/enable building the binary tools.
     
    8387fi
    8488AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
    85 
    86 dnl Support for running test cases using valgrind.
    87 use_valgrind=no
    88 AC_ARG_ENABLE([valgrind],
    89 AS_HELP_STRING([--enable-valgrind], [use valgrind when running tests]),
    90               [use_valgrind=yes])
    91 
    92 if [[ "$use_valgrind" = "yes" ]]; then
    93   AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
    94 
    95   if [[ "$HAVE_VALGRIND" = "no" ]]; then
    96     AC_MSG_ERROR([Valgrind not found in PATH.])
    97   fi
    98 fi
    99 AM_CONDITIONAL(USE_VALGRIND, [test "$use_valgrind" = "yes"])
    10089
    10190dnl Checks for header files.
     
    115104dnl Add dependencies on files generated by configure.
    116105AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
    117   ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/doc/mainpage.dox.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
     106  ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
    118107
    119108AC_CONFIG_FILES([
    120109Makefile
    121 demo/Makefile
    122110cmake/version.cmake
    123111doc/Doxyfile
    124 doc/mainpage.dox
    125112lemon/lemon.pc
    126113])
     
    134121echo
    135122echo C++ compiler.................. : $CXX
    136 echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS
     123echo C++ compiles flags............ : $CXXFLAGS
    137124echo
    138125echo Compiler supports long long... : $long_long_found
    139126echo
    140 echo GLPK support.................. : $lx_glpk_found
    141 echo CPLEX support................. : $lx_cplex_found
    142 echo SOPLEX support................ : $lx_soplex_found
    143 echo CLP support................... : $lx_clp_found
    144 echo CBC support................... : $lx_cbc_found
    145 echo
     127#echo GLPK support.................. : $lx_glpk_found
     128#echo CPLEX support................. : $lx_cplex_found
     129#echo SOPLEX support................ : $lx_soplex_found
     130#echo
     131echo Build demo programs........... : $enable_demo
    146132echo Build additional tools........ : $enable_tools
    147 echo Use valgrind for tests........ : $use_valgrind
    148133echo
    149134echo The packace will be installed in
Note: See TracChangeset for help on using the changeset viewer.