Ignore:
Timestamp:
Sep 22, 2007 1:46:49 PM (12 years ago)
Author:
forrest
Message:

temporarily committing release candidate to stable

Location:
stable/1.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable/1.1

    • Property svn:externals
      •  

        old new  
        1 MSVisualStudio   https://projects.coin-or.org/svn/MSVisualStudio/stable/1.0/ExternalsDirs/Cbc
        2 BuildTools    https://projects.coin-or.org/svn/BuildTools/stable/0.5
        3 ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.0
        4 Data/Netlib   https://projects.coin-or.org/svn/Data/stable/1.0/Netlib
        5 Data/Sample   https://projects.coin-or.org/svn/Data/stable/1.0/Sample
        6 Data/miplib3  https://projects.coin-or.org/svn/Data/stable/1.0/miplib3
        7 CoinUtils     https://projects.coin-or.org/svn/CoinUtils/stable/1.1/CoinUtils
        8 Cgl           https://projects.coin-or.org/svn/Cgl/stable/0.5/Cgl
        9 Clp           https://projects.coin-or.org/svn/Clp/stable/1.3/Clp
        10 Osi           https://projects.coin-or.org/svn/Osi/stable/0.95/Osi
        11 Vol           https://projects.coin-or.org/svn/Vol/stable/1.0/Vol
         1MSVisualStudio  https://projects.coin-or.org/svn/MSVisualStudio/releases/1.0.2/ExternalsDirs/Cbc
         2BuildTools  https://projects.coin-or.org/svn/BuildTools/releases/0.5.15
         3ThirdParty/ASL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/releases/1.0.6
         4Data/Netlib  https://projects.coin-or.org/svn/Data/releases/1.0.4/Netlib
         5Data/Sample  https://projects.coin-or.org/svn/Data/releases/1.0.4/Sample
         6Data/miplib3  https://projects.coin-or.org/svn/Data/releases/1.0.4/miplib3
         7CoinUtils  https://projects.coin-or.org/svn/CoinUtils/releases/1.1.0/CoinUtils
         8Cgl  https://projects.coin-or.org/svn/Cgl/releases/0.5.1/Cgl
         9Clp  https://projects.coin-or.org/svn/Clp/releases/1.3.4/Clp
         10Osi  https://projects.coin-or.org/svn/Osi/releases/0.95.3/Osi
         11Vol  https://projects.coin-or.org/svn/Vol/releases/1.0.0/Vol
  • stable/1.1/Cbc/configure

    r605 r791  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for Cbc 0.1.
     3# Generated by GNU Autoconf 2.59 for Cbc 1.1.2.
    44#
    55# Report bugs to <coin-cbc@list.coin-or.org>.
     
    430430PACKAGE_NAME='Cbc'
    431431PACKAGE_TARNAME='cbc'
    432 PACKAGE_VERSION='0.1'
    433 PACKAGE_STRING='Cbc 0.1'
     432PACKAGE_VERSION='1.1.2'
     433PACKAGE_STRING='Cbc 1.1.2'
    434434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
    435435
     
    10021002  # This message is too long to be a string in the A/UX 3.1 sh.
    10031003  cat <<_ACEOF
    1004 \`configure' configures Cbc 0.1 to adapt to many kinds of systems.
     1004\`configure' configures Cbc 1.1.2 to adapt to many kinds of systems.
    10051005
    10061006Usage: $0 [OPTION]... [VAR=VALUE]...
     
    10681068if test -n "$ac_init_help"; then
    10691069  case $ac_init_help in
    1070      short | recursive ) echo "Configuration of Cbc 0.1:";;
     1070     short | recursive ) echo "Configuration of Cbc 1.1.2:";;
    10711071   esac
    10721072  cat <<\_ACEOF
     
    11241124                          specify default solver for Cbc in lower case letters
    11251125                          (if not given, clp is assumed)
    1126   --with-cplex-incdir specify the directory with the header files for library
    1127                           Cplex
    1128   --with-cplex-lib specify the flags to link with the library Cplex
    1129   --with-glpk-incdir specify the directory with the header files for library
    1130                           Glpk
    1131   --with-glpk-lib specify the flags to link with the library Glpk
    1132   --with-fortmp-incdir specify the directory with the header files for library
    1133                           FortMP
    1134   --with-fortmp-lib specify the flags to link with the library FortMP
    1135   --with-mosek-incdir specify the directory with the header files for library
    1136                           Mosek
    1137   --with-mosek-lib specify the flags to link with the library Mosek
    1138   --with-osl-incdir specify the directory with the header files for library
    1139                           Osl
    1140   --with-osl-lib specify the flags to link with the library Osl
    1141   --with-soplex-incdir specify the directory with the header files for library
    1142                           Soplex
    1143   --with-soplex-lib specify the flags to link with the library Soplex
    1144   --with-xpress-incdir specify the directory with the header files for library
    1145                           Xpress
    1146   --with-xpress-lib specify the flags to link with the library Xpress
     1126  --with-cplex-incdir specify the header file directory for library Cplex
     1127  --with-cplex-lib specify the flags used to link with the library Cplex
     1128  --with-glpk-incdir specify the header file directory for library Glpk
     1129  --with-glpk-lib specify the flags used to link with the library Glpk
     1130  --with-fortmp-incdir specify the header file directory for library FortMP
     1131  --with-fortmp-lib specify the flags used to link with the library FortMP
     1132  --with-mosek-incdir specify the header file directory for library Mosek
     1133  --with-mosek-lib specify the flags used to link with the library Mosek
     1134  --with-osl-incdir specify the header file directory for library Osl
     1135  --with-osl-lib specify the flags used to link with the library Osl
     1136  --with-soplex-incdir specify the header file directory for library Soplex
     1137  --with-soplex-lib specify the flags used to link with the library Soplex
     1138  --with-xpress-incdir specify the header file directory for library Xpress
     1139  --with-xpress-lib specify the flags used to link with the library Xpress
    11471140  --with-asldir           specify path to AMPL solver directory (or BUILD for
    11481141                          compilation, or "no" for disabling AMPL)
     
    12741267if $ac_init_version; then
    12751268  cat <<\_ACEOF
    1276 Cbc configure 0.1
     1269Cbc configure 1.1.2
    12771270generated by GNU Autoconf 2.59
    12781271
     
    12941287running configure, to aid debugging if configure makes a mistake.
    12951288
    1296 It was created by Cbc $as_me 0.1, which was
     1289It was created by Cbc $as_me 1.1.2, which was
    12971290generated by GNU Autoconf 2.59.  Invocation command line was
    12981291
     
    17461739  case "${enableval}" in
    17471740   yes) coin_debug_compile=true
    1748         enable_shared=no
     1741        if test "${enable_shared+set}" = set; then :; else
     1742          enable_shared=no
     1743        fi
    17491744        ;;
    17501745   no)  coin_debug_compile=false
     
    18521847  if test "$enable_doscompile" != no; then
    18531848     case $build in
    1854        *-cygwin*) ;;
    1855        *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
    1856 echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
     1849       *-cygwin* | *-mingw*) ;;
     1850       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
     1851echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
    18571852   { (exit 1); exit 1; }; } ;;
    18581853     esac
     
    18621857fi;
    18631858 case "$enable_doscompile" in
    1864    msvc|mingw|no) ;;
     1859   mingw)
     1860     case $build in
     1861       *-mingw*) enable_doscompile=no ;;
     1862     esac
     1863     ;;
     1864   msvc|no) ;;
    18651865   yes) enable_doscompile=mingw ;;
    18661866   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     
    27412741          cl* | */cl* | CL* | */CL*)
    27422742            coin_opt_cflags='-MT -O2'
    2743             coin_add_cflags='-nologo -wd4996'
     2743            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
    27442744            coin_dbg_cflags='-MTd'
    27452745            ;;
     
    28122812          xlc* | */xlc* | mpxlc* | */mpxlc*)
    28132813            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
    2814             coin_add_cflags="-bmaxdata:0x80000000"
     2814            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
    28152815            coin_dbg_cflags="-g"
    28162816          ;;
     
    34743474fi
    34753475
     3476# It seems that we need to cleanup something here for the Windows
     3477case "$CXX" in
     3478  cl* | */cl* | CL* | */CL* )
     3479    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
     3480    mv confdefs.hh confdefs.h
     3481    ;;
     3482esac
     3483
    34763484# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
    34773485case "$CXX" in
     
    35743582            # The MT and MTd options are mutually exclusive
    35753583            coin_opt_cxxflags='-MT -O2'
    3576             coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3584            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
    35773585            coin_dbg_cxxflags='-MTd'
    35783586            ;;
     
    36453653          xlC* | */xlC* | mpxlC* | */mpxlC*)
    36463654            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
    3647             coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
     3655            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
    36483656            coin_dbg_cxxflags="-g"
    36493657            ;;
     
    43414349# Define the identity of the package.
    43424350 PACKAGE='cbc'
    4343  VERSION='0.1'
     4351 VERSION='1.1.2'
    43444352
    43454353
     
    49144922    correct_version='1.5.22'
    49154923    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    4916     as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
    4917 echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
    4918 echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
    4919 if eval "test \"\${$as_ac_File+set}\" = set"; then
    4920   echo $ECHO_N "(cached) $ECHO_C" >&6
    4921 else
    4922   test "$cross_compiling" = yes &&
    4923   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    4924 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    4925    { (exit 1); exit 1; }; }
    4926 if test -r "$want_dir/libtool/ltmain.sh"; then
    4927   eval "$as_ac_File=yes"
    4928 else
    4929   eval "$as_ac_File=no"
    4930 fi
    4931 fi
    4932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    4933 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    4934 if test `eval echo '${'$as_ac_File'}'` = yes; then
     4924    if test -r $want_dir/libtool/ltmain.sh; then
    49354925  have_ltmain=yes
     4926  :
    49364927else
    49374928  have_ltmain=no
     4929  :
    49384930fi
    49394931
     
    49664958    want_dir=$AUTOTOOLS_DIR/share
    49674959  fi
    4968   as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
    4969 echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
    4970 echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
    4971 if eval "test \"\${$as_ac_File+set}\" = set"; then
    4972   echo $ECHO_N "(cached) $ECHO_C" >&6
    4973 else
    4974   test "$cross_compiling" = yes &&
    4975   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    4976 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    4977    { (exit 1); exit 1; }; }
    4978 if test -r "$want_dir/aclocal/libtool.m4"; then
    4979   eval "$as_ac_File=yes"
    4980 else
    4981   eval "$as_ac_File=no"
    4982 fi
    4983 fi
    4984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    4985 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    4986 if test `eval echo '${'$as_ac_File'}'` = yes; then
     4960  if test -r $want_dir/aclocal/libtool.m4; then
    49874961  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
     4962  :
    49884963else
    49894964  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
    49904965echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
    49914966   { (exit 1); exit 1; }; }
     4967  :
    49924968fi
    49934969
     
    56755651*-*-irix6*)
    56765652  # Find out which ABI we are using.
    5677   echo '#line 5677 "configure"' > conftest.$ac_ext
     5653  echo '#line 5653 "configure"' > conftest.$ac_ext
    56785654  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    56795655  (eval $ac_compile) 2>&5
     
    68096785
    68106786# Provide some information about the compiler.
    6811 echo "$as_me:6811:" \
     6787echo "$as_me:6787:" \
    68126788     "checking for Fortran 77 compiler version" >&5
    68136789ac_compiler=`set X $ac_compile; echo $2`
     
    78767852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78777853   -e 's:$: $lt_compiler_flag:'`
    7878    (eval echo "\"\$as_me:7878: $lt_compile\"" >&5)
     7854   (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
    78797855   (eval "$lt_compile" 2>conftest.err)
    78807856   ac_status=$?
    78817857   cat conftest.err >&5
    7882    echo "$as_me:7882: \$? = $ac_status" >&5
     7858   echo "$as_me:7858: \$? = $ac_status" >&5
    78837859   if (exit $ac_status) && test -s "$ac_outfile"; then
    78847860     # The compiler can only warn and ignore the option if not recognized
     
    81448120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81458121   -e 's:$: $lt_compiler_flag:'`
    8146    (eval echo "\"\$as_me:8146: $lt_compile\"" >&5)
     8122   (eval echo "\"\$as_me:8122: $lt_compile\"" >&5)
    81478123   (eval "$lt_compile" 2>conftest.err)
    81488124   ac_status=$?
    81498125   cat conftest.err >&5
    8150    echo "$as_me:8150: \$? = $ac_status" >&5
     8126   echo "$as_me:8126: \$? = $ac_status" >&5
    81518127   if (exit $ac_status) && test -s "$ac_outfile"; then
    81528128     # The compiler can only warn and ignore the option if not recognized
     
    82488224   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82498225   -e 's:$: $lt_compiler_flag:'`
    8250    (eval echo "\"\$as_me:8250: $lt_compile\"" >&5)
     8226   (eval echo "\"\$as_me:8226: $lt_compile\"" >&5)
    82518227   (eval "$lt_compile" 2>out/conftest.err)
    82528228   ac_status=$?
    82538229   cat out/conftest.err >&5
    8254    echo "$as_me:8254: \$? = $ac_status" >&5
     8230   echo "$as_me:8230: \$? = $ac_status" >&5
    82558231   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82568232   then
     
    1059310569  lt_status=$lt_dlunknown
    1059410570  cat > conftest.$ac_ext <<EOF
    10595 #line 10595 "configure"
     10571#line 10571 "configure"
    1059610572#include "confdefs.h"
    1059710573
     
    1069310669  lt_status=$lt_dlunknown
    1069410670  cat > conftest.$ac_ext <<EOF
    10695 #line 10695 "configure"
     10671#line 10671 "configure"
    1069610672#include "confdefs.h"
    1069710673
     
    1303713013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1303813014   -e 's:$: $lt_compiler_flag:'`
    13039    (eval echo "\"\$as_me:13039: $lt_compile\"" >&5)
     13015   (eval echo "\"\$as_me:13015: $lt_compile\"" >&5)
    1304013016   (eval "$lt_compile" 2>conftest.err)
    1304113017   ac_status=$?
    1304213018   cat conftest.err >&5
    13043    echo "$as_me:13043: \$? = $ac_status" >&5
     13019   echo "$as_me:13019: \$? = $ac_status" >&5
    1304413020   if (exit $ac_status) && test -s "$ac_outfile"; then
    1304513021     # The compiler can only warn and ignore the option if not recognized
     
    1314113117   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1314213118   -e 's:$: $lt_compiler_flag:'`
    13143    (eval echo "\"\$as_me:13143: $lt_compile\"" >&5)
     13119   (eval echo "\"\$as_me:13119: $lt_compile\"" >&5)
    1314413120   (eval "$lt_compile" 2>out/conftest.err)
    1314513121   ac_status=$?
    1314613122   cat out/conftest.err >&5
    13147    echo "$as_me:13147: \$? = $ac_status" >&5
     13123   echo "$as_me:13123: \$? = $ac_status" >&5
    1314813124   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1314913125   then
     
    1471114687   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1471214688   -e 's:$: $lt_compiler_flag:'`
    14713    (eval echo "\"\$as_me:14713: $lt_compile\"" >&5)
     14689   (eval echo "\"\$as_me:14689: $lt_compile\"" >&5)
    1471414690   (eval "$lt_compile" 2>conftest.err)
    1471514691   ac_status=$?
    1471614692   cat conftest.err >&5
    14717    echo "$as_me:14717: \$? = $ac_status" >&5
     14693   echo "$as_me:14693: \$? = $ac_status" >&5
    1471814694   if (exit $ac_status) && test -s "$ac_outfile"; then
    1471914695     # The compiler can only warn and ignore the option if not recognized
     
    1481514791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1481614792   -e 's:$: $lt_compiler_flag:'`
    14817    (eval echo "\"\$as_me:14817: $lt_compile\"" >&5)
     14793   (eval echo "\"\$as_me:14793: $lt_compile\"" >&5)
    1481814794   (eval "$lt_compile" 2>out/conftest.err)
    1481914795   ac_status=$?
    1482014796   cat out/conftest.err >&5
    14821    echo "$as_me:14821: \$? = $ac_status" >&5
     14797   echo "$as_me:14797: \$? = $ac_status" >&5
    1482214798   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1482314799   then
     
    1702216998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1702316999   -e 's:$: $lt_compiler_flag:'`
    17024    (eval echo "\"\$as_me:17024: $lt_compile\"" >&5)
     17000   (eval echo "\"\$as_me:17000: $lt_compile\"" >&5)
    1702517001   (eval "$lt_compile" 2>conftest.err)
    1702617002   ac_status=$?
    1702717003   cat conftest.err >&5
    17028    echo "$as_me:17028: \$? = $ac_status" >&5
     17004   echo "$as_me:17004: \$? = $ac_status" >&5
    1702917005   if (exit $ac_status) && test -s "$ac_outfile"; then
    1703017006     # The compiler can only warn and ignore the option if not recognized
     
    1729017266   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1729117267   -e 's:$: $lt_compiler_flag:'`
    17292    (eval echo "\"\$as_me:17292: $lt_compile\"" >&5)
     17268   (eval echo "\"\$as_me:17268: $lt_compile\"" >&5)
    1729317269   (eval "$lt_compile" 2>conftest.err)
    1729417270   ac_status=$?
    1729517271   cat conftest.err >&5
    17296    echo "$as_me:17296: \$? = $ac_status" >&5
     17272   echo "$as_me:17272: \$? = $ac_status" >&5
    1729717273   if (exit $ac_status) && test -s "$ac_outfile"; then
    1729817274     # The compiler can only warn and ignore the option if not recognized
     
    1739417370   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1739517371   -e 's:$: $lt_compiler_flag:'`
    17396    (eval echo "\"\$as_me:17396: $lt_compile\"" >&5)
     17372   (eval echo "\"\$as_me:17372: $lt_compile\"" >&5)
    1739717373   (eval "$lt_compile" 2>out/conftest.err)
    1739817374   ac_status=$?
    1739917375   cat out/conftest.err >&5
    17400    echo "$as_me:17400: \$? = $ac_status" >&5
     17376   echo "$as_me:17376: \$? = $ac_status" >&5
    1740117377   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1740217378   then
     
    2010120077  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
    2010220078echo "$as_me: Build is \"$build\"." >&6;}
     20079  mydos2unix='| dos2unix'
    2010320080  case $build in
    2010420081    *-mingw*)
    2010520082      CYGPATH_W=echo
     20083      mydos2unix=
    2010620084      ;;
    2010720085  esac
     
    2012920107            -e 's%lib /OUT:%lib -OUT:%' \
    2013020108            -e "s%cygpath -w%$CYGPATH_W%" \
    20131             -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
     20109            -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
    2013220110            -e 's/$AR t/lib -nologo -list/' \
    2013320111            -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
     
    2077420752# Check which third party solvers are available ToDo!
    2077520753
    20776 echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
     20754  echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
    2077720755echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
    2077820756
    2077920757# Check for header file directory
     20758
    2078020759
    2078120760# Check whether --with-cplex-incdir or --without-cplex-incdir was given.
     
    2078420763  CPXINCDIR=`cd $withval; pwd`
    2078520764fi;
     20765
    2078620766# Check for library directory
     20767
    2078720768
    2078820769# Check whether --with-cplex-lib or --without-cplex-lib was given.
     
    2079120772  CPXLIB=$withval
    2079220773fi;
     20774
    2079320775# Switch to disable library check if requested
    20794 # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
     20776
     20777  # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
    2079520778if test "${enable_cplex_libcheck+set}" = set; then
    2079620779  enableval="$enable_cplex_libcheck"
     
    2080020783fi;
    2080120784
    20802 if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
    20803   coin_has_cpx=true
    20804 else
    20805   coin_has_cpx=false
    20806 fi
    20807 
    20808 if test $coin_has_cpx = true; then
    20809 # Check either both arguments or none are given
    20810   if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
    20811     { { echo "$as_me:$LINENO: error: You need to specify both --with-cplex-incdir and --with-cplex-lib if you want to use library Cplex" >&5
    20812 echo "$as_me: error: You need to specify both --with-cplex-incdir and --with-cplex-lib if you want to use library Cplex" >&2;}
     20785# At this point, if we're going to use the library, both LBRYINCDIR and
     20786# LBRYLIB must be defined and not empty.
     20787
     20788  if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
     20789    if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
     20790      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&5
     20791echo "$as_me: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&2;}
    2081320792   { (exit 1); exit 1; }; }
     20793    fi
     20794    coin_has_cpx=true
     20795    echo "$as_me:$LINENO: result: yes" >&5
     20796echo "${ECHO_T}yes" >&6
     20797  else
     20798    coin_has_cpx=false
     20799    echo "$as_me:$LINENO: result: no" >&5
     20800echo "${ECHO_T}no" >&6
    2081420801  fi
    20815   echo "$as_me:$LINENO: result: yes" >&5
    20816 echo "${ECHO_T}yes" >&6
    20817   # Check if the given header file is there
    20818   as_ac_File=`echo "ac_cv_file_$CPXINCDIR/cplex.h" | $as_tr_sh`
    20819 echo "$as_me:$LINENO: checking for $CPXINCDIR/cplex.h" >&5
    20820 echo $ECHO_N "checking for $CPXINCDIR/cplex.h... $ECHO_C" >&6
    20821 if eval "test \"\${$as_ac_File+set}\" = set"; then
    20822   echo $ECHO_N "(cached) $ECHO_C" >&6
    20823 else
    20824   test "$cross_compiling" = yes &&
    20825   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    20826 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    20827    { (exit 1); exit 1; }; }
    20828 if test -r "$CPXINCDIR/cplex.h"; then
    20829   eval "$as_ac_File=yes"
    20830 else
    20831   eval "$as_ac_File=no"
    20832 fi
    20833 fi
    20834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    20835 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    20836 if test `eval echo '${'$as_ac_File'}'` = yes; then
     20802
     20803# If we have instructions for use, consider header and link checks.
     20804
     20805  if test $coin_has_cpx = true; then
     20806
     20807# If argument 3 (file) is given, check for the file. Typically this will be a
     20808# header file, but that's not assumed.
     20809
     20810    if test -r $CPXINCDIR/cplex.h; then
     20811
    2083720812  :
    2083820813else
     
    2084020815echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
    2084120816   { (exit 1); exit 1; }; }
    20842 fi
    20843 
    20844 
    20845   # Check if the symbol is provided in the library
    20846   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    20847   if test x"$cplex_libcheck" != xno; then
    20848                     coin_save_LIBS="$LIBS"
    20849                     LIBS="$CPXLIB $ADDLIBS"
    20850                     echo "$as_me:$LINENO: checking whether symbol CPXgetstat is available with CPX" >&5
    20851 echo $ECHO_N "checking whether symbol CPXgetstat is available with CPX... $ECHO_C" >&6
    20852                     ac_ext=c
     20817  :
     20818fi
     20819
     20820
     20821# Now see if we can link the function. There are arguments for and against
     20822# assuming argument 3 is a header file declaring the function. A correct
     20823# function declaration is the main argument in favour. Having to cope with
     20824# possible dependencies or other oddities are the main arguments against.
     20825# Force the use of C as the best single choice amongst C++, C, and Fortran.
     20826# Obviously, this has limits.
     20827
     20828    if test x"$cplex_libcheck" != xno; then
     20829           coin_save_LIBS="$LIBS"
     20830           LIBS="$CPXLIB $ADDLIBS"
     20831           coin_CPX_link=no
     20832           ac_ext=c
    2085320833ac_cpp='$CPP $CPPFLAGS'
    2085420834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2085620836ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2085720837
    20858 # ToDo find out what to do about extern "C"
    20859 #                    AC_TRY_LINK([extern "C" {void CPXgetstat();}],[CPXgetstat()],
    20860                     cat >conftest.$ac_ext <<_ACEOF
     20838           for fnm in CPXgetstat ; do
     20839             echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
     20840echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
     20841             cat >conftest.$ac_ext <<_ACEOF
    2086120842/* confdefs.h.  */
    2086220843_ACEOF
     
    2086420845cat >>conftest.$ac_ext <<_ACEOF
    2086520846/* end confdefs.h.  */
    20866 void CPXgetstat();
     20847
    2086720848int
    2086820849main ()
    2086920850{
    20870 CPXgetstat()
     20851$fnm()
    2087120852  ;
    2087220853  return 0;
     
    2089720878  echo "$as_me:$LINENO: result: yes" >&5
    2089820879echo "${ECHO_T}yes" >&6
     20880                  coin_CPX_link=yes
     20881                  break
    2089920882else
    2090020883  echo "$as_me: failed program was:" >&5
     
    2090320886echo "$as_me:$LINENO: result: no" >&5
    2090420887echo "${ECHO_T}no" >&6
    20905                                  { { echo "$as_me:$LINENO: error: Cannot find symbol CPXgetstat with CPX" >&5
    20906 echo "$as_me: error: Cannot find symbol CPXgetstat with CPX" >&2;}
    20907    { (exit 1); exit 1; }; }
    2090820888fi
    2090920889rm -f conftest.err conftest.$ac_objext \
    2091020890      conftest$ac_exeext conftest.$ac_ext
    20911                     ac_ext=c
     20891           done
     20892           ac_ext=c
    2091220893ac_cpp='$CPP $CPPFLAGS'
    2091320894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2091520896ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2091620897
    20917                     LIBS="$coin_save_LIBS"
    20918                   fi
    20919 
    20920   ADDLIBS="$CPXLIB $ADDLIBS"
     20898           if test x"$coin_CPX_link" = xyes ; then
     20899             LIBS="$coin_save_LIBS"
     20900           else
     20901             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
     20902echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
     20903   { (exit 1); exit 1; }; }
     20904           fi
     20905         fi
     20906
     20907
     20908# If we make it this far, we've verified the file and linked the function. Add
     20909# the necessary link flags to ADDLIBS and define the preprocessor symbol
     20910# COIN_HAS_LBRY.
     20911
     20912    ADDLIBS="$CPXLIB $ADDLIBS"
    2092120913
    2092220914cat >>confdefs.h <<\_ACEOF
     
    2092420916_ACEOF
    2092520917
    20926 else
    20927   echo "$as_me:$LINENO: result: no" >&5
    20928 echo "${ECHO_T}no" >&6
    20929 fi
     20918  fi
     20919
     20920# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     20921# automake conditional. These actions must occur unconditionally.
    2093020922
    2093120923
     
    2094320935
    2094420936
    20945 echo "$as_me:$LINENO: checking if user provides library for Glpk" >&5
     20937  echo "$as_me:$LINENO: checking if user provides library for Glpk" >&5
    2094620938echo $ECHO_N "checking if user provides library for Glpk... $ECHO_C" >&6
    2094720939
    2094820940# Check for header file directory
     20941
    2094920942
    2095020943# Check whether --with-glpk-incdir or --without-glpk-incdir was given.
     
    2095320946  GLPKINCDIR=`cd $withval; pwd`
    2095420947fi;
     20948
    2095520949# Check for library directory
     20950
    2095620951
    2095720952# Check whether --with-glpk-lib or --without-glpk-lib was given.
     
    2096020955  GLPKLIB=$withval
    2096120956fi;
     20957
    2096220958# Switch to disable library check if requested
    20963 # Check whether --enable-glpk-libcheck or --disable-glpk-libcheck was given.
     20959
     20960  # Check whether --enable-glpk-libcheck or --disable-glpk-libcheck was given.
    2096420961if test "${enable_glpk_libcheck+set}" = set; then
    2096520962  enableval="$enable_glpk_libcheck"
     
    2096920966fi;
    2097020967
    20971 if test x"$GLPKINCDIR" != x || test x"$GLPKLIB" != x; then
    20972   coin_has_glpk=true
    20973 else
    20974   coin_has_glpk=false
    20975 fi
    20976 
    20977 if test $coin_has_glpk = true; then
    20978 # Check either both arguments or none are given
    20979   if test x"$GLPKINCDIR" = x || test x"$GLPKLIB" = x; then
    20980     { { echo "$as_me:$LINENO: error: You need to specify both --with-glpk-incdir and --with-glpk-lib if you want to use library Glpk" >&5
    20981 echo "$as_me: error: You need to specify both --with-glpk-incdir and --with-glpk-lib if you want to use library Glpk" >&2;}
     20968# At this point, if we're going to use the library, both LBRYINCDIR and
     20969# LBRYLIB must be defined and not empty.
     20970
     20971  if test x"$GLPKINCDIR" != x || test x"$GLPKLIB" != x; then
     20972    if test x"$GLPKINCDIR" = x || test x"$GLPKLIB" = x; then
     20973      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&5
     20974echo "$as_me: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&2;}
    2098220975   { (exit 1); exit 1; }; }
     20976    fi
     20977    coin_has_glpk=true
     20978    echo "$as_me:$LINENO: result: yes" >&5
     20979echo "${ECHO_T}yes" >&6
     20980  else
     20981    coin_has_glpk=false
     20982    echo "$as_me:$LINENO: result: no" >&5
     20983echo "${ECHO_T}no" >&6
    2098320984  fi
    20984   echo "$as_me:$LINENO: result: yes" >&5
    20985 echo "${ECHO_T}yes" >&6
    20986   # Check if the given header file is there
    20987   as_ac_File=`echo "ac_cv_file_$GLPKINCDIR/glpk.h" | $as_tr_sh`
    20988 echo "$as_me:$LINENO: checking for $GLPKINCDIR/glpk.h" >&5
    20989 echo $ECHO_N "checking for $GLPKINCDIR/glpk.h... $ECHO_C" >&6
    20990 if eval "test \"\${$as_ac_File+set}\" = set"; then
    20991   echo $ECHO_N "(cached) $ECHO_C" >&6
    20992 else
    20993   test "$cross_compiling" = yes &&
    20994   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    20995 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    20996    { (exit 1); exit 1; }; }
    20997 if test -r "$GLPKINCDIR/glpk.h"; then
    20998   eval "$as_ac_File=yes"
    20999 else
    21000   eval "$as_ac_File=no"
    21001 fi
    21002 fi
    21003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21004 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21005 if test `eval echo '${'$as_ac_File'}'` = yes; then
     20985
     20986# If we have instructions for use, consider header and link checks.
     20987
     20988  if test $coin_has_glpk = true; then
     20989
     20990# If argument 3 (file) is given, check for the file. Typically this will be a
     20991# header file, but that's not assumed.
     20992
     20993    if test -r $GLPKINCDIR/glpk.h; then
     20994
    2100620995  :
    2100720996else
     
    2100920998echo "$as_me: error: Cannot find file glpk.h in $GLPKINCDIR" >&2;}
    2101020999   { (exit 1); exit 1; }; }
    21011 fi
    21012 
    21013 
    21014   # Check if the symbol is provided in the library
    21015   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    21016   if test x"$glpk_libcheck" != xno; then
    21017                     coin_save_LIBS="$LIBS"
    21018                     LIBS="$GLPKLIB $ADDLIBS"
    21019                     echo "$as_me:$LINENO: checking whether symbol glp_lpx_simplex is available with GLPK" >&5
    21020 echo $ECHO_N "checking whether symbol glp_lpx_simplex is available with GLPK... $ECHO_C" >&6
    21021                     ac_ext=c
     21000  :
     21001fi
     21002
     21003
     21004# Now see if we can link the function. There are arguments for and against
     21005# assuming argument 3 is a header file declaring the function. A correct
     21006# function declaration is the main argument in favour. Having to cope with
     21007# possible dependencies or other oddities are the main arguments against.
     21008# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21009# Obviously, this has limits.
     21010
     21011    if test x"$glpk_libcheck" != xno; then
     21012           coin_save_LIBS="$LIBS"
     21013           LIBS="$GLPKLIB $ADDLIBS"
     21014           coin_GLPK_link=no
     21015           ac_ext=c
    2102221016ac_cpp='$CPP $CPPFLAGS'
    2102321017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2102521019ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2102621020
    21027 # ToDo find out what to do about extern "C"
    21028 #                    AC_TRY_LINK([extern "C" {void glp_lpx_simplex();}],[glp_lpx_simplex()],
    21029                     cat >conftest.$ac_ext <<_ACEOF
     21021           for fnm in glp_lpx_simplex ; do
     21022             echo "$as_me:$LINENO: checking whether symbol $fnm is available with GLPK" >&5
     21023echo $ECHO_N "checking whether symbol $fnm is available with GLPK... $ECHO_C" >&6
     21024             cat >conftest.$ac_ext <<_ACEOF
    2103021025/* confdefs.h.  */
    2103121026_ACEOF
     
    2103321028cat >>conftest.$ac_ext <<_ACEOF
    2103421029/* end confdefs.h.  */
    21035 void glp_lpx_simplex();
     21030
    2103621031int
    2103721032main ()
    2103821033{
    21039 glp_lpx_simplex()
     21034$fnm()
    2104021035  ;
    2104121036  return 0;
     
    2106621061  echo "$as_me:$LINENO: result: yes" >&5
    2106721062echo "${ECHO_T}yes" >&6
     21063                  coin_GLPK_link=yes
     21064                  break
    2106821065else
    2106921066  echo "$as_me: failed program was:" >&5
     
    2107221069echo "$as_me:$LINENO: result: no" >&5
    2107321070echo "${ECHO_T}no" >&6
    21074                                  { { echo "$as_me:$LINENO: error: Cannot find symbol glp_lpx_simplex with GLPK" >&5
    21075 echo "$as_me: error: Cannot find symbol glp_lpx_simplex with GLPK" >&2;}
    21076    { (exit 1); exit 1; }; }
    2107721071fi
    2107821072rm -f conftest.err conftest.$ac_objext \
    2107921073      conftest$ac_exeext conftest.$ac_ext
    21080                     ac_ext=c
     21074           done
     21075           ac_ext=c
    2108121076ac_cpp='$CPP $CPPFLAGS'
    2108221077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2108421079ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2108521080
    21086                     LIBS="$coin_save_LIBS"
    21087                   fi
    21088 
    21089   ADDLIBS="$GLPKLIB $ADDLIBS"
     21081           if test x"$coin_GLPK_link" = xyes ; then
     21082             LIBS="$coin_save_LIBS"
     21083           else
     21084             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) glp_lpx_simplex with GLPK" >&5
     21085echo "$as_me: error: Cannot find symbol(s) glp_lpx_simplex with GLPK" >&2;}
     21086   { (exit 1); exit 1; }; }
     21087           fi
     21088         fi
     21089
     21090
     21091# If we make it this far, we've verified the file and linked the function. Add
     21092# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21093# COIN_HAS_LBRY.
     21094
     21095    ADDLIBS="$GLPKLIB $ADDLIBS"
    2109021096
    2109121097cat >>confdefs.h <<\_ACEOF
     
    2109321099_ACEOF
    2109421100
    21095 else
    21096   echo "$as_me:$LINENO: result: no" >&5
    21097 echo "${ECHO_T}no" >&6
    21098 fi
     21101  fi
     21102
     21103# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21104# automake conditional. These actions must occur unconditionally.
    2109921105
    2110021106
     
    2111221118
    2111321119
    21114 echo "$as_me:$LINENO: checking if user provides library for FortMP" >&5
     21120  echo "$as_me:$LINENO: checking if user provides library for FortMP" >&5
    2111521121echo $ECHO_N "checking if user provides library for FortMP... $ECHO_C" >&6
    2111621122
    2111721123# Check for header file directory
     21124
    2111821125
    2111921126# Check whether --with-fortmp-incdir or --without-fortmp-incdir was given.
     
    2112221129  FMPINCDIR=`cd $withval; pwd`
    2112321130fi;
     21131
    2112421132# Check for library directory
     21133
    2112521134
    2112621135# Check whether --with-fortmp-lib or --without-fortmp-lib was given.
     
    2112921138  FMPLIB=$withval
    2113021139fi;
     21140
    2113121141# Switch to disable library check if requested
    21132 # Check whether --enable-fortmp-libcheck or --disable-fortmp-libcheck was given.
     21142
     21143  # Check whether --enable-fortmp-libcheck or --disable-fortmp-libcheck was given.
    2113321144if test "${enable_fortmp_libcheck+set}" = set; then
    2113421145  enableval="$enable_fortmp_libcheck"
     
    2113821149fi;
    2113921150
    21140 if test x"$FMPINCDIR" != x || test x"$FMPLIB" != x; then
    21141   coin_has_fmp=true
    21142 else
    21143   coin_has_fmp=false
    21144 fi
    21145 
    21146 if test $coin_has_fmp = true; then
    21147 # Check either both arguments or none are given
    21148   if test x"$FMPINCDIR" = x || test x"$FMPLIB" = x; then
    21149     { { echo "$as_me:$LINENO: error: You need to specify both --with-fortmp-incdir and --with-fortmp-lib if you want to use library FortMP" >&5
    21150 echo "$as_me: error: You need to specify both --with-fortmp-incdir and --with-fortmp-lib if you want to use library FortMP" >&2;}
     21151# At this point, if we're going to use the library, both LBRYINCDIR and
     21152# LBRYLIB must be defined and not empty.
     21153
     21154  if test x"$FMPINCDIR" != x || test x"$FMPLIB" != x; then
     21155    if test x"$FMPINCDIR" = x || test x"$FMPLIB" = x; then
     21156      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library FortMP. Use --with-fortmp-incdir of environment variable $FMPINCDIR to specify the include directory. Use --with-fortmp-lib or environment variable $FMPLIB to specify link flags." >&5
     21157echo "$as_me: error: You need to specify both an include directory and link flags to use library FortMP. Use --with-fortmp-incdir of environment variable $FMPINCDIR to specify the include directory. Use --with-fortmp-lib or environment variable $FMPLIB to specify link flags." >&2;}
    2115121158   { (exit 1); exit 1; }; }
     21159    fi
     21160    coin_has_fmp=true
     21161    echo "$as_me:$LINENO: result: yes" >&5
     21162echo "${ECHO_T}yes" >&6
     21163  else
     21164    coin_has_fmp=false
     21165    echo "$as_me:$LINENO: result: no" >&5
     21166echo "${ECHO_T}no" >&6
    2115221167  fi
    21153   echo "$as_me:$LINENO: result: yes" >&5
    21154 echo "${ECHO_T}yes" >&6
    21155   # Check if the given header file is there
    21156 
    21157   # Check if the symbol is provided in the library
    21158   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    21159 
    21160   ADDLIBS="$FMPLIB $ADDLIBS"
     21168
     21169# If we have instructions for use, consider header and link checks.
     21170
     21171  if test $coin_has_fmp = true; then
     21172
     21173# If argument 3 (file) is given, check for the file. Typically this will be a
     21174# header file, but that's not assumed.
     21175
     21176
     21177
     21178# Now see if we can link the function. There are arguments for and against
     21179# assuming argument 3 is a header file declaring the function. A correct
     21180# function declaration is the main argument in favour. Having to cope with
     21181# possible dependencies or other oddities are the main arguments against.
     21182# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21183# Obviously, this has limits.
     21184
     21185
     21186
     21187# If we make it this far, we've verified the file and linked the function. Add
     21188# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21189# COIN_HAS_LBRY.
     21190
     21191    ADDLIBS="$FMPLIB $ADDLIBS"
    2116121192
    2116221193cat >>confdefs.h <<\_ACEOF
     
    2116421195_ACEOF
    2116521196
    21166 else
    21167   echo "$as_me:$LINENO: result: no" >&5
    21168 echo "${ECHO_T}no" >&6
    21169 fi
     21197  fi
     21198
     21199# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21200# automake conditional. These actions must occur unconditionally.
    2117021201
    2117121202
     
    2118321214  #ToDo! is Fortran?
    2118421215
    21185 echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
     21216  echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
    2118621217echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
    2118721218
    2118821219# Check for header file directory
     21220
    2118921221
    2119021222# Check whether --with-mosek-incdir or --without-mosek-incdir was given.
     
    2119321225  MSKINCDIR=`cd $withval; pwd`
    2119421226fi;
     21227
    2119521228# Check for library directory
     21229
    2119621230
    2119721231# Check whether --with-mosek-lib or --without-mosek-lib was given.
     
    2120021234  MSKLIB=$withval
    2120121235fi;
     21236
    2120221237# Switch to disable library check if requested
    21203 # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
     21238
     21239  # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
    2120421240if test "${enable_mosek_libcheck+set}" = set; then
    2120521241  enableval="$enable_mosek_libcheck"
     
    2120921245fi;
    2121021246
    21211 if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
    21212   coin_has_msk=true
    21213 else
    21214   coin_has_msk=false
    21215 fi
    21216 
    21217 if test $coin_has_msk = true; then
    21218 # Check either both arguments or none are given
    21219   if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
    21220     { { echo "$as_me:$LINENO: error: You need to specify both --with-mosek-incdir and --with-mosek-lib if you want to use library Mosek" >&5
    21221 echo "$as_me: error: You need to specify both --with-mosek-incdir and --with-mosek-lib if you want to use library Mosek" >&2;}
     21247# At this point, if we're going to use the library, both LBRYINCDIR and
     21248# LBRYLIB must be defined and not empty.
     21249
     21250  if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
     21251    if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
     21252      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&5
     21253echo "$as_me: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&2;}
    2122221254   { (exit 1); exit 1; }; }
     21255    fi
     21256    coin_has_msk=true
     21257    echo "$as_me:$LINENO: result: yes" >&5
     21258echo "${ECHO_T}yes" >&6
     21259  else
     21260    coin_has_msk=false
     21261    echo "$as_me:$LINENO: result: no" >&5
     21262echo "${ECHO_T}no" >&6
    2122321263  fi
    21224   echo "$as_me:$LINENO: result: yes" >&5
    21225 echo "${ECHO_T}yes" >&6
    21226   # Check if the given header file is there
    21227   as_ac_File=`echo "ac_cv_file_$MSKINCDIR/mosekdl.h" | $as_tr_sh`
    21228 echo "$as_me:$LINENO: checking for $MSKINCDIR/mosekdl.h" >&5
    21229 echo $ECHO_N "checking for $MSKINCDIR/mosekdl.h... $ECHO_C" >&6
    21230 if eval "test \"\${$as_ac_File+set}\" = set"; then
    21231   echo $ECHO_N "(cached) $ECHO_C" >&6
    21232 else
    21233   test "$cross_compiling" = yes &&
    21234   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    21235 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    21236    { (exit 1); exit 1; }; }
    21237 if test -r "$MSKINCDIR/mosekdl.h"; then
    21238   eval "$as_ac_File=yes"
    21239 else
    21240   eval "$as_ac_File=no"
    21241 fi
    21242 fi
    21243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21244 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21245 if test `eval echo '${'$as_ac_File'}'` = yes; then
     21264
     21265# If we have instructions for use, consider header and link checks.
     21266
     21267  if test $coin_has_msk = true; then
     21268
     21269# If argument 3 (file) is given, check for the file. Typically this will be a
     21270# header file, but that's not assumed.
     21271
     21272    if test -r $MSKINCDIR/mosekdl.h; then
     21273
    2124621274  :
    2124721275else
     
    2124921277echo "$as_me: error: Cannot find file mosekdl.h in $MSKINCDIR" >&2;}
    2125021278   { (exit 1); exit 1; }; }
    21251 fi
    21252 
    21253 
    21254   # Check if the symbol is provided in the library
    21255   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    21256   if test x"$mosek_libcheck" != xno; then
    21257                     coin_save_LIBS="$LIBS"
    21258                     LIBS="$MSKLIB $ADDLIBS"
    21259                     echo "$as_me:$LINENO: checking whether symbol MSK_openmosek is available with MSK" >&5
    21260 echo $ECHO_N "checking whether symbol MSK_openmosek is available with MSK... $ECHO_C" >&6
    21261                     ac_ext=c
     21279  :
     21280fi
     21281
     21282
     21283# Now see if we can link the function. There are arguments for and against
     21284# assuming argument 3 is a header file declaring the function. A correct
     21285# function declaration is the main argument in favour. Having to cope with
     21286# possible dependencies or other oddities are the main arguments against.
     21287# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21288# Obviously, this has limits.
     21289
     21290    if test x"$mosek_libcheck" != xno; then
     21291           coin_save_LIBS="$LIBS"
     21292           LIBS="$MSKLIB $ADDLIBS"
     21293           coin_MSK_link=no
     21294           ac_ext=c
    2126221295ac_cpp='$CPP $CPPFLAGS'
    2126321296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2126521298ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2126621299
    21267 # ToDo find out what to do about extern "C"
    21268 #                    AC_TRY_LINK([extern "C" {void MSK_openmosek();}],[MSK_openmosek()],
    21269                     cat >conftest.$ac_ext <<_ACEOF
     21300           for fnm in MSK_openmosek ; do
     21301             echo "$as_me:$LINENO: checking whether symbol $fnm is available with MSK" >&5
     21302echo $ECHO_N "checking whether symbol $fnm is available with MSK... $ECHO_C" >&6
     21303             cat >conftest.$ac_ext <<_ACEOF
    2127021304/* confdefs.h.  */
    2127121305_ACEOF
     
    2127321307cat >>conftest.$ac_ext <<_ACEOF
    2127421308/* end confdefs.h.  */
    21275 void MSK_openmosek();
     21309
    2127621310int
    2127721311main ()
    2127821312{
    21279 MSK_openmosek()
     21313$fnm()
    2128021314  ;
    2128121315  return 0;
     
    2130621340  echo "$as_me:$LINENO: result: yes" >&5
    2130721341echo "${ECHO_T}yes" >&6
     21342                  coin_MSK_link=yes
     21343                  break
    2130821344else
    2130921345  echo "$as_me: failed program was:" >&5
     
    2131221348echo "$as_me:$LINENO: result: no" >&5
    2131321349echo "${ECHO_T}no" >&6
    21314                                  { { echo "$as_me:$LINENO: error: Cannot find symbol MSK_openmosek with MSK" >&5
    21315 echo "$as_me: error: Cannot find symbol MSK_openmosek with MSK" >&2;}
    21316    { (exit 1); exit 1; }; }
    2131721350fi
    2131821351rm -f conftest.err conftest.$ac_objext \
    2131921352      conftest$ac_exeext conftest.$ac_ext
    21320                     ac_ext=c
     21353           done
     21354           ac_ext=c
    2132121355ac_cpp='$CPP $CPPFLAGS'
    2132221356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2132421358ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2132521359
    21326                     LIBS="$coin_save_LIBS"
    21327                   fi
    21328 
    21329   ADDLIBS="$MSKLIB $ADDLIBS"
     21360           if test x"$coin_MSK_link" = xyes ; then
     21361             LIBS="$coin_save_LIBS"
     21362           else
     21363             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) MSK_openmosek with MSK" >&5
     21364echo "$as_me: error: Cannot find symbol(s) MSK_openmosek with MSK" >&2;}
     21365   { (exit 1); exit 1; }; }
     21366           fi
     21367         fi
     21368
     21369
     21370# If we make it this far, we've verified the file and linked the function. Add
     21371# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21372# COIN_HAS_LBRY.
     21373
     21374    ADDLIBS="$MSKLIB $ADDLIBS"
    2133021375
    2133121376cat >>confdefs.h <<\_ACEOF
     
    2133321378_ACEOF
    2133421379
    21335 else
    21336   echo "$as_me:$LINENO: result: no" >&5
    21337 echo "${ECHO_T}no" >&6
    21338 fi
     21380  fi
     21381
     21382# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21383# automake conditional. These actions must occur unconditionally.
    2133921384
    2134021385
     
    2135221397
    2135321398
    21354 echo "$as_me:$LINENO: checking if user provides library for Osl" >&5
     21399  echo "$as_me:$LINENO: checking if user provides library for Osl" >&5
    2135521400echo $ECHO_N "checking if user provides library for Osl... $ECHO_C" >&6
    2135621401
    2135721402# Check for header file directory
     21403
    2135821404
    2135921405# Check whether --with-osl-incdir or --without-osl-incdir was given.
     
    2136221408  OSLINCDIR=`cd $withval; pwd`
    2136321409fi;
     21410
    2136421411# Check for library directory
     21412
    2136521413
    2136621414# Check whether --with-osl-lib or --without-osl-lib was given.
     
    2136921417  OSLLIB=$withval
    2137021418fi;
     21419
    2137121420# Switch to disable library check if requested
    21372 # Check whether --enable-osl-libcheck or --disable-osl-libcheck was given.
     21421
     21422  # Check whether --enable-osl-libcheck or --disable-osl-libcheck was given.
    2137321423if test "${enable_osl_libcheck+set}" = set; then
    2137421424  enableval="$enable_osl_libcheck"
     
    2137821428fi;
    2137921429
    21380 if test x"$OSLINCDIR" != x || test x"$OSLLIB" != x; then
    21381   coin_has_osl=true
    21382 else
    21383   coin_has_osl=false
    21384 fi
    21385 
    21386 if test $coin_has_osl = true; then
    21387 # Check either both arguments or none are given
    21388   if test x"$OSLINCDIR" = x || test x"$OSLLIB" = x; then
    21389     { { echo "$as_me:$LINENO: error: You need to specify both --with-osl-incdir and --with-osl-lib if you want to use library Osl" >&5
    21390 echo "$as_me: error: You need to specify both --with-osl-incdir and --with-osl-lib if you want to use library Osl" >&2;}
     21430# At this point, if we're going to use the library, both LBRYINCDIR and
     21431# LBRYLIB must be defined and not empty.
     21432
     21433  if test x"$OSLINCDIR" != x || test x"$OSLLIB" != x; then
     21434    if test x"$OSLINCDIR" = x || test x"$OSLLIB" = x; then
     21435      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Osl. Use --with-osl-incdir of environment variable $OSLINCDIR to specify the include directory. Use --with-osl-lib or environment variable $OSLLIB to specify link flags." >&5
     21436echo "$as_me: error: You need to specify both an include directory and link flags to use library Osl. Use --with-osl-incdir of environment variable $OSLINCDIR to specify the include directory. Use --with-osl-lib or environment variable $OSLLIB to specify link flags." >&2;}
    2139121437   { (exit 1); exit 1; }; }
     21438    fi
     21439    coin_has_osl=true
     21440    echo "$as_me:$LINENO: result: yes" >&5
     21441echo "${ECHO_T}yes" >&6
     21442  else
     21443    coin_has_osl=false
     21444    echo "$as_me:$LINENO: result: no" >&5
     21445echo "${ECHO_T}no" >&6
    2139221446  fi
    21393   echo "$as_me:$LINENO: result: yes" >&5
    21394 echo "${ECHO_T}yes" >&6
    21395   # Check if the given header file is there
    21396   as_ac_File=`echo "ac_cv_file_$OSLINCDIR/ekk_c_api.h" | $as_tr_sh`
    21397 echo "$as_me:$LINENO: checking for $OSLINCDIR/ekk_c_api.h" >&5
    21398 echo $ECHO_N "checking for $OSLINCDIR/ekk_c_api.h... $ECHO_C" >&6
    21399 if eval "test \"\${$as_ac_File+set}\" = set"; then
    21400   echo $ECHO_N "(cached) $ECHO_C" >&6
    21401 else
    21402   test "$cross_compiling" = yes &&
    21403   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    21404 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    21405    { (exit 1); exit 1; }; }
    21406 if test -r "$OSLINCDIR/ekk_c_api.h"; then
    21407   eval "$as_ac_File=yes"
    21408 else
    21409   eval "$as_ac_File=no"
    21410 fi
    21411 fi
    21412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21413 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21414 if test `eval echo '${'$as_ac_File'}'` = yes; then
     21447
     21448# If we have instructions for use, consider header and link checks.
     21449
     21450  if test $coin_has_osl = true; then
     21451
     21452# If argument 3 (file) is given, check for the file. Typically this will be a
     21453# header file, but that's not assumed.
     21454
     21455    if test -r $OSLINCDIR/ekk_c_api.h; then
     21456
    2141521457  :
    2141621458else
     
    2141821460echo "$as_me: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&2;}
    2141921461   { (exit 1); exit 1; }; }
    21420 fi
    21421 
    21422 
    21423   # Check if the symbol is provided in the library
    21424   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    21425   if test x"$osl_libcheck" != xno; then
    21426                     coin_save_LIBS="$LIBS"
    21427                     LIBS="$OSLLIB $ADDLIBS"
    21428                     echo "$as_me:$LINENO: checking whether symbol ekk_simplex is available with OSL" >&5
    21429 echo $ECHO_N "checking whether symbol ekk_simplex is available with OSL... $ECHO_C" >&6
    21430                     ac_ext=c
     21462  :
     21463fi
     21464
     21465
     21466# Now see if we can link the function. There are arguments for and against
     21467# assuming argument 3 is a header file declaring the function. A correct
     21468# function declaration is the main argument in favour. Having to cope with
     21469# possible dependencies or other oddities are the main arguments against.
     21470# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21471# Obviously, this has limits.
     21472
     21473    if test x"$osl_libcheck" != xno; then
     21474           coin_save_LIBS="$LIBS"
     21475           LIBS="$OSLLIB $ADDLIBS"
     21476           coin_OSL_link=no
     21477           ac_ext=c
    2143121478ac_cpp='$CPP $CPPFLAGS'
    2143221479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2143421481ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2143521482
    21436 # ToDo find out what to do about extern "C"
    21437 #                    AC_TRY_LINK([extern "C" {void ekk_simplex();}],[ekk_simplex()],
    21438                     cat >conftest.$ac_ext <<_ACEOF
     21483           for fnm in ekk_simplex ; do
     21484             echo "$as_me:$LINENO: checking whether symbol $fnm is available with OSL" >&5
     21485echo $ECHO_N "checking whether symbol $fnm is available with OSL... $ECHO_C" >&6
     21486             cat >conftest.$ac_ext <<_ACEOF
    2143921487/* confdefs.h.  */
    2144021488_ACEOF
     
    2144221490cat >>conftest.$ac_ext <<_ACEOF
    2144321491/* end confdefs.h.  */
    21444 void ekk_simplex();
     21492
    2144521493int
    2144621494main ()
    2144721495{
    21448 ekk_simplex()
     21496$fnm()
    2144921497  ;
    2145021498  return 0;
     
    2147521523  echo "$as_me:$LINENO: result: yes" >&5
    2147621524echo "${ECHO_T}yes" >&6
     21525                  coin_OSL_link=yes
     21526                  break
    2147721527else
    2147821528  echo "$as_me: failed program was:" >&5
     
    2148121531echo "$as_me:$LINENO: result: no" >&5
    2148221532echo "${ECHO_T}no" >&6
    21483                                  { { echo "$as_me:$LINENO: error: Cannot find symbol ekk_simplex with OSL" >&5
    21484 echo "$as_me: error: Cannot find symbol ekk_simplex with OSL" >&2;}
    21485    { (exit 1); exit 1; }; }
    2148621533fi
    2148721534rm -f conftest.err conftest.$ac_objext \
    2148821535      conftest$ac_exeext conftest.$ac_ext
    21489                     ac_ext=c
     21536           done
     21537           ac_ext=c
    2149021538ac_cpp='$CPP $CPPFLAGS'
    2149121539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2149321541ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2149421542
    21495                     LIBS="$coin_save_LIBS"
    21496                   fi
    21497 
    21498   ADDLIBS="$OSLLIB $ADDLIBS"
     21543           if test x"$coin_OSL_link" = xyes ; then
     21544             LIBS="$coin_save_LIBS"
     21545           else
     21546             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) ekk_simplex with OSL" >&5
     21547echo "$as_me: error: Cannot find symbol(s) ekk_simplex with OSL" >&2;}
     21548   { (exit 1); exit 1; }; }
     21549           fi
     21550         fi
     21551
     21552
     21553# If we make it this far, we've verified the file and linked the function. Add
     21554# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21555# COIN_HAS_LBRY.
     21556
     21557    ADDLIBS="$OSLLIB $ADDLIBS"
    2149921558
    2150021559cat >>confdefs.h <<\_ACEOF
     
    2150221561_ACEOF
    2150321562
    21504 else
    21505   echo "$as_me:$LINENO: result: no" >&5
    21506 echo "${ECHO_T}no" >&6
    21507 fi
     21563  fi
     21564
     21565# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21566# automake conditional. These actions must occur unconditionally.
    2150821567
    2150921568
     
    2152121580
    2152221581
    21523 echo "$as_me:$LINENO: checking if user provides library for Soplex" >&5
     21582  echo "$as_me:$LINENO: checking if user provides library for Soplex" >&5
    2152421583echo $ECHO_N "checking if user provides library for Soplex... $ECHO_C" >&6
    2152521584
    2152621585# Check for header file directory
     21586
    2152721587
    2152821588# Check whether --with-soplex-incdir or --without-soplex-incdir was given.
     
    2153121591  SPXINCDIR=`cd $withval; pwd`
    2153221592fi;
     21593
    2153321594# Check for library directory
     21595
    2153421596
    2153521597# Check whether --with-soplex-lib or --without-soplex-lib was given.
     
    2153821600  SPXLIB=$withval
    2153921601fi;
     21602
    2154021603# Switch to disable library check if requested
    21541 # Check whether --enable-soplex-libcheck or --disable-soplex-libcheck was given.
     21604
     21605  # Check whether --enable-soplex-libcheck or --disable-soplex-libcheck was given.
    2154221606if test "${enable_soplex_libcheck+set}" = set; then
    2154321607  enableval="$enable_soplex_libcheck"
     
    2154721611fi;
    2154821612
    21549 if test x"$SPXINCDIR" != x || test x"$SPXLIB" != x; then
    21550   coin_has_spx=true
    21551 else
    21552   coin_has_spx=false
    21553 fi
    21554 
    21555 if test $coin_has_spx = true; then
    21556 # Check either both arguments or none are given
    21557   if test x"$SPXINCDIR" = x || test x"$SPXLIB" = x; then
    21558     { { echo "$as_me:$LINENO: error: You need to specify both --with-soplex-incdir and --with-soplex-lib if you want to use library Soplex" >&5
    21559 echo "$as_me: error: You need to specify both --with-soplex-incdir and --with-soplex-lib if you want to use library Soplex" >&2;}
     21613# At this point, if we're going to use the library, both LBRYINCDIR and
     21614# LBRYLIB must be defined and not empty.
     21615
     21616  if test x"$SPXINCDIR" != x || test x"$SPXLIB" != x; then
     21617    if test x"$SPXINCDIR" = x || test x"$SPXLIB" = x; then
     21618      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Soplex. Use --with-soplex-incdir of environment variable $SPXINCDIR to specify the include directory. Use --with-soplex-lib or environment variable $SPXLIB to specify link flags." >&5
     21619echo "$as_me: error: You need to specify both an include directory and link flags to use library Soplex. Use --with-soplex-incdir of environment variable $SPXINCDIR to specify the include directory. Use --with-soplex-lib or environment variable $SPXLIB to specify link flags." >&2;}
    2156021620   { (exit 1); exit 1; }; }
     21621    fi
     21622    coin_has_spx=true
     21623    echo "$as_me:$LINENO: result: yes" >&5
     21624echo "${ECHO_T}yes" >&6
     21625  else
     21626    coin_has_spx=false
     21627    echo "$as_me:$LINENO: result: no" >&5
     21628echo "${ECHO_T}no" >&6
    2156121629  fi
    21562   echo "$as_me:$LINENO: result: yes" >&5
    21563 echo "${ECHO_T}yes" >&6
    21564   # Check if the given header file is there
    21565   as_ac_File=`echo "ac_cv_file_$SPXINCDIR/spxsolver.h" | $as_tr_sh`
    21566 echo "$as_me:$LINENO: checking for $SPXINCDIR/spxsolver.h" >&5
    21567 echo $ECHO_N "checking for $SPXINCDIR/spxsolver.h... $ECHO_C" >&6
    21568 if eval "test \"\${$as_ac_File+set}\" = set"; then
    21569   echo $ECHO_N "(cached) $ECHO_C" >&6
    21570 else
    21571   test "$cross_compiling" = yes &&
    21572   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    21573 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    21574    { (exit 1); exit 1; }; }
    21575 if test -r "$SPXINCDIR/spxsolver.h"; then
    21576   eval "$as_ac_File=yes"
    21577 else
    21578   eval "$as_ac_File=no"
    21579 fi
    21580 fi
    21581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21582 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21583 if test `eval echo '${'$as_ac_File'}'` = yes; then
     21630
     21631# If we have instructions for use, consider header and link checks.
     21632
     21633  if test $coin_has_spx = true; then
     21634
     21635# If argument 3 (file) is given, check for the file. Typically this will be a
     21636# header file, but that's not assumed.
     21637
     21638    if test -r $SPXINCDIR/spxsolver.h; then
     21639
    2158421640  :
    2158521641else
     
    2158721643echo "$as_me: error: Cannot find file spxsolver.h in $SPXINCDIR" >&2;}
    2158821644   { (exit 1); exit 1; }; }
    21589 fi
    21590 
    21591 
    21592   # Check if the symbol is provided in the library
    21593   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    21594 
    21595   ADDLIBS="$SPXLIB $ADDLIBS"
     21645  :
     21646fi
     21647
     21648
     21649# Now see if we can link the function. There are arguments for and against
     21650# assuming argument 3 is a header file declaring the function. A correct
     21651# function declaration is the main argument in favour. Having to cope with
     21652# possible dependencies or other oddities are the main arguments against.
     21653# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21654# Obviously, this has limits.
     21655
     21656
     21657
     21658# If we make it this far, we've verified the file and linked the function. Add
     21659# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21660# COIN_HAS_LBRY.
     21661
     21662    ADDLIBS="$SPXLIB $ADDLIBS"
    2159621663
    2159721664cat >>confdefs.h <<\_ACEOF
     
    2159921666_ACEOF
    2160021667
    21601 else
    21602   echo "$as_me:$LINENO: result: no" >&5
    21603 echo "${ECHO_T}no" >&6
    21604 fi
     21668  fi
     21669
     21670# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21671# automake conditional. These actions must occur unconditionally.
    2160521672
    2160621673
     
    2161821685 # ToDo
    2161921686
    21620 echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
     21687  echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
    2162121688echo $ECHO_N "checking if user provides library for Xpress... $ECHO_C" >&6
    2162221689
    2162321690# Check for header file directory
     21691
    2162421692
    2162521693# Check whether --with-xpress-incdir or --without-xpress-incdir was given.
     
    2162821696  XPRINCDIR=`cd $withval; pwd`
    2162921697fi;
     21698
    2163021699# Check for library directory
     21700
    2163121701
    2163221702# Check whether --with-xpress-lib or --without-xpress-lib was given.
     
    2163521705  XPRLIB=$withval
    2163621706fi;
     21707
    2163721708# Switch to disable library check if requested
    21638 # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
     21709
     21710  # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
    2163921711if test "${enable_xpress_libcheck+set}" = set; then
    2164021712  enableval="$enable_xpress_libcheck"
     
    2164421716fi;
    2164521717
    21646 if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
    21647   coin_has_xpr=true
    21648 else
    21649   coin_has_xpr=false
    21650 fi
    21651 
    21652 if test $coin_has_xpr = true; then
    21653 # Check either both arguments or none are given
    21654   if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
    21655     { { echo "$as_me:$LINENO: error: You need to specify both --with-xpress-incdir and --with-xpress-lib if you want to use library Xpress" >&5
    21656 echo "$as_me: error: You need to specify both --with-xpress-incdir and --with-xpress-lib if you want to use library Xpress" >&2;}
     21718# At this point, if we're going to use the library, both LBRYINCDIR and
     21719# LBRYLIB must be defined and not empty.
     21720
     21721  if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
     21722    if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
     21723      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&5
     21724echo "$as_me: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&2;}
    2165721725   { (exit 1); exit 1; }; }
     21726    fi
     21727    coin_has_xpr=true
     21728    echo "$as_me:$LINENO: result: yes" >&5
     21729echo "${ECHO_T}yes" >&6
     21730  else
     21731    coin_has_xpr=false
     21732    echo "$as_me:$LINENO: result: no" >&5
     21733echo "${ECHO_T}no" >&6
    2165821734  fi
    21659   echo "$as_me:$LINENO: result: yes" >&5
    21660 echo "${ECHO_T}yes" >&6
    21661   # Check if the given header file is there
    21662   as_ac_File=`echo "ac_cv_file_$XPRINCDIR/xprs.h" | $as_tr_sh`
    21663 echo "$as_me:$LINENO: checking for $XPRINCDIR/xprs.h" >&5
    21664 echo $ECHO_N "checking for $XPRINCDIR/xprs.h... $ECHO_C" >&6
    21665 if eval "test \"\${$as_ac_File+set}\" = set"; then
    21666   echo $ECHO_N "(cached) $ECHO_C" >&6
    21667 else
    21668   test "$cross_compiling" = yes &&
    21669   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    21670 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    21671    { (exit 1); exit 1; }; }
    21672 if test -r "$XPRINCDIR/xprs.h"; then
    21673   eval "$as_ac_File=yes"
    21674 else
    21675   eval "$as_ac_File=no"
    21676 fi
    21677 fi
    21678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21679 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21680 if test `eval echo '${'$as_ac_File'}'` = yes; then
     21735
     21736# If we have instructions for use, consider header and link checks.
     21737
     21738  if test $coin_has_xpr = true; then
     21739
     21740# If argument 3 (file) is given, check for the file. Typically this will be a
     21741# header file, but that's not assumed.
     21742
     21743    if test -r $XPRINCDIR/xprs.h; then
     21744
    2168121745  :
    2168221746else
     
    2168421748echo "$as_me: error: Cannot find file xprs.h in $XPRINCDIR" >&2;}
    2168521749   { (exit 1); exit 1; }; }
    21686 fi
    21687 
    21688 
    21689   # Check if the symbol is provided in the library
    21690   # ToDo: FOR NOW WE ASSUME THAT WE ARE USING THE C++ COMPILER
    21691   if test x"$xpress_libcheck" != xno; then
    21692                     coin_save_LIBS="$LIBS"
    21693                     LIBS="$XPRLIB $ADDLIBS"
    21694                     echo "$as_me:$LINENO: checking whether symbol XPRSsetintcontrol is available with XPR" >&5
    21695 echo $ECHO_N "checking whether symbol XPRSsetintcontrol is available with XPR... $ECHO_C" >&6
    21696                     ac_ext=c
     21750  :
     21751fi
     21752
     21753
     21754# Now see if we can link the function. There are arguments for and against
     21755# assuming argument 3 is a header file declaring the function. A correct
     21756# function declaration is the main argument in favour. Having to cope with
     21757# possible dependencies or other oddities are the main arguments against.
     21758# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21759# Obviously, this has limits.
     21760
     21761    if test x"$xpress_libcheck" != xno; then
     21762           coin_save_LIBS="$LIBS"
     21763           LIBS="$XPRLIB $ADDLIBS"
     21764           coin_XPR_link=no
     21765           ac_ext=c
    2169721766ac_cpp='$CPP $CPPFLAGS'
    2169821767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2170021769ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2170121770
    21702 # ToDo find out what to do about extern "C"
    21703 #                    AC_TRY_LINK([extern "C" {void XPRSsetintcontrol();}],[XPRSsetintcontrol()],
    21704                     cat >conftest.$ac_ext <<_ACEOF
     21771           for fnm in XPRSsetintcontrol ; do
     21772             echo "$as_me:$LINENO: checking whether symbol $fnm is available with XPR" >&5
     21773echo $ECHO_N "checking whether symbol $fnm is available with XPR... $ECHO_C" >&6
     21774             cat >conftest.$ac_ext <<_ACEOF
    2170521775/* confdefs.h.  */
    2170621776_ACEOF
     
    2170821778cat >>conftest.$ac_ext <<_ACEOF
    2170921779/* end confdefs.h.  */
    21710 void XPRSsetintcontrol();
     21780
    2171121781int
    2171221782main ()
    2171321783{
    21714 XPRSsetintcontrol()
     21784$fnm()
    2171521785  ;
    2171621786  return 0;
     
    2174121811  echo "$as_me:$LINENO: result: yes" >&5
    2174221812echo "${ECHO_T}yes" >&6
     21813                  coin_XPR_link=yes
     21814                  break
    2174321815else
    2174421816  echo "$as_me: failed program was:" >&5
     
    2174721819echo "$as_me:$LINENO: result: no" >&5
    2174821820echo "${ECHO_T}no" >&6
    21749                                  { { echo "$as_me:$LINENO: error: Cannot find symbol XPRSsetintcontrol with XPR" >&5
    21750 echo "$as_me: error: Cannot find symbol XPRSsetintcontrol with XPR" >&2;}
    21751    { (exit 1); exit 1; }; }
    2175221821fi
    2175321822rm -f conftest.err conftest.$ac_objext \
    2175421823      conftest$ac_exeext conftest.$ac_ext
    21755                     ac_ext=c
     21824           done
     21825           ac_ext=c
    2175621826ac_cpp='$CPP $CPPFLAGS'
    2175721827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2175921829ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2176021830
    21761                     LIBS="$coin_save_LIBS"
    21762                   fi
    21763 
    21764   ADDLIBS="$XPRLIB $ADDLIBS"
     21831           if test x"$coin_XPR_link" = xyes ; then
     21832             LIBS="$coin_save_LIBS"
     21833           else
     21834             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) XPRSsetintcontrol with XPR" >&5
     21835echo "$as_me: error: Cannot find symbol(s) XPRSsetintcontrol with XPR" >&2;}
     21836   { (exit 1); exit 1; }; }
     21837           fi
     21838         fi
     21839
     21840
     21841# If we make it this far, we've verified the file and linked the function. Add
     21842# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21843# COIN_HAS_LBRY.
     21844
     21845    ADDLIBS="$XPRLIB $ADDLIBS"
    2176521846
    2176621847cat >>confdefs.h <<\_ACEOF
     
    2176821849_ACEOF
    2176921850
    21770 else
    21771   echo "$as_me:$LINENO: result: no" >&5
    21772 echo "${ECHO_T}no" >&6
    21773 fi
     21851  fi
     21852
     21853# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21854# automake conditional. These actions must occur unconditionally.
    2177421855
    2177521856
     
    2183321914  fi
    2183421915elif test "$use_asldir" != "no"; then
    21835   as_ac_File=`echo "ac_cv_file_$use_asldir/$ampllib" | $as_tr_sh`
    21836 echo "$as_me:$LINENO: checking for $use_asldir/$ampllib" >&5
    21837 echo $ECHO_N "checking for $use_asldir/$ampllib... $ECHO_C" >&6
    21838 if eval "test \"\${$as_ac_File+set}\" = set"; then
    21839   echo $ECHO_N "(cached) $ECHO_C" >&6
    21840 else
    21841   test "$cross_compiling" = yes &&
    21842   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    21843 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    21844    { (exit 1); exit 1; }; }
    21845 if test -r "$use_asldir/$ampllib"; then
    21846   eval "$as_ac_File=yes"
    21847 else
    21848   eval "$as_ac_File=no"
    21849 fi
    21850 fi
    21851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21852 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21853 if test `eval echo '${'$as_ac_File'}'` = yes; then
     21916  if test -r $use_asldir/$ampllib; then
     21917
    2185421918  :
    2185521919else
     
    2185721921echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
    2185821922   { (exit 1); exit 1; }; }
    21859 fi
    21860 
    21861   as_ac_File=`echo "ac_cv_file_$use_asldir/asl.h" | $as_tr_sh`
    21862 echo "$as_me:$LINENO: checking for $use_asldir/asl.h" >&5
    21863 echo $ECHO_N "checking for $use_asldir/asl.h... $ECHO_C" >&6
    21864 if eval "test \"\${$as_ac_File+set}\" = set"; then
    21865   echo $ECHO_N "(cached) $ECHO_C" >&6
    21866 else
    21867   test "$cross_compiling" = yes &&
    21868   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    21869 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    21870    { (exit 1); exit 1; }; }
    21871 if test -r "$use_asldir/asl.h"; then
    21872   eval "$as_ac_File=yes"
    21873 else
    21874   eval "$as_ac_File=no"
    21875 fi
    21876 fi
    21877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    21878 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    21879 if test `eval echo '${'$as_ac_File'}'` = yes; then
     21923  :
     21924fi
     21925
     21926  if test -r $use_asldir/asl.h; then
     21927
    2188021928  :
    2188121929else
     
    2188321931echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
    2188421932   { (exit 1); exit 1; }; }
     21933  :
    2188521934fi
    2188621935
     
    2205522104
    2205622105# Finally, we let configure write all the output...
     22106
     22107
     22108
     22109
     22110echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
     22111echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
     22112coin_link_input_cmd="$LN_S"
     22113if test "$enable_doscompile" = mingw; then
     22114  coin_link_input_cmd=cp
     22115fi
     22116case "$CC" in
     22117  cl* | */cl* | CL* | */CL*)
     22118    coin_link_input_cmd=cp ;;
     22119esac
     22120echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
     22121echo "${ECHO_T}$coin_link_input_cmd" >&6
     22122
     22123
    2205722124
    2205822125if test x$coin_skip_ac_output != xyes; then
     
    2261022677cat >&5 <<_CSEOF
    2261122678
    22612 This file was extended by Cbc $as_me 0.1, which was
     22679This file was extended by Cbc $as_me 1.1.2, which was
    2261322680generated by GNU Autoconf 2.59.  Invocation command line was
    2261422681
     
    2267622743cat >>$CONFIG_STATUS <<_ACEOF
    2267722744ac_cs_version="\\
    22678 Cbc config.status 0.1
     22745Cbc config.status 1.1.2
    2267922746configured by $0, generated by GNU Autoconf 2.59,
    2268022747  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     
    2390223969
    2390323970  if test x"$coin_vpath_link_files" = x; then : ; else
    23904     lnkcmd=
    23905     if test "$enable_doscompile" = yes; then
    23906       lnkcmd=cp
    23907     fi
    23908     case "$CC" in
    23909       cl* | */cl* | CL* | */CL*)
    23910         lnkcmd=cp ;;
    23911     esac
     23971    lnkcmd="$coin_link_input_cmd"
    2391223972    if test "$lnkcmd" = cp; then
    2391323973      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
    2391423974echo "$as_me: Copying data files for VPATH configuration" >&6;}
    2391523975    else
    23916       echo "$as_me:$LINENO: checking whether ln -s works" >&5
    23917 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    23918 LN_S=$as_ln_s
    23919 if test "$LN_S" = "ln -s"; then
    23920   echo "$as_me:$LINENO: result: yes" >&5
    23921 echo "${ECHO_T}yes" >&6
    23922 else
    23923   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    23924 echo "${ECHO_T}no, using $LN_S" >&6
    23925 fi
    23926 
    2392723976      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
    2392823977echo "$as_me: Creating VPATH links for data files" >&6;}
    23929       lnkcmd="$LN_S"
    2393023978    fi
    2393123979    for file in $coin_vpath_link_files; do
Note: See TracChangeset for help on using the changeset viewer.