COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r564 r1276  
    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]))])
     8m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))])
    99m4_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()])])
    1316
    1417AC_PREREQ([2.59])
     
    1619AC_CONFIG_AUX_DIR([build-aux])
    1720AC_CONFIG_MACRO_DIR([m4])
    18 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects nostdinc])
     21AM_INIT_AUTOMAKE([-Wall foreign subdir-objects nostdinc])
    1922AC_CONFIG_SRCDIR([lemon/list_graph.h])
    2023AC_CONFIG_HEADERS([config.h lemon/config.h])
     24
     25AC_DEFINE([LEMON_VERSION], [lemon_version()], [The version string])
    2126
    2227dnl Do compilation tests using the C++ compiler.
     
    2631AC_CHECK_TYPE(long long, [long_long_found=yes], [long_long_found=no])
    2732if test x"$long_long_found" = x"yes"; then
    28   AC_DEFINE([HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])
     33  AC_DEFINE([LEMON_HAVE_LONG_LONG], [1], [Define to 1 if you have long long.])
    2934fi
    3035
     
    3742
    3843AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
     44AC_CHECK_PROG([python_found],[python],[yes],[no])
    3945AC_CHECK_PROG([gs_found],[gs],[yes],[no])
    4046
     
    6066LX_CHECK_CPLEX
    6167LX_CHECK_SOPLEX
    62 LX_CHECK_CLP
     68LX_CHECK_COIN
    6369
    6470AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
    6571AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
    66 
    67 dnl Disable/enable building the demo programs.
    68 AC_ARG_ENABLE([demo],
    69 AS_HELP_STRING([--enable-demo], [build the demo programs])
    70 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
    71               [], [enable_demo=no])
    72 AC_MSG_CHECKING([whether to build the demo programs])
    73 if test x"$enable_demo" != x"no"; then
    74   AC_MSG_RESULT([yes])
    75 else
    76   AC_MSG_RESULT([no])
    77 fi
    78 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
    7972
    8073dnl Disable/enable building the binary tools.
     
    9083fi
    9184AM_CONDITIONAL([WANT_TOOLS], [test x"$enable_tools" != x"no"])
     85
     86dnl Support for running test cases using valgrind.
     87use_valgrind=no
     88AC_ARG_ENABLE([valgrind],
     89AS_HELP_STRING([--enable-valgrind], [use valgrind when running tests]),
     90              [use_valgrind=yes])
     91
     92if [[ "$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
     98fi
     99AM_CONDITIONAL(USE_VALGRIND, [test "$use_valgrind" = "yes"])
    92100
    93101dnl Checks for header files.
     
    107115dnl Add dependencies on files generated by configure.
    108116AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
    109   ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
     117  ['$(top_srcdir)/doc/Doxyfile.in $(top_srcdir)/doc/mainpage.dox.in $(top_srcdir)/lemon/lemon.pc.in $(top_srcdir)/cmake/version.cmake.in'])
    110118
    111119AC_CONFIG_FILES([
    112120Makefile
     121demo/Makefile
    113122cmake/version.cmake
    114123doc/Doxyfile
     124doc/mainpage.dox
    115125lemon/lemon.pc
    116126])
     
    132142echo SOPLEX support................ : $lx_soplex_found
    133143echo CLP support................... : $lx_clp_found
     144echo CBC support................... : $lx_cbc_found
    134145echo
    135 echo Build demo programs........... : $enable_demo
    136146echo Build additional tools........ : $enable_tools
     147echo Use valgrind for tests........ : $use_valgrind
    137148echo
    138149echo The packace will be installed in
Note: See TracChangeset for help on using the changeset viewer.