gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Add HAVE_LP and HAVE_MIP #defines
0 5 0
default
5 files changed with 19 insertions and 0 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -51,12 +51,15 @@
51 51

	
52 52
dnl Checks for libraries.
53 53
#LX_CHECK_GLPK
54 54
#LX_CHECK_CPLEX
55 55
#LX_CHECK_SOPLEX
56 56

	
57
AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
58
AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
59

	
57 60
dnl Disable/enable building the demo programs.
58 61
AC_ARG_ENABLE([demo],
59 62
AS_HELP_STRING([--enable-demo], [build the demo programs])
60 63
AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
61 64
              [], [enable_demo=no])
62 65
AC_MSG_CHECKING([whether to build the demo programs])
Ignore white space 6 line context
1
/* Define to 1 if you have any LP solver. */
2
#undef HAVE_LP
3

	
4
/* Define to 1 if you have any MIP solver. */
5
#undef HAVE_MIP
6

	
1 7
/* Define to 1 if you have CPLEX. */
2 8
#undef HAVE_CPLEX
3 9

	
4 10
/* Define to 1 if you have GLPK. */
5 11
#undef HAVE_GLPK
Ignore white space 6 line context
... ...
@@ -59,12 +59,16 @@
59 59
    CXXFLAGS="$lx_save_cxxflags"
60 60
    LDFLAGS="$lx_save_ldflags"
61 61
    LIBS="$lx_save_libs"
62 62

	
63 63
    if test x"$lx_cplex_found" = x"yes"; then
64 64
      AC_DEFINE([HAVE_CPLEX], [1], [Define to 1 if you have CPLEX.])
65
      lx_lp_found=yes
66
      AC_DEFINE([HAVE_LP], [1], [Define to 1 if you have any LP solver.])
67
      lx_mip_found=yes
68
      AC_DEFINE([HAVE_MIP], [1], [Define to 1 if you have any MIP solver.])
65 69
      AC_MSG_RESULT([yes])
66 70
    else
67 71
      CPLEX_CFLAGS=""
68 72
      CPLEX_LDFLAGS=""
69 73
      CPLEX_LIBS=""
70 74
      AC_MSG_RESULT([no])
Ignore white space 6 line context
... ...
@@ -57,12 +57,16 @@
57 57
    CXXFLAGS="$lx_save_cxxflags"
58 58
    LDFLAGS="$lx_save_ldflags"
59 59
    LIBS="$lx_save_libs"
60 60

	
61 61
    if test x"$lx_glpk_found" = x"yes"; then
62 62
      AC_DEFINE([HAVE_GLPK], [1], [Define to 1 if you have GLPK.])
63
      lx_lp_found=yes
64
      AC_DEFINE([HAVE_LP], [1], [Define to 1 if you have any LP solver.])
65
      lx_mip_found=yes
66
      AC_DEFINE([HAVE_MIP], [1], [Define to 1 if you have any MIP solver.])
63 67
      AC_MSG_RESULT([yes])
64 68
    else
65 69
      GLPK_CFLAGS=""
66 70
      GLPK_LDFLAGS=""
67 71
      GLPK_LIBS=""
68 72
      AC_MSG_RESULT([no])
Ignore white space 12 line context
... ...
@@ -53,12 +53,14 @@
53 53
    CXXFLAGS="$lx_save_cxxflags"
54 54
    LDFLAGS="$lx_save_ldflags"
55 55
    LIBS="$lx_save_libs"
56 56

	
57 57
    if test x"$lx_soplex_found" = x"yes"; then
58 58
      AC_DEFINE([HAVE_SOPLEX], [1], [Define to 1 if you have SOPLEX.])
59
      lx_lp_found=yes
60
      AC_DEFINE([HAVE_LP], [1], [Define to 1 if you have any LP solver.])
59 61
      AC_MSG_RESULT([yes])
60 62
    else
61 63
      SOPLEX_CXXFLAGS=""
62 64
      SOPLEX_LDFLAGS=""
63 65
      SOPLEX_LIBS=""
64 66
      AC_MSG_RESULT([no])
0 comments (0 inline)