m4/lx_check_soplex.m4
changeset 2552 5f711e4668f5
parent 2313 d9daf826e28a
child 2615 2bf1f6e3d5ae
equal deleted inserted replaced
0:f3106f997cd0 1:cbdccc3e2957
    16   lx_soplex_found=no
    16   lx_soplex_found=no
    17   if test x"$with_soplex" != x"no"; then
    17   if test x"$with_soplex" != x"no"; then
    18     AC_MSG_CHECKING([for SOPLEX])
    18     AC_MSG_CHECKING([for SOPLEX])
    19 
    19 
    20     if test x"$with_soplex_includedir" != x"no"; then
    20     if test x"$with_soplex_includedir" != x"no"; then
    21       SOPLEX_CFLAGS="-I$with_soplex_includedir"
    21       SOPLEX_CXXFLAGS="-I$with_soplex_includedir"
    22     elif test x"$with_soplex" != x"yes"; then
    22     elif test x"$with_soplex" != x"yes"; then
    23       SOPLEX_CFLAGS="-I$with_soplex/include"
    23       SOPLEX_CXXFLAGS="-I$with_soplex/include"
    24     fi
    24     fi
    25 
    25 
    26     if test x"$with_soplex_libdir" != x"no"; then
    26     if test x"$with_soplex_libdir" != x"no"; then
    27       SOPLEX_LDFLAGS="-L$with_soplex_libdir"
    27       SOPLEX_LDFLAGS="-L$with_soplex_libdir"
    28     elif test x"$with_soplex" != x"yes"; then
    28     elif test x"$with_soplex" != x"yes"; then
    31     SOPLEX_LIBS="-lsoplex -lz"
    31     SOPLEX_LIBS="-lsoplex -lz"
    32 
    32 
    33     lx_save_cxxflags="$CXXFLAGS"
    33     lx_save_cxxflags="$CXXFLAGS"
    34     lx_save_ldflags="$LDFLAGS"
    34     lx_save_ldflags="$LDFLAGS"
    35     lx_save_libs="$LIBS"
    35     lx_save_libs="$LIBS"
    36     CXXFLAGS="$SOPLEX_CFLAGS"
    36     CXXFLAGS="$SOPLEX_CXXFLAGS"
    37     LDFLAGS="$SOPLEX_LDFLAGS"
    37     LDFLAGS="$SOPLEX_LDFLAGS"
    38     LIBS="$SOPLEX_LIBS"
    38     LIBS="$SOPLEX_LIBS"
    39 
    39 
    40     lx_soplex_test_prog='
    40     lx_soplex_test_prog='
    41       #include <soplex/soplex.h>
    41       #include <soplex/soplex.h>
    56 
    56 
    57     if test x"$lx_soplex_found" = x"yes"; then
    57     if test x"$lx_soplex_found" = x"yes"; then
    58       AC_DEFINE([HAVE_SOPLEX], [1], [Define to 1 if you have SOPLEX.])
    58       AC_DEFINE([HAVE_SOPLEX], [1], [Define to 1 if you have SOPLEX.])
    59       AC_MSG_RESULT([yes])
    59       AC_MSG_RESULT([yes])
    60     else
    60     else
    61       SOPLEX_CFLAGS=""
    61       SOPLEX_CXXFLAGS=""
    62       SOPLEX_LDFLAGS=""
    62       SOPLEX_LDFLAGS=""
    63       SOPLEX_LIBS=""
    63       SOPLEX_LIBS=""
    64       AC_MSG_RESULT([no])
    64       AC_MSG_RESULT([no])
    65     fi
    65     fi
    66   fi
    66   fi
    67   SOPLEX_LIBS="$SOPLEX_LDFLAGS $SOPLEX_LIBS"
    67   SOPLEX_LIBS="$SOPLEX_LDFLAGS $SOPLEX_LIBS"
    68   AC_SUBST(SOPLEX_CFLAGS)
    68   AC_SUBST(SOPLEX_CXXFLAGS)
    69   AC_SUBST(SOPLEX_LIBS)
    69   AC_SUBST(SOPLEX_LIBS)
    70   AM_CONDITIONAL([HAVE_SOPLEX], [test x"$lx_soplex_found" = x"yes"])
    70   AM_CONDITIONAL([HAVE_SOPLEX], [test x"$lx_soplex_found" = x"yes"])
    71 ])
    71 ])