Changeset 1691


Ignore:
Timestamp:
Mar 5, 2011 12:06:15 PM (9 years ago)
Author:
stefan
Message:

check for AMD and CHOLMOD and GLPK's AMD in configure; compile ClpCholeskyUfl? only if AMD, CHOLMOD, or GLPK available

Location:
trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        1 BuildTools  https://projects.coin-or.org/svn/BuildTools/stable/0.7
        2 ThirdParty/Blas  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
        3 ThirdParty/Lapack  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
        4 Data/Netlib  https://projects.coin-or.org/svn/Data/Netlib/stable/1.2
        5 Data/Sample  https://projects.coin-or.org/svn/Data/Sample/stable/1.2
        6 CoinUtils  https://projects.coin-or.org/svn/CoinUtils/trunk/CoinUtils
        7 Osi  https://projects.coin-or.org/svn/Osi/trunk/Osi
        8 
         1BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.7
         2ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
         3ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
         4ThirdParty/Metis https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/stable/1.2
         5ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/stable/1.4
         6ThirdParty/Glpk https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/trunk
         7Data/Netlib   https://projects.coin-or.org/svn/Data/Netlib/stable/1.2
         8Data/Sample   https://projects.coin-or.org/svn/Data/Sample/stable/1.2
         9CoinUtils     https://projects.coin-or.org/svn/CoinUtils/trunk/CoinUtils
         10Osi           https://projects.coin-or.org/svn/Osi/stable/0.105/Osi
  • trunk/Clp/Makefile.in

    r1687 r1691  
    122122AMDEP_FALSE = @AMDEP_FALSE@
    123123AMDEP_TRUE = @AMDEP_TRUE@
     124AMDINCDIR = @AMDINCDIR@
     125AMDLIB = @AMDLIB@
    124126AMTAR = @AMTAR@
    125127AR = @AR@
     
    134136CDEFS = @CDEFS@
    135137CFLAGS = @CFLAGS@
     138CHOLMODINCDIR = @CHOLMODINCDIR@
     139CHOLMODLIB = @CHOLMODLIB@
    136140CLPLIB_CFLAGS = @CLPLIB_CFLAGS@
    137141CLPLIB_CFLAGS_INSTALLED = @CLPLIB_CFLAGS_INSTALLED@
     
    153157COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
    154158COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
     159COIN_HAS_AMD_FALSE = @COIN_HAS_AMD_FALSE@
     160COIN_HAS_AMD_TRUE = @COIN_HAS_AMD_TRUE@
     161COIN_HAS_CHOLMOD_FALSE = @COIN_HAS_CHOLMOD_FALSE@
     162COIN_HAS_CHOLMOD_TRUE = @COIN_HAS_CHOLMOD_TRUE@
    155163COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    156164COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     165COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
     166COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
    157167COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
    158168COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     
    187197F77 = @F77@
    188198FFLAGS = @FFLAGS@
     199GLPK_CFLAGS = @GLPK_CFLAGS@
     200GLPK_CFLAGS_INSTALLED = @GLPK_CFLAGS_INSTALLED@
     201GLPK_DATA = @GLPK_DATA@
     202GLPK_DATA_INSTALLED = @GLPK_DATA_INSTALLED@
     203GLPK_DEPENDENCIES = @GLPK_DEPENDENCIES@
     204GLPK_LIBS = @GLPK_LIBS@
     205GLPK_LIBS_INSTALLED = @GLPK_LIBS_INSTALLED@
    189206HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    190207HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • trunk/Clp/configure

    r1690 r1691  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11011101                          whether to deduce Makefile dependencies from package
    11021102                          linker flags (default: yes)
     1103  --enable-amd-libcheck use disable-amd-libcheck to skip the link
     1104                          check at configuration time
     1105  --enable-cholmod-libcheck
     1106                          use disable-cholmod-libcheck to skip the
     1107                          link check at configuration time
    11031108  --enable-gnu-packages   compile with GNU packages (disabled by default)
    11041109
     
    11341139  --with-netlib-incdir directory with header files for using package Netlib
    11351140  --with-netlib-datadir directory with data files for using package Netlib
     1141  --with-amd-incdir specify the header file directory for library AMD
     1142  --with-amd-lib specify the flags used to link with the library AMD
     1143  --with-cholmod-incdir specify the header file directory for library CHOLMOD
     1144  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
     1145  --with-glpk-lib linker flags for using package Glpk
     1146  --with-glpk-incdir directory with header files for using package Glpk
     1147  --with-glpk-datadir directory with data files for using package Glpk
    11361148  --with-wsmp             specify WSMP library
    11371149  --with-dot              use dot (from graphviz) when creating documentation
     
    59375949*-*-irix6*)
    59385950  # Find out which ABI we are using.
    5939   echo '#line 5939 "configure"' > conftest.$ac_ext
     5951  echo '#line 5951 "configure"' > conftest.$ac_ext
    59405952  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    59415953  (eval $ac_compile) 2>&5
     
    70717083
    70727084# Provide some information about the compiler.
    7073 echo "$as_me:7073:" \
     7085echo "$as_me:7085:" \
    70747086     "checking for Fortran 77 compiler version" >&5
    70757087ac_compiler=`set X $ac_compile; echo $2`
     
    81388150   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81398151   -e 's:$: $lt_compiler_flag:'`
    8140    (eval echo "\"\$as_me:8140: $lt_compile\"" >&5)
     8152   (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
    81418153   (eval "$lt_compile" 2>conftest.err)
    81428154   ac_status=$?
    81438155   cat conftest.err >&5
    8144    echo "$as_me:8144: \$? = $ac_status" >&5
     8156   echo "$as_me:8156: \$? = $ac_status" >&5
    81458157   if (exit $ac_status) && test -s "$ac_outfile"; then
    81468158     # The compiler can only warn and ignore the option if not recognized
     
    84068418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84078419   -e 's:$: $lt_compiler_flag:'`
    8408    (eval echo "\"\$as_me:8408: $lt_compile\"" >&5)
     8420   (eval echo "\"\$as_me:8420: $lt_compile\"" >&5)
    84098421   (eval "$lt_compile" 2>conftest.err)
    84108422   ac_status=$?
    84118423   cat conftest.err >&5
    8412    echo "$as_me:8412: \$? = $ac_status" >&5
     8424   echo "$as_me:8424: \$? = $ac_status" >&5
    84138425   if (exit $ac_status) && test -s "$ac_outfile"; then
    84148426     # The compiler can only warn and ignore the option if not recognized
     
    85108522   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    85118523   -e 's:$: $lt_compiler_flag:'`
    8512    (eval echo "\"\$as_me:8512: $lt_compile\"" >&5)
     8524   (eval echo "\"\$as_me:8524: $lt_compile\"" >&5)
    85138525   (eval "$lt_compile" 2>out/conftest.err)
    85148526   ac_status=$?
    85158527   cat out/conftest.err >&5
    8516    echo "$as_me:8516: \$? = $ac_status" >&5
     8528   echo "$as_me:8528: \$? = $ac_status" >&5
    85178529   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    85188530   then
     
    1085510867  lt_status=$lt_dlunknown
    1085610868  cat > conftest.$ac_ext <<EOF
    10857 #line 10857 "configure"
     10869#line 10869 "configure"
    1085810870#include "confdefs.h"
    1085910871
     
    1095510967  lt_status=$lt_dlunknown
    1095610968  cat > conftest.$ac_ext <<EOF
    10957 #line 10957 "configure"
     10969#line 10969 "configure"
    1095810970#include "confdefs.h"
    1095910971
     
    1329913311   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1330013312   -e 's:$: $lt_compiler_flag:'`
    13301    (eval echo "\"\$as_me:13301: $lt_compile\"" >&5)
     13313   (eval echo "\"\$as_me:13313: $lt_compile\"" >&5)
    1330213314   (eval "$lt_compile" 2>conftest.err)
    1330313315   ac_status=$?
    1330413316   cat conftest.err >&5
    13305    echo "$as_me:13305: \$? = $ac_status" >&5
     13317   echo "$as_me:13317: \$? = $ac_status" >&5
    1330613318   if (exit $ac_status) && test -s "$ac_outfile"; then
    1330713319     # The compiler can only warn and ignore the option if not recognized
     
    1340313415   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1340413416   -e 's:$: $lt_compiler_flag:'`
    13405    (eval echo "\"\$as_me:13405: $lt_compile\"" >&5)
     13417   (eval echo "\"\$as_me:13417: $lt_compile\"" >&5)
    1340613418   (eval "$lt_compile" 2>out/conftest.err)
    1340713419   ac_status=$?
    1340813420   cat out/conftest.err >&5
    13409    echo "$as_me:13409: \$? = $ac_status" >&5
     13421   echo "$as_me:13421: \$? = $ac_status" >&5
    1341013422   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1341113423   then
     
    1497314985   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1497414986   -e 's:$: $lt_compiler_flag:'`
    14975    (eval echo "\"\$as_me:14975: $lt_compile\"" >&5)
     14987   (eval echo "\"\$as_me:14987: $lt_compile\"" >&5)
    1497614988   (eval "$lt_compile" 2>conftest.err)
    1497714989   ac_status=$?
    1497814990   cat conftest.err >&5
    14979    echo "$as_me:14979: \$? = $ac_status" >&5
     14991   echo "$as_me:14991: \$? = $ac_status" >&5
    1498014992   if (exit $ac_status) && test -s "$ac_outfile"; then
    1498114993     # The compiler can only warn and ignore the option if not recognized
     
    1507715089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1507815090   -e 's:$: $lt_compiler_flag:'`
    15079    (eval echo "\"\$as_me:15079: $lt_compile\"" >&5)
     15091   (eval echo "\"\$as_me:15091: $lt_compile\"" >&5)
    1508015092   (eval "$lt_compile" 2>out/conftest.err)
    1508115093   ac_status=$?
    1508215094   cat out/conftest.err >&5
    15083    echo "$as_me:15083: \$? = $ac_status" >&5
     15095   echo "$as_me:15095: \$? = $ac_status" >&5
    1508415096   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1508515097   then
     
    1728417296   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1728517297   -e 's:$: $lt_compiler_flag:'`
    17286    (eval echo "\"\$as_me:17286: $lt_compile\"" >&5)
     17298   (eval echo "\"\$as_me:17298: $lt_compile\"" >&5)
    1728717299   (eval "$lt_compile" 2>conftest.err)
    1728817300   ac_status=$?
    1728917301   cat conftest.err >&5
    17290    echo "$as_me:17290: \$? = $ac_status" >&5
     17302   echo "$as_me:17302: \$? = $ac_status" >&5
    1729117303   if (exit $ac_status) && test -s "$ac_outfile"; then
    1729217304     # The compiler can only warn and ignore the option if not recognized
     
    1755217564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1755317565   -e 's:$: $lt_compiler_flag:'`
    17554    (eval echo "\"\$as_me:17554: $lt_compile\"" >&5)
     17566   (eval echo "\"\$as_me:17566: $lt_compile\"" >&5)
    1755517567   (eval "$lt_compile" 2>conftest.err)
    1755617568   ac_status=$?
    1755717569   cat conftest.err >&5
    17558    echo "$as_me:17558: \$? = $ac_status" >&5
     17570   echo "$as_me:17570: \$? = $ac_status" >&5
    1755917571   if (exit $ac_status) && test -s "$ac_outfile"; then
    1756017572     # The compiler can only warn and ignore the option if not recognized
     
    1765617668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1765717669   -e 's:$: $lt_compiler_flag:'`
    17658    (eval echo "\"\$as_me:17658: $lt_compile\"" >&5)
     17670   (eval echo "\"\$as_me:17670: $lt_compile\"" >&5)
    1765917671   (eval "$lt_compile" 2>out/conftest.err)
    1766017672   ac_status=$?
    1766117673   cat out/conftest.err >&5
    17662    echo "$as_me:17662: \$? = $ac_status" >&5
     17674   echo "$as_me:17674: \$? = $ac_status" >&5
    1766317675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1766417676   then
     
    2308223094#############################################################################
    2308323095
     23096# AMD from UFL
     23097
     23098  echo "$as_me:$LINENO: checking if user provides library for AMD" >&5
     23099echo $ECHO_N "checking if user provides library for AMD... $ECHO_C" >&6
     23100
     23101# Check for header file directory
     23102
     23103
     23104# Check whether --with-amd-incdir or --without-amd-incdir was given.
     23105if test "${with_amd_incdir+set}" = set; then
     23106  withval="$with_amd_incdir"
     23107  AMDINCDIR=`cd $withval; pwd`
     23108fi;
     23109
     23110# Check for library directory
     23111
     23112
     23113# Check whether --with-amd-lib or --without-amd-lib was given.
     23114if test "${with_amd_lib+set}" = set; then
     23115  withval="$with_amd_lib"
     23116  AMDLIB=$withval
     23117fi;
     23118
     23119# Switch to disable library check if requested
     23120
     23121  # Check whether --enable-amd-libcheck or --disable-amd-libcheck was given.
     23122if test "${enable_amd_libcheck+set}" = set; then
     23123  enableval="$enable_amd_libcheck"
     23124  amd_libcheck=$enableval
     23125else
     23126  amd_libcheck=yes
     23127fi;
     23128
     23129# At this point, if we're going to use the library, both LBRYINCDIR and
     23130# LBRYLIB must be defined and not empty.
     23131
     23132  if test x"$AMDINCDIR" != x || test x"$AMDLIB" != x; then
     23133    if test x"$AMDINCDIR" = x || test x"$AMDLIB" = x; then
     23134      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library AMD. Use --with-amd-incdir of environment variable $AMDINCDIR to specify the include directory. Use --with-amd-lib or environment variable $AMDLIB to specify link flags." >&5
     23135echo "$as_me: error: You need to specify both an include directory and link flags to use library AMD. Use --with-amd-incdir of environment variable $AMDINCDIR to specify the include directory. Use --with-amd-lib or environment variable $AMDLIB to specify link flags." >&2;}
     23136   { (exit 1); exit 1; }; }
     23137    fi
     23138    coin_has_amd=true
     23139    echo "$as_me:$LINENO: result: yes" >&5
     23140echo "${ECHO_T}yes" >&6
     23141  else
     23142    coin_has_amd=false
     23143    echo "$as_me:$LINENO: result: no" >&5
     23144echo "${ECHO_T}no" >&6
     23145  fi
     23146
     23147# If we have instructions for use, consider header and link checks.
     23148
     23149  if test $coin_has_amd = true; then
     23150
     23151# If argument 3 (file) is given, check for the file. Typically this will be a
     23152# header file, but that's not assumed.
     23153
     23154    if test -r $AMDINCDIR/amd.h; then
     23155
     23156  :
     23157else
     23158  { { echo "$as_me:$LINENO: error: Cannot find file amd.h in $AMDINCDIR" >&5
     23159echo "$as_me: error: Cannot find file amd.h in $AMDINCDIR" >&2;}
     23160   { (exit 1); exit 1; }; }
     23161  :
     23162fi
     23163
     23164
     23165# Now see if we can link the function. There are arguments for and against
     23166# assuming argument 3 is a header file declaring the function. A correct
     23167# function declaration is the main argument in favour. Having to cope with
     23168# possible dependencies or other oddities are the main arguments against.
     23169# Force the use of C as the best single choice amongst C++, C, and Fortran.
     23170# Obviously, this has limits.
     23171
     23172    if test x"$amd_libcheck" != xno; then
     23173           coin_save_LIBS="$LIBS"
     23174           LIBS="$AMDLIB "
     23175           coin_AMD_link=no
     23176           ac_ext=c
     23177ac_cpp='$CPP $CPPFLAGS'
     23178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23180ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23181
     23182           for fnm in amd_defaults ; do
     23183             echo "$as_me:$LINENO: checking whether symbol $fnm is available with AMD" >&5
     23184echo $ECHO_N "checking whether symbol $fnm is available with AMD... $ECHO_C" >&6
     23185             cat >conftest.$ac_ext <<_ACEOF
     23186/* confdefs.h.  */
     23187_ACEOF
     23188cat confdefs.h >>conftest.$ac_ext
     23189cat >>conftest.$ac_ext <<_ACEOF
     23190/* end confdefs.h.  */
     23191
     23192int
     23193main ()
     23194{
     23195$fnm()
     23196  ;
     23197  return 0;
     23198}
     23199_ACEOF
     23200rm -f conftest.$ac_objext conftest$ac_exeext
     23201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23202  (eval $ac_link) 2>conftest.er1
     23203  ac_status=$?
     23204  grep -v '^ *+' conftest.er1 >conftest.err
     23205  rm -f conftest.er1
     23206  cat conftest.err >&5
     23207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23208  (exit $ac_status); } &&
     23209         { ac_try='test -z "$ac_c_werror_flag"
     23210                         || test ! -s conftest.err'
     23211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23212  (eval $ac_try) 2>&5
     23213  ac_status=$?
     23214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23215  (exit $ac_status); }; } &&
     23216         { ac_try='test -s conftest$ac_exeext'
     23217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23218  (eval $ac_try) 2>&5
     23219  ac_status=$?
     23220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23221  (exit $ac_status); }; }; then
     23222  echo "$as_me:$LINENO: result: yes" >&5
     23223echo "${ECHO_T}yes" >&6
     23224                  coin_AMD_link=yes
     23225                  break
     23226else
     23227  echo "$as_me: failed program was:" >&5
     23228sed 's/^/| /' conftest.$ac_ext >&5
     23229
     23230echo "$as_me:$LINENO: result: no" >&5
     23231echo "${ECHO_T}no" >&6
     23232fi
     23233rm -f conftest.err conftest.$ac_objext \
     23234      conftest$ac_exeext conftest.$ac_ext
     23235           done
     23236           ac_ext=c
     23237ac_cpp='$CPP $CPPFLAGS'
     23238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23240ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23241
     23242           LIBS="$coin_save_LIBS"
     23243           if test x"$coin_AMD_link" != xyes ; then
     23244             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) amd_defaults with AMD" >&5
     23245echo "$as_me: error: Cannot find symbol(s) amd_defaults with AMD" >&2;}
     23246   { (exit 1); exit 1; }; }
     23247           fi
     23248         fi
     23249
     23250
     23251# If we make it this far, we've verified the file and linked the function. Add
     23252# the necessary link flags to ClpLib_{PC}LIBS and define the preprocessor symbol
     23253# COIN_HAS_LBRY.
     23254
     23255
     23256      CLPLIB_LIBS="$AMDLIB $CLPLIB_LIBS"
     23257      CLPLIB_PCLIBS="$AMDLIB $CLPLIB_PCLIBS"
     23258      CLPLIB_LIBS_INSTALLED="$AMDLIB $CLPLIB_LIBS_INSTALLED"
     23259
     23260
     23261
     23262cat >>confdefs.h <<\_ACEOF
     23263#define COIN_HAS_AMD 1
     23264_ACEOF
     23265
     23266  fi
     23267
     23268# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     23269# automake conditional. These actions must occur unconditionally.
     23270
     23271
     23272
     23273
     23274
     23275if test $coin_has_amd = true; then
     23276  COIN_HAS_AMD_TRUE=
     23277  COIN_HAS_AMD_FALSE='#'
     23278else
     23279  COIN_HAS_AMD_TRUE='#'
     23280  COIN_HAS_AMD_FALSE=
     23281fi
     23282
     23283
     23284
     23285# CHOLMOD from UFL
     23286# CHOLMOD requires AMD, which can be given by AMD_LIBS
     23287# CHOLMOD requires Blas and Lapack, which should be in COINUTILS_LIBS, if available
     23288coin_save_LIBS="$LIBS"
     23289LIBS="$LIBS $AMD_LIBS $COINUTILS_LIBS"
     23290
     23291  echo "$as_me:$LINENO: checking if user provides library for CHOLMOD" >&5
     23292echo $ECHO_N "checking if user provides library for CHOLMOD... $ECHO_C" >&6
     23293
     23294# Check for header file directory
     23295
     23296
     23297# Check whether --with-cholmod-incdir or --without-cholmod-incdir was given.
     23298if test "${with_cholmod_incdir+set}" = set; then
     23299  withval="$with_cholmod_incdir"
     23300  CHOLMODINCDIR=`cd $withval; pwd`
     23301fi;
     23302
     23303# Check for library directory
     23304
     23305
     23306# Check whether --with-cholmod-lib or --without-cholmod-lib was given.
     23307if test "${with_cholmod_lib+set}" = set; then
     23308  withval="$with_cholmod_lib"
     23309  CHOLMODLIB=$withval
     23310fi;
     23311
     23312# Switch to disable library check if requested
     23313
     23314  # Check whether --enable-cholmod-libcheck or --disable-cholmod-libcheck was given.
     23315if test "${enable_cholmod_libcheck+set}" = set; then
     23316  enableval="$enable_cholmod_libcheck"
     23317  cholmod_libcheck=$enableval
     23318else
     23319  cholmod_libcheck=yes
     23320fi;
     23321
     23322# At this point, if we're going to use the library, both LBRYINCDIR and
     23323# LBRYLIB must be defined and not empty.
     23324
     23325  if test x"$CHOLMODINCDIR" != x || test x"$CHOLMODLIB" != x; then
     23326    if test x"$CHOLMODINCDIR" = x || test x"$CHOLMODLIB" = x; then
     23327      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library CHOLMOD. Use --with-cholmod-incdir of environment variable $CHOLMODINCDIR to specify the include directory. Use --with-cholmod-lib or environment variable $CHOLMODLIB to specify link flags." >&5
     23328echo "$as_me: error: You need to specify both an include directory and link flags to use library CHOLMOD. Use --with-cholmod-incdir of environment variable $CHOLMODINCDIR to specify the include directory. Use --with-cholmod-lib or environment variable $CHOLMODLIB to specify link flags." >&2;}
     23329   { (exit 1); exit 1; }; }
     23330    fi
     23331    coin_has_cholmod=true
     23332    echo "$as_me:$LINENO: result: yes" >&5
     23333echo "${ECHO_T}yes" >&6
     23334  else
     23335    coin_has_cholmod=false
     23336    echo "$as_me:$LINENO: result: no" >&5
     23337echo "${ECHO_T}no" >&6
     23338  fi
     23339
     23340# If we have instructions for use, consider header and link checks.
     23341
     23342  if test $coin_has_cholmod = true; then
     23343
     23344# If argument 3 (file) is given, check for the file. Typically this will be a
     23345# header file, but that's not assumed.
     23346
     23347    if test -r $CHOLMODINCDIR/cholmod.h; then
     23348
     23349  :
     23350else
     23351  { { echo "$as_me:$LINENO: error: Cannot find file cholmod.h in $CHOLMODINCDIR" >&5
     23352echo "$as_me: error: Cannot find file cholmod.h in $CHOLMODINCDIR" >&2;}
     23353   { (exit 1); exit 1; }; }
     23354  :
     23355fi
     23356
     23357
     23358# Now see if we can link the function. There are arguments for and against
     23359# assuming argument 3 is a header file declaring the function. A correct
     23360# function declaration is the main argument in favour. Having to cope with
     23361# possible dependencies or other oddities are the main arguments against.
     23362# Force the use of C as the best single choice amongst C++, C, and Fortran.
     23363# Obviously, this has limits.
     23364
     23365    if test x"$cholmod_libcheck" != xno; then
     23366           coin_save_LIBS="$LIBS"
     23367           LIBS="$CHOLMODLIB "
     23368           coin_CHOLMOD_link=no
     23369           ac_ext=c
     23370ac_cpp='$CPP $CPPFLAGS'
     23371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23373ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23374
     23375           for fnm in cholmod_start ; do
     23376             echo "$as_me:$LINENO: checking whether symbol $fnm is available with CHOLMOD" >&5
     23377echo $ECHO_N "checking whether symbol $fnm is available with CHOLMOD... $ECHO_C" >&6
     23378             cat >conftest.$ac_ext <<_ACEOF
     23379/* confdefs.h.  */
     23380_ACEOF
     23381cat confdefs.h >>conftest.$ac_ext
     23382cat >>conftest.$ac_ext <<_ACEOF
     23383/* end confdefs.h.  */
     23384
     23385int
     23386main ()
     23387{
     23388$fnm()
     23389  ;
     23390  return 0;
     23391}
     23392_ACEOF
     23393rm -f conftest.$ac_objext conftest$ac_exeext
     23394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23395  (eval $ac_link) 2>conftest.er1
     23396  ac_status=$?
     23397  grep -v '^ *+' conftest.er1 >conftest.err
     23398  rm -f conftest.er1
     23399  cat conftest.err >&5
     23400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23401  (exit $ac_status); } &&
     23402         { ac_try='test -z "$ac_c_werror_flag"
     23403                         || test ! -s conftest.err'
     23404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23405  (eval $ac_try) 2>&5
     23406  ac_status=$?
     23407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23408  (exit $ac_status); }; } &&
     23409         { ac_try='test -s conftest$ac_exeext'
     23410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23411  (eval $ac_try) 2>&5
     23412  ac_status=$?
     23413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23414  (exit $ac_status); }; }; then
     23415  echo "$as_me:$LINENO: result: yes" >&5
     23416echo "${ECHO_T}yes" >&6
     23417                  coin_CHOLMOD_link=yes
     23418                  break
     23419else
     23420  echo "$as_me: failed program was:" >&5
     23421sed 's/^/| /' conftest.$ac_ext >&5
     23422
     23423echo "$as_me:$LINENO: result: no" >&5
     23424echo "${ECHO_T}no" >&6
     23425fi
     23426rm -f conftest.err conftest.$ac_objext \
     23427      conftest$ac_exeext conftest.$ac_ext
     23428           done
     23429           ac_ext=c
     23430ac_cpp='$CPP $CPPFLAGS'
     23431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23433ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23434
     23435           LIBS="$coin_save_LIBS"
     23436           if test x"$coin_CHOLMOD_link" != xyes ; then
     23437             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) cholmod_start with CHOLMOD" >&5
     23438echo "$as_me: error: Cannot find symbol(s) cholmod_start with CHOLMOD" >&2;}
     23439   { (exit 1); exit 1; }; }
     23440           fi
     23441         fi
     23442
     23443
     23444# If we make it this far, we've verified the file and linked the function. Add
     23445# the necessary link flags to ClpLib_{PC}LIBS and define the preprocessor symbol
     23446# COIN_HAS_LBRY.
     23447
     23448
     23449      CLPLIB_LIBS="$CHOLMODLIB $CLPLIB_LIBS"
     23450      CLPLIB_PCLIBS="$CHOLMODLIB $CLPLIB_PCLIBS"
     23451      CLPLIB_LIBS_INSTALLED="$CHOLMODLIB $CLPLIB_LIBS_INSTALLED"
     23452
     23453
     23454
     23455cat >>confdefs.h <<\_ACEOF
     23456#define COIN_HAS_CHOLMOD 1
     23457_ACEOF
     23458
     23459  fi
     23460
     23461# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     23462# automake conditional. These actions must occur unconditionally.
     23463
     23464
     23465
     23466
     23467
     23468if test $coin_has_cholmod = true; then
     23469  COIN_HAS_CHOLMOD_TRUE=
     23470  COIN_HAS_CHOLMOD_FALSE='#'
     23471else
     23472  COIN_HAS_CHOLMOD_TRUE='#'
     23473  COIN_HAS_CHOLMOD_FALSE=
     23474fi
     23475
     23476
     23477LIBS="$coin_save_LIBS"
     23478
     23479# Glpk also brings AMD
     23480if test $coin_has_cholmod = false -a $coin_has_amd = false ; then
     23481
     23482echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
     23483echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
     23484
     23485coin_has_glpk=notGiven
     23486
     23487# check if user wants to skip package in any case
     23488if test x"$COIN_SKIP_PROJECTS" != x; then
     23489  for dir in $COIN_SKIP_PROJECTS; do
     23490    if test $dir = "Glpk"; then
     23491      coin_has_glpk=skipping
     23492    fi
     23493  done
     23494fi
     23495
     23496GLPK_LIBS=
     23497GLPK_CFLAGS=
     23498GLPK_DATA=
     23499
     23500
     23501
     23502
     23503
     23504
     23505
     23506
     23507
     23508
     23509
     23510
     23511
     23512
     23513
     23514
     23515
     23516#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     23517if test $coin_has_glpk != skipping; then
     23518
     23519# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
     23520if test "${with_glpk_lib+set}" = set; then
     23521  withval="$with_glpk_lib"
     23522  if test "$withval" = no ; then
     23523       coin_has_glpk=skipping
     23524     else
     23525       coin_has_glpk=yes
     23526       GLPK_LIBS="$withval"
     23527
     23528         CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
     23529         CLPLIB_LIBS="$withval $CLPLIB_LIBS"
     23530
     23531       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23532       if test -z "$PKG_CONFIG" ; then
     23533         GLPK_LIBS_INSTALLED="$withval"
     23534         CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
     23535       fi
     23536     fi
     23537
     23538fi;
     23539fi
     23540
     23541if test $coin_has_glpk != skipping; then
     23542
     23543# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
     23544if test "${with_glpk_incdir+set}" = set; then
     23545  withval="$with_glpk_incdir"
     23546  if test "$withval" = no ; then
     23547       coin_has_glpk=skipping
     23548     else
     23549       coin_has_glpk=yes
     23550       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
     23551       CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
     23552       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23553       if test -z "$PKG_CONFIG" ; then
     23554         GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
     23555         CLPLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
     23556       fi
     23557     fi
     23558
     23559fi;
     23560fi
     23561
     23562if test $coin_has_glpk != skipping; then
     23563
     23564# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
     23565if test "${with_glpk_datadir+set}" = set; then
     23566  withval="$with_glpk_datadir"
     23567  if test "$withval" = no ; then
     23568       coin_has_glpk=skipping
     23569     else
     23570       coin_has_glpk=yes
     23571       GLPK_DATA="$withval"
     23572       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     23573       if test -z "$PKG_CONFIG" ; then
     23574         GLPK_DATA_INSTALLED="$withval"
     23575       fi
     23576     fi
     23577
     23578fi;
     23579fi
     23580
     23581if test $coin_has_glpk = notGiven; then
     23582  if test -n "$PKG_CONFIG" ; then
     23583    # set search path for pkg-config
     23584    # need to export variable to be sure that the following pkg-config gets these values
     23585    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23586    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23587    export PKG_CONFIG_PATH
     23588
     23589    # let pkg-config do it's magic
     23590
     23591
     23592
     23593if test -n "$PKG_CONFIG" ; then
     23594  if $PKG_CONFIG --exists "coinglpk >= 4.39"; then
     23595    GLPK_VERSIONS="`$PKG_CONFIG --modversion "coinglpk >= 4.39" 2>/dev/null | tr '\n' ' '`"
     23596     cflags=`$PKG_CONFIG --cflags "coinglpk >= 4.39" 2>/dev/null`
     23597    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23598        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23599        # but only do this if is not trivial
     23600    if test "$CYGPATH_W" != "echo" ; then
     23601      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23602      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23603    fi
     23604    GLPK_CFLAGS="$cflags"
     23605    GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk >= 4.39" 2>/dev/null`
     23606    GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk >= 4.39" 2>/dev/null`
     23607     coin_has_glpk=yes
     23608        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
     23609echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
     23610
     23611        # adjust linker flags for (i)cl compiler
     23612        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     23613        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23614        then
     23615          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23616        fi
     23617
     23618        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
     23619
     23620          CLPLIB_PCREQUIRES="coinglpk >= 4.39 $CLPLIB_PCREQUIRES"
     23621          CLPLIB_CFLAGS="$GLPK_CFLAGS $CLPLIB_CFLAGS"
     23622          CLPLIB_LIBS="$GLPK_LIBS $CLPLIB_LIBS"
     23623
     23624
     23625
     23626  else
     23627    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk >= 4.39"`
     23628      coin_has_glpk=notGiven
     23629        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
     23630echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
     23631
     23632  fi
     23633else
     23634  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
     23635echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
     23636   { (exit 1); exit 1; }; }
     23637fi
     23638
     23639
     23640
     23641
     23642    # reset PKG_CONFIG_PATH variable
     23643    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23644    export PKG_CONFIG_PATH
     23645
     23646  else
     23647    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23648echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23649
     23650echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
     23651echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
     23652
     23653coin_has_glpk=notGiven
     23654GLPK_LIBS=
     23655GLPK_LIBS_INSTALLED=
     23656GLPK_CFLAGS=
     23657GLPK_CFLAGS_INSTALLED=
     23658GLPK_DATA=
     23659GLPK_DATA_INSTALLED=
     23660
     23661# initial list of dependencies is "coinglpk >= 4.39", but we need to filter out version number specifications (= x, <= x, >= x)
     23662projtoprocess="coinglpk "
     23663
     23664# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23665# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23666# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23667# also, we setup the DATA variable
     23668allproj=""
     23669allpcfiles=""
     23670allpcifiles=""
     23671while test "x$projtoprocess" != x ; do
     23672
     23673  for proj in $projtoprocess ; do
     23674    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23675    pcfile=""
     23676    save_IFS="$IFS"
     23677    IFS=":"
     23678    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23679      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     23680      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23681        pcfile="$dir/$proj-uninstalled.pc"
     23682        if test -r "$dir/${proj}.pc" ; then
     23683          pcifile="$dir/${proj}.pc"
     23684        else
     23685          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23686echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23687          pcifile=
     23688        fi
     23689        break
     23690      fi
     23691    done
     23692    IFS="$save_IFS"
     23693
     23694    if test "x$pcfile" != x ; then
     23695      # read dependencies from $pcfile and filter it
     23696      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23697
     23698      # add projrequires to the front of the list of projects that have to be processed next
     23699      # at the same time, remove $proj from this list
     23700      projtoprocess=${projtoprocess/$proj/$projrequires}
     23701
     23702      # read DATA from $pcfile, if _DATA is still empty
     23703      if test "x$GLPK_DATA" = x ; then
     23704        projdatadir=
     23705        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23706        eval `sh -c "$pcfilemod"`
     23707        GLPK_DATA="$projdatadir"
     23708      fi
     23709
     23710      allproj="$allproj $proj"
     23711      allpcfiles="$pcfile:$allpcfiles"
     23712
     23713    else
     23714      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23715echo "${ECHO_T}no, dependency $proj not available" >&6
     23716      allproj=fail
     23717      break 2
     23718    fi
     23719
     23720    if test "x$pcifile" != x ; then
     23721      allpcifiles="$pcifile:$allpcifiles"
     23722
     23723      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23724      if test "x$GLPK_DATA_INSTALLED" = x ; then
     23725        projdatadir=
     23726        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23727        eval `sh -c "$pcifilemod"`
     23728        if test "${CYGPATH_W}" != "echo"; then
     23729          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23730        fi
     23731        GLPK_DATA_INSTALLED="$projdatadir"
     23732      fi
     23733
     23734    fi
     23735
     23736    break
     23737  done
     23738
     23739  # remove spaces on begin of $projtoprocess
     23740  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     23741
     23742done
     23743
     23744if test "$allproj" != fail ; then
     23745
     23746  # now go through the list of .pc files and assemble compiler and linker flags
     23747  # important is here to obey the reverse order that has been setup before,
     23748  # since then libraries that are required by several others should be after these other libraries
     23749  pcfilesprocessed=""
     23750
     23751  save_IFS="$IFS"
     23752  IFS=":"
     23753  for pcfile in $allpcfiles ; do
     23754
     23755    # if $pcfile has been processed already, skip this round
     23756    if test "x$pcfilesprocessed" != x ; then
     23757      for pcfiledone in $pcfilesprocessed ; do
     23758        if test "$pcfiledone" = "$pcfile" ; then
     23759          continue 2
     23760        fi
     23761      done
     23762    fi
     23763
     23764    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23765    #   replace "Libs:" by "echo projlibs="
     23766    #   replace "Cflags:" by "echo projcflags="
     23767    #   remove every line starting with <some word>:
     23768    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
     23769
     23770    # set projcflags and projlibs variables by running $pcfilemod
     23771    projcflags=
     23772    projlibs=
     23773    eval `sh -c "$pcfilemod"`
     23774
     23775    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23776    if test "${CYGPATH_W}" != "echo"; then
     23777      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23778    fi
     23779    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
     23780
     23781    # set LIBS variable
     23782    GLPK_LIBS="$projlibs $GLPK_LIBS"
     23783
     23784    # remember that we have processed $pcfile
     23785    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23786
     23787  done
     23788  IFS="$save_IFS"
     23789
     23790
     23791  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23792  # important is here again to obey the reverse order that has been setup before,
     23793  # since then libraries that are required by several others should be after these other libraries
     23794  pcfilesprocessed=""
     23795
     23796  save_IFS="$IFS"
     23797  IFS=":"
     23798  for pcfile in $allpcifiles ; do
     23799
     23800    # if $pcfile has been processed already, skip this round
     23801    if test "x$pcfilesprocessed" != x ; then
     23802      for pcfiledone in $pcfilesprocessed ; do
     23803        if test "$pcfiledone" = "$pcfile" ; then
     23804          continue 2
     23805        fi
     23806      done
     23807    fi
     23808
     23809    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23810    #   replace "Libs:" by "echo projlibs="
     23811    #   replace "Cflags:" by "echo projcflags="
     23812    #   remove every line starting with <some word>:
     23813    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
     23814
     23815    # set projcflags and projlibs variables by running $pcfilemod
     23816    projcflags=
     23817    projlibs=
     23818    eval `sh -c "$pcfilemod"`
     23819
     23820    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23821    if test "${CYGPATH_W}" != "echo"; then
     23822      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23823    fi
     23824    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
     23825
     23826    # set LIBS variable
     23827    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
     23828
     23829    # remember that we have processed $pcfile
     23830    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23831
     23832  done
     23833  IFS="$save_IFS"
     23834
     23835
     23836  # finish up
     23837  coin_has_glpk=yes
     23838  echo "$as_me:$LINENO: result: yes" >&5
     23839echo "${ECHO_T}yes" >&6
     23840
     23841cat >>confdefs.h <<\_ACEOF
     23842#define COIN_HAS_GLPK 1
     23843_ACEOF
     23844
     23845
     23846  # adjust linker flags for (i)cl compiler
     23847  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     23848  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23849  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23850  #    everything of the form "-lname" by "libname.lib"
     23851  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23852  then
     23853    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23854    GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23855  fi
     23856
     23857
     23858    CLPLIB_PCREQUIRES="coinglpk >= 4.39 $CLPLIB_PCREQUIRES"
     23859    CLPLIB_CFLAGS="$GLPK_CFLAGS $CLPLIB_CFLAGS"
     23860    CLPLIB_LIBS="$GLPK_LIBS $CLPLIB_LIBS"
     23861    CLPLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
     23862    CLPLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
     23863
     23864
     23865fi
     23866
     23867
     23868
     23869if test $coin_has_glpk != notGiven &&
     23870                test $coin_has_glpk != skipping; then
     23871  COIN_HAS_GLPK_TRUE=
     23872  COIN_HAS_GLPK_FALSE='#'
     23873else
     23874  COIN_HAS_GLPK_TRUE='#'
     23875  COIN_HAS_GLPK_FALSE=
     23876fi
     23877
     23878
     23879
     23880  fi
     23881
     23882else
     23883  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     23884echo "${ECHO_T}$coin_has_glpk" >&6
     23885fi
     23886
     23887if test $coin_has_glpk != skipping &&
     23888   test $coin_has_glpk != notGiven ; then
     23889
     23890cat >>confdefs.h <<\_ACEOF
     23891#define COIN_HAS_GLPK 1
     23892_ACEOF
     23893
     23894
     23895  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23896if test "${enable_interpackage_dependencies+set}" = set; then
     23897  enableval="$enable_interpackage_dependencies"
     23898
     23899else
     23900  enable_interpackage_dependencies=yes
     23901fi;
     23902
     23903  if test $enable_interpackage_dependencies = yes ; then
     23904     # construct dependencies variables from LIBS variables
     23905     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23906     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23907     # then remove everything of the form -xxx
     23908     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23909     GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23910
     23911       CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23912
     23913  fi
     23914
     23915  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23916    if test -n "$GLPK_CFLAGS" ; then
     23917      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     23918echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
     23919    fi
     23920    if test -n "$GLPK_LIBS" ; then
     23921      { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
     23922echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
     23923    fi
     23924    if test -n "$GLPK_DEPENDENCIES" ; then
     23925      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
     23926echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
     23927    fi
     23928    if test -n "$GLPK_DATA" ; then
     23929      { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
     23930echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
     23931    fi
     23932    if test -n "$GLPK_CFLAGS" ; then
     23933      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     23934echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
     23935    fi
     23936
     23937      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
     23938echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
     23939      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
     23940echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
     23941      { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
     23942echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
     23943
     23944  fi
     23945fi
     23946
     23947# Define the Makefile conditional
     23948
     23949
     23950if test $coin_has_glpk != notGiven &&
     23951                test $coin_has_glpk != skipping; then
     23952  COIN_HAS_GLPK_TRUE=
     23953  COIN_HAS_GLPK_FALSE='#'
     23954else
     23955  COIN_HAS_GLPK_TRUE='#'
     23956  COIN_HAS_GLPK_FALSE=
     23957fi
     23958
     23959
     23960
     23961  if test $coin_has_glpk = yes ; then
     23962    { echo "$as_me:$LINENO: \"Using AMD from GLPK package\"" >&5
     23963echo "$as_me: \"Using AMD from GLPK package\"" >&6;}
     23964
     23965cat >>confdefs.h <<\_ACEOF
     23966#define COIN_HAS_AMD 1
     23967_ACEOF
     23968
     23969  fi
     23970else
     23971  # for configure
     23972
     23973
     23974if test 0 = 1; then
     23975  COIN_HAS_GLPK_TRUE=
     23976  COIN_HAS_GLPK_FALSE='#'
     23977else
     23978  COIN_HAS_GLPK_TRUE='#'
     23979  COIN_HAS_GLPK_FALSE=
     23980fi
     23981
     23982fi
     23983
    2308423984# WSMP
    2308523985
     
    2404324943Usually this means the macro was only invoked conditionally." >&5
    2404424944echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
     24945Usually this means the macro was only invoked conditionally." >&2;}
     24946   { (exit 1); exit 1; }; }
     24947fi
     24948if test -z "${COIN_HAS_AMD_TRUE}" && test -z "${COIN_HAS_AMD_FALSE}"; then
     24949  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_AMD\" was never defined.
     24950Usually this means the macro was only invoked conditionally." >&5
     24951echo "$as_me: error: conditional \"COIN_HAS_AMD\" was never defined.
     24952Usually this means the macro was only invoked conditionally." >&2;}
     24953   { (exit 1); exit 1; }; }
     24954fi
     24955if test -z "${COIN_HAS_CHOLMOD_TRUE}" && test -z "${COIN_HAS_CHOLMOD_FALSE}"; then
     24956  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CHOLMOD\" was never defined.
     24957Usually this means the macro was only invoked conditionally." >&5
     24958echo "$as_me: error: conditional \"COIN_HAS_CHOLMOD\" was never defined.
     24959Usually this means the macro was only invoked conditionally." >&2;}
     24960   { (exit 1); exit 1; }; }
     24961fi
     24962if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
     24963  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
     24964Usually this means the macro was only invoked conditionally." >&5
     24965echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
     24966Usually this means the macro was only invoked conditionally." >&2;}
     24967   { (exit 1); exit 1; }; }
     24968fi
     24969if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
     24970  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
     24971Usually this means the macro was only invoked conditionally." >&5
     24972echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
     24973Usually this means the macro was only invoked conditionally." >&2;}
     24974   { (exit 1); exit 1; }; }
     24975fi
     24976if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
     24977  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
     24978Usually this means the macro was only invoked conditionally." >&5
     24979echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
    2404524980Usually this means the macro was only invoked conditionally." >&2;}
    2404624981   { (exit 1); exit 1; }; }
     
    2475525690s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
    2475625691s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
     25692s,@AMDINCDIR@,$AMDINCDIR,;t t
     25693s,@AMDLIB@,$AMDLIB,;t t
     25694s,@COIN_HAS_AMD_TRUE@,$COIN_HAS_AMD_TRUE,;t t
     25695s,@COIN_HAS_AMD_FALSE@,$COIN_HAS_AMD_FALSE,;t t
     25696s,@CHOLMODINCDIR@,$CHOLMODINCDIR,;t t
     25697s,@CHOLMODLIB@,$CHOLMODLIB,;t t
     25698s,@COIN_HAS_CHOLMOD_TRUE@,$COIN_HAS_CHOLMOD_TRUE,;t t
     25699s,@COIN_HAS_CHOLMOD_FALSE@,$COIN_HAS_CHOLMOD_FALSE,;t t
     25700s,@GLPK_LIBS@,$GLPK_LIBS,;t t
     25701s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
     25702s,@GLPK_DATA@,$GLPK_DATA,;t t
     25703s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
     25704s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
     25705s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
     25706s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
     25707s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
     25708s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
    2475725709s,@coin_have_doxygen@,$coin_have_doxygen,;t t
    2475825710s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
  • trunk/Clp/configure.ac

    r1690 r1691  
    6969#                        Third party linear solvers                         #
    7070#############################################################################
     71
     72# AMD from UFL
     73AC_COIN_CHECK_USER_LIBRARY(AMD, AMD, [amd.h], [amd_defaults],,[ClpLib])
     74
     75# CHOLMOD from UFL
     76# CHOLMOD requires AMD, which can be given by AMD_LIBS
     77# CHOLMOD requires Blas and Lapack, which should be in COINUTILS_LIBS, if available
     78coin_save_LIBS="$LIBS"
     79LIBS="$LIBS $AMD_LIBS $COINUTILS_LIBS"
     80AC_COIN_CHECK_USER_LIBRARY(CHOLMOD, CHOLMOD, [cholmod.h], [cholmod_start],,[ClpLib])
     81LIBS="$coin_save_LIBS"
     82
     83# Glpk also brings AMD
     84if test $coin_has_cholmod = false -a $coin_has_amd = false ; then
     85  AC_COIN_CHECK_PACKAGE(Glpk, [coinglpk >= 4.39], [ClpLib])
     86  if test $coin_has_glpk = yes ; then
     87    AC_MSG_NOTICE([using AMD from GLPK package])
     88    AC_DEFINE(COIN_HAS_AMD,[1],[Define to 1 if the AMD package is available])
     89  fi
     90else
     91  # for configure
     92  AM_CONDITIONAL(COIN_HAS_GLPK, [test 0 = 1])
     93fi
    7194
    7295# WSMP
  • trunk/Clp/inc/config_clp.h.in

    r1688 r1691  
    2222#undef COIN_CLP_VERBOSITY
    2323
     24/* Define to 1 if the AMD package is available */
     25#undef COIN_HAS_AMD
     26
     27/* Define to 1 if the CHOLMOD package is available */
     28#undef COIN_HAS_CHOLMOD
     29
    2430/* Define to 1 if the CoinUtils package is available */
    2531#undef COIN_HAS_COINUTILS
     32
     33/* Define to 1 if the Glpk package is available */
     34#undef COIN_HAS_GLPK
    2635
    2736/* Define to 1 if the Netlib package is available */
  • trunk/Clp/src/CbcOrClpParam.cpp

    r1681 r1691  
    14371437     parameters[numberParameters-1].append("wssmp_dummy");
    14381438#endif
    1439 #ifdef UFL_BARRIER
     1439#if defined(COIN_HAS_AMD) || defined(COIN_HAS_CHOLMOD) || defined(COIN_HAS_GLPK)
    14401440     parameters[numberParameters-1].append("Uni!versityOfFlorida");
    14411441#else
  • trunk/Clp/src/ClpCholeskyUfl.cpp

    r1665 r1691  
    11/* $Id$ */
    2 #ifdef UFL_BARRIER
    32// Copyright (C) 2004, International Business Machines
    43// Corporation and others.  All Rights Reserved.
    54// This code is licensed under the terms of the Eclipse Public License (EPL).
    65
     6#include "ClpConfig.h"
     7
     8extern "C" {
     9#ifndef COIN_HAS_CHOLMOD
     10#ifndef COIN_HAS_AMD
     11#error "Need to have AMD or CHOLMOD to compile ClpCholeskyUfl."
     12#else
     13#include "amd.h"
     14#endif
     15#else
     16#include "cholmod.h"
     17#endif
     18}
    719
    820#include "CoinPragma.hpp"
     
    2335{
    2436     type_ = 14;
    25 #ifdef CLP_USE_CHOLMOD
    2637     L_ = NULL;
    27      cholmod_start (&c_) ;
     38     c_ = NULL;
     39     
     40#ifdef COIN_HAS_CHOLMOD
     41     c_ = (cholmod_common*) malloc(sizeof(cholmod_common));
     42     cholmod_start (c_) ;
    2843     // Can't use supernodal as may not be positive definite
    29      c_.supernodal = 0;
     44     c_->supernodal = 0;
    3045#endif
    3146}
     
    4661ClpCholeskyUfl::~ClpCholeskyUfl ()
    4762{
    48 #ifdef CLP_USE_CHOLMOD
    49      cholmod_free_factor (&L_, &c_) ;
    50      cholmod_finish (&c_) ;
     63#ifdef COIN_HAS_CHOLMOD
     64     cholmod_free_factor (&L_, c_) ;
     65     cholmod_finish (c_) ;
     66     free(c_);
    5167#endif
    5268}
     
    6480     return *this;
    6581}
     82
    6683//-------------------------------------------------------------------
    6784// Clone
     
    7188     return new ClpCholeskyUfl(*this);
    7289}
    73 #ifndef CLP_USE_CHOLMOD
     90
     91#ifndef COIN_HAS_CHOLMOD
    7492/* Orders rows and saves pointer to matrix.and model */
    7593int
     
    236254     A.sorted = 1;
    237255     A.packed = 1;
    238      c_.nmethods = 9;
    239      c_.postorder = true;
    240      //c_.dbound=1.0e-20;
    241      L_ = cholmod_analyze (&A, &c_) ;
    242      if (c_.status) {
     256     c_->nmethods = 9;
     257     c_->postorder = true;
     258     //c_->dbound=1.0e-20;
     259     L_ = cholmod_analyze (&A, c_) ;
     260     if (c_->status) {
    243261          std::cout << "CHOLMOD ordering failed" << std::endl;
    244262          return 1;
    245263     } else {
    246           printf("%g nonzeros, flop count %g\n", c_.lnz, c_.fl);
     264          printf("%g nonzeros, flop count %g\n", c_->lnz, c_->fl);
    247265     }
    248266     for (iRow = 0; iRow < numberRows_; iRow++) {
     
    252270     return 0;
    253271}
     272#endif
     273
    254274/* Does Symbolic factorization given permutation.
    255275   This is called immediately after order.  If user provides this then
     
    259279ClpCholeskyUfl::symbolic()
    260280{
     281#ifdef COIN_HAS_CHOLMOD
    261282     return 0;
    262 }
     283#else
     284     return ClpCholeskyBase::symbolic();
     285#endif
     286}
     287
     288#ifdef COIN_HAS_CHOLMOD
    263289/* Factorize - filling in rowsDropped and returning number dropped */
    264290int
     
    370396     A.sorted = 1;
    371397     A.packed = 1;
    372      cholmod_factorize (&A, L_, &c_) ;              /* factorize */
     398     cholmod_factorize (&A, L_, c_) ;               /* factorize */
    373399     choleskyCondition_ = 1.0;
    374400     bool cleanCholesky;
     
    388414               newDropped = 0;
    389415               for (int i = 0; i < numberRows_; i++) {
    390                     char dropped = rowsDropped[i];
    391                     rowsDropped_[i] = dropped;
     416                    int dropped = rowsDropped[i];
     417                    rowsDropped_[i] = (char)dropped;
    392418                    if (dropped == 2) {
    393419                         //dropped this time
     
    403429               newDropped = 0;
    404430               for (int i = 0; i < numberRows_; i++) {
    405                     char dropped = rowsDropped[i];
    406                     rowsDropped_[i] = dropped;
     431                    int dropped = rowsDropped[i];
     432                    rowsDropped_[i] = (char)dropped;
    407433                    if (dropped == 2) {
    408434                         //dropped this time
     
    425451     return newDropped;
    426452}
     453#else
     454/* Factorize - filling in rowsDropped and returning number dropped */
     455int
     456ClpCholeskyUfl::factorize(const double * diagonal, int * rowsDropped)
     457{
     458  return ClpCholeskyBase::factorize(diagonal, rowsDropped);
     459}
     460#endif
     461
     462#ifdef COIN_HAS_CHOLMOD
    427463/* Uses factorization to solve. */
    428464void
     
    430466{
    431467     cholmod_dense *x, *b;
    432      b = cholmod_allocate_dense (numberRows_, 1, numberRows_, CHOLMOD_REAL, &c_) ;
     468     b = cholmod_allocate_dense (numberRows_, 1, numberRows_, CHOLMOD_REAL, c_) ;
    433469     CoinMemcpyN(region, numberRows_, (double *) b->x);
    434      x = cholmod_solve (CHOLMOD_A, L_, b, &c_) ;
     470     x = cholmod_solve (CHOLMOD_A, L_, b, c_) ;
    435471     CoinMemcpyN((double *) x->x, numberRows_, region);
    436      cholmod_free_dense (&x, &c_) ;
    437      cholmod_free_dense (&b, &c_) ;
    438 }
    439 #endif
    440 #endif
     472     cholmod_free_dense (&x, c_) ;
     473     cholmod_free_dense (&b, c_) ;
     474}
     475#else
     476void
     477ClpCholeskyUfl::solve (double * region)
     478{
     479  ClpCholeskyBase::solve(region);
     480}
     481#endif
  • trunk/Clp/src/ClpCholeskyUfl.hpp

    r1665 r1691  
    66#ifndef ClpCholeskyUfl_H
    77#define ClpCholeskyUfl_H
     8
    89#include "ClpCholeskyBase.hpp"
    9 #ifdef __cplusplus
    10 extern "C" {
    11 #endif
    12 #ifndef CLP_USE_CHOLMOD
    13 #include "amd.h"
    14 #else
    15 #include "cholmod.h"
    16 #endif
    17 #ifdef __cplusplus
    18 }
    19 #endif
     10
    2011class ClpMatrixBase;
    2112class ClpCholeskyDense;
     13
     14typedef struct cholmod_factor_struct cholmod_factor;
     15typedef struct cholmod_common_struct cholmod_common;
    2216
    2317/** Ufl class for Clp Cholesky factorization
     
    4438      Returns non-zero if not enough memory */
    4539     virtual int order(ClpInterior * model) ;
    46 #ifdef CLP_USE_CHOLMOD
    47      /** Does Symbolic factorization given permutation.
     40     /** Does Symbolic factorization given permutation using CHOLMOD (if available).
    4841         This is called immediately after order.  If user provides this then
    4942         user must provide factorize and solve.  Otherwise the default factorization is used
    50          returns non-zero if not enough memory */
     43         returns non-zero if not enough memory. */
    5144     virtual int symbolic();
    52      /** Factorize - filling in rowsDropped and returning number dropped.
     45     /** Factorize - filling in rowsDropped and returning number dropped using CHOLMOD (if available).
    5346         If return code negative then out of memory */
    5447     virtual int factorize(const double * diagonal, int * rowsDropped) ;
    55      /** Uses factorization to solve. */
     48     /** Uses factorization to solve. Uses CHOLMOD (if available). */
    5649     virtual void solve (double * region) ;
    57 #endif
    5850     //@}
    5951
     
    6658     /** Destructor  */
    6759     virtual ~ClpCholeskyUfl();
    68      // Copy
    69      ClpCholeskyUfl(const ClpCholeskyUfl&);
    70      // Assignment
    71      ClpCholeskyUfl& operator=(const ClpCholeskyUfl&);
    7260     /// Clone
    7361     virtual ClpCholeskyBase * clone() const ;
     
    7664
    7765private:
    78 #ifdef CLP_USE_CHOLMOD
    7966     cholmod_factor * L_ ;
    80      cholmod_common c_ ;
    81 #endif
     67     cholmod_common * c_ ;
     68
     69     // Copy
     70     ClpCholeskyUfl(const ClpCholeskyUfl&);
     71     // Assignment
     72     ClpCholeskyUfl& operator=(const ClpCholeskyUfl&);
    8273};
    8374
  • trunk/Clp/src/ClpMain.cpp

    r1682 r1691  
    5656#include "dmalloc.h"
    5757#endif
    58 #ifdef WSSMP_BARRIER
    59 #define FOREIGN_BARRIER
    60 #endif
    61 #ifdef UFL_BARRIER
    62 #define FOREIGN_BARRIER
    63 #endif
    64 #ifdef TAUCS_BARRIER
    65 #define FOREIGN_BARRIER
    66 #endif
    67 #ifdef MUMPS_BARRIER
     58#if defined(WSSMP_BARRIER) || defined(COIN_HAS_AMD) || defined(COIN_HAS_CHOLMOD) || defined(TAUCS_BARRIER) || defined(MUMPS_BARRIER)
    6859#define FOREIGN_BARRIER
    6960#endif
  • trunk/Clp/src/ClpSimplex.cpp

    r1678 r1691  
    58085808#include "ClpCholeskyWssmpKKT.hpp"
    58095809#endif
    5810 #if UFL_BARRIER
     5810
    58115811#include "ClpCholeskyUfl.hpp"
    5812 #endif
     5812
    58135813#if MUMPS_BARRIER
    58145814#include "ClpCholeskyMumps.hpp"
     
    58435843          barrier.setCholesky(cholesky);
    58445844     }
    5845 #elif UFL_BARRIER
     5845#elif defined(COIN_HAS_AMD) || defined(COIN_HAS_CHOLMOD)
    58465846     if (!doKKT) {
    58475847          ClpCholeskyUfl * cholesky = new ClpCholeskyUfl();
  • trunk/Clp/src/ClpSolve.cpp

    r1676 r1691  
    4040#include "ClpCholeskyWssmpKKT.hpp"
    4141#endif
    42 #ifdef UFL_BARRIER
    4342#include "ClpCholeskyUfl.hpp"
    44 #endif
    4543#ifdef TAUCS_BARRIER
    4644#include "ClpCholeskyTaucs.hpp"
     
    19761974               break;
    19771975#endif
    1978 #ifdef UFL_BARRIER
    19791976          case 4:
    19801977               if (!doKKT) {
     
    19871984               }
    19881985               break;
    1989 #endif
    19901986#ifdef TAUCS_BARRIER
    19911987          case 5: {
  • trunk/Clp/src/Makefile.am

    r1659 r1691  
    2626        ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
    2727        ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
    28         ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp \
    2928        ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp \
    3029        ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp \
     
    7675        IdiSolve.cpp
    7776
     77# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
     78if COIN_HAS_AMD
     79libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
     80else
     81if COIN_HAS_CHOLMOD
     82libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
     83else
     84if COIN_HAS_GLPK
     85libClp_la_SOURCES += ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
     86endif
     87endif
     88endif
     89
    7890# This is for libtool
    7991libClp_la_LDFLAGS = $(LT_LDFLAGS)
     
    111123
    112124# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
    113 AM_CPPFLAGS = $(COINUTILS_CFLAGS) -DCOIN_HAS_CLP
     125AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP
     126
     127if COIN_HAS_CHOLMOD
     128AM_CPPFLAGS += -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
     129endif
     130
     131if COIN_HAS_AMD
     132AM_CPPFLAGS += -I`$(CYGPATH_W) $(AMDINCDIR)`
     133endif
    114134
    115135# This line is necessary to allow VPATH compilation with MS compilers
  • trunk/Clp/src/Makefile.in

    r1659 r1691  
    4545build_triplet = @build@
    4646host_triplet = @host@
     47
     48# if AMD, CHOLMOD, or GLPK is available, then compile ClpCholeskyUfl.cpp
     49@COIN_HAS_AMD_TRUE@am__append_1 = ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
     50@COIN_HAS_AMD_FALSE@@COIN_HAS_CHOLMOD_TRUE@am__append_2 = ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
     51@COIN_HAS_AMD_FALSE@@COIN_HAS_CHOLMOD_FALSE@@COIN_HAS_GLPK_TRUE@am__append_3 = ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
    4752bin_PROGRAMS = clp$(EXEEXT)
     53@COIN_HAS_CHOLMOD_TRUE@am__append_4 = -I`$(CYGPATH_W) $(CHOLMODINCDIR)`
     54@COIN_HAS_AMD_TRUE@am__append_5 = -I`$(CYGPATH_W) $(AMDINCDIR)`
    4855subdir = src
    4956DIST_COMMON = $(includecoin_HEADERS) $(srcdir)/Makefile.am \
     
    6875LTLIBRARIES = $(lib_LTLIBRARIES)
    6976libClp_la_LIBADD =
     77am__libClp_la_SOURCES_DIST = ClpConfig.h ClpCholeskyBase.cpp \
     78        ClpCholeskyBase.hpp ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
     79        ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp ClpCholeskyWssmp.cpp \
     80        ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp \
     81        ClpCholeskyWssmpKKT.hpp ClpConstraint.cpp ClpConstraint.hpp \
     82        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
     83        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
     84        Clp_C_Interface.cpp Clp_C_Interface.h ClpDualRowDantzig.cpp \
     85        ClpDualRowDantzig.hpp ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
     86        ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \
     87        ClpDummyMatrix.cpp ClpDummyMatrix.hpp \
     88        ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \
     89        ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp ClpEventHandler.cpp \
     90        ClpEventHandler.hpp ClpFactorization.cpp ClpFactorization.hpp \
     91        ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \
     92        ClpGubMatrix.cpp ClpGubMatrix.hpp ClpHelperFunctions.cpp \
     93        ClpHelperFunctions.hpp ClpInterior.cpp ClpInterior.hpp \
     94        ClpLinearObjective.cpp ClpLinearObjective.hpp \
     95        ClpMatrixBase.cpp ClpMatrixBase.hpp ClpMessage.cpp \
     96        ClpMessage.hpp ClpModel.cpp ClpModel.hpp ClpNetworkBasis.cpp \
     97        ClpNetworkBasis.hpp ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
     98        ClpNonLinearCost.cpp ClpNonLinearCost.hpp ClpNode.cpp \
     99        ClpNode.hpp ClpObjective.cpp ClpObjective.hpp \
     100        ClpPackedMatrix.cpp ClpPackedMatrix.hpp ClpParameters.hpp \
     101        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
     102        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
     103        ClpPdco.cpp ClpPdco.hpp ClpPdcoBase.cpp ClpPdcoBase.hpp \
     104        ClpLsqr.cpp ClpLsqr.hpp ClpPresolve.cpp ClpPresolve.hpp \
     105        ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \
     106        ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \
     107        ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \
     108        ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \
     109        ClpSimplex.cpp ClpSimplex.hpp ClpSimplexDual.cpp \
     110        ClpSimplexDual.hpp ClpSimplexNonlinear.cpp \
     111        ClpSimplexNonlinear.hpp ClpSimplexOther.cpp \
     112        ClpSimplexOther.hpp ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
     113        ClpSolve.cpp ClpSolve.hpp Idiot.cpp Idiot.hpp IdiSolve.cpp \
     114        ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp
     115@COIN_HAS_AMD_TRUE@am__objects_1 = ClpCholeskyUfl.lo
     116@COIN_HAS_AMD_FALSE@@COIN_HAS_CHOLMOD_TRUE@am__objects_2 =  \
     117@COIN_HAS_AMD_FALSE@@COIN_HAS_CHOLMOD_TRUE@     ClpCholeskyUfl.lo
     118@COIN_HAS_AMD_FALSE@@COIN_HAS_CHOLMOD_FALSE@@COIN_HAS_GLPK_TRUE@am__objects_3 = ClpCholeskyUfl.lo
    70119am_libClp_la_OBJECTS = ClpCholeskyBase.lo ClpCholeskyDense.lo \
    71         ClpCholeskyUfl.lo ClpCholeskyMumps.lo ClpCholeskyWssmp.lo \
    72         ClpCholeskyWssmpKKT.lo ClpConstraint.lo ClpConstraintLinear.lo \
     120        ClpCholeskyMumps.lo ClpCholeskyWssmp.lo ClpCholeskyWssmpKKT.lo \
     121        ClpConstraint.lo ClpConstraintLinear.lo \
    73122        ClpConstraintQuadratic.lo Clp_C_Interface.lo \
    74123        ClpDualRowDantzig.lo ClpDualRowPivot.lo ClpDualRowSteepest.lo \
     
    85134        ClpQuadraticObjective.lo ClpSimplex.lo ClpSimplexDual.lo \
    86135        ClpSimplexNonlinear.lo ClpSimplexOther.lo ClpSimplexPrimal.lo \
    87         ClpSolve.lo Idiot.lo IdiSolve.lo
     136        ClpSolve.lo Idiot.lo IdiSolve.lo $(am__objects_1) \
     137        $(am__objects_2) $(am__objects_3)
    88138libClp_la_OBJECTS = $(am_libClp_la_OBJECTS)
    89139binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
     
    113163        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    114164SOURCES = $(libClp_la_SOURCES) $(clp_SOURCES)
    115 DIST_SOURCES = $(libClp_la_SOURCES) $(clp_SOURCES)
     165DIST_SOURCES = $(am__libClp_la_SOURCES_DIST) $(clp_SOURCES)
    116166RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
    117167        html-recursive info-recursive install-data-recursive \
     
    134184AMDEP_FALSE = @AMDEP_FALSE@
    135185AMDEP_TRUE = @AMDEP_TRUE@
     186AMDINCDIR = @AMDINCDIR@
     187AMDLIB = @AMDLIB@
    136188AMTAR = @AMTAR@
    137189AR = @AR@
     
    146198CDEFS = @CDEFS@
    147199CFLAGS = @CFLAGS@
     200CHOLMODINCDIR = @CHOLMODINCDIR@
     201CHOLMODLIB = @CHOLMODLIB@
    148202CLPLIB_CFLAGS = @CLPLIB_CFLAGS@
    149203CLPLIB_CFLAGS_INSTALLED = @CLPLIB_CFLAGS_INSTALLED@
     
    165219COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
    166220COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
     221COIN_HAS_AMD_FALSE = @COIN_HAS_AMD_FALSE@
     222COIN_HAS_AMD_TRUE = @COIN_HAS_AMD_TRUE@
     223COIN_HAS_CHOLMOD_FALSE = @COIN_HAS_CHOLMOD_FALSE@
     224COIN_HAS_CHOLMOD_TRUE = @COIN_HAS_CHOLMOD_TRUE@
    167225COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    168226COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     227COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
     228COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
    169229COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
    170230COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     
    199259F77 = @F77@
    200260FFLAGS = @FFLAGS@
     261GLPK_CFLAGS = @GLPK_CFLAGS@
     262GLPK_CFLAGS_INSTALLED = @GLPK_CFLAGS_INSTALLED@
     263GLPK_DATA = @GLPK_DATA@
     264GLPK_DATA_INSTALLED = @GLPK_DATA_INSTALLED@
     265GLPK_DEPENDENCIES = @GLPK_DEPENDENCIES@
     266GLPK_LIBS = @GLPK_LIBS@
     267GLPK_LIBS_INSTALLED = @GLPK_LIBS_INSTALLED@
    201268HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    202269HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    346413
    347414# List all source files for this library, including headers
    348 libClp_la_SOURCES = \
    349         ClpConfig.h \
    350         ClpCholeskyBase.cpp ClpCholeskyBase.hpp \
    351         ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
    352         ClpCholeskyUfl.cpp ClpCholeskyUfl.hpp \
    353         ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp \
    354         ClpCholeskyWssmp.cpp ClpCholeskyWssmp.hpp \
    355         ClpCholeskyWssmpKKT.cpp ClpCholeskyWssmpKKT.hpp \
    356         ClpConstraint.cpp ClpConstraint.hpp \
     415libClp_la_SOURCES = ClpConfig.h ClpCholeskyBase.cpp \
     416        ClpCholeskyBase.hpp ClpCholeskyDense.cpp ClpCholeskyDense.hpp \
     417        ClpCholeskyMumps.cpp ClpCholeskyMumps.hpp ClpCholeskyWssmp.cpp \
     418        ClpCholeskyWssmp.hpp ClpCholeskyWssmpKKT.cpp \
     419        ClpCholeskyWssmpKKT.hpp ClpConstraint.cpp ClpConstraint.hpp \
    357420        ClpConstraintLinear.cpp ClpConstraintLinear.hpp \
    358421        ClpConstraintQuadratic.cpp ClpConstraintQuadratic.hpp \
    359         Clp_C_Interface.cpp Clp_C_Interface.h \
    360         ClpDualRowDantzig.cpp ClpDualRowDantzig.hpp \
    361         ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
     422        Clp_C_Interface.cpp Clp_C_Interface.h ClpDualRowDantzig.cpp \
     423        ClpDualRowDantzig.hpp ClpDualRowPivot.cpp ClpDualRowPivot.hpp \
    362424        ClpDualRowSteepest.cpp ClpDualRowSteepest.hpp \
    363425        ClpDummyMatrix.cpp ClpDummyMatrix.hpp \
    364426        ClpDynamicExampleMatrix.cpp ClpDynamicExampleMatrix.hpp \
    365         ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp \
    366         ClpEventHandler.cpp ClpEventHandler.hpp \
    367         ClpFactorization.cpp ClpFactorization.hpp \
     427        ClpDynamicMatrix.cpp ClpDynamicMatrix.hpp ClpEventHandler.cpp \
     428        ClpEventHandler.hpp ClpFactorization.cpp ClpFactorization.hpp \
    368429        ClpGubDynamicMatrix.cpp ClpGubDynamicMatrix.hpp \
    369         ClpGubMatrix.cpp ClpGubMatrix.hpp \
    370         ClpHelperFunctions.cpp ClpHelperFunctions.hpp \
    371         ClpInterior.cpp ClpInterior.hpp \
     430        ClpGubMatrix.cpp ClpGubMatrix.hpp ClpHelperFunctions.cpp \
     431        ClpHelperFunctions.hpp ClpInterior.cpp ClpInterior.hpp \
    372432        ClpLinearObjective.cpp ClpLinearObjective.hpp \
    373         ClpMatrixBase.cpp ClpMatrixBase.hpp \
    374         ClpMessage.cpp ClpMessage.hpp \
    375         ClpModel.cpp ClpModel.hpp \
    376         ClpNetworkBasis.cpp ClpNetworkBasis.hpp \
    377         ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
    378         ClpNonLinearCost.cpp ClpNonLinearCost.hpp \
    379         ClpNode.cpp ClpNode.hpp \
    380         ClpObjective.cpp ClpObjective.hpp \
    381         ClpPackedMatrix.cpp ClpPackedMatrix.hpp \
    382         ClpParameters.hpp \
     433        ClpMatrixBase.cpp ClpMatrixBase.hpp ClpMessage.cpp \
     434        ClpMessage.hpp ClpModel.cpp ClpModel.hpp ClpNetworkBasis.cpp \
     435        ClpNetworkBasis.hpp ClpNetworkMatrix.cpp ClpNetworkMatrix.hpp \
     436        ClpNonLinearCost.cpp ClpNonLinearCost.hpp ClpNode.cpp \
     437        ClpNode.hpp ClpObjective.cpp ClpObjective.hpp \
     438        ClpPackedMatrix.cpp ClpPackedMatrix.hpp ClpParameters.hpp \
    383439        ClpPlusMinusOneMatrix.cpp ClpPlusMinusOneMatrix.hpp \
    384440        ClpPredictorCorrector.cpp ClpPredictorCorrector.hpp \
    385         ClpPdco.cpp ClpPdco.hpp \
    386         ClpPdcoBase.cpp ClpPdcoBase.hpp \
    387         ClpLsqr.cpp ClpLsqr.hpp \
    388         ClpPresolve.cpp ClpPresolve.hpp \
     441        ClpPdco.cpp ClpPdco.hpp ClpPdcoBase.cpp ClpPdcoBase.hpp \
     442        ClpLsqr.cpp ClpLsqr.hpp ClpPresolve.cpp ClpPresolve.hpp \
    389443        ClpPrimalColumnDantzig.cpp ClpPrimalColumnDantzig.hpp \
    390444        ClpPrimalColumnPivot.cpp ClpPrimalColumnPivot.hpp \
    391445        ClpPrimalColumnSteepest.cpp ClpPrimalColumnSteepest.hpp \
    392446        ClpQuadraticObjective.cpp ClpQuadraticObjective.hpp \
    393         ClpSimplex.cpp ClpSimplex.hpp \
    394         ClpSimplexDual.cpp ClpSimplexDual.hpp \
    395         ClpSimplexNonlinear.cpp ClpSimplexNonlinear.hpp \
    396         ClpSimplexOther.cpp ClpSimplexOther.hpp \
    397         ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
    398         ClpSolve.cpp ClpSolve.hpp \
    399         Idiot.cpp Idiot.hpp \
    400         IdiSolve.cpp
    401 
     447        ClpSimplex.cpp ClpSimplex.hpp ClpSimplexDual.cpp \
     448        ClpSimplexDual.hpp ClpSimplexNonlinear.cpp \
     449        ClpSimplexNonlinear.hpp ClpSimplexOther.cpp \
     450        ClpSimplexOther.hpp ClpSimplexPrimal.cpp ClpSimplexPrimal.hpp \
     451        ClpSolve.cpp ClpSolve.hpp Idiot.cpp Idiot.hpp IdiSolve.cpp \
     452        $(am__append_1) $(am__append_2) $(am__append_3)
    402453
    403454# This is for libtool
     
    429480
    430481# CbcOrClpParam seem to require COIN_HAS_CLP so that it knows that it is build within Clp
    431 AM_CPPFLAGS = $(COINUTILS_CFLAGS) -DCOIN_HAS_CLP
     482AM_CPPFLAGS = $(CLPLIB_CFLAGS) -DCOIN_HAS_CLP $(am__append_4) \
     483        $(am__append_5)
    432484
    433485# This line is necessary to allow VPATH compilation with MS compilers
  • trunk/Clp/src/OsiClp/Makefile.in

    r1659 r1691  
    100100AMDEP_FALSE = @AMDEP_FALSE@
    101101AMDEP_TRUE = @AMDEP_TRUE@
     102AMDINCDIR = @AMDINCDIR@
     103AMDLIB = @AMDLIB@
    102104AMTAR = @AMTAR@
    103105AR = @AR@
     
    112114CDEFS = @CDEFS@
    113115CFLAGS = @CFLAGS@
     116CHOLMODINCDIR = @CHOLMODINCDIR@
     117CHOLMODLIB = @CHOLMODLIB@
    114118CLPLIB_CFLAGS = @CLPLIB_CFLAGS@
    115119CLPLIB_CFLAGS_INSTALLED = @CLPLIB_CFLAGS_INSTALLED@
     
    131135COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
    132136COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
     137COIN_HAS_AMD_FALSE = @COIN_HAS_AMD_FALSE@
     138COIN_HAS_AMD_TRUE = @COIN_HAS_AMD_TRUE@
     139COIN_HAS_CHOLMOD_FALSE = @COIN_HAS_CHOLMOD_FALSE@
     140COIN_HAS_CHOLMOD_TRUE = @COIN_HAS_CHOLMOD_TRUE@
    133141COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    134142COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     143COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
     144COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
    135145COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
    136146COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     
    165175F77 = @F77@
    166176FFLAGS = @FFLAGS@
     177GLPK_CFLAGS = @GLPK_CFLAGS@
     178GLPK_CFLAGS_INSTALLED = @GLPK_CFLAGS_INSTALLED@
     179GLPK_DATA = @GLPK_DATA@
     180GLPK_DATA_INSTALLED = @GLPK_DATA_INSTALLED@
     181GLPK_DEPENDENCIES = @GLPK_DEPENDENCIES@
     182GLPK_LIBS = @GLPK_LIBS@
     183GLPK_LIBS_INSTALLED = @GLPK_LIBS_INSTALLED@
    167184HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    168185HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • trunk/Clp/src/unitTest.cpp

    r1665 r1691  
    5050// Function Prototypes. Function definitions is in this file.
    5151void testingMessage( const char * const msg );
    52 #if UFL_BARRIER
     52#if defined(COIN_HAS_AMD) || defined(COIN_HAS_CHOLMOD) || defined(COIN_HAS_GLPK)
    5353static int barrierAvailable = 1;
    5454static std::string nameBarrier = "barrier-UFL";
     
    11141114                    } else {
    11151115                         nameAlgorithm = "barrier-slow";
    1116 #ifdef UFL_BARRIER
     1116#if defined(COIN_HAS_AMD) || defined(COIN_HAS_CHOLMOD) || defined(COIN_HAS_GLPK)
    11171117                         solveOptions.setSpecialOption(4, 4);
    11181118                         nameAlgorithm = "barrier-UFL";
  • trunk/Clp/test/Makefile.in

    r1657 r1691  
    9090AMDEP_FALSE = @AMDEP_FALSE@
    9191AMDEP_TRUE = @AMDEP_TRUE@
     92AMDINCDIR = @AMDINCDIR@
     93AMDLIB = @AMDLIB@
    9294AMTAR = @AMTAR@
    9395AR = @AR@
     
    102104CDEFS = @CDEFS@
    103105CFLAGS = @CFLAGS@
     106CHOLMODINCDIR = @CHOLMODINCDIR@
     107CHOLMODLIB = @CHOLMODLIB@
    104108CLPLIB_CFLAGS = @CLPLIB_CFLAGS@
    105109CLPLIB_CFLAGS_INSTALLED = @CLPLIB_CFLAGS_INSTALLED@
     
    121125COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
    122126COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
     127COIN_HAS_AMD_FALSE = @COIN_HAS_AMD_FALSE@
     128COIN_HAS_AMD_TRUE = @COIN_HAS_AMD_TRUE@
     129COIN_HAS_CHOLMOD_FALSE = @COIN_HAS_CHOLMOD_FALSE@
     130COIN_HAS_CHOLMOD_TRUE = @COIN_HAS_CHOLMOD_TRUE@
    123131COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    124132COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     133COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
     134COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
    125135COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
    126136COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     
    155165F77 = @F77@
    156166FFLAGS = @FFLAGS@
     167GLPK_CFLAGS = @GLPK_CFLAGS@
     168GLPK_CFLAGS_INSTALLED = @GLPK_CFLAGS_INSTALLED@
     169GLPK_DATA = @GLPK_DATA@
     170GLPK_DATA_INSTALLED = @GLPK_DATA_INSTALLED@
     171GLPK_DEPENDENCIES = @GLPK_DEPENDENCIES@
     172GLPK_LIBS = @GLPK_LIBS@
     173GLPK_LIBS_INSTALLED = @GLPK_LIBS_INSTALLED@
    157174HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    158175HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • trunk/Dependencies

    r1670 r1691  
    22ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
    33ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
     4ThirdParty/Metis https://projects.coin-or.org/svn/BuildTools/ThirdParty/Metis/stable/1.2
     5ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/stable/1.4
     6ThirdParty/Glpk https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/trunk
    47Data/Netlib   https://projects.coin-or.org/svn/Data/Netlib/stable/1.2
    58Data/Sample   https://projects.coin-or.org/svn/Data/Sample/stable/1.2
    69CoinUtils     https://projects.coin-or.org/svn/CoinUtils/trunk/CoinUtils
    7 Osi           https://projects.coin-or.org/svn/Osi/trunk/Osi
     10Osi           https://projects.coin-or.org/svn/Osi/stable/0.105/Osi
  • trunk/configure

    r1690 r1691  
    476476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
    477477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
     478ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
     479ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
     480ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
    478481ac_subdirs_all="$ac_subdirs_all Data/Sample"
    479482ac_subdirs_all="$ac_subdirs_all Data/Netlib"
     
    11391142  --with-lapack           specify LAPACK library (or BUILD to enforce use of
    11401143                          ThirdParty/Lapack)
     1144  --with-metis-lib linker flags for using project Metis
     1145  --with-metis-incdir directory with header files for using project Metis
     1146  --with-metis-datadir directory with data files for using project Metis
     1147  --with-mumps-lib linker flags for using project Mumps
     1148  --with-mumps-incdir directory with header files for using project Mumps
     1149  --with-mumps-datadir directory with data files for using project Mumps
     1150  --with-glpk-lib linker flags for using project Glpk
     1151  --with-glpk-incdir directory with header files for using project Glpk
     1152  --with-glpk-datadir directory with data files for using project Glpk
    11411153  --with-sample-lib linker flags for using project Sample
    11421154  --with-sample-incdir directory with header files for using project Sample
     
    42334245
    42344246# Provide some information about the compiler.
    4235 echo "$as_me:4235:" \
     4247echo "$as_me:4247:" \
    42364248     "checking for Fortran 77 compiler version" >&5
    42374249ac_compiler=`set X $ac_compile; echo $2`
     
    64996511*-*-irix6*)
    65006512  # Find out which ABI we are using.
    6501   echo '#line 6501 "configure"' > conftest.$ac_ext
     6513  echo '#line 6513 "configure"' > conftest.$ac_ext
    65026514  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    65036515  (eval $ac_compile) 2>&5
     
    84638475   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84648476   -e 's:$: $lt_compiler_flag:'`
    8465    (eval echo "\"\$as_me:8465: $lt_compile\"" >&5)
     8477   (eval echo "\"\$as_me:8477: $lt_compile\"" >&5)
    84668478   (eval "$lt_compile" 2>conftest.err)
    84678479   ac_status=$?
    84688480   cat conftest.err >&5
    8469    echo "$as_me:8469: \$? = $ac_status" >&5
     8481   echo "$as_me:8481: \$? = $ac_status" >&5
    84708482   if (exit $ac_status) && test -s "$ac_outfile"; then
    84718483     # The compiler can only warn and ignore the option if not recognized
     
    87318743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    87328744   -e 's:$: $lt_compiler_flag:'`
    8733    (eval echo "\"\$as_me:8733: $lt_compile\"" >&5)
     8745   (eval echo "\"\$as_me:8745: $lt_compile\"" >&5)
    87348746   (eval "$lt_compile" 2>conftest.err)
    87358747   ac_status=$?
    87368748   cat conftest.err >&5
    8737    echo "$as_me:8737: \$? = $ac_status" >&5
     8749   echo "$as_me:8749: \$? = $ac_status" >&5
    87388750   if (exit $ac_status) && test -s "$ac_outfile"; then
    87398751     # The compiler can only warn and ignore the option if not recognized
     
    88358847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    88368848   -e 's:$: $lt_compiler_flag:'`
    8837    (eval echo "\"\$as_me:8837: $lt_compile\"" >&5)
     8849   (eval echo "\"\$as_me:8849: $lt_compile\"" >&5)
    88388850   (eval "$lt_compile" 2>out/conftest.err)
    88398851   ac_status=$?
    88408852   cat out/conftest.err >&5
    8841    echo "$as_me:8841: \$? = $ac_status" >&5
     8853   echo "$as_me:8853: \$? = $ac_status" >&5
    88428854   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    88438855   then
     
    1118011192  lt_status=$lt_dlunknown
    1118111193  cat > conftest.$ac_ext <<EOF
    11182 #line 11182 "configure"
     11194#line 11194 "configure"
    1118311195#include "confdefs.h"
    1118411196
     
    1128011292  lt_status=$lt_dlunknown
    1128111293  cat > conftest.$ac_ext <<EOF
    11282 #line 11282 "configure"
     11294#line 11294 "configure"
    1128311295#include "confdefs.h"
    1128411296
     
    1362413636   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1362513637   -e 's:$: $lt_compiler_flag:'`
    13626    (eval echo "\"\$as_me:13626: $lt_compile\"" >&5)
     13638   (eval echo "\"\$as_me:13638: $lt_compile\"" >&5)
    1362713639   (eval "$lt_compile" 2>conftest.err)
    1362813640   ac_status=$?
    1362913641   cat conftest.err >&5
    13630    echo "$as_me:13630: \$? = $ac_status" >&5
     13642   echo "$as_me:13642: \$? = $ac_status" >&5
    1363113643   if (exit $ac_status) && test -s "$ac_outfile"; then
    1363213644     # The compiler can only warn and ignore the option if not recognized
     
    1372813740   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1372913741   -e 's:$: $lt_compiler_flag:'`
    13730    (eval echo "\"\$as_me:13730: $lt_compile\"" >&5)
     13742   (eval echo "\"\$as_me:13742: $lt_compile\"" >&5)
    1373113743   (eval "$lt_compile" 2>out/conftest.err)
    1373213744   ac_status=$?
    1373313745   cat out/conftest.err >&5
    13734    echo "$as_me:13734: \$? = $ac_status" >&5
     13746   echo "$as_me:13746: \$? = $ac_status" >&5
    1373513747   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1373613748   then
     
    1529815310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1529915311   -e 's:$: $lt_compiler_flag:'`
    15300    (eval echo "\"\$as_me:15300: $lt_compile\"" >&5)
     15312   (eval echo "\"\$as_me:15312: $lt_compile\"" >&5)
    1530115313   (eval "$lt_compile" 2>conftest.err)
    1530215314   ac_status=$?
    1530315315   cat conftest.err >&5
    15304    echo "$as_me:15304: \$? = $ac_status" >&5
     15316   echo "$as_me:15316: \$? = $ac_status" >&5
    1530515317   if (exit $ac_status) && test -s "$ac_outfile"; then
    1530615318     # The compiler can only warn and ignore the option if not recognized
     
    1540215414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1540315415   -e 's:$: $lt_compiler_flag:'`
    15404    (eval echo "\"\$as_me:15404: $lt_compile\"" >&5)
     15416   (eval echo "\"\$as_me:15416: $lt_compile\"" >&5)
    1540515417   (eval "$lt_compile" 2>out/conftest.err)
    1540615418   ac_status=$?
    1540715419   cat out/conftest.err >&5
    15408    echo "$as_me:15408: \$? = $ac_status" >&5
     15420   echo "$as_me:15420: \$? = $ac_status" >&5
    1540915421   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1541015422   then
     
    1760917621   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1761017622   -e 's:$: $lt_compiler_flag:'`
    17611    (eval echo "\"\$as_me:17611: $lt_compile\"" >&5)
     17623   (eval echo "\"\$as_me:17623: $lt_compile\"" >&5)
    1761217624   (eval "$lt_compile" 2>conftest.err)
    1761317625   ac_status=$?
    1761417626   cat conftest.err >&5
    17615    echo "$as_me:17615: \$? = $ac_status" >&5
     17627   echo "$as_me:17627: \$? = $ac_status" >&5
    1761617628   if (exit $ac_status) && test -s "$ac_outfile"; then
    1761717629     # The compiler can only warn and ignore the option if not recognized
     
    1787717889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1787817890   -e 's:$: $lt_compiler_flag:'`
    17879    (eval echo "\"\$as_me:17879: $lt_compile\"" >&5)
     17891   (eval echo "\"\$as_me:17891: $lt_compile\"" >&5)
    1788017892   (eval "$lt_compile" 2>conftest.err)
    1788117893   ac_status=$?
    1788217894   cat conftest.err >&5
    17883    echo "$as_me:17883: \$? = $ac_status" >&5
     17895   echo "$as_me:17895: \$? = $ac_status" >&5
    1788417896   if (exit $ac_status) && test -s "$ac_outfile"; then
    1788517897     # The compiler can only warn and ignore the option if not recognized
     
    1798117993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1798217994   -e 's:$: $lt_compiler_flag:'`
    17983    (eval echo "\"\$as_me:17983: $lt_compile\"" >&5)
     17995   (eval echo "\"\$as_me:17995: $lt_compile\"" >&5)
    1798417996   (eval "$lt_compile" 2>out/conftest.err)
    1798517997   ac_status=$?
    1798617998   cat out/conftest.err >&5
    17987    echo "$as_me:17987: \$? = $ac_status" >&5
     17999   echo "$as_me:17999: \$? = $ac_status" >&5
    1798818000   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1798918001   then
     
    2113921151
    2114021152subdirs="$subdirs ThirdParty/Lapack"
     21153
     21154  fi
     21155fi
     21156
     21157
     21158echo "$as_me:$LINENO: checking whether source of project Metis is available and should be compiled" >&5
     21159echo $ECHO_N "checking whether source of project Metis is available and should be compiled... $ECHO_C" >&6
     21160
     21161coin_has_metis=notGiven
     21162coin_reason=
     21163
     21164# check if user wants to skip project in any case
     21165
     21166if test x"$COIN_SKIP_PROJECTS" != x; then
     21167  for dir in $COIN_SKIP_PROJECTS; do
     21168    if test $dir = "Metis"; then
     21169      coin_has_metis="no"
     21170      coin_reason="Metis has been specified in COIN_SKIP_PROJECTS"
     21171    fi
     21172
     21173    if test $dir = "ThirdParty/Metis"; then
     21174      coin_has_metis="no"
     21175      coin_reason="ThirdParty/Metis has been specified in COIN_SKIP_PROJECTS"
     21176    fi
     21177  done
     21178fi
     21179
     21180if test "$coin_has_metis" != no; then
     21181
     21182# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given.
     21183if test "${with_metis_lib+set}" = set; then
     21184  withval="$with_metis_lib"
     21185  if test "$withval" = no ; then
     21186       coin_has_metis="no"
     21187       coin_reason="--without-metis-lib has been specified"
     21188     else
     21189       coin_has_metis="no"
     21190       coin_reason="--with-metis-lib has been specified"
     21191     fi
     21192fi;
     21193fi
     21194
     21195if test "$coin_has_metis" != no; then
     21196
     21197# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given.
     21198if test "${with_metis_incdir+set}" = set; then
     21199  withval="$with_metis_incdir"
     21200  if test "$withval" = no ; then
     21201       coin_has_metis="no"
     21202       coin_reason="--without-metis-incdir has been specified"
     21203     else
     21204       coin_has_metis="no"
     21205       coin_reason="--with-metis-incdir has been specified"
     21206     fi
     21207fi;
     21208fi
     21209
     21210if test "$coin_has_metis" != no; then
     21211
     21212# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given.
     21213if test "${with_metis_datadir+set}" = set; then
     21214  withval="$with_metis_datadir"
     21215  if test "$withval" = no ; then
     21216       coin_has_metis="no"
     21217       coin_reason="--without-metis-datadir has been specified"
     21218     else
     21219       coin_has_metis="no"
     21220       coin_reason="--with-metis-datadir has been specified"
     21221     fi
     21222fi;
     21223fi
     21224
     21225
     21226
     21227
     21228
     21229# check if project is available in present directory
     21230if test "$coin_has_metis" = notGiven; then
     21231  coin_has_metis=no
     21232  if test -d $srcdir/ThirdParty/Metis; then
     21233    coin_reason="source in ThirdParty/Metis"
     21234    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
     21235    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
     21236    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
     21237    for i in $srcdir/ThirdParty/Metis/metis-4.0/Lib/balance.c; do
     21238         if test -r $i; then
     21239           coin_has_metis="yes"
     21240         else
     21241           coin_has_metis="no"
     21242           coin_reason="source file $i not available"
     21243           break
     21244         fi
     21245       done
     21246
     21247  fi
     21248fi
     21249
     21250if test -z "$coin_reason" ; then
     21251  echo "$as_me:$LINENO: result: $coin_has_metis" >&5
     21252echo "${ECHO_T}$coin_has_metis" >&6
     21253else
     21254  echo "$as_me:$LINENO: result: $coin_has_metis, $coin_reason" >&5
     21255echo "${ECHO_T}$coin_has_metis, $coin_reason" >&6
     21256fi
     21257
     21258if test "$coin_has_metis" = yes ; then
     21259  if test -r $srcdir/ThirdParty/Metis/configure; then
     21260    coin_subdirs="$coin_subdirs ThirdParty/Metis"
     21261
     21262
     21263subdirs="$subdirs ThirdParty/Metis"
     21264
     21265  fi
     21266fi
     21267
     21268
     21269echo "$as_me:$LINENO: checking whether source of project Mumps is available and should be compiled" >&5
     21270echo $ECHO_N "checking whether source of project Mumps is available and should be compiled... $ECHO_C" >&6
     21271
     21272coin_has_mumps=notGiven
     21273coin_reason=
     21274
     21275# check if user wants to skip project in any case
     21276
     21277if test x"$COIN_SKIP_PROJECTS" != x; then
     21278  for dir in $COIN_SKIP_PROJECTS; do
     21279    if test $dir = "Mumps"; then
     21280      coin_has_mumps="no"
     21281      coin_reason="Mumps has been specified in COIN_SKIP_PROJECTS"
     21282    fi
     21283
     21284    if test $dir = "ThirdParty/Mumps"; then
     21285      coin_has_mumps="no"
     21286      coin_reason="ThirdParty/Mumps has been specified in COIN_SKIP_PROJECTS"
     21287    fi
     21288  done
     21289fi
     21290
     21291if test "$coin_has_mumps" != no; then
     21292
     21293# Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given.
     21294if test "${with_mumps_lib+set}" = set; then
     21295  withval="$with_mumps_lib"
     21296  if test "$withval" = no ; then
     21297       coin_has_mumps="no"
     21298       coin_reason="--without-mumps-lib has been specified"
     21299     else
     21300       coin_has_mumps="no"
     21301       coin_reason="--with-mumps-lib has been specified"
     21302     fi
     21303fi;
     21304fi
     21305
     21306if test "$coin_has_mumps" != no; then
     21307
     21308# Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given.
     21309if test "${with_mumps_incdir+set}" = set; then
     21310  withval="$with_mumps_incdir"
     21311  if test "$withval" = no ; then
     21312       coin_has_mumps="no"
     21313       coin_reason="--without-mumps-incdir has been specified"
     21314     else
     21315       coin_has_mumps="no"
     21316       coin_reason="--with-mumps-incdir has been specified"
     21317     fi
     21318fi;
     21319fi
     21320
     21321if test "$coin_has_mumps" != no; then
     21322
     21323# Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given.
     21324if test "${with_mumps_datadir+set}" = set; then
     21325  withval="$with_mumps_datadir"
     21326  if test "$withval" = no ; then
     21327       coin_has_mumps="no"
     21328       coin_reason="--without-mumps-datadir has been specified"
     21329     else
     21330       coin_has_mumps="no"
     21331       coin_reason="--with-mumps-datadir has been specified"
     21332     fi
     21333fi;
     21334fi
     21335
     21336
     21337
     21338
     21339
     21340# check if project is available in present directory
     21341if test "$coin_has_mumps" = notGiven; then
     21342  coin_has_mumps=no
     21343  if test -d $srcdir/ThirdParty/Mumps; then
     21344    coin_reason="source in ThirdParty/Mumps"
     21345    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
     21346    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
     21347    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
     21348    for i in $srcdir/ThirdParty/Mumps/MUMPS/src/dmumps_part1.F; do
     21349         if test -r $i; then
     21350           coin_has_mumps="yes"
     21351         else
     21352           coin_has_mumps="no"
     21353           coin_reason="source file $i not available"
     21354           break
     21355         fi
     21356       done
     21357
     21358  fi
     21359fi
     21360
     21361if test -z "$coin_reason" ; then
     21362  echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
     21363echo "${ECHO_T}$coin_has_mumps" >&6
     21364else
     21365  echo "$as_me:$LINENO: result: $coin_has_mumps, $coin_reason" >&5
     21366echo "${ECHO_T}$coin_has_mumps, $coin_reason" >&6
     21367fi
     21368
     21369if test "$coin_has_mumps" = yes ; then
     21370  if test -r $srcdir/ThirdParty/Mumps/configure; then
     21371    coin_subdirs="$coin_subdirs ThirdParty/Mumps"
     21372
     21373
     21374subdirs="$subdirs ThirdParty/Mumps"
     21375
     21376  fi
     21377fi
     21378
     21379
     21380echo "$as_me:$LINENO: checking whether source of project Glpk is available and should be compiled" >&5
     21381echo $ECHO_N "checking whether source of project Glpk is available and should be compiled... $ECHO_C" >&6
     21382
     21383coin_has_glpk=notGiven
     21384coin_reason=
     21385
     21386# check if user wants to skip project in any case
     21387
     21388if test x"$COIN_SKIP_PROJECTS" != x; then
     21389  for dir in $COIN_SKIP_PROJECTS; do
     21390    if test $dir = "Glpk"; then
     21391      coin_has_glpk="no"
     21392      coin_reason="Glpk has been specified in COIN_SKIP_PROJECTS"
     21393    fi
     21394
     21395    if test $dir = "ThirdParty/Glpk"; then
     21396      coin_has_glpk="no"
     21397      coin_reason="ThirdParty/Glpk has been specified in COIN_SKIP_PROJECTS"
     21398    fi
     21399  done
     21400fi
     21401
     21402if test "$coin_has_glpk" != no; then
     21403
     21404# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
     21405if test "${with_glpk_lib+set}" = set; then
     21406  withval="$with_glpk_lib"
     21407  if test "$withval" = no ; then
     21408       coin_has_glpk="no"
     21409       coin_reason="--without-glpk-lib has been specified"
     21410     else
     21411       coin_has_glpk="no"
     21412       coin_reason="--with-glpk-lib has been specified"
     21413     fi
     21414fi;
     21415fi
     21416
     21417if test "$coin_has_glpk" != no; then
     21418
     21419# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
     21420if test "${with_glpk_incdir+set}" = set; then
     21421  withval="$with_glpk_incdir"
     21422  if test "$withval" = no ; then
     21423       coin_has_glpk="no"
     21424       coin_reason="--without-glpk-incdir has been specified"
     21425     else
     21426       coin_has_glpk="no"
     21427       coin_reason="--with-glpk-incdir has been specified"
     21428     fi
     21429fi;
     21430fi
     21431
     21432if test "$coin_has_glpk" != no; then
     21433
     21434# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
     21435if test "${with_glpk_datadir+set}" = set; then
     21436  withval="$with_glpk_datadir"
     21437  if test "$withval" = no ; then
     21438       coin_has_glpk="no"
     21439       coin_reason="--without-glpk-datadir has been specified"
     21440     else
     21441       coin_has_glpk="no"
     21442       coin_reason="--with-glpk-datadir has been specified"
     21443     fi
     21444fi;
     21445fi
     21446
     21447
     21448
     21449
     21450
     21451# check if project is available in present directory
     21452if test "$coin_has_glpk" = notGiven; then
     21453  coin_has_glpk=no
     21454  if test -d $srcdir/ThirdParty/Glpk; then
     21455    coin_reason="source in ThirdParty/Glpk"
     21456    # If a third argument is given, then we have to check if one one the files given in that third argument is present.
     21457    # If none of the files in the third argument is available, then we consider the project directory as non-existing.
     21458    # However, if no third argument is given, then this means that there should be no check, and existence of the directory is sufficient.
     21459    for i in $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c; do
     21460         if test -r $i; then
     21461           coin_has_glpk="yes"
     21462         else
     21463           coin_has_glpk="no"
     21464           coin_reason="source file $i not available"
     21465           break
     21466         fi
     21467       done
     21468
     21469  fi
     21470fi
     21471
     21472if test -z "$coin_reason" ; then
     21473  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     21474echo "${ECHO_T}$coin_has_glpk" >&6
     21475else
     21476  echo "$as_me:$LINENO: result: $coin_has_glpk, $coin_reason" >&5
     21477echo "${ECHO_T}$coin_has_glpk, $coin_reason" >&6
     21478fi
     21479
     21480if test "$coin_has_glpk" = yes ; then
     21481  if test -r $srcdir/ThirdParty/Glpk/configure; then
     21482    coin_subdirs="$coin_subdirs ThirdParty/Glpk"
     21483
     21484
     21485subdirs="$subdirs ThirdParty/Glpk"
    2114121486
    2114221487  fi
  • trunk/configure.ac

    r1687 r1691  
    4545AC_COIN_MAIN_PACKAGEDIR(Blas,   ThirdParty,[daxpy.f])
    4646AC_COIN_MAIN_PACKAGEDIR(Lapack, ThirdParty,[LAPACK/SRC/dlarf.f])
     47AC_COIN_MAIN_PACKAGEDIR(Metis,  ThirdParty,[metis-4.0/Lib/balance.c])
     48AC_COIN_MAIN_PACKAGEDIR(Mumps,  ThirdParty,[MUMPS/src/dmumps_part1.F])
     49AC_COIN_MAIN_PACKAGEDIR(Glpk,   ThirdParty,[glpk/src/glplpx01.c])
    4750AC_COIN_MAIN_PACKAGEDIR(Sample, Data)
    4851AC_COIN_MAIN_PACKAGEDIR(Netlib, Data)
Note: See TracChangeset for help on using the changeset viewer.