Changeset 710 for trunk/configure


Ignore:
Timestamp:
Jul 26, 2007 8:40:42 PM (13 years ago)
Author:
lou
Message:

Support for ThirdParty/Glpk?. Correct detection of SYMPHONY, should it ever be
pulled in as an external.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r640 r710  
    477477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
    478478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
     479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
    479480ac_subdirs_all="$ac_subdirs_all CoinUtils"
    480481ac_subdirs_all="$ac_subdirs_all Data/Netlib"
     
    487488ac_subdirs_all="$ac_subdirs_all Cgl"
    488489ac_subdirs_all="$ac_subdirs_all Cbc"
     490ac_subdirs_all="$ac_subdirs_all SYMPHONY"
    489491ac_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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    490492ac_subst_files=''
     
    17121714  case "${enableval}" in
    17131715   yes) coin_debug_compile=true
    1714         enable_shared=no
     1716        if test "${enable_shared+set}" = set; then :; else
     1717          enable_shared=no
     1718        fi
    17151719        ;;
    17161720   no)  coin_debug_compile=false
     
    26502654          cl* | */cl* | CL* | */CL*)
    26512655            coin_opt_cflags='-MT -O2'
    2652             coin_add_cflags='-nologo -wd4996'
     2656            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
    26532657            coin_dbg_cflags='-MTd'
    26542658            ;;
     
    33853389fi
    33863390
     3391# It seems that we need to cleanup something here for the Windows
     3392case "$CXX" in
     3393  cl* | */cl* | CL* | */CL* )
     3394    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
     3395    mv confdefs.hh confdefs.h
     3396    ;;
     3397esac
     3398
    33873399# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
    33883400case "$CXX" in
     
    34853497            # The MT and MTd options are mutually exclusive
    34863498            coin_opt_cxxflags='-MT -O2'
    3487             coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3499            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
    34883500            coin_dbg_cxxflags='-MTd'
    34893501            ;;
     
    38303842  *-cygwin* | *-mingw*)
    38313843     if test "$enable_doscompile" = msvc ; then
    3832        coin_f77_comps="ifort fl32"
     3844       coin_f77_comps="ifort fl32 compile_f2c"
    38333845     else
    3834        coin_f77_comps="gfortran g77 ifort fl32"
     3846       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
    38353847     fi ;;
    38363848  sparc-sun-solaris*)
     
    40074019
    40084020# Provide some information about the compiler.
    4009 echo "$as_me:4009:" \
     4021echo "$as_me:4021:" \
    40104022     "checking for Fortran 77 compiler version" >&5
    40114023ac_compiler=`set X $ac_compile; echo $2`
     
    42254237            coin_add_fflags='-fpp -nologo -MT'
    42264238            coin_dbg_fflags='-debug'
     4239          ;;
     4240          compile_f2c*)
     4241            coin_opt_fflags='-MT -O2'
     4242            coin_add_fflags='-nologo -wd4996'
     4243            coin_dbg_fflags='-MTd'
    42274244          ;;
    42284245        esac
     
    55185535    correct_version='1.5.22'
    55195536    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    5520     as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
    5521 echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
    5522 echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
    5523 if eval "test \"\${$as_ac_File+set}\" = set"; then
    5524   echo $ECHO_N "(cached) $ECHO_C" >&6
    5525 else
    5526   test "$cross_compiling" = yes &&
    5527   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    5528 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    5529    { (exit 1); exit 1; }; }
    5530 if test -r "$want_dir/libtool/ltmain.sh"; then
    5531   eval "$as_ac_File=yes"
    5532 else
    5533   eval "$as_ac_File=no"
    5534 fi
    5535 fi
    5536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    5537 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    5538 if test `eval echo '${'$as_ac_File'}'` = yes; then
     5537    if test -r $want_dir/libtool/ltmain.sh; then
    55395538  have_ltmain=yes
     5539  :
    55405540else
    55415541  have_ltmain=no
     5542  :
    55425543fi
    55435544
     
    55705571    want_dir=$AUTOTOOLS_DIR/share
    55715572  fi
    5572   as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
    5573 echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
    5574 echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
    5575 if eval "test \"\${$as_ac_File+set}\" = set"; then
    5576   echo $ECHO_N "(cached) $ECHO_C" >&6
    5577 else
    5578   test "$cross_compiling" = yes &&
    5579   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    5580 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    5581    { (exit 1); exit 1; }; }
    5582 if test -r "$want_dir/aclocal/libtool.m4"; then
    5583   eval "$as_ac_File=yes"
    5584 else
    5585   eval "$as_ac_File=no"
    5586 fi
    5587 fi
    5588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    5589 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    5590 if test `eval echo '${'$as_ac_File'}'` = yes; then
     5573  if test -r $want_dir/aclocal/libtool.m4; then
    55915574  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
     5575  :
    55925576else
    55935577  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
    55945578echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
    55955579   { (exit 1); exit 1; }; }
     5580  :
    55965581fi
    55975582
     
    62796264*-*-irix6*)
    62806265  # Find out which ABI we are using.
    6281   echo '#line 6281 "configure"' > conftest.$ac_ext
     6266  echo '#line 6266 "configure"' > conftest.$ac_ext
    62826267  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    62836268  (eval $ac_compile) 2>&5
     
    82438228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82448229   -e 's:$: $lt_compiler_flag:'`
    8245    (eval echo "\"\$as_me:8245: $lt_compile\"" >&5)
     8230   (eval echo "\"\$as_me:8230: $lt_compile\"" >&5)
    82468231   (eval "$lt_compile" 2>conftest.err)
    82478232   ac_status=$?
    82488233   cat conftest.err >&5
    8249    echo "$as_me:8249: \$? = $ac_status" >&5
     8234   echo "$as_me:8234: \$? = $ac_status" >&5
    82508235   if (exit $ac_status) && test -s "$ac_outfile"; then
    82518236     # The compiler can only warn and ignore the option if not recognized
     
    85118496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    85128497   -e 's:$: $lt_compiler_flag:'`
    8513    (eval echo "\"\$as_me:8513: $lt_compile\"" >&5)
     8498   (eval echo "\"\$as_me:8498: $lt_compile\"" >&5)
    85148499   (eval "$lt_compile" 2>conftest.err)
    85158500   ac_status=$?
    85168501   cat conftest.err >&5
    8517    echo "$as_me:8517: \$? = $ac_status" >&5
     8502   echo "$as_me:8502: \$? = $ac_status" >&5
    85188503   if (exit $ac_status) && test -s "$ac_outfile"; then
    85198504     # The compiler can only warn and ignore the option if not recognized
     
    86158600   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    86168601   -e 's:$: $lt_compiler_flag:'`
    8617    (eval echo "\"\$as_me:8617: $lt_compile\"" >&5)
     8602   (eval echo "\"\$as_me:8602: $lt_compile\"" >&5)
    86188603   (eval "$lt_compile" 2>out/conftest.err)
    86198604   ac_status=$?
    86208605   cat out/conftest.err >&5
    8621    echo "$as_me:8621: \$? = $ac_status" >&5
     8606   echo "$as_me:8606: \$? = $ac_status" >&5
    86228607   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    86238608   then
     
    1096010945  lt_status=$lt_dlunknown
    1096110946  cat > conftest.$ac_ext <<EOF
    10962 #line 10962 "configure"
     10947#line 10947 "configure"
    1096310948#include "confdefs.h"
    1096410949
     
    1106011045  lt_status=$lt_dlunknown
    1106111046  cat > conftest.$ac_ext <<EOF
    11062 #line 11062 "configure"
     11047#line 11047 "configure"
    1106311048#include "confdefs.h"
    1106411049
     
    1340413389   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1340513390   -e 's:$: $lt_compiler_flag:'`
    13406    (eval echo "\"\$as_me:13406: $lt_compile\"" >&5)
     13391   (eval echo "\"\$as_me:13391: $lt_compile\"" >&5)
    1340713392   (eval "$lt_compile" 2>conftest.err)
    1340813393   ac_status=$?
    1340913394   cat conftest.err >&5
    13410    echo "$as_me:13410: \$? = $ac_status" >&5
     13395   echo "$as_me:13395: \$? = $ac_status" >&5
    1341113396   if (exit $ac_status) && test -s "$ac_outfile"; then
    1341213397     # The compiler can only warn and ignore the option if not recognized
     
    1350813493   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1350913494   -e 's:$: $lt_compiler_flag:'`
    13510    (eval echo "\"\$as_me:13510: $lt_compile\"" >&5)
     13495   (eval echo "\"\$as_me:13495: $lt_compile\"" >&5)
    1351113496   (eval "$lt_compile" 2>out/conftest.err)
    1351213497   ac_status=$?
    1351313498   cat out/conftest.err >&5
    13514    echo "$as_me:13514: \$? = $ac_status" >&5
     13499   echo "$as_me:13499: \$? = $ac_status" >&5
    1351513500   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1351613501   then
     
    1507815063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1507915064   -e 's:$: $lt_compiler_flag:'`
    15080    (eval echo "\"\$as_me:15080: $lt_compile\"" >&5)
     15065   (eval echo "\"\$as_me:15065: $lt_compile\"" >&5)
    1508115066   (eval "$lt_compile" 2>conftest.err)
    1508215067   ac_status=$?
    1508315068   cat conftest.err >&5
    15084    echo "$as_me:15084: \$? = $ac_status" >&5
     15069   echo "$as_me:15069: \$? = $ac_status" >&5
    1508515070   if (exit $ac_status) && test -s "$ac_outfile"; then
    1508615071     # The compiler can only warn and ignore the option if not recognized
     
    1518215167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1518315168   -e 's:$: $lt_compiler_flag:'`
    15184    (eval echo "\"\$as_me:15184: $lt_compile\"" >&5)
     15169   (eval echo "\"\$as_me:15169: $lt_compile\"" >&5)
    1518515170   (eval "$lt_compile" 2>out/conftest.err)
    1518615171   ac_status=$?
    1518715172   cat out/conftest.err >&5
    15188    echo "$as_me:15188: \$? = $ac_status" >&5
     15173   echo "$as_me:15173: \$? = $ac_status" >&5
    1518915174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1519015175   then
     
    1738917374   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1739017375   -e 's:$: $lt_compiler_flag:'`
    17391    (eval echo "\"\$as_me:17391: $lt_compile\"" >&5)
     17376   (eval echo "\"\$as_me:17376: $lt_compile\"" >&5)
    1739217377   (eval "$lt_compile" 2>conftest.err)
    1739317378   ac_status=$?
    1739417379   cat conftest.err >&5
    17395    echo "$as_me:17395: \$? = $ac_status" >&5
     17380   echo "$as_me:17380: \$? = $ac_status" >&5
    1739617381   if (exit $ac_status) && test -s "$ac_outfile"; then
    1739717382     # The compiler can only warn and ignore the option if not recognized
     
    1765717642   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1765817643   -e 's:$: $lt_compiler_flag:'`
    17659    (eval echo "\"\$as_me:17659: $lt_compile\"" >&5)
     17644   (eval echo "\"\$as_me:17644: $lt_compile\"" >&5)
    1766017645   (eval "$lt_compile" 2>conftest.err)
    1766117646   ac_status=$?
    1766217647   cat conftest.err >&5
    17663    echo "$as_me:17663: \$? = $ac_status" >&5
     17648   echo "$as_me:17648: \$? = $ac_status" >&5
    1766417649   if (exit $ac_status) && test -s "$ac_outfile"; then
    1766517650     # The compiler can only warn and ignore the option if not recognized
     
    1776117746   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1776217747   -e 's:$: $lt_compiler_flag:'`
    17763    (eval echo "\"\$as_me:17763: $lt_compile\"" >&5)
     17748   (eval echo "\"\$as_me:17748: $lt_compile\"" >&5)
    1776417749   (eval "$lt_compile" 2>out/conftest.err)
    1776517750   ac_status=$?
    1776617751   cat out/conftest.err >&5
    17767    echo "$as_me:17767: \$? = $ac_status" >&5
     17752   echo "$as_me:17752: \$? = $ac_status" >&5
    1776817753   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1776917754   then
     
    2046820453  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
    2046920454echo "$as_me: Build is \"$build\"." >&6;}
     20455  mydos2unix='| dos2unix'
    2047020456  case $build in
    2047120457    *-mingw*)
    2047220458      CYGPATH_W=echo
     20459      mydos2unix=
    2047320460      ;;
    2047420461  esac
     
    2049620483            -e 's%lib /OUT:%lib -OUT:%' \
    2049720484            -e "s%cygpath -w%$CYGPATH_W%" \
    20498             -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%' \
     20485            -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%' \
    2049920486            -e 's/$AR t/lib -nologo -list/' \
    2050020487            -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
     
    2074320730fi
    2074420731
     20732echo "$as_me:$LINENO: checking whether code for third party package Glpk is available" >&5
     20733echo $ECHO_N "checking whether code for third party package Glpk is available... $ECHO_C" >&6
     20734coin_skip=no
     20735if test x"$COIN_SKIP_PROJECTS" != x; then
     20736  for dir in $COIN_SKIP_PROJECTS; do
     20737    if test $dir = ThirdParty/Glpk; then
     20738      coin_skip=yes
     20739    fi
     20740  done
     20741fi
     20742if test $coin_skip = yes; then
     20743  echo "$as_me:$LINENO: result: skipping" >&5
     20744echo "${ECHO_T}skipping" >&6
     20745else
     20746  coin_tmp=`echo $srcdir/ThirdParty/Glpk/glpk/src/glplpx01.c`
     20747  # There is probably a more elegant way to get the first thing out here...
     20748  for i in $coin_tmp; do
     20749    coin_tmp2=$i
     20750    #break 1
     20751  done
     20752  if test -r $coin_tmp2; then
     20753    coin_subdirs="$coin_subdirs ThirdParty/Glpk"
     20754    echo "$as_me:$LINENO: result: yes" >&5
     20755echo "${ECHO_T}yes" >&6
     20756
     20757
     20758subdirs="$subdirs ThirdParty/Glpk"
     20759
     20760  else
     20761    echo "$as_me:$LINENO: result: no" >&5
     20762echo "${ECHO_T}no" >&6
     20763  fi
     20764fi
     20765
    2074520766
    2074620767#############################################################################
     
    2112921150
    2113021151
     21152
     21153echo "$as_me:$LINENO: checking whether directory SYMPHONY is available" >&5
     21154echo $ECHO_N "checking whether directory SYMPHONY is available... $ECHO_C" >&6
     21155                coin_skip=no
     21156                if test x"$COIN_SKIP_PROJECTS" != x; then
     21157                  for dir in $COIN_SKIP_PROJECTS; do
     21158                    if test $dir = SYMPHONY; then
     21159                      coin_skip=yes
     21160                    fi
     21161                  done
     21162                fi
     21163                if test $coin_skip = yes; then
     21164                  echo "$as_me:$LINENO: result: skipping" >&5
     21165echo "${ECHO_T}skipping" >&6
     21166                elif test -r $srcdir/SYMPHONY/configure; then
     21167                  coin_subdirs="$coin_subdirs SYMPHONY"
     21168                  echo "$as_me:$LINENO: result: yes" >&5
     21169echo "${ECHO_T}yes" >&6
     21170
     21171
     21172subdirs="$subdirs SYMPHONY"
     21173
     21174                else
     21175                  echo "$as_me:$LINENO: result: no" >&5
     21176echo "${ECHO_T}no" >&6
     21177                fi
     21178
     21179
     21180
     21181
     21182
     21183
     21184
     21185
     21186
     21187
     21188
     21189
    2113121190##############################################################################
    2113221191#                   Finishing up by writing all the output                   #
     
    2113921198
    2114021199# Finally, we let configure write all the output...
     21200
     21201
     21202
     21203
     21204echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
     21205echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
     21206coin_link_input_cmd="$LN_S"
     21207if test "$enable_doscompile" = mingw; then
     21208  coin_link_input_cmd=cp
     21209fi
     21210case "$CC" in
     21211  cl* | */cl* | CL* | */CL*)
     21212    coin_link_input_cmd=cp ;;
     21213esac
     21214echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
     21215echo "${ECHO_T}$coin_link_input_cmd" >&6
     21216
     21217
    2114121218
    2114221219if test x$coin_skip_ac_output != xyes; then
     
    2261322690
    2261422691  if test x"$coin_vpath_link_files" = x; then : ; else
    22615     lnkcmd=
    22616     if test "$enable_doscompile" = yes; then
    22617       lnkcmd=cp
    22618     fi
    22619     case "$CC" in
    22620       cl* | */cl* | CL* | */CL*)
    22621         lnkcmd=cp ;;
    22622     esac
     22692    lnkcmd="$coin_link_input_cmd"
    2262322693    if test "$lnkcmd" = cp; then
    2262422694      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
    2262522695echo "$as_me: Copying data files for VPATH configuration" >&6;}
    2262622696    else
    22627       echo "$as_me:$LINENO: checking whether ln -s works" >&5
    22628 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    22629 LN_S=$as_ln_s
    22630 if test "$LN_S" = "ln -s"; then
    22631   echo "$as_me:$LINENO: result: yes" >&5
    22632 echo "${ECHO_T}yes" >&6
    22633 else
    22634   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    22635 echo "${ECHO_T}no, using $LN_S" >&6
    22636 fi
    22637 
    2263822697      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
    2263922698echo "$as_me: Creating VPATH links for data files" >&6;}
    22640       lnkcmd="$LN_S"
    2264122699    fi
    2264222700    for file in $coin_vpath_link_files; do
Note: See TracChangeset for help on using the changeset viewer.