Changeset 1489
- Timestamp:
- Jul 25, 2010 3:58:37 PM (11 years ago)
- Location:
- trunk/Cbc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cbc/configure
r1486 r1489 473 473 #endif" 474 474 475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA REQUIREDPACKAGES COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA REQUIREDPACKAGES COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1122 1122 --with-clp-incdir directory with header files for using module Clp 1123 1123 --with-clp-datadir directory with data files for using module Clp 1124 --with-dylp-lib linker flags for using module DyLP1125 --with-dylp-incdir directory with header files for using module DyLP1126 --with-dylp-datadir directory with data files for using module DyLP1127 --with-vol-lib linker flags for using module Vol1128 --with-vol-incdir directory with header files for using module Vol1129 --with-vol-datadir directory with data files for using module Vol1130 1124 --with-ositests-lib linker flags for using module OsiTests 1131 1125 --with-ositests-incdir directory with header files for using module OsiTests … … 1140 1134 --with-miplib3-incdir directory with header files for using module Miplib3 1141 1135 --with-miplib3-datadir directory with data files for using module Miplib3 1136 --with-dylp-lib linker flags for using module DyLP 1137 --with-dylp-incdir directory with header files for using module DyLP 1138 --with-dylp-datadir directory with data files for using module DyLP 1139 --with-vol-lib linker flags for using module Vol 1140 --with-vol-incdir directory with header files for using module Vol 1141 --with-vol-datadir directory with data files for using module Vol 1142 1142 --with-cpx-lib linker flags for using module Cpx 1143 1143 --with-cpx-incdir directory with header files for using module Cpx … … 20829 20829 export PKG_CONFIG_PATH 20830 20830 else 20831 #if 4th argument is given, try fallback - whereby we take the first word from coinutils = trunk osi cgl as basename for the .pc file 20832 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 20833 echo "${ECHO_T}skipped check via pkg-config" >&6 20831 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 20832 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 20833 20834 echo "$as_me:$LINENO: checking for COIN-OR module CoinDepend (fallback)" >&5 20835 echo $ECHO_N "checking for COIN-OR module CoinDepend (fallback)... $ECHO_C" >&6 20836 20837 coin_has_coindepend=notGiven 20838 COINDEPEND_LIBS= 20839 COINDEPEND_CFLAGS= 20840 COINDEPEND_DATA= 20841 20842 20843 # initial list of dependencies is "coinutils = trunk osi cgl", but we need to filter out version number specifications (= x, <= x, >= x) 20844 projtoprocess="coinutils osi cgl" 20845 projprocessed="" 20846 20847 while test $coin_has_coindepend = notGiven ; do 20848 # setup list of projects that need to be processed in the next round 20849 nextprojtoprocess="" 20850 20851 for proj in $projtoprocess ; do 20852 # if $proj has been processed already, skip this round 20853 if test "x$projprocessed" != x ; then 20854 for projdone in $projprocessed ; do 20855 if test $projdone = $proj ; then 20856 continue 2 20857 fi 20858 done 20859 fi 20860 20861 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 20862 pcfile="" 20863 save_IFS="$IFS" 20864 IFS=":" 20865 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 20866 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 20867 if test -r "$dir/$proj-uninstalled.pc" ; then 20868 pcfile="$dir/$proj-uninstalled.pc" 20869 pcfiledir="$dir" 20870 break 20871 fi 20872 done 20873 IFS="$save_IFS" 20874 20875 if test "x$pcfile" != x ; then 20876 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 20877 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 20878 COINDEPEND_CFLAGS="$projcflags $COINDEPEND_CFLAGS" 20879 20880 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 20881 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 20882 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 20883 if test "x$projlibs" != x ; then 20884 if test -d "${pcfiledir}/src" ; then 20885 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 20886 else 20887 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 20888 fi 20889 else 20890 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 20891 fi 20892 COINDEPEND_LIBS="$projlibs $COINDEPEND_LIBS" 20893 20894 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 20895 if test "x$projprocessed" = x ; then 20896 COINDEPEND_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 20897 fi 20898 20899 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 20900 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 20901 nextprojtoprocess="$nextprojtoprocess $projrequires" 20902 20903 # remember that we have processed $proj 20904 projprocessed="$projprocessed $proj" 20905 20906 else 20907 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 20908 echo "${ECHO_T}no, dependency $proj not available" >&6 20909 break 2 20910 fi 20911 20912 done 20913 20914 projtoprocess="$nextprojtoprocess" 20915 20916 if test "x$projtoprocess" = x ; then 20917 coin_has_coindepend=yes 20918 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 20919 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 20920 20921 REQUIREDPACKAGES="coinutils = trunk osi cgl $REQUIREDPACKAGES" 20922 20923 cat >>confdefs.h <<\_ACEOF 20924 #define COIN_HAS_COINDEPEND 1 20925 _ACEOF 20926 20927 20928 if test 1 = 0 ; then #change this test to enable a bit of debugging output 20929 if test -n "$COINDEPEND_CFLAGS" ; then 20930 { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5 20931 echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;} 20932 fi 20933 if test -n "$COINDEPEND_LIBS" ; then 20934 { echo "$as_me:$LINENO: CoinDepend LIBS are $COINDEPEND_LIBS" >&5 20935 echo "$as_me: CoinDepend LIBS are $COINDEPEND_LIBS" >&6;} 20936 fi 20937 if test -n "$COINDEPEND_DATA" ; then 20938 { echo "$as_me:$LINENO: CoinDepend DATA is $COINDEPEND_DATA" >&5 20939 echo "$as_me: CoinDepend DATA is $COINDEPEND_DATA" >&6;} 20940 fi 20941 fi 20942 fi 20943 done 20944 20945 20946 20947 if test $coin_has_coindepend != notGiven && 20948 test $coin_has_coindepend != skipping; then 20949 COIN_HAS_COINDEPEND_TRUE= 20950 COIN_HAS_COINDEPEND_FALSE='#' 20951 else 20952 COIN_HAS_COINDEPEND_TRUE='#' 20953 COIN_HAS_COINDEPEND_FALSE= 20954 fi 20955 20956 20834 20957 20835 20958 fi … … 20877 21000 20878 21001 20879 if test $coin_has_coindepend != yes ; then20880 #if we have to use the fallback routines, then obviously it will not find CoinUtils dependencies20881 #thus, we check whether ThirdParty/Blas, ThirdParty/Lapack, and ThirdParty/Glpk have been setup and20882 #assume that if present then they are dependencies of CoinUtils20883 20884 if test x$coin_has_blas != "xyes" ; then20885 20886 echo "$as_me:$LINENO: checking for COIN-OR module Blas (fallback)" >&520887 echo $ECHO_N "checking for COIN-OR module Blas (fallback)... $ECHO_C" >&620888 20889 coin_has_blas=notGiven20890 20891 # check if user wants to skip module in any case20892 if test x"$COIN_SKIP_PROJECTS" != x; then20893 for dir in $COIN_SKIP_PROJECTS; do20894 if test $dir = "Blas"; then20895 coin_has_blas=skipping20896 fi20897 done20898 fi20899 20900 BLAS_LIBS=20901 BLAS_CFLAGS=20902 BLAS_DATA=20903 20904 20905 if test $coin_has_blas != "skipping" ; then20906 # if the project is available and configured, then a project-uninstalled.pc file should have been created20907 if test -r ../ThirdParty/Blas/coinblas-uninstalled.pc ; then20908 # read CFLAGS and LIBS from coinblas-uninstalled.pc file20909 # add CYGPATH_W cludge into include flags20910 # replace -L${libdir} by absolute path to build directory in linker flags20911 # we assume that the build directory is ../ThirdParty/Blas/src if this directory exists, otherwise we assume that it is ../ThirdParty/Blas20912 BLAS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/Blas/coinblas-uninstalled.pc`20913 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/Blas/coinblas-uninstalled.pc`20914 if test "x$projectlibs" != x ; then20915 if test -d ../ThirdParty/Blas/src ; then20916 BLAS_LIBS="-L`cd ../ThirdParty/Blas/src; pwd` $projectlibs"20917 else20918 BLAS_LIBS="-L`cd ../ThirdParty/Blas; pwd` $projectlibs"20919 fi20920 else20921 BLAS_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/Blas/coinblas-uninstalled.pc`20922 fi20923 BLAS_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/Blas/coinblas-uninstalled.pc`20924 20925 20926 20927 20928 20929 coin_has_blas=yes20930 echo "$as_me:$LINENO: result: ../ThirdParty/Blas" >&520931 echo "${ECHO_T}../ThirdParty/Blas" >&620932 else20933 echo "$as_me:$LINENO: result: $coin_has_blas" >&520934 echo "${ECHO_T}$coin_has_blas" >&620935 fi20936 else20937 echo "$as_me:$LINENO: result: skipping" >&520938 echo "${ECHO_T}skipping" >&620939 fi20940 20941 #if user did not disable setting of makefile conditional, do it20942 20943 fi20944 20945 20946 if test x$coin_has_lapack != "xyes" ; then20947 20948 echo "$as_me:$LINENO: checking for COIN-OR module Lapack (fallback)" >&520949 echo $ECHO_N "checking for COIN-OR module Lapack (fallback)... $ECHO_C" >&620950 20951 coin_has_lapack=notGiven20952 20953 # check if user wants to skip module in any case20954 if test x"$COIN_SKIP_PROJECTS" != x; then20955 for dir in $COIN_SKIP_PROJECTS; do20956 if test $dir = "Lapack"; then20957 coin_has_lapack=skipping20958 fi20959 done20960 fi20961 20962 LAPACK_LIBS=20963 LAPACK_CFLAGS=20964 LAPACK_DATA=20965 20966 20967 if test $coin_has_lapack != "skipping" ; then20968 # if the project is available and configured, then a project-uninstalled.pc file should have been created20969 if test -r ../ThirdParty/Lapack/coinlapack-uninstalled.pc ; then20970 # read CFLAGS and LIBS from coinlapack-uninstalled.pc file20971 # add CYGPATH_W cludge into include flags20972 # replace -L${libdir} by absolute path to build directory in linker flags20973 # we assume that the build directory is ../ThirdParty/Lapack/src if this directory exists, otherwise we assume that it is ../ThirdParty/Lapack20974 LAPACK_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/Lapack/coinlapack-uninstalled.pc`20975 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/Lapack/coinlapack-uninstalled.pc`20976 if test "x$projectlibs" != x ; then20977 if test -d ../ThirdParty/Lapack/src ; then20978 LAPACK_LIBS="-L`cd ../ThirdParty/Lapack/src; pwd` $projectlibs"20979 else20980 LAPACK_LIBS="-L`cd ../ThirdParty/Lapack; pwd` $projectlibs"20981 fi20982 else20983 LAPACK_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/Lapack/coinlapack-uninstalled.pc`20984 fi20985 LAPACK_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/Lapack/coinlapack-uninstalled.pc`20986 20987 20988 20989 20990 20991 coin_has_lapack=yes20992 echo "$as_me:$LINENO: result: ../ThirdParty/Lapack" >&520993 echo "${ECHO_T}../ThirdParty/Lapack" >&620994 else20995 echo "$as_me:$LINENO: result: $coin_has_lapack" >&520996 echo "${ECHO_T}$coin_has_lapack" >&620997 fi20998 else20999 echo "$as_me:$LINENO: result: skipping" >&521000 echo "${ECHO_T}skipping" >&621001 fi21002 21003 #if user did not disable setting of makefile conditional, do it21004 21005 fi21006 21007 21008 if test x$coin_has_glpk != "xyes" ; then21009 21010 echo "$as_me:$LINENO: checking for COIN-OR module Glpk (fallback)" >&521011 echo $ECHO_N "checking for COIN-OR module Glpk (fallback)... $ECHO_C" >&621012 21013 coin_has_glpk=notGiven21014 21015 # check if user wants to skip module in any case21016 if test x"$COIN_SKIP_PROJECTS" != x; then21017 for dir in $COIN_SKIP_PROJECTS; do21018 if test $dir = "Glpk"; then21019 coin_has_glpk=skipping21020 fi21021 done21022 fi21023 21024 GLPK_LIBS=21025 GLPK_CFLAGS=21026 GLPK_DATA=21027 21028 21029 if test $coin_has_glpk != "skipping" ; then21030 # if the project is available and configured, then a project-uninstalled.pc file should have been created21031 if test -r ../ThirdParty/Glpk/coinglpk-uninstalled.pc ; then21032 # read CFLAGS and LIBS from coinglpk-uninstalled.pc file21033 # add CYGPATH_W cludge into include flags21034 # replace -L${libdir} by absolute path to build directory in linker flags21035 # we assume that the build directory is ../ThirdParty/Glpk/src if this directory exists, otherwise we assume that it is ../ThirdParty/Glpk21036 GLPK_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/Glpk/coinglpk-uninstalled.pc`21037 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/Glpk/coinglpk-uninstalled.pc`21038 if test "x$projectlibs" != x ; then21039 if test -d ../ThirdParty/Glpk/src ; then21040 GLPK_LIBS="-L`cd ../ThirdParty/Glpk/src; pwd` $projectlibs"21041 else21042 GLPK_LIBS="-L`cd ../ThirdParty/Glpk; pwd` $projectlibs"21043 fi21044 else21045 GLPK_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/Glpk/coinglpk-uninstalled.pc`21046 fi21047 GLPK_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/Glpk/coinglpk-uninstalled.pc`21048 21049 21050 21051 21052 21053 coin_has_glpk=yes21054 echo "$as_me:$LINENO: result: ../ThirdParty/Glpk" >&521055 echo "${ECHO_T}../ThirdParty/Glpk" >&621056 else21057 echo "$as_me:$LINENO: result: $coin_has_glpk" >&521058 echo "${ECHO_T}$coin_has_glpk" >&621059 fi21060 else21061 echo "$as_me:$LINENO: result: skipping" >&521062 echo "${ECHO_T}skipping" >&621063 fi21064 21065 #if user did not disable setting of makefile conditional, do it21066 21067 fi21068 21069 21070 if test x$coin_has_coinutils != "xyes" ; then21071 21072 echo "$as_me:$LINENO: checking for COIN-OR module CoinUtils (fallback)" >&521073 echo $ECHO_N "checking for COIN-OR module CoinUtils (fallback)... $ECHO_C" >&621074 21075 coin_has_coinutils=notGiven21076 21077 # check if user wants to skip module in any case21078 if test x"$COIN_SKIP_PROJECTS" != x; then21079 for dir in $COIN_SKIP_PROJECTS; do21080 if test $dir = "CoinUtils"; then21081 coin_has_coinutils=skipping21082 fi21083 done21084 fi21085 21086 COINUTILS_LIBS=21087 COINUTILS_CFLAGS=21088 COINUTILS_DATA=21089 21090 21091 if test $coin_has_coinutils != "skipping" ; then21092 # if the project is available and configured, then a project-uninstalled.pc file should have been created21093 if test -r ../CoinUtils/coinutils-uninstalled.pc ; then21094 # read CFLAGS and LIBS from coinutils-uninstalled.pc file21095 # add CYGPATH_W cludge into include flags21096 # replace -L${libdir} by absolute path to build directory in linker flags21097 # we assume that the build directory is ../CoinUtils/src if this directory exists, otherwise we assume that it is ../CoinUtils21098 COINUTILS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../CoinUtils/coinutils-uninstalled.pc`21099 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../CoinUtils/coinutils-uninstalled.pc`21100 if test "x$projectlibs" != x ; then21101 if test -d ../CoinUtils/src ; then21102 COINUTILS_LIBS="-L`cd ../CoinUtils/src; pwd` $projectlibs"21103 else21104 COINUTILS_LIBS="-L`cd ../CoinUtils; pwd` $projectlibs"21105 fi21106 else21107 COINUTILS_LIBS=`sed -n -e 's/Libs://p' ../CoinUtils/coinutils-uninstalled.pc`21108 fi21109 COINUTILS_DATA=`sed -n -e 's/datadir=//gp' ../CoinUtils/coinutils-uninstalled.pc`21110 21111 REQUIREDPACKAGES="coinutils $REQUIREDPACKAGES"21112 21113 21114 21115 21116 coin_has_coinutils=yes21117 echo "$as_me:$LINENO: result: ../CoinUtils" >&521118 echo "${ECHO_T}../CoinUtils" >&621119 else21120 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&521121 echo "${ECHO_T}$coin_has_coinutils" >&621122 fi21123 else21124 echo "$as_me:$LINENO: result: skipping" >&521125 echo "${ECHO_T}skipping" >&621126 fi21127 21128 #if user did not disable setting of makefile conditional, do it21129 21130 fi21131 21132 21133 if test x$coin_has_osi != "xyes" ; then21134 21135 echo "$as_me:$LINENO: checking for COIN-OR module Osi (fallback)" >&521136 echo $ECHO_N "checking for COIN-OR module Osi (fallback)... $ECHO_C" >&621137 21138 coin_has_osi=notGiven21139 21140 # check if user wants to skip module in any case21141 if test x"$COIN_SKIP_PROJECTS" != x; then21142 for dir in $COIN_SKIP_PROJECTS; do21143 if test $dir = "Osi"; then21144 coin_has_osi=skipping21145 fi21146 done21147 fi21148 21149 OSI_LIBS=21150 OSI_CFLAGS=21151 OSI_DATA=21152 21153 21154 if test $coin_has_osi != "skipping" ; then21155 # if the project is available and configured, then a project-uninstalled.pc file should have been created21156 if test -r ../Osi/osi-uninstalled.pc ; then21157 # read CFLAGS and LIBS from osi-uninstalled.pc file21158 # add CYGPATH_W cludge into include flags21159 # replace -L${libdir} by absolute path to build directory in linker flags21160 # we assume that the build directory is ../Osi/src if this directory exists, otherwise we assume that it is ../Osi21161 OSI_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Osi/osi-uninstalled.pc`21162 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Osi/osi-uninstalled.pc`21163 if test "x$projectlibs" != x ; then21164 if test -d ../Osi/src ; then21165 OSI_LIBS="-L`cd ../Osi/src; pwd` $projectlibs"21166 else21167 OSI_LIBS="-L`cd ../Osi; pwd` $projectlibs"21168 fi21169 else21170 OSI_LIBS=`sed -n -e 's/Libs://p' ../Osi/osi-uninstalled.pc`21171 fi21172 OSI_DATA=`sed -n -e 's/datadir=//gp' ../Osi/osi-uninstalled.pc`21173 21174 REQUIREDPACKAGES="osi $REQUIREDPACKAGES"21175 21176 21177 21178 21179 coin_has_osi=yes21180 echo "$as_me:$LINENO: result: ../Osi" >&521181 echo "${ECHO_T}../Osi" >&621182 else21183 echo "$as_me:$LINENO: result: $coin_has_osi" >&521184 echo "${ECHO_T}$coin_has_osi" >&621185 fi21186 else21187 echo "$as_me:$LINENO: result: skipping" >&521188 echo "${ECHO_T}skipping" >&621189 fi21190 21191 #if user did not disable setting of makefile conditional, do it21192 21193 fi21194 21195 21196 if test x$coin_has_cgl != "xyes" ; then21197 21198 echo "$as_me:$LINENO: checking for COIN-OR module Cgl (fallback)" >&521199 echo $ECHO_N "checking for COIN-OR module Cgl (fallback)... $ECHO_C" >&621200 21201 coin_has_cgl=notGiven21202 21203 # check if user wants to skip module in any case21204 if test x"$COIN_SKIP_PROJECTS" != x; then21205 for dir in $COIN_SKIP_PROJECTS; do21206 if test $dir = "Cgl"; then21207 coin_has_cgl=skipping21208 fi21209 done21210 fi21211 21212 CGL_LIBS=21213 CGL_CFLAGS=21214 CGL_DATA=21215 21216 21217 if test $coin_has_cgl != "skipping" ; then21218 # if the project is available and configured, then a project-uninstalled.pc file should have been created21219 if test -r ../Cgl/cgl-uninstalled.pc ; then21220 # read CFLAGS and LIBS from cgl-uninstalled.pc file21221 # add CYGPATH_W cludge into include flags21222 # replace -L${libdir} by absolute path to build directory in linker flags21223 # we assume that the build directory is ../Cgl/src if this directory exists, otherwise we assume that it is ../Cgl21224 CGL_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Cgl/cgl-uninstalled.pc`21225 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Cgl/cgl-uninstalled.pc`21226 if test "x$projectlibs" != x ; then21227 if test -d ../Cgl/src ; then21228 CGL_LIBS="-L`cd ../Cgl/src; pwd` $projectlibs"21229 else21230 CGL_LIBS="-L`cd ../Cgl; pwd` $projectlibs"21231 fi21232 else21233 CGL_LIBS=`sed -n -e 's/Libs://p' ../Cgl/cgl-uninstalled.pc`21234 fi21235 CGL_DATA=`sed -n -e 's/datadir=//gp' ../Cgl/cgl-uninstalled.pc`21236 21237 REQUIREDPACKAGES="cgl $REQUIREDPACKAGES"21238 21239 21240 21241 21242 coin_has_cgl=yes21243 echo "$as_me:$LINENO: result: ../Cgl" >&521244 echo "${ECHO_T}../Cgl" >&621245 else21246 echo "$as_me:$LINENO: result: $coin_has_cgl" >&521247 echo "${ECHO_T}$coin_has_cgl" >&621248 fi21249 else21250 echo "$as_me:$LINENO: result: skipping" >&521251 echo "${ECHO_T}skipping" >&621252 fi21253 21254 #if user did not disable setting of makefile conditional, do it21255 21256 fi21257 21258 COINDEPEND_LIBS="$CGL_LIBS $OSI_LIBS $COINUTILS_LIBS $LAPACK_LIBS $BLAS_LIBS $GLPK_LIBS"21259 COINDEPEND_CFLAGS="$COINUTILS_CFLAGS $GLPK_CFLAGS $OSI_CFLAGS $CGL_CFLAGS"21260 if test "${coin_has_coinutils}${coin_has_osi}${coin_has_cgl}" = yesyesyes ; then21261 coin_has_coindepend=yes21262 21263 cat >>confdefs.h <<\_ACEOF21264 #define COIN_HAS_COINDEPEND 121265 _ACEOF21266 21267 21268 21269 if test $coin_has_coindepend = yes; then21270 COIN_HAS_COINDEPEND_TRUE=21271 COIN_HAS_COINDEPEND_FALSE='#'21272 else21273 COIN_HAS_COINDEPEND_TRUE='#'21274 COIN_HAS_COINDEPEND_FALSE=21275 fi21276 21277 fi21278 fi21279 21002 if test $coin_has_coindepend != yes ; then 21280 21003 { { echo "$as_me:$LINENO: error: Required package CoinUtils, Osi, or Cgl not available." >&5 … … 21388 21111 export PKG_CONFIG_PATH 21389 21112 else 21390 #if 4th argument is given, try fallback - whereby we take the first word from osi-clp as basename for the .pc file 21391 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 21392 echo "${ECHO_T}skipped check via pkg-config" >&6 21113 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 21114 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 21115 21116 echo "$as_me:$LINENO: checking for COIN-OR module Clp (fallback)" >&5 21117 echo $ECHO_N "checking for COIN-OR module Clp (fallback)... $ECHO_C" >&6 21118 21119 coin_has_clp=notGiven 21120 CLP_LIBS= 21121 CLP_CFLAGS= 21122 CLP_DATA= 21123 21124 21125 # initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x) 21126 projtoprocess="osi-clp" 21127 projprocessed="" 21128 21129 while test $coin_has_clp = notGiven ; do 21130 # setup list of projects that need to be processed in the next round 21131 nextprojtoprocess="" 21132 21133 for proj in $projtoprocess ; do 21134 # if $proj has been processed already, skip this round 21135 if test "x$projprocessed" != x ; then 21136 for projdone in $projprocessed ; do 21137 if test $projdone = $proj ; then 21138 continue 2 21139 fi 21140 done 21141 fi 21142 21143 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21144 pcfile="" 21145 save_IFS="$IFS" 21146 IFS=":" 21147 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 21148 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 21149 if test -r "$dir/$proj-uninstalled.pc" ; then 21150 pcfile="$dir/$proj-uninstalled.pc" 21151 pcfiledir="$dir" 21152 break 21153 fi 21154 done 21155 IFS="$save_IFS" 21156 21157 if test "x$pcfile" != x ; then 21158 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21159 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 21160 CLP_CFLAGS="$projcflags $CLP_CFLAGS" 21161 21162 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21163 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21164 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21165 if test "x$projlibs" != x ; then 21166 if test -d "${pcfiledir}/src" ; then 21167 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21168 else 21169 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21170 fi 21171 else 21172 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21173 fi 21174 CLP_LIBS="$projlibs $CLP_LIBS" 21175 21176 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 21177 if test "x$projprocessed" = x ; then 21178 CLP_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 21179 fi 21180 21181 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 21182 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 21183 nextprojtoprocess="$nextprojtoprocess $projrequires" 21184 21185 # remember that we have processed $proj 21186 projprocessed="$projprocessed $proj" 21187 21188 else 21189 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21190 echo "${ECHO_T}no, dependency $proj not available" >&6 21191 break 2 21192 fi 21193 21194 done 21195 21196 projtoprocess="$nextprojtoprocess" 21197 21198 if test "x$projtoprocess" = x ; then 21199 coin_has_clp=yes 21200 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 21201 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 21202 21203 REQUIREDPACKAGES="osi-clp $REQUIREDPACKAGES" 21204 21205 cat >>confdefs.h <<\_ACEOF 21206 #define COIN_HAS_CLP 1 21207 _ACEOF 21208 21209 21210 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21211 if test -n "$CLP_CFLAGS" ; then 21212 { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5 21213 echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;} 21214 fi 21215 if test -n "$CLP_LIBS" ; then 21216 { echo "$as_me:$LINENO: Clp LIBS are $CLP_LIBS" >&5 21217 echo "$as_me: Clp LIBS are $CLP_LIBS" >&6;} 21218 fi 21219 if test -n "$CLP_DATA" ; then 21220 { echo "$as_me:$LINENO: Clp DATA is $CLP_DATA" >&5 21221 echo "$as_me: Clp DATA is $CLP_DATA" >&6;} 21222 fi 21223 fi 21224 fi 21225 done 21226 21227 21228 21229 if test $coin_has_clp != notGiven && 21230 test $coin_has_clp != skipping; then 21231 COIN_HAS_CLP_TRUE= 21232 COIN_HAS_CLP_FALSE='#' 21233 else 21234 COIN_HAS_CLP_TRUE='#' 21235 COIN_HAS_CLP_FALSE= 21236 fi 21237 21238 21393 21239 21394 21240 fi … … 21437 21283 21438 21284 if test $coin_has_clp != yes ; then 21439 # OsiClp depends on Clp 21440 # so if Clp is there, then we assume that also OsiClp will be there and add the corresponding flags to the Clp flags 21441 21442 if test x$coin_has_clp != "xyes" ; then 21443 21444 echo "$as_me:$LINENO: checking for COIN-OR module Clp (fallback)" >&5 21445 echo $ECHO_N "checking for COIN-OR module Clp (fallback)... $ECHO_C" >&6 21446 21447 coin_has_clp=notGiven 21285 { { echo "$as_me:$LINENO: error: \"Required package Clp unavailable.\"" >&5 21286 echo "$as_me: error: \"Required package Clp unavailable.\"" >&2;} 21287 { (exit 1); exit 1; }; } 21288 fi 21289 21290 21291 echo "$as_me:$LINENO: checking for COIN-OR module OsiTests" >&5 21292 echo $ECHO_N "checking for COIN-OR module OsiTests... $ECHO_C" >&6 21293 21294 coin_has_ositests=notGiven 21448 21295 21449 21296 # check if user wants to skip module in any case 21450 21297 if test x"$COIN_SKIP_PROJECTS" != x; then 21451 21298 for dir in $COIN_SKIP_PROJECTS; do 21452 if test $dir = " Clp"; then21453 coin_has_ clp=skipping21299 if test $dir = "OsiTests"; then 21300 coin_has_ositests=skipping 21454 21301 fi 21455 21302 done 21456 21303 fi 21457 21304 21458 CLP_LIBS= 21459 CLP_CFLAGS= 21460 CLP_DATA= 21461 21462 21463 if test $coin_has_clp != "skipping" ; then 21464 # if the project is available and configured, then a project-uninstalled.pc file should have been created 21465 if test -r ../Clp/clp-uninstalled.pc ; then 21466 # read CFLAGS and LIBS from clp-uninstalled.pc file 21467 # add CYGPATH_W cludge into include flags 21468 # replace -L${libdir} by absolute path to build directory in linker flags 21469 # we assume that the build directory is ../Clp/src if this directory exists, otherwise we assume that it is ../Clp 21470 CLP_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Clp/clp-uninstalled.pc` 21471 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Clp/clp-uninstalled.pc` 21472 if test "x$projectlibs" != x ; then 21473 if test -d ../Clp/src ; then 21474 CLP_LIBS="-L`cd ../Clp/src; pwd` $projectlibs" 21305 OSITESTS_LIBS= 21306 OSITESTS_CFLAGS= 21307 OSITESTS_DATA= 21308 21309 21310 21311 21312 21313 #check if user provided LIBS, CFLAGS, or DATA for module 21314 if test $coin_has_ositests != skipping; then 21315 21316 21317 # Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given. 21318 if test "${with_ositests_lib+set}" = set; then 21319 withval="$with_ositests_lib" 21320 coin_has_ositests=yes 21321 OSITESTS_LIBS="$withval" 21322 21323 21324 fi; 21325 21326 21327 # Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given. 21328 if test "${with_ositests_incdir+set}" = set; then 21329 withval="$with_ositests_incdir" 21330 coin_has_ositests=yes 21331 OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`" 21332 fi; 21333 21334 21335 # Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given. 21336 if test "${with_ositests_datadir+set}" = set; then 21337 withval="$with_ositests_datadir" 21338 coin_has_ositests=yes 21339 OSITESTS_DATA="$withval" 21340 fi; 21341 fi 21342 21343 if test $coin_has_ositests = notGiven; then 21344 if test -n "$PKG_CONFIG" ; then 21345 # set search path for pkg-config 21346 # need to export variable to be sure that the following pkg-config gets these values 21347 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 21348 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 21349 export PKG_CONFIG_PATH 21350 21351 # let pkg-config do it's magic 21352 21353 21354 21355 if test -n "$PKG_CONFIG" ; then 21356 if $PKG_CONFIG --exists "osi-unittests"; then 21357 OSITESTS_VERSIONS="`$PKG_CONFIG --modversion osi-unittests 2>/dev/null`" 21358 cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null` 21359 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 21360 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 21361 # but only do this if is not trivial 21362 if test "$CYGPATH_W" != "echo" ; then 21363 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 21364 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21365 fi 21366 OSITESTS_CFLAGS="$cflags" 21367 OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null` 21368 OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null` 21369 coin_has_ositests=yes 21370 echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5 21371 echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6 21372 21373 21374 21375 else 21376 OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-unittests` 21377 coin_has_ositests=notGiven 21378 echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5 21379 echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6 21380 21381 fi 21382 else 21383 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5 21384 echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;} 21385 { (exit 1); exit 1; }; } 21386 fi 21387 21388 21389 21390 21391 # reset PKG_CONFIG_PATH variable 21392 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 21393 export PKG_CONFIG_PATH 21394 else 21395 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 21396 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 21397 21398 echo "$as_me:$LINENO: checking for COIN-OR module OsiTests (fallback)" >&5 21399 echo $ECHO_N "checking for COIN-OR module OsiTests (fallback)... $ECHO_C" >&6 21400 21401 coin_has_ositests=notGiven 21402 OSITESTS_LIBS= 21403 OSITESTS_CFLAGS= 21404 OSITESTS_DATA= 21405 21406 21407 # initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x) 21408 projtoprocess="osi-unittests" 21409 projprocessed="" 21410 21411 while test $coin_has_ositests = notGiven ; do 21412 # setup list of projects that need to be processed in the next round 21413 nextprojtoprocess="" 21414 21415 for proj in $projtoprocess ; do 21416 # if $proj has been processed already, skip this round 21417 if test "x$projprocessed" != x ; then 21418 for projdone in $projprocessed ; do 21419 if test $projdone = $proj ; then 21420 continue 2 21421 fi 21422 done 21423 fi 21424 21425 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21426 pcfile="" 21427 save_IFS="$IFS" 21428 IFS=":" 21429 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 21430 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 21431 if test -r "$dir/$proj-uninstalled.pc" ; then 21432 pcfile="$dir/$proj-uninstalled.pc" 21433 pcfiledir="$dir" 21434 break 21435 fi 21436 done 21437 IFS="$save_IFS" 21438 21439 if test "x$pcfile" != x ; then 21440 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21441 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 21442 OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS" 21443 21444 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21445 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21446 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21447 if test "x$projlibs" != x ; then 21448 if test -d "${pcfiledir}/src" ; then 21449 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21450 else 21451 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21452 fi 21475 21453 else 21476 CLP_LIBS="-L`cd ../Clp; pwd` $projectlibs"21454 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21477 21455 fi 21456 OSITESTS_LIBS="$projlibs $OSITESTS_LIBS" 21457 21458 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 21459 if test "x$projprocessed" = x ; then 21460 OSITESTS_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 21461 fi 21462 21463 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 21464 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 21465 nextprojtoprocess="$nextprojtoprocess $projrequires" 21466 21467 # remember that we have processed $proj 21468 projprocessed="$projprocessed $proj" 21469 21478 21470 else 21479 CLP_LIBS=`sed -n -e 's/Libs://p' ../Clp/clp-uninstalled.pc` 21471 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21472 echo "${ECHO_T}no, dependency $proj not available" >&6 21473 break 2 21480 21474 fi 21481 CLP_DATA=`sed -n -e 's/datadir=//gp' ../Clp/clp-uninstalled.pc` 21482 21483 REQUIREDPACKAGES="clp $REQUIREDPACKAGES" 21475 21476 done 21477 21478 projtoprocess="$nextprojtoprocess" 21479 21480 if test "x$projtoprocess" = x ; then 21481 coin_has_ositests=yes 21482 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 21483 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 21484 21484 21485 21485 21486 21486 21487 21487 cat >>confdefs.h <<\_ACEOF 21488 #define COIN_HAS_ CLP121488 #define COIN_HAS_OSITESTS 1 21489 21489 _ACEOF 21490 21490 21491 21491 21492 21493 coin_has_clp=yes 21494 echo "$as_me:$LINENO: result: ../Clp" >&5 21495 echo "${ECHO_T}../Clp" >&6 21496 else 21497 echo "$as_me:$LINENO: result: $coin_has_clp" >&5 21498 echo "${ECHO_T}$coin_has_clp" >&6 21499 fi 21500 else 21501 echo "$as_me:$LINENO: result: skipping" >&5 21502 echo "${ECHO_T}skipping" >&6 21503 fi 21504 21505 #if user did not disable setting of makefile conditional, do it 21506 21507 21508 if test $coin_has_clp != notGiven && 21509 test $coin_has_clp != skipping; then 21510 COIN_HAS_CLP_TRUE= 21511 COIN_HAS_CLP_FALSE='#' 21512 else 21513 COIN_HAS_CLP_TRUE='#' 21514 COIN_HAS_CLP_FALSE= 21515 fi 21516 21517 21518 fi 21519 21520 if test $coin_has_clp = yes ; then 21521 21522 if test x$coin_has_osiclp != "xyes" ; then 21523 21524 echo "$as_me:$LINENO: checking for COIN-OR module OsiClp (fallback)" >&5 21525 echo $ECHO_N "checking for COIN-OR module OsiClp (fallback)... $ECHO_C" >&6 21526 21527 coin_has_osiclp=notGiven 21492 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21493 if test -n "$OSITESTS_CFLAGS" ; then 21494 { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5 21495 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;} 21496 fi 21497 if test -n "$OSITESTS_LIBS" ; then 21498 { echo "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&5 21499 echo "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;} 21500 fi 21501 if test -n "$OSITESTS_DATA" ; then 21502 { echo "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&5 21503 echo "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;} 21504 fi 21505 fi 21506 fi 21507 done 21508 21509 21510 21511 if test $coin_has_ositests != notGiven && 21512 test $coin_has_ositests != skipping; then 21513 COIN_HAS_OSITESTS_TRUE= 21514 COIN_HAS_OSITESTS_FALSE='#' 21515 else 21516 COIN_HAS_OSITESTS_TRUE='#' 21517 COIN_HAS_OSITESTS_FALSE= 21518 fi 21519 21520 21521 21522 fi 21523 21524 else 21525 echo "$as_me:$LINENO: result: $coin_has_ositests" >&5 21526 echo "${ECHO_T}$coin_has_ositests" >&6 21527 fi 21528 21529 if test $coin_has_ositests != skipping && 21530 test $coin_has_ositests != notGiven ; then 21531 if test 0 = 1 ; then #change this test to enable a bit of debugging output 21532 if test -n "$OSITESTS_CFLAGS" ; then 21533 { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5 21534 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;} 21535 fi 21536 if test -n "$OSITESTS_LIBS" ; then 21537 { echo "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&5 21538 echo "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;} 21539 fi 21540 if test -n "$OSITESTS_DATA" ; then 21541 { echo "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&5 21542 echo "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;} 21543 fi 21544 fi 21545 21546 cat >>confdefs.h <<\_ACEOF 21547 #define COIN_HAS_OSITESTS 1 21548 _ACEOF 21549 21550 fi 21551 21552 # Define the Makefile conditional 21553 21554 21555 if test $coin_has_ositests != notGiven && 21556 test $coin_has_ositests != skipping; then 21557 COIN_HAS_OSITESTS_TRUE= 21558 COIN_HAS_OSITESTS_FALSE='#' 21559 else 21560 COIN_HAS_OSITESTS_TRUE='#' 21561 COIN_HAS_OSITESTS_FALSE= 21562 fi 21563 21564 21565 21566 21567 21568 echo "$as_me:$LINENO: checking for COIN-OR module Sample" >&5 21569 echo $ECHO_N "checking for COIN-OR module Sample... $ECHO_C" >&6 21570 21571 coin_has_sample=notGiven 21528 21572 21529 21573 # check if user wants to skip module in any case 21530 21574 if test x"$COIN_SKIP_PROJECTS" != x; then 21531 21575 for dir in $COIN_SKIP_PROJECTS; do 21532 if test $dir = " OsiClp"; then21533 coin_has_ osiclp=skipping21576 if test $dir = "Sample"; then 21577 coin_has_sample=skipping 21534 21578 fi 21535 21579 done 21536 21580 fi 21537 21581 21538 OSICLP_LIBS= 21539 OSICLP_CFLAGS= 21540 OSICLP_DATA= 21541 21542 21543 if test $coin_has_osiclp != "skipping" ; then 21544 # if the project is available and configured, then a project-uninstalled.pc file should have been created 21545 if test -r ../Clp/osi-clp-uninstalled.pc ; then 21546 # read CFLAGS and LIBS from osi-clp-uninstalled.pc file 21547 # add CYGPATH_W cludge into include flags 21548 # replace -L${libdir} by absolute path to build directory in linker flags 21549 # we assume that the build directory is ../Clp/src if this directory exists, otherwise we assume that it is ../Clp 21550 OSICLP_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Clp/osi-clp-uninstalled.pc` 21551 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Clp/osi-clp-uninstalled.pc` 21552 if test "x$projectlibs" != x ; then 21553 if test -d ../Clp/src ; then 21554 OSICLP_LIBS="-L`cd ../Clp/src; pwd` $projectlibs" 21582 SAMPLE_LIBS= 21583 SAMPLE_CFLAGS= 21584 SAMPLE_DATA= 21585 21586 21587 21588 21589 21590 #check if user provided LIBS, CFLAGS, or DATA for module 21591 if test $coin_has_sample != skipping; then 21592 21593 21594 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given. 21595 if test "${with_sample_lib+set}" = set; then 21596 withval="$with_sample_lib" 21597 coin_has_sample=yes 21598 SAMPLE_LIBS="$withval" 21599 21600 21601 fi; 21602 21603 21604 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given. 21605 if test "${with_sample_incdir+set}" = set; then 21606 withval="$with_sample_incdir" 21607 coin_has_sample=yes 21608 SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`" 21609 fi; 21610 21611 21612 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given. 21613 if test "${with_sample_datadir+set}" = set; then 21614 withval="$with_sample_datadir" 21615 coin_has_sample=yes 21616 SAMPLE_DATA="$withval" 21617 fi; 21618 fi 21619 21620 if test $coin_has_sample = notGiven; then 21621 if test -n "$PKG_CONFIG" ; then 21622 # set search path for pkg-config 21623 # need to export variable to be sure that the following pkg-config gets these values 21624 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 21625 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 21626 export PKG_CONFIG_PATH 21627 21628 # let pkg-config do it's magic 21629 21630 21631 21632 if test -n "$PKG_CONFIG" ; then 21633 if $PKG_CONFIG --exists "coindatasample"; then 21634 SAMPLE_VERSIONS="`$PKG_CONFIG --modversion coindatasample 2>/dev/null`" 21635 cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null` 21636 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 21637 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 21638 # but only do this if is not trivial 21639 if test "$CYGPATH_W" != "echo" ; then 21640 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 21641 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21642 fi 21643 SAMPLE_CFLAGS="$cflags" 21644 SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null` 21645 SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null` 21646 coin_has_sample=yes 21647 echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5 21648 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6 21649 21650 21651 21652 else 21653 SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatasample` 21654 coin_has_sample=notGiven 21655 echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5 21656 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6 21657 21658 fi 21659 else 21660 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5 21661 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;} 21662 { (exit 1); exit 1; }; } 21663 fi 21664 21665 21666 21667 21668 # reset PKG_CONFIG_PATH variable 21669 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 21670 export PKG_CONFIG_PATH 21671 else 21672 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 21673 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 21674 21675 echo "$as_me:$LINENO: checking for COIN-OR module Sample (fallback)" >&5 21676 echo $ECHO_N "checking for COIN-OR module Sample (fallback)... $ECHO_C" >&6 21677 21678 coin_has_sample=notGiven 21679 SAMPLE_LIBS= 21680 SAMPLE_CFLAGS= 21681 SAMPLE_DATA= 21682 21683 21684 # initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x) 21685 projtoprocess="coindatasample" 21686 projprocessed="" 21687 21688 while test $coin_has_sample = notGiven ; do 21689 # setup list of projects that need to be processed in the next round 21690 nextprojtoprocess="" 21691 21692 for proj in $projtoprocess ; do 21693 # if $proj has been processed already, skip this round 21694 if test "x$projprocessed" != x ; then 21695 for projdone in $projprocessed ; do 21696 if test $projdone = $proj ; then 21697 continue 2 21698 fi 21699 done 21700 fi 21701 21702 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21703 pcfile="" 21704 save_IFS="$IFS" 21705 IFS=":" 21706 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 21707 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 21708 if test -r "$dir/$proj-uninstalled.pc" ; then 21709 pcfile="$dir/$proj-uninstalled.pc" 21710 pcfiledir="$dir" 21711 break 21712 fi 21713 done 21714 IFS="$save_IFS" 21715 21716 if test "x$pcfile" != x ; then 21717 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21718 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 21719 SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS" 21720 21721 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21722 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21723 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 21724 if test "x$projlibs" != x ; then 21725 if test -d "${pcfiledir}/src" ; then 21726 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 21727 else 21728 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 21729 fi 21555 21730 else 21556 OSICLP_LIBS="-L`cd ../Clp; pwd` $projectlibs"21731 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 21557 21732 fi 21733 SAMPLE_LIBS="$projlibs $SAMPLE_LIBS" 21734 21735 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 21736 if test "x$projprocessed" = x ; then 21737 SAMPLE_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 21738 fi 21739 21740 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 21741 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 21742 nextprojtoprocess="$nextprojtoprocess $projrequires" 21743 21744 # remember that we have processed $proj 21745 projprocessed="$projprocessed $proj" 21746 21558 21747 else 21559 OSICLP_LIBS=`sed -n -e 's/Libs://p' ../Clp/osi-clp-uninstalled.pc` 21748 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 21749 echo "${ECHO_T}no, dependency $proj not available" >&6 21750 break 2 21560 21751 fi 21561 OSICLP_DATA=`sed -n -e 's/datadir=//gp' ../Clp/osi-clp-uninstalled.pc` 21562 21563 REQUIREDPACKAGES="osi-clp $REQUIREDPACKAGES" 21564 21565 21566 21567 21568 coin_has_osiclp=yes 21569 echo "$as_me:$LINENO: result: ../Clp" >&5 21570 echo "${ECHO_T}../Clp" >&6 21752 21753 done 21754 21755 projtoprocess="$nextprojtoprocess" 21756 21757 if test "x$projtoprocess" = x ; then 21758 coin_has_sample=yes 21759 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 21760 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 21761 21762 21763 21764 cat >>confdefs.h <<\_ACEOF 21765 #define COIN_HAS_SAMPLE 1 21766 _ACEOF 21767 21768 21769 if test 1 = 0 ; then #change this test to enable a bit of debugging output 21770 if test -n "$SAMPLE_CFLAGS" ; then 21771 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5 21772 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;} 21773 fi 21774 if test -n "$SAMPLE_LIBS" ; then 21775 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5 21776 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;} 21777 fi 21778 if test -n "$SAMPLE_DATA" ; then 21779 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5 21780 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;} 21781 fi 21782 fi 21783 fi 21784 done 21785 21786 21787 21788 if test $coin_has_sample != notGiven && 21789 test $coin_has_sample != skipping; then 21790 COIN_HAS_SAMPLE_TRUE= 21791 COIN_HAS_SAMPLE_FALSE='#' 21792 else 21793 COIN_HAS_SAMPLE_TRUE='#' 21794 COIN_HAS_SAMPLE_FALSE= 21795 fi 21796 21797 21798 21799 fi 21800 21801 else 21802 echo "$as_me:$LINENO: result: $coin_has_sample" >&5 21803 echo "${ECHO_T}$coin_has_sample" >&6 21804 fi 21805 21806 if test $coin_has_sample != skipping && 21807 test $coin_has_sample != notGiven ; then 21808 if test 0 = 1 ; then #change this test to enable a bit of debugging output 21809 if test -n "$SAMPLE_CFLAGS" ; then 21810 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5 21811 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;} 21812 fi 21813 if test -n "$SAMPLE_LIBS" ; then 21814 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&5 21815 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;} 21816 fi 21817 if test -n "$SAMPLE_DATA" ; then 21818 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&5 21819 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;} 21820 fi 21821 fi 21822 21823 cat >>confdefs.h <<\_ACEOF 21824 #define COIN_HAS_SAMPLE 1 21825 _ACEOF 21826 21827 fi 21828 21829 # Define the Makefile conditional 21830 21831 21832 if test $coin_has_sample != notGiven && 21833 test $coin_has_sample != skipping; then 21834 COIN_HAS_SAMPLE_TRUE= 21835 COIN_HAS_SAMPLE_FALSE='#' 21836 else 21837 COIN_HAS_SAMPLE_TRUE='#' 21838 COIN_HAS_SAMPLE_FALSE= 21839 fi 21840 21841 21842 21843 21844 echo "$as_me:$LINENO: checking for COIN-OR module Netlib" >&5 21845 echo $ECHO_N "checking for COIN-OR module Netlib... $ECHO_C" >&6 21846 21847 coin_has_netlib=notGiven 21848 21849 # check if user wants to skip module in any case 21850 if test x"$COIN_SKIP_PROJECTS" != x; then 21851 for dir in $COIN_SKIP_PROJECTS; do 21852 if test $dir = "Netlib"; then 21853 coin_has_netlib=skipping 21854 fi 21855 done 21856 fi 21857 21858 NETLIB_LIBS= 21859 NETLIB_CFLAGS= 21860 NETLIB_DATA= 21861 21862 21863 21864 21865 21866 #check if user provided LIBS, CFLAGS, or DATA for module 21867 if test $coin_has_netlib != skipping; then 21868 21869 21870 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given. 21871 if test "${with_netlib_lib+set}" = set; then 21872 withval="$with_netlib_lib" 21873 coin_has_netlib=yes 21874 NETLIB_LIBS="$withval" 21875 21876 21877 fi; 21878 21879 21880 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given. 21881 if test "${with_netlib_incdir+set}" = set; then 21882 withval="$with_netlib_incdir" 21883 coin_has_netlib=yes 21884 NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`" 21885 fi; 21886 21887 21888 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given. 21889 if test "${with_netlib_datadir+set}" = set; then 21890 withval="$with_netlib_datadir" 21891 coin_has_netlib=yes 21892 NETLIB_DATA="$withval" 21893 fi; 21894 fi 21895 21896 if test $coin_has_netlib = notGiven; then 21897 if test -n "$PKG_CONFIG" ; then 21898 # set search path for pkg-config 21899 # need to export variable to be sure that the following pkg-config gets these values 21900 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 21901 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 21902 export PKG_CONFIG_PATH 21903 21904 # let pkg-config do it's magic 21905 21906 21907 21908 if test -n "$PKG_CONFIG" ; then 21909 if $PKG_CONFIG --exists "coindatanetlib"; then 21910 NETLIB_VERSIONS="`$PKG_CONFIG --modversion coindatanetlib 2>/dev/null`" 21911 cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null` 21912 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 21913 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 21914 # but only do this if is not trivial 21915 if test "$CYGPATH_W" != "echo" ; then 21916 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 21917 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 21918 fi 21919 NETLIB_CFLAGS="$cflags" 21920 NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null` 21921 NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null` 21922 coin_has_netlib=yes 21923 echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5 21924 echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6 21925 21926 21927 21571 21928 else 21572 echo "$as_me:$LINENO: result: $coin_has_osiclp" >&5 21573 echo "${ECHO_T}$coin_has_osiclp" >&6 21574 fi 21575 else 21576 echo "$as_me:$LINENO: result: skipping" >&5 21577 echo "${ECHO_T}skipping" >&6 21578 fi 21579 21580 #if user did not disable setting of makefile conditional, do it 21581 21582 fi 21583 21584 CLP_CFLAGS="$CLP_CFLAGS $OSICLP_CFLAGS" 21585 CLP_LIBS="$CLP_LIBS $OSICLP_LIBS" 21586 fi 21587 fi 21588 if test $coin_has_clp != yes ; then 21589 { { echo "$as_me:$LINENO: error: \"Required package Clp unavailable.\"" >&5 21590 echo "$as_me: error: \"Required package Clp unavailable.\"" >&2;} 21929 NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatanetlib` 21930 coin_has_netlib=notGiven 21931 echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5 21932 echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6 21933 21934 fi 21935 else 21936 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5 21937 echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;} 21591 21938 { (exit 1); exit 1; }; } 21592 21939 fi 21593 21940 21594 # we skip fallbacks for the following two 21941 21942 21943 21944 # reset PKG_CONFIG_PATH variable 21945 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 21946 export PKG_CONFIG_PATH 21947 else 21948 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 21949 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 21950 21951 echo "$as_me:$LINENO: checking for COIN-OR module Netlib (fallback)" >&5 21952 echo $ECHO_N "checking for COIN-OR module Netlib (fallback)... $ECHO_C" >&6 21953 21954 coin_has_netlib=notGiven 21955 NETLIB_LIBS= 21956 NETLIB_CFLAGS= 21957 NETLIB_DATA= 21958 21959 21960 # initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x) 21961 projtoprocess="coindatanetlib" 21962 projprocessed="" 21963 21964 while test $coin_has_netlib = notGiven ; do 21965 # setup list of projects that need to be processed in the next round 21966 nextprojtoprocess="" 21967 21968 for proj in $projtoprocess ; do 21969 # if $proj has been processed already, skip this round 21970 if test "x$projprocessed" != x ; then 21971 for projdone in $projprocessed ; do 21972 if test $projdone = $proj ; then 21973 continue 2 21974 fi 21975 done 21976 fi 21977 21978 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 21979 pcfile="" 21980 save_IFS="$IFS" 21981 IFS=":" 21982 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 21983 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 21984 if test -r "$dir/$proj-uninstalled.pc" ; then 21985 pcfile="$dir/$proj-uninstalled.pc" 21986 pcfiledir="$dir" 21987 break 21988 fi 21989 done 21990 IFS="$save_IFS" 21991 21992 if test "x$pcfile" != x ; then 21993 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 21994 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 21995 NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS" 21996 21997 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 21998 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 21999 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 22000 if test "x$projlibs" != x ; then 22001 if test -d "${pcfiledir}/src" ; then 22002 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 22003 else 22004 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 22005 fi 22006 else 22007 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 22008 fi 22009 NETLIB_LIBS="$projlibs $NETLIB_LIBS" 22010 22011 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 22012 if test "x$projprocessed" = x ; then 22013 NETLIB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 22014 fi 22015 22016 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 22017 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 22018 nextprojtoprocess="$nextprojtoprocess $projrequires" 22019 22020 # remember that we have processed $proj 22021 projprocessed="$projprocessed $proj" 22022 22023 else 22024 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 22025 echo "${ECHO_T}no, dependency $proj not available" >&6 22026 break 2 22027 fi 22028 22029 done 22030 22031 projtoprocess="$nextprojtoprocess" 22032 22033 if test "x$projtoprocess" = x ; then 22034 coin_has_netlib=yes 22035 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 22036 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 22037 22038 22039 22040 cat >>confdefs.h <<\_ACEOF 22041 #define COIN_HAS_NETLIB 1 22042 _ACEOF 22043 22044 22045 if test 1 = 0 ; then #change this test to enable a bit of debugging output 22046 if test -n "$NETLIB_CFLAGS" ; then 22047 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5 22048 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;} 22049 fi 22050 if test -n "$NETLIB_LIBS" ; then 22051 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5 22052 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;} 22053 fi 22054 if test -n "$NETLIB_DATA" ; then 22055 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5 22056 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;} 22057 fi 22058 fi 22059 fi 22060 done 22061 22062 22063 22064 if test $coin_has_netlib != notGiven && 22065 test $coin_has_netlib != skipping; then 22066 COIN_HAS_NETLIB_TRUE= 22067 COIN_HAS_NETLIB_FALSE='#' 22068 else 22069 COIN_HAS_NETLIB_TRUE='#' 22070 COIN_HAS_NETLIB_FALSE= 22071 fi 22072 22073 22074 22075 fi 22076 22077 else 22078 echo "$as_me:$LINENO: result: $coin_has_netlib" >&5 22079 echo "${ECHO_T}$coin_has_netlib" >&6 22080 fi 22081 22082 if test $coin_has_netlib != skipping && 22083 test $coin_has_netlib != notGiven ; then 22084 if test 0 = 1 ; then #change this test to enable a bit of debugging output 22085 if test -n "$NETLIB_CFLAGS" ; then 22086 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5 22087 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;} 22088 fi 22089 if test -n "$NETLIB_LIBS" ; then 22090 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&5 22091 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;} 22092 fi 22093 if test -n "$NETLIB_DATA" ; then 22094 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&5 22095 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;} 22096 fi 22097 fi 22098 22099 cat >>confdefs.h <<\_ACEOF 22100 #define COIN_HAS_NETLIB 1 22101 _ACEOF 22102 22103 fi 22104 22105 # Define the Makefile conditional 22106 22107 22108 if test $coin_has_netlib != notGiven && 22109 test $coin_has_netlib != skipping; then 22110 COIN_HAS_NETLIB_TRUE= 22111 COIN_HAS_NETLIB_FALSE='#' 22112 else 22113 COIN_HAS_NETLIB_TRUE='#' 22114 COIN_HAS_NETLIB_FALSE= 22115 fi 22116 22117 22118 22119 22120 echo "$as_me:$LINENO: checking for COIN-OR module Miplib3" >&5 22121 echo $ECHO_N "checking for COIN-OR module Miplib3... $ECHO_C" >&6 22122 22123 coin_has_miplib3=notGiven 22124 22125 # check if user wants to skip module in any case 22126 if test x"$COIN_SKIP_PROJECTS" != x; then 22127 for dir in $COIN_SKIP_PROJECTS; do 22128 if test $dir = "Miplib3"; then 22129 coin_has_miplib3=skipping 22130 fi 22131 done 22132 fi 22133 22134 MIPLIB3_LIBS= 22135 MIPLIB3_CFLAGS= 22136 MIPLIB3_DATA= 22137 22138 22139 22140 22141 22142 #check if user provided LIBS, CFLAGS, or DATA for module 22143 if test $coin_has_miplib3 != skipping; then 22144 22145 22146 # Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given. 22147 if test "${with_miplib3_lib+set}" = set; then 22148 withval="$with_miplib3_lib" 22149 coin_has_miplib3=yes 22150 MIPLIB3_LIBS="$withval" 22151 22152 22153 fi; 22154 22155 22156 # Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given. 22157 if test "${with_miplib3_incdir+set}" = set; then 22158 withval="$with_miplib3_incdir" 22159 coin_has_miplib3=yes 22160 MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`" 22161 fi; 22162 22163 22164 # Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given. 22165 if test "${with_miplib3_datadir+set}" = set; then 22166 withval="$with_miplib3_datadir" 22167 coin_has_miplib3=yes 22168 MIPLIB3_DATA="$withval" 22169 fi; 22170 fi 22171 22172 if test $coin_has_miplib3 = notGiven; then 22173 if test -n "$PKG_CONFIG" ; then 22174 # set search path for pkg-config 22175 # need to export variable to be sure that the following pkg-config gets these values 22176 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 22177 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED" 22178 export PKG_CONFIG_PATH 22179 22180 # let pkg-config do it's magic 22181 22182 22183 22184 if test -n "$PKG_CONFIG" ; then 22185 if $PKG_CONFIG --exists "coindatamiplib3"; then 22186 MIPLIB3_VERSIONS="`$PKG_CONFIG --modversion coindatamiplib3 2>/dev/null`" 22187 cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/null` 22188 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files 22189 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's 22190 # but only do this if is not trivial 22191 if test "$CYGPATH_W" != "echo" ; then 22192 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command 22193 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'` 22194 fi 22195 MIPLIB3_CFLAGS="$cflags" 22196 MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null` 22197 MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/null` 22198 coin_has_miplib3=yes 22199 echo "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&5 22200 echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6 22201 22202 22203 22204 else 22205 MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatamiplib3` 22206 coin_has_miplib3=notGiven 22207 echo "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&5 22208 echo "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&6 22209 22210 fi 22211 else 22212 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&5 22213 echo "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;} 22214 { (exit 1); exit 1; }; } 22215 fi 22216 22217 22218 22219 22220 # reset PKG_CONFIG_PATH variable 22221 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH" 22222 export PKG_CONFIG_PATH 22223 else 22224 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 22225 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 22226 22227 echo "$as_me:$LINENO: checking for COIN-OR module Miplib3 (fallback)" >&5 22228 echo $ECHO_N "checking for COIN-OR module Miplib3 (fallback)... $ECHO_C" >&6 22229 22230 coin_has_miplib3=notGiven 22231 MIPLIB3_LIBS= 22232 MIPLIB3_CFLAGS= 22233 MIPLIB3_DATA= 22234 22235 22236 # initial list of dependencies is "coindatamiplib3", but we need to filter out version number specifications (= x, <= x, >= x) 22237 projtoprocess="coindatamiplib3" 22238 projprocessed="" 22239 22240 while test $coin_has_miplib3 = notGiven ; do 22241 # setup list of projects that need to be processed in the next round 22242 nextprojtoprocess="" 22243 22244 for proj in $projtoprocess ; do 22245 # if $proj has been processed already, skip this round 22246 if test "x$projprocessed" != x ; then 22247 for projdone in $projprocessed ; do 22248 if test $projdone = $proj ; then 22249 continue 2 22250 fi 22251 done 22252 fi 22253 22254 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 22255 pcfile="" 22256 save_IFS="$IFS" 22257 IFS=":" 22258 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 22259 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 22260 if test -r "$dir/$proj-uninstalled.pc" ; then 22261 pcfile="$dir/$proj-uninstalled.pc" 22262 pcfiledir="$dir" 22263 break 22264 fi 22265 done 22266 IFS="$save_IFS" 22267 22268 if test "x$pcfile" != x ; then 22269 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 22270 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 22271 MIPLIB3_CFLAGS="$projcflags $MIPLIB3_CFLAGS" 22272 22273 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 22274 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 22275 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 22276 if test "x$projlibs" != x ; then 22277 if test -d "${pcfiledir}/src" ; then 22278 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 22279 else 22280 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 22281 fi 22282 else 22283 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 22284 fi 22285 MIPLIB3_LIBS="$projlibs $MIPLIB3_LIBS" 22286 22287 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 22288 if test "x$projprocessed" = x ; then 22289 MIPLIB3_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 22290 fi 22291 22292 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 22293 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 22294 nextprojtoprocess="$nextprojtoprocess $projrequires" 22295 22296 # remember that we have processed $proj 22297 projprocessed="$projprocessed $proj" 22298 22299 else 22300 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 22301 echo "${ECHO_T}no, dependency $proj not available" >&6 22302 break 2 22303 fi 22304 22305 done 22306 22307 projtoprocess="$nextprojtoprocess" 22308 22309 if test "x$projtoprocess" = x ; then 22310 coin_has_miplib3=yes 22311 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 22312 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 22313 22314 22315 22316 cat >>confdefs.h <<\_ACEOF 22317 #define COIN_HAS_MIPLIB3 1 22318 _ACEOF 22319 22320 22321 if test 1 = 0 ; then #change this test to enable a bit of debugging output 22322 if test -n "$MIPLIB3_CFLAGS" ; then 22323 { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5 22324 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;} 22325 fi 22326 if test -n "$MIPLIB3_LIBS" ; then 22327 { echo "$as_me:$LINENO: Miplib3 LIBS are $MIPLIB3_LIBS" >&5 22328 echo "$as_me: Miplib3 LIBS are $MIPLIB3_LIBS" >&6;} 22329 fi 22330 if test -n "$MIPLIB3_DATA" ; then 22331 { echo "$as_me:$LINENO: Miplib3 DATA is $MIPLIB3_DATA" >&5 22332 echo "$as_me: Miplib3 DATA is $MIPLIB3_DATA" >&6;} 22333 fi 22334 fi 22335 fi 22336 done 22337 22338 22339 22340 if test $coin_has_miplib3 != notGiven && 22341 test $coin_has_miplib3 != skipping; then 22342 COIN_HAS_MIPLIB3_TRUE= 22343 COIN_HAS_MIPLIB3_FALSE='#' 22344 else 22345 COIN_HAS_MIPLIB3_TRUE='#' 22346 COIN_HAS_MIPLIB3_FALSE= 22347 fi 22348 22349 22350 22351 fi 22352 22353 else 22354 echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5 22355 echo "${ECHO_T}$coin_has_miplib3" >&6 22356 fi 22357 22358 if test $coin_has_miplib3 != skipping && 22359 test $coin_has_miplib3 != notGiven ; then 22360 if test 0 = 1 ; then #change this test to enable a bit of debugging output 22361 if test -n "$MIPLIB3_CFLAGS" ; then 22362 { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5 22363 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;} 22364 fi 22365 if test -n "$MIPLIB3_LIBS" ; then 22366 { echo "$as_me:$LINENO: Miplib3 LIBS are $MIPLIB3_LIBS" >&5 22367 echo "$as_me: Miplib3 LIBS are $MIPLIB3_LIBS" >&6;} 22368 fi 22369 if test -n "$MIPLIB3_DATA" ; then 22370 { echo "$as_me:$LINENO: Miplib3 DATA is $MIPLIB3_DATA" >&5 22371 echo "$as_me: Miplib3 DATA is $MIPLIB3_DATA" >&6;} 22372 fi 22373 fi 22374 22375 cat >>confdefs.h <<\_ACEOF 22376 #define COIN_HAS_MIPLIB3 1 22377 _ACEOF 22378 22379 fi 22380 22381 # Define the Makefile conditional 22382 22383 22384 if test $coin_has_miplib3 != notGiven && 22385 test $coin_has_miplib3 != skipping; then 22386 COIN_HAS_MIPLIB3_TRUE= 22387 COIN_HAS_MIPLIB3_FALSE='#' 22388 else 22389 COIN_HAS_MIPLIB3_TRUE='#' 22390 COIN_HAS_MIPLIB3_FALSE= 22391 fi 22392 22393 22394 22395 22396 ############################################################################# 22397 # LP solvers other than CLP # 22398 ############################################################################# 22399 22400 # Check which other LP solvers are available 21595 22401 21596 22402 echo "$as_me:$LINENO: checking for COIN-OR module DyLP" >&5 … … 21698 22504 export PKG_CONFIG_PATH 21699 22505 else 21700 #if 4th argument is given, try fallback - whereby we take the first word from osi-dylp as basename for the .pc file 21701 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 21702 echo "${ECHO_T}skipped check via pkg-config" >&6 22506 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 22507 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 22508 22509 echo "$as_me:$LINENO: checking for COIN-OR module DyLP (fallback)" >&5 22510 echo $ECHO_N "checking for COIN-OR module DyLP (fallback)... $ECHO_C" >&6 22511 22512 coin_has_dylp=notGiven 22513 DYLP_LIBS= 22514 DYLP_CFLAGS= 22515 DYLP_DATA= 22516 22517 22518 # initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x) 22519 projtoprocess="osi-dylp" 22520 projprocessed="" 22521 22522 while test $coin_has_dylp = notGiven ; do 22523 # setup list of projects that need to be processed in the next round 22524 nextprojtoprocess="" 22525 22526 for proj in $projtoprocess ; do 22527 # if $proj has been processed already, skip this round 22528 if test "x$projprocessed" != x ; then 22529 for projdone in $projprocessed ; do 22530 if test $projdone = $proj ; then 22531 continue 2 22532 fi 22533 done 22534 fi 22535 22536 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 22537 pcfile="" 22538 save_IFS="$IFS" 22539 IFS=":" 22540 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 22541 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 22542 if test -r "$dir/$proj-uninstalled.pc" ; then 22543 pcfile="$dir/$proj-uninstalled.pc" 22544 pcfiledir="$dir" 22545 break 22546 fi 22547 done 22548 IFS="$save_IFS" 22549 22550 if test "x$pcfile" != x ; then 22551 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 22552 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 22553 DYLP_CFLAGS="$projcflags $DYLP_CFLAGS" 22554 22555 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 22556 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 22557 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 22558 if test "x$projlibs" != x ; then 22559 if test -d "${pcfiledir}/src" ; then 22560 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 22561 else 22562 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 22563 fi 22564 else 22565 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 22566 fi 22567 DYLP_LIBS="$projlibs $DYLP_LIBS" 22568 22569 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 22570 if test "x$projprocessed" = x ; then 22571 DYLP_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 22572 fi 22573 22574 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 22575 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 22576 nextprojtoprocess="$nextprojtoprocess $projrequires" 22577 22578 # remember that we have processed $proj 22579 projprocessed="$projprocessed $proj" 22580 22581 else 22582 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 22583 echo "${ECHO_T}no, dependency $proj not available" >&6 22584 break 2 22585 fi 22586 22587 done 22588 22589 projtoprocess="$nextprojtoprocess" 22590 22591 if test "x$projtoprocess" = x ; then 22592 coin_has_dylp=yes 22593 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 22594 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 22595 22596 REQUIREDPACKAGES="osi-dylp $REQUIREDPACKAGES" 22597 22598 cat >>confdefs.h <<\_ACEOF 22599 #define COIN_HAS_DYLP 1 22600 _ACEOF 22601 22602 22603 if test 1 = 0 ; then #change this test to enable a bit of debugging output 22604 if test -n "$DYLP_CFLAGS" ; then 22605 { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5 22606 echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;} 22607 fi 22608 if test -n "$DYLP_LIBS" ; then 22609 { echo "$as_me:$LINENO: DyLP LIBS are $DYLP_LIBS" >&5 22610 echo "$as_me: DyLP LIBS are $DYLP_LIBS" >&6;} 22611 fi 22612 if test -n "$DYLP_DATA" ; then 22613 { echo "$as_me:$LINENO: DyLP DATA is $DYLP_DATA" >&5 22614 echo "$as_me: DyLP DATA is $DYLP_DATA" >&6;} 22615 fi 22616 fi 22617 fi 22618 done 22619 22620 22621 22622 if test $coin_has_dylp != notGiven && 22623 test $coin_has_dylp != skipping; then 22624 COIN_HAS_DYLP_TRUE= 22625 COIN_HAS_DYLP_FALSE='#' 22626 else 22627 COIN_HAS_DYLP_TRUE='#' 22628 COIN_HAS_DYLP_FALSE= 22629 fi 22630 22631 21703 22632 21704 22633 fi … … 21851 22780 export PKG_CONFIG_PATH 21852 22781 else 21853 #if 4th argument is given, try fallback - whereby we take the first word from osi-vol as basename for the .pc file 21854 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 21855 echo "${ECHO_T}skipped check via pkg-config" >&6 22782 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 22783 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 22784 22785 echo "$as_me:$LINENO: checking for COIN-OR module Vol (fallback)" >&5 22786 echo $ECHO_N "checking for COIN-OR module Vol (fallback)... $ECHO_C" >&6 22787 22788 coin_has_vol=notGiven 22789 VOL_LIBS= 22790 VOL_CFLAGS= 22791 VOL_DATA= 22792 22793 22794 # initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x) 22795 projtoprocess="osi-vol" 22796 projprocessed="" 22797 22798 while test $coin_has_vol = notGiven ; do 22799 # setup list of projects that need to be processed in the next round 22800 nextprojtoprocess="" 22801 22802 for proj in $projtoprocess ; do 22803 # if $proj has been processed already, skip this round 22804 if test "x$projprocessed" != x ; then 22805 for projdone in $projprocessed ; do 22806 if test $projdone = $proj ; then 22807 continue 2 22808 fi 22809 done 22810 fi 22811 22812 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 22813 pcfile="" 22814 save_IFS="$IFS" 22815 IFS=":" 22816 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 22817 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 22818 if test -r "$dir/$proj-uninstalled.pc" ; then 22819 pcfile="$dir/$proj-uninstalled.pc" 22820 pcfiledir="$dir" 22821 break 22822 fi 22823 done 22824 IFS="$save_IFS" 22825 22826 if test "x$pcfile" != x ; then 22827 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 22828 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 22829 VOL_CFLAGS="$projcflags $VOL_CFLAGS" 22830 22831 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 22832 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 22833 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 22834 if test "x$projlibs" != x ; then 22835 if test -d "${pcfiledir}/src" ; then 22836 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 22837 else 22838 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 22839 fi 22840 else 22841 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 22842 fi 22843 VOL_LIBS="$projlibs $VOL_LIBS" 22844 22845 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 22846 if test "x$projprocessed" = x ; then 22847 VOL_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 22848 fi 22849 22850 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 22851 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 22852 nextprojtoprocess="$nextprojtoprocess $projrequires" 22853 22854 # remember that we have processed $proj 22855 projprocessed="$projprocessed $proj" 22856 22857 else 22858 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 22859 echo "${ECHO_T}no, dependency $proj not available" >&6 22860 break 2 22861 fi 22862 22863 done 22864 22865 projtoprocess="$nextprojtoprocess" 22866 22867 if test "x$projtoprocess" = x ; then 22868 coin_has_vol=yes 22869 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 22870 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 22871 22872 REQUIREDPACKAGES="osi-vol $REQUIREDPACKAGES" 22873 22874 cat >>confdefs.h <<\_ACEOF 22875 #define COIN_HAS_VOL 1 22876 _ACEOF 22877 22878 22879 if test 1 = 0 ; then #change this test to enable a bit of debugging output 22880 if test -n "$VOL_CFLAGS" ; then 22881 { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5 22882 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;} 22883 fi 22884 if test -n "$VOL_LIBS" ; then 22885 { echo "$as_me:$LINENO: Vol LIBS are $VOL_LIBS" >&5 22886 echo "$as_me: Vol LIBS are $VOL_LIBS" >&6;} 22887 fi 22888 if test -n "$VOL_DATA" ; then 22889 { echo "$as_me:$LINENO: Vol DATA is $VOL_DATA" >&5 22890 echo "$as_me: Vol DATA is $VOL_DATA" >&6;} 22891 fi 22892 fi 22893 fi 22894 done 22895 22896 22897 22898 if test $coin_has_vol != notGiven && 22899 test $coin_has_vol != skipping; then 22900 COIN_HAS_VOL_TRUE= 22901 COIN_HAS_VOL_FALSE='#' 22902 else 22903 COIN_HAS_VOL_TRUE='#' 22904 COIN_HAS_VOL_FALSE= 22905 fi 22906 22907 21856 22908 21857 22909 fi … … 21899 22951 21900 22952 21901 21902 echo "$as_me:$LINENO: checking for COIN-OR module OsiTests" >&521903 echo $ECHO_N "checking for COIN-OR module OsiTests... $ECHO_C" >&621904 21905 coin_has_ositests=notGiven21906 21907 # check if user wants to skip module in any case21908 if test x"$COIN_SKIP_PROJECTS" != x; then21909 for dir in $COIN_SKIP_PROJECTS; do21910 if test $dir = "OsiTests"; then21911 coin_has_ositests=skipping21912 fi21913 done21914 fi21915 21916 OSITESTS_LIBS=21917 OSITESTS_CFLAGS=21918 OSITESTS_DATA=21919 21920 21921 21922 21923 21924 #check if user provided LIBS, CFLAGS, or DATA for module21925 if test $coin_has_ositests != skipping; then21926 21927 21928 # Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.21929 if test "${with_ositests_lib+set}" = set; then21930 withval="$with_ositests_lib"21931 coin_has_ositests=yes21932 OSITESTS_LIBS="$withval"21933 21934 21935 fi;21936 21937 21938 # Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.21939 if test "${with_ositests_incdir+set}" = set; then21940 withval="$with_ositests_incdir"21941 coin_has_ositests=yes21942 OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"21943 fi;21944 21945 21946 # Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.21947 if test "${with_ositests_datadir+set}" = set; then21948 withval="$with_ositests_datadir"21949 coin_has_ositests=yes21950 OSITESTS_DATA="$withval"21951 fi;21952 fi21953 21954 if test $coin_has_ositests = notGiven; then21955 if test -n "$PKG_CONFIG" ; then21956 # set search path for pkg-config21957 # need to export variable to be sure that the following pkg-config gets these values21958 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"21959 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"21960 export PKG_CONFIG_PATH21961 21962 # let pkg-config do it's magic21963 21964 21965 21966 if test -n "$PKG_CONFIG" ; then21967 if $PKG_CONFIG --exists "osi-unittests"; then21968 OSITESTS_VERSIONS="`$PKG_CONFIG --modversion osi-unittests 2>/dev/null`"21969 cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`21970 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files21971 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's21972 # but only do this if is not trivial21973 if test "$CYGPATH_W" != "echo" ; then21974 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command21975 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`21976 fi21977 OSITESTS_CFLAGS="$cflags"21978 OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`21979 OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`21980 coin_has_ositests=yes21981 echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&521982 echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&621983 21984 21985 21986 else21987 OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-unittests`21988 coin_has_ositests=notGiven21989 echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&521990 echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&621991 21992 fi21993 else21994 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&521995 echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}21996 { (exit 1); exit 1; }; }21997 fi21998 21999 22000 22001 22002 # reset PKG_CONFIG_PATH variable22003 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"22004 export PKG_CONFIG_PATH22005 else22006 #if 4th argument is given, try fallback - whereby we take the first word from osi-unittests as basename for the .pc file22007 22008 if test x$coin_has_ositests != "xyes" ; then22009 22010 22011 22012 coin_has_ositests=notGiven22013 22014 # check if user wants to skip module in any case22015 if test x"$COIN_SKIP_PROJECTS" != x; then22016 for dir in $COIN_SKIP_PROJECTS; do22017 if test $dir = "OsiTests"; then22018 coin_has_ositests=skipping22019 fi22020 done22021 fi22022 22023 OSITESTS_LIBS=22024 OSITESTS_CFLAGS=22025 OSITESTS_DATA=22026 22027 22028 if test $coin_has_ositests != "skipping" ; then22029 # if the project is available and configured, then a project-uninstalled.pc file should have been created22030 if test -r ../Osi/osi-unittests-uninstalled.pc ; then22031 # read CFLAGS and LIBS from m4_bpatsubst(osi-unittests, [ .*], [])-uninstalled.pc file22032 # add CYGPATH_W cludge into include flags22033 # replace -L${libdir} by absolute path to build directory in linker flags22034 # we assume that the build directory is ../Osi/src if this directory exists, otherwise we assume that it is ../Osi22035 OSITESTS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Osi/osi-unittests-uninstalled.pc`22036 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Osi/osi-unittests-uninstalled.pc`22037 if test "x$projectlibs" != x ; then22038 if test -d ../Osi/src ; then22039 OSITESTS_LIBS="-L`cd ../Osi/src; pwd` $projectlibs"22040 else22041 OSITESTS_LIBS="-L`cd ../Osi; pwd` $projectlibs"22042 fi22043 else22044 OSITESTS_LIBS=`sed -n -e 's/Libs://p' ../Osi/osi-unittests-uninstalled.pc`22045 fi22046 OSITESTS_DATA=`sed -n -e 's/datadir=//gp' ../Osi/osi-unittests-uninstalled.pc`22047 22048 22049 22050 22051 cat >>confdefs.h <<\_ACEOF22052 #define COIN_HAS_OSITESTS 122053 _ACEOF22054 22055 22056 22057 coin_has_ositests=yes22058 echo "$as_me:$LINENO: result: ../Osi" >&522059 echo "${ECHO_T}../Osi" >&622060 else22061 echo "$as_me:$LINENO: result: $coin_has_ositests" >&522062 echo "${ECHO_T}$coin_has_ositests" >&622063 fi22064 else22065 echo "$as_me:$LINENO: result: skipping" >&522066 echo "${ECHO_T}skipping" >&622067 fi22068 22069 #if user did not disable setting of makefile conditional, do it22070 22071 22072 if test $coin_has_ositests != notGiven &&22073 test $coin_has_ositests != skipping; then22074 COIN_HAS_OSITESTS_TRUE=22075 COIN_HAS_OSITESTS_FALSE='#'22076 else22077 COIN_HAS_OSITESTS_TRUE='#'22078 COIN_HAS_OSITESTS_FALSE=22079 fi22080 22081 22082 fi22083 22084 22085 fi22086 22087 else22088 echo "$as_me:$LINENO: result: $coin_has_ositests" >&522089 echo "${ECHO_T}$coin_has_ositests" >&622090 fi22091 22092 if test $coin_has_ositests != skipping &&22093 test $coin_has_ositests != notGiven ; then22094 if test 0 = 1 ; then #change this test to enable a bit of debugging output22095 if test -n "$OSITESTS_CFLAGS" ; then22096 { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&522097 echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}22098 fi22099 if test -n "$OSITESTS_LIBS" ; then22100 { echo "$as_me:$LINENO: OsiTests LIBS are $OSITESTS_LIBS" >&522101 echo "$as_me: OsiTests LIBS are $OSITESTS_LIBS" >&6;}22102 fi22103 if test -n "$OSITESTS_DATA" ; then22104 { echo "$as_me:$LINENO: OsiTests DATA is $OSITESTS_DATA" >&522105 echo "$as_me: OsiTests DATA is $OSITESTS_DATA" >&6;}22106 fi22107 fi22108 22109 cat >>confdefs.h <<\_ACEOF22110 #define COIN_HAS_OSITESTS 122111 _ACEOF22112 22113 fi22114 22115 # Define the Makefile conditional22116 22117 22118 if test $coin_has_ositests != notGiven &&22119 test $coin_has_ositests != skipping; then22120 COIN_HAS_OSITESTS_TRUE=22121 COIN_HAS_OSITESTS_FALSE='#'22122 else22123 COIN_HAS_OSITESTS_TRUE='#'22124 COIN_HAS_OSITESTS_FALSE=22125 fi22126 22127 22128 22129 22130 22131 echo "$as_me:$LINENO: checking for COIN-OR module Sample" >&522132 echo $ECHO_N "checking for COIN-OR module Sample... $ECHO_C" >&622133 22134 coin_has_sample=notGiven22135 22136 # check if user wants to skip module in any case22137 if test x"$COIN_SKIP_PROJECTS" != x; then22138 for dir in $COIN_SKIP_PROJECTS; do22139 if test $dir = "Sample"; then22140 coin_has_sample=skipping22141 fi22142 done22143 fi22144 22145 SAMPLE_LIBS=22146 SAMPLE_CFLAGS=22147 SAMPLE_DATA=22148 22149 22150 22151 22152 22153 #check if user provided LIBS, CFLAGS, or DATA for module22154 if test $coin_has_sample != skipping; then22155 22156 22157 # Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.22158 if test "${with_sample_lib+set}" = set; then22159 withval="$with_sample_lib"22160 coin_has_sample=yes22161 SAMPLE_LIBS="$withval"22162 22163 22164 fi;22165 22166 22167 # Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.22168 if test "${with_sample_incdir+set}" = set; then22169 withval="$with_sample_incdir"22170 coin_has_sample=yes22171 SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"22172 fi;22173 22174 22175 # Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.22176 if test "${with_sample_datadir+set}" = set; then22177 withval="$with_sample_datadir"22178 coin_has_sample=yes22179 SAMPLE_DATA="$withval"22180 fi;22181 fi22182 22183 if test $coin_has_sample = notGiven; then22184 if test -n "$PKG_CONFIG" ; then22185 # set search path for pkg-config22186 # need to export variable to be sure that the following pkg-config gets these values22187 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"22188 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"22189 export PKG_CONFIG_PATH22190 22191 # let pkg-config do it's magic22192 22193 22194 22195 if test -n "$PKG_CONFIG" ; then22196 if $PKG_CONFIG --exists "coindatasample"; then22197 SAMPLE_VERSIONS="`$PKG_CONFIG --modversion coindatasample 2>/dev/null`"22198 cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`22199 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files22200 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's22201 # but only do this if is not trivial22202 if test "$CYGPATH_W" != "echo" ; then22203 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command22204 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`22205 fi22206 SAMPLE_CFLAGS="$cflags"22207 SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`22208 SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`22209 coin_has_sample=yes22210 echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&522211 echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&622212 22213 22214 22215 else22216 SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatasample`22217 coin_has_sample=notGiven22218 echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&522219 echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&622220 22221 fi22222 else22223 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&522224 echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}22225 { (exit 1); exit 1; }; }22226 fi22227 22228 22229 22230 22231 # reset PKG_CONFIG_PATH variable22232 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"22233 export PKG_CONFIG_PATH22234 else22235 #if 4th argument is given, try fallback - whereby we take the first word from coindatasample as basename for the .pc file22236 22237 if test x$coin_has_sample != "xyes" ; then22238 22239 22240 22241 coin_has_sample=notGiven22242 22243 # check if user wants to skip module in any case22244 if test x"$COIN_SKIP_PROJECTS" != x; then22245 for dir in $COIN_SKIP_PROJECTS; do22246 if test $dir = "Sample"; then22247 coin_has_sample=skipping22248 fi22249 done22250 fi22251 22252 SAMPLE_LIBS=22253 SAMPLE_CFLAGS=22254 SAMPLE_DATA=22255 22256 22257 if test $coin_has_sample != "skipping" ; then22258 # if the project is available and configured, then a project-uninstalled.pc file should have been created22259 if test -r ../Data/Sample/coindatasample-uninstalled.pc ; then22260 # read CFLAGS and LIBS from m4_bpatsubst(coindatasample, [ .*], [])-uninstalled.pc file22261 # add CYGPATH_W cludge into include flags22262 # replace -L${libdir} by absolute path to build directory in linker flags22263 # we assume that the build directory is ../Data/Sample/src if this directory exists, otherwise we assume that it is ../Data/Sample22264 SAMPLE_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Data/Sample/coindatasample-uninstalled.pc`22265 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Data/Sample/coindatasample-uninstalled.pc`22266 if test "x$projectlibs" != x ; then22267 if test -d ../Data/Sample/src ; then22268 SAMPLE_LIBS="-L`cd ../Data/Sample/src; pwd` $projectlibs"22269 else22270 SAMPLE_LIBS="-L`cd ../Data/Sample; pwd` $projectlibs"22271 fi22272 else22273 SAMPLE_LIBS=`sed -n -e 's/Libs://p' ../Data/Sample/coindatasample-uninstalled.pc`22274 fi22275 SAMPLE_DATA=`sed -n -e 's/datadir=//gp' ../Data/Sample/coindatasample-uninstalled.pc`22276 22277 22278 22279 22280 cat >>confdefs.h <<\_ACEOF22281 #define COIN_HAS_SAMPLE 122282 _ACEOF22283 22284 22285 22286 coin_has_sample=yes22287 echo "$as_me:$LINENO: result: ../Data/Sample" >&522288 echo "${ECHO_T}../Data/Sample" >&622289 else22290 echo "$as_me:$LINENO: result: $coin_has_sample" >&522291 echo "${ECHO_T}$coin_has_sample" >&622292 fi22293 else22294 echo "$as_me:$LINENO: result: skipping" >&522295 echo "${ECHO_T}skipping" >&622296 fi22297 22298 #if user did not disable setting of makefile conditional, do it22299 22300 22301 if test $coin_has_sample != notGiven &&22302 test $coin_has_sample != skipping; then22303 COIN_HAS_SAMPLE_TRUE=22304 COIN_HAS_SAMPLE_FALSE='#'22305 else22306 COIN_HAS_SAMPLE_TRUE='#'22307 COIN_HAS_SAMPLE_FALSE=22308 fi22309 22310 22311 fi22312 22313 22314 fi22315 22316 else22317 echo "$as_me:$LINENO: result: $coin_has_sample" >&522318 echo "${ECHO_T}$coin_has_sample" >&622319 fi22320 22321 if test $coin_has_sample != skipping &&22322 test $coin_has_sample != notGiven ; then22323 if test 0 = 1 ; then #change this test to enable a bit of debugging output22324 if test -n "$SAMPLE_CFLAGS" ; then22325 { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&522326 echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}22327 fi22328 if test -n "$SAMPLE_LIBS" ; then22329 { echo "$as_me:$LINENO: Sample LIBS are $SAMPLE_LIBS" >&522330 echo "$as_me: Sample LIBS are $SAMPLE_LIBS" >&6;}22331 fi22332 if test -n "$SAMPLE_DATA" ; then22333 { echo "$as_me:$LINENO: Sample DATA is $SAMPLE_DATA" >&522334 echo "$as_me: Sample DATA is $SAMPLE_DATA" >&6;}22335 fi22336 fi22337 22338 cat >>confdefs.h <<\_ACEOF22339 #define COIN_HAS_SAMPLE 122340 _ACEOF22341 22342 fi22343 22344 # Define the Makefile conditional22345 22346 22347 if test $coin_has_sample != notGiven &&22348 test $coin_has_sample != skipping; then22349 COIN_HAS_SAMPLE_TRUE=22350 COIN_HAS_SAMPLE_FALSE='#'22351 else22352 COIN_HAS_SAMPLE_TRUE='#'22353 COIN_HAS_SAMPLE_FALSE=22354 fi22355 22356 22357 22358 22359 echo "$as_me:$LINENO: checking for COIN-OR module Netlib" >&522360 echo $ECHO_N "checking for COIN-OR module Netlib... $ECHO_C" >&622361 22362 coin_has_netlib=notGiven22363 22364 # check if user wants to skip module in any case22365 if test x"$COIN_SKIP_PROJECTS" != x; then22366 for dir in $COIN_SKIP_PROJECTS; do22367 if test $dir = "Netlib"; then22368 coin_has_netlib=skipping22369 fi22370 done22371 fi22372 22373 NETLIB_LIBS=22374 NETLIB_CFLAGS=22375 NETLIB_DATA=22376 22377 22378 22379 22380 22381 #check if user provided LIBS, CFLAGS, or DATA for module22382 if test $coin_has_netlib != skipping; then22383 22384 22385 # Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.22386 if test "${with_netlib_lib+set}" = set; then22387 withval="$with_netlib_lib"22388 coin_has_netlib=yes22389 NETLIB_LIBS="$withval"22390 22391 22392 fi;22393 22394 22395 # Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.22396 if test "${with_netlib_incdir+set}" = set; then22397 withval="$with_netlib_incdir"22398 coin_has_netlib=yes22399 NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"22400 fi;22401 22402 22403 # Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.22404 if test "${with_netlib_datadir+set}" = set; then22405 withval="$with_netlib_datadir"22406 coin_has_netlib=yes22407 NETLIB_DATA="$withval"22408 fi;22409 fi22410 22411 if test $coin_has_netlib = notGiven; then22412 if test -n "$PKG_CONFIG" ; then22413 # set search path for pkg-config22414 # need to export variable to be sure that the following pkg-config gets these values22415 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"22416 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"22417 export PKG_CONFIG_PATH22418 22419 # let pkg-config do it's magic22420 22421 22422 22423 if test -n "$PKG_CONFIG" ; then22424 if $PKG_CONFIG --exists "coindatanetlib"; then22425 NETLIB_VERSIONS="`$PKG_CONFIG --modversion coindatanetlib 2>/dev/null`"22426 cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`22427 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files22428 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's22429 # but only do this if is not trivial22430 if test "$CYGPATH_W" != "echo" ; then22431 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command22432 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`22433 fi22434 NETLIB_CFLAGS="$cflags"22435 NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`22436 NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`22437 coin_has_netlib=yes22438 echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&522439 echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&622440 22441 22442 22443 else22444 NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatanetlib`22445 coin_has_netlib=notGiven22446 echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&522447 echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&622448 22449 fi22450 else22451 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&522452 echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}22453 { (exit 1); exit 1; }; }22454 fi22455 22456 22457 22458 22459 # reset PKG_CONFIG_PATH variable22460 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"22461 export PKG_CONFIG_PATH22462 else22463 #if 4th argument is given, try fallback - whereby we take the first word from coindatanetlib as basename for the .pc file22464 22465 if test x$coin_has_netlib != "xyes" ; then22466 22467 22468 22469 coin_has_netlib=notGiven22470 22471 # check if user wants to skip module in any case22472 if test x"$COIN_SKIP_PROJECTS" != x; then22473 for dir in $COIN_SKIP_PROJECTS; do22474 if test $dir = "Netlib"; then22475 coin_has_netlib=skipping22476 fi22477 done22478 fi22479 22480 NETLIB_LIBS=22481 NETLIB_CFLAGS=22482 NETLIB_DATA=22483 22484 22485 if test $coin_has_netlib != "skipping" ; then22486 # if the project is available and configured, then a project-uninstalled.pc file should have been created22487 if test -r ../Data/Netlib/coindatanetlib-uninstalled.pc ; then22488 # read CFLAGS and LIBS from m4_bpatsubst(coindatanetlib, [ .*], [])-uninstalled.pc file22489 # add CYGPATH_W cludge into include flags22490 # replace -L${libdir} by absolute path to build directory in linker flags22491 # we assume that the build directory is ../Data/Netlib/src if this directory exists, otherwise we assume that it is ../Data/Netlib22492 NETLIB_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Data/Netlib/coindatanetlib-uninstalled.pc`22493 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Data/Netlib/coindatanetlib-uninstalled.pc`22494 if test "x$projectlibs" != x ; then22495 if test -d ../Data/Netlib/src ; then22496 NETLIB_LIBS="-L`cd ../Data/Netlib/src; pwd` $projectlibs"22497 else22498 NETLIB_LIBS="-L`cd ../Data/Netlib; pwd` $projectlibs"22499 fi22500 else22501 NETLIB_LIBS=`sed -n -e 's/Libs://p' ../Data/Netlib/coindatanetlib-uninstalled.pc`22502 fi22503 NETLIB_DATA=`sed -n -e 's/datadir=//gp' ../Data/Netlib/coindatanetlib-uninstalled.pc`22504 22505 22506 22507 22508 cat >>confdefs.h <<\_ACEOF22509 #define COIN_HAS_NETLIB 122510 _ACEOF22511 22512 22513 22514 coin_has_netlib=yes22515 echo "$as_me:$LINENO: result: ../Data/Netlib" >&522516 echo "${ECHO_T}../Data/Netlib" >&622517 else22518 echo "$as_me:$LINENO: result: $coin_has_netlib" >&522519 echo "${ECHO_T}$coin_has_netlib" >&622520 fi22521 else22522 echo "$as_me:$LINENO: result: skipping" >&522523 echo "${ECHO_T}skipping" >&622524 fi22525 22526 #if user did not disable setting of makefile conditional, do it22527 22528 22529 if test $coin_has_netlib != notGiven &&22530 test $coin_has_netlib != skipping; then22531 COIN_HAS_NETLIB_TRUE=22532 COIN_HAS_NETLIB_FALSE='#'22533 else22534 COIN_HAS_NETLIB_TRUE='#'22535 COIN_HAS_NETLIB_FALSE=22536 fi22537 22538 22539 fi22540 22541 22542 fi22543 22544 else22545 echo "$as_me:$LINENO: result: $coin_has_netlib" >&522546 echo "${ECHO_T}$coin_has_netlib" >&622547 fi22548 22549 if test $coin_has_netlib != skipping &&22550 test $coin_has_netlib != notGiven ; then22551 if test 0 = 1 ; then #change this test to enable a bit of debugging output22552 if test -n "$NETLIB_CFLAGS" ; then22553 { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&522554 echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}22555 fi22556 if test -n "$NETLIB_LIBS" ; then22557 { echo "$as_me:$LINENO: Netlib LIBS are $NETLIB_LIBS" >&522558 echo "$as_me: Netlib LIBS are $NETLIB_LIBS" >&6;}22559 fi22560 if test -n "$NETLIB_DATA" ; then22561 { echo "$as_me:$LINENO: Netlib DATA is $NETLIB_DATA" >&522562 echo "$as_me: Netlib DATA is $NETLIB_DATA" >&6;}22563 fi22564 fi22565 22566 cat >>confdefs.h <<\_ACEOF22567 #define COIN_HAS_NETLIB 122568 _ACEOF22569 22570 fi22571 22572 # Define the Makefile conditional22573 22574 22575 if test $coin_has_netlib != notGiven &&22576 test $coin_has_netlib != skipping; then22577 COIN_HAS_NETLIB_TRUE=22578 COIN_HAS_NETLIB_FALSE='#'22579 else22580 COIN_HAS_NETLIB_TRUE='#'22581 COIN_HAS_NETLIB_FALSE=22582 fi22583 22584 22585 22586 22587 echo "$as_me:$LINENO: checking for COIN-OR module Miplib3" >&522588 echo $ECHO_N "checking for COIN-OR module Miplib3... $ECHO_C" >&622589 22590 coin_has_miplib3=notGiven22591 22592 # check if user wants to skip module in any case22593 if test x"$COIN_SKIP_PROJECTS" != x; then22594 for dir in $COIN_SKIP_PROJECTS; do22595 if test $dir = "Miplib3"; then22596 coin_has_miplib3=skipping22597 fi22598 done22599 fi22600 22601 MIPLIB3_LIBS=22602 MIPLIB3_CFLAGS=22603 MIPLIB3_DATA=22604 22605 22606 22607 22608 22609 #check if user provided LIBS, CFLAGS, or DATA for module22610 if test $coin_has_miplib3 != skipping; then22611 22612 22613 # Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given.22614 if test "${with_miplib3_lib+set}" = set; then22615 withval="$with_miplib3_lib"22616 coin_has_miplib3=yes22617 MIPLIB3_LIBS="$withval"22618 22619 22620 fi;22621 22622 22623 # Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given.22624 if test "${with_miplib3_incdir+set}" = set; then22625 withval="$with_miplib3_incdir"22626 coin_has_miplib3=yes22627 MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`"22628 fi;22629 22630 22631 # Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given.22632 if test "${with_miplib3_datadir+set}" = set; then22633 withval="$with_miplib3_datadir"22634 coin_has_miplib3=yes22635 MIPLIB3_DATA="$withval"22636 fi;22637 fi22638 22639 if test $coin_has_miplib3 = notGiven; then22640 if test -n "$PKG_CONFIG" ; then22641 # set search path for pkg-config22642 # need to export variable to be sure that the following pkg-config gets these values22643 coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"22644 PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"22645 export PKG_CONFIG_PATH22646 22647 # let pkg-config do it's magic22648 22649 22650 22651 if test -n "$PKG_CONFIG" ; then22652 if $PKG_CONFIG --exists "coindatamiplib3"; then22653 MIPLIB3_VERSIONS="`$PKG_CONFIG --modversion coindatamiplib3 2>/dev/null`"22654 cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/null`22655 # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files22656 # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's22657 # but only do this if is not trivial22658 if test "$CYGPATH_W" != "echo" ; then22659 # need to put into brackets since otherwise autoconf replaces the brackets in the sed command22660 cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`22661 fi22662 MIPLIB3_CFLAGS="$cflags"22663 MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null`22664 MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/null`22665 coin_has_miplib3=yes22666 echo "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&522667 echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&622668 22669 22670 22671 else22672 MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatamiplib3`22673 coin_has_miplib3=notGiven22674 echo "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&522675 echo "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&622676 22677 fi22678 else22679 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&522680 echo "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;}22681 { (exit 1); exit 1; }; }22682 fi22683 22684 22685 22686 22687 # reset PKG_CONFIG_PATH variable22688 PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"22689 export PKG_CONFIG_PATH22690 else22691 #if 4th argument is given, try fallback - whereby we take the first word from coindatamiplib3 as basename for the .pc file22692 22693 if test x$coin_has_miplib3 != "xyes" ; then22694 22695 22696 22697 coin_has_miplib3=notGiven22698 22699 # check if user wants to skip module in any case22700 if test x"$COIN_SKIP_PROJECTS" != x; then22701 for dir in $COIN_SKIP_PROJECTS; do22702 if test $dir = "Miplib3"; then22703 coin_has_miplib3=skipping22704 fi22705 done22706 fi22707 22708 MIPLIB3_LIBS=22709 MIPLIB3_CFLAGS=22710 MIPLIB3_DATA=22711 22712 22713 if test $coin_has_miplib3 != "skipping" ; then22714 # if the project is available and configured, then a project-uninstalled.pc file should have been created22715 if test -r ../Data/Miplib3/coindatamiplib3-uninstalled.pc ; then22716 # read CFLAGS and LIBS from m4_bpatsubst(coindatamiplib3, [ .*], [])-uninstalled.pc file22717 # add CYGPATH_W cludge into include flags22718 # replace -L${libdir} by absolute path to build directory in linker flags22719 # we assume that the build directory is ../Data/Miplib3/src if this directory exists, otherwise we assume that it is ../Data/Miplib322720 MIPLIB3_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Data/Miplib3/coindatamiplib3-uninstalled.pc`22721 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Data/Miplib3/coindatamiplib3-uninstalled.pc`22722 if test "x$projectlibs" != x ; then22723 if test -d ../Data/Miplib3/src ; then22724 MIPLIB3_LIBS="-L`cd ../Data/Miplib3/src; pwd` $projectlibs"22725 else22726 MIPLIB3_LIBS="-L`cd ../Data/Miplib3; pwd` $projectlibs"22727 fi22728 else22729 MIPLIB3_LIBS=`sed -n -e 's/Libs://p' ../Data/Miplib3/coindatamiplib3-uninstalled.pc`22730 fi22731 MIPLIB3_DATA=`sed -n -e 's/datadir=//gp' ../Data/Miplib3/coindatamiplib3-uninstalled.pc`22732 22733 22734 22735 22736 cat >>confdefs.h <<\_ACEOF22737 #define COIN_HAS_MIPLIB3 122738 _ACEOF22739 22740 22741 22742 coin_has_miplib3=yes22743 echo "$as_me:$LINENO: result: ../Data/Miplib3" >&522744 echo "${ECHO_T}../Data/Miplib3" >&622745 else22746 echo "$as_me:$LINENO: result: $coin_has_miplib3" >&522747 echo "${ECHO_T}$coin_has_miplib3" >&622748 fi22749 else22750 echo "$as_me:$LINENO: result: skipping" >&522751 echo "${ECHO_T}skipping" >&622752 fi22753 22754 #if user did not disable setting of makefile conditional, do it22755 22756 22757 if test $coin_has_miplib3 != notGiven &&22758 test $coin_has_miplib3 != skipping; then22759 COIN_HAS_MIPLIB3_TRUE=22760 COIN_HAS_MIPLIB3_FALSE='#'22761 else22762 COIN_HAS_MIPLIB3_TRUE='#'22763 COIN_HAS_MIPLIB3_FALSE=22764 fi22765 22766 22767 fi22768 22769 22770 fi22771 22772 else22773 echo "$as_me:$LINENO: result: $coin_has_miplib3" >&522774 echo "${ECHO_T}$coin_has_miplib3" >&622775 fi22776 22777 if test $coin_has_miplib3 != skipping &&22778 test $coin_has_miplib3 != notGiven ; then22779 if test 0 = 1 ; then #change this test to enable a bit of debugging output22780 if test -n "$MIPLIB3_CFLAGS" ; then22781 { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&522782 echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}22783 fi22784 if test -n "$MIPLIB3_LIBS" ; then22785 { echo "$as_me:$LINENO: Miplib3 LIBS are $MIPLIB3_LIBS" >&522786 echo "$as_me: Miplib3 LIBS are $MIPLIB3_LIBS" >&6;}22787 fi22788 if test -n "$MIPLIB3_DATA" ; then22789 { echo "$as_me:$LINENO: Miplib3 DATA is $MIPLIB3_DATA" >&522790 echo "$as_me: Miplib3 DATA is $MIPLIB3_DATA" >&6;}22791 fi22792 fi22793 22794 cat >>confdefs.h <<\_ACEOF22795 #define COIN_HAS_MIPLIB3 122796 _ACEOF22797 22798 fi22799 22800 # Define the Makefile conditional22801 22802 22803 if test $coin_has_miplib3 != notGiven &&22804 test $coin_has_miplib3 != skipping; then22805 COIN_HAS_MIPLIB3_TRUE=22806 COIN_HAS_MIPLIB3_FALSE='#'22807 else22808 COIN_HAS_MIPLIB3_TRUE='#'22809 COIN_HAS_MIPLIB3_FALSE=22810 fi22811 22812 22813 22814 22815 #############################################################################22816 # Third party solvers #22817 #############################################################################22818 22819 # Check which third party solvers are available22820 22953 22821 22954 echo "$as_me:$LINENO: checking for COIN-OR module Cpx" >&5 … … 22923 23056 export PKG_CONFIG_PATH 22924 23057 else 22925 #if 4th argument is given, try fallback - whereby we take the first word from osi-cplex as basename for the .pc file 22926 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 22927 echo "${ECHO_T}skipped check via pkg-config" >&6 23058 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 23059 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 23060 23061 echo "$as_me:$LINENO: checking for COIN-OR module Cpx (fallback)" >&5 23062 echo $ECHO_N "checking for COIN-OR module Cpx (fallback)... $ECHO_C" >&6 23063 23064 coin_has_cpx=notGiven 23065 CPX_LIBS= 23066 CPX_CFLAGS= 23067 CPX_DATA= 23068 23069 23070 # initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x) 23071 projtoprocess="osi-cplex" 23072 projprocessed="" 23073 23074 while test $coin_has_cpx = notGiven ; do 23075 # setup list of projects that need to be processed in the next round 23076 nextprojtoprocess="" 23077 23078 for proj in $projtoprocess ; do 23079 # if $proj has been processed already, skip this round 23080 if test "x$projprocessed" != x ; then 23081 for projdone in $projprocessed ; do 23082 if test $projdone = $proj ; then 23083 continue 2 23084 fi 23085 done 23086 fi 23087 23088 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 23089 pcfile="" 23090 save_IFS="$IFS" 23091 IFS=":" 23092 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 23093 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 23094 if test -r "$dir/$proj-uninstalled.pc" ; then 23095 pcfile="$dir/$proj-uninstalled.pc" 23096 pcfiledir="$dir" 23097 break 23098 fi 23099 done 23100 IFS="$save_IFS" 23101 23102 if test "x$pcfile" != x ; then 23103 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 23104 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 23105 CPX_CFLAGS="$projcflags $CPX_CFLAGS" 23106 23107 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 23108 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 23109 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 23110 if test "x$projlibs" != x ; then 23111 if test -d "${pcfiledir}/src" ; then 23112 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 23113 else 23114 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 23115 fi 23116 else 23117 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 23118 fi 23119 CPX_LIBS="$projlibs $CPX_LIBS" 23120 23121 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 23122 if test "x$projprocessed" = x ; then 23123 CPX_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 23124 fi 23125 23126 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 23127 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 23128 nextprojtoprocess="$nextprojtoprocess $projrequires" 23129 23130 # remember that we have processed $proj 23131 projprocessed="$projprocessed $proj" 23132 23133 else 23134 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 23135 echo "${ECHO_T}no, dependency $proj not available" >&6 23136 break 2 23137 fi 23138 23139 done 23140 23141 projtoprocess="$nextprojtoprocess" 23142 23143 if test "x$projtoprocess" = x ; then 23144 coin_has_cpx=yes 23145 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 23146 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 23147 23148 REQUIREDPACKAGES="osi-cplex $REQUIREDPACKAGES" 23149 23150 cat >>confdefs.h <<\_ACEOF 23151 #define COIN_HAS_CPX 1 23152 _ACEOF 23153 23154 23155 if test 1 = 0 ; then #change this test to enable a bit of debugging output 23156 if test -n "$CPX_CFLAGS" ; then 23157 { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5 23158 echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;} 23159 fi 23160 if test -n "$CPX_LIBS" ; then 23161 { echo "$as_me:$LINENO: Cpx LIBS are $CPX_LIBS" >&5 23162 echo "$as_me: Cpx LIBS are $CPX_LIBS" >&6;} 23163 fi 23164 if test -n "$CPX_DATA" ; then 23165 { echo "$as_me:$LINENO: Cpx DATA is $CPX_DATA" >&5 23166 echo "$as_me: Cpx DATA is $CPX_DATA" >&6;} 23167 fi 23168 fi 23169 fi 23170 done 23171 23172 23173 23174 if test $coin_has_cpx != notGiven && 23175 test $coin_has_cpx != skipping; then 23176 COIN_HAS_CPX_TRUE= 23177 COIN_HAS_CPX_FALSE='#' 23178 else 23179 COIN_HAS_CPX_TRUE='#' 23180 COIN_HAS_CPX_FALSE= 23181 fi 23182 23183 22928 23184 22929 23185 fi … … 23076 23332 export PKG_CONFIG_PATH 23077 23333 else 23078 #if 4th argument is given, try fallback - whereby we take the first word from osi-glpk as basename for the .pc file 23079 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 23080 echo "${ECHO_T}skipped check via pkg-config" >&6 23334 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 23335 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 23336 23337 echo "$as_me:$LINENO: checking for COIN-OR module Glpk (fallback)" >&5 23338 echo $ECHO_N "checking for COIN-OR module Glpk (fallback)... $ECHO_C" >&6 23339 23340 coin_has_glpk=notGiven 23341 GLPK_LIBS= 23342 GLPK_CFLAGS= 23343 GLPK_DATA= 23344 23345 23346 # initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x) 23347 projtoprocess="osi-glpk" 23348 projprocessed="" 23349 23350 while test $coin_has_glpk = notGiven ; do 23351 # setup list of projects that need to be processed in the next round 23352 nextprojtoprocess="" 23353 23354 for proj in $projtoprocess ; do 23355 # if $proj has been processed already, skip this round 23356 if test "x$projprocessed" != x ; then 23357 for projdone in $projprocessed ; do 23358 if test $projdone = $proj ; then 23359 continue 2 23360 fi 23361 done 23362 fi 23363 23364 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 23365 pcfile="" 23366 save_IFS="$IFS" 23367 IFS=":" 23368 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 23369 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 23370 if test -r "$dir/$proj-uninstalled.pc" ; then 23371 pcfile="$dir/$proj-uninstalled.pc" 23372 pcfiledir="$dir" 23373 break 23374 fi 23375 done 23376 IFS="$save_IFS" 23377 23378 if test "x$pcfile" != x ; then 23379 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 23380 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 23381 GLPK_CFLAGS="$projcflags $GLPK_CFLAGS" 23382 23383 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 23384 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 23385 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 23386 if test "x$projlibs" != x ; then 23387 if test -d "${pcfiledir}/src" ; then 23388 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 23389 else 23390 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 23391 fi 23392 else 23393 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 23394 fi 23395 GLPK_LIBS="$projlibs $GLPK_LIBS" 23396 23397 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 23398 if test "x$projprocessed" = x ; then 23399 GLPK_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 23400 fi 23401 23402 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 23403 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 23404 nextprojtoprocess="$nextprojtoprocess $projrequires" 23405 23406 # remember that we have processed $proj 23407 projprocessed="$projprocessed $proj" 23408 23409 else 23410 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 23411 echo "${ECHO_T}no, dependency $proj not available" >&6 23412 break 2 23413 fi 23414 23415 done 23416 23417 projtoprocess="$nextprojtoprocess" 23418 23419 if test "x$projtoprocess" = x ; then 23420 coin_has_glpk=yes 23421 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 23422 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 23423 23424 REQUIREDPACKAGES="osi-glpk $REQUIREDPACKAGES" 23425 23426 cat >>confdefs.h <<\_ACEOF 23427 #define COIN_HAS_GLPK 1 23428 _ACEOF 23429 23430 23431 if test 1 = 0 ; then #change this test to enable a bit of debugging output 23432 if test -n "$GLPK_CFLAGS" ; then 23433 { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5 23434 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;} 23435 fi 23436 if test -n "$GLPK_LIBS" ; then 23437 { echo "$as_me:$LINENO: Glpk LIBS are $GLPK_LIBS" >&5 23438 echo "$as_me: Glpk LIBS are $GLPK_LIBS" >&6;} 23439 fi 23440 if test -n "$GLPK_DATA" ; then 23441 { echo "$as_me:$LINENO: Glpk DATA is $GLPK_DATA" >&5 23442 echo "$as_me: Glpk DATA is $GLPK_DATA" >&6;} 23443 fi 23444 fi 23445 fi 23446 done 23447 23448 23449 23450 if test $coin_has_glpk != notGiven && 23451 test $coin_has_glpk != skipping; then 23452 COIN_HAS_GLPK_TRUE= 23453 COIN_HAS_GLPK_FALSE='#' 23454 else 23455 COIN_HAS_GLPK_TRUE='#' 23456 COIN_HAS_GLPK_FALSE= 23457 fi 23458 23459 23081 23460 23082 23461 fi … … 23229 23608 export PKG_CONFIG_PATH 23230 23609 else 23231 #if 4th argument is given, try fallback - whereby we take the first word from osi-gurobi as basename for the .pc file 23232 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 23233 echo "${ECHO_T}skipped check via pkg-config" >&6 23610 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 23611 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 23612 23613 echo "$as_me:$LINENO: checking for COIN-OR module Grb (fallback)" >&5 23614 echo $ECHO_N "checking for COIN-OR module Grb (fallback)... $ECHO_C" >&6 23615 23616 coin_has_grb=notGiven 23617 GRB_LIBS= 23618 GRB_CFLAGS= 23619 GRB_DATA= 23620 23621 23622 # initial list of dependencies is "osi-gurobi", but we need to filter out version number specifications (= x, <= x, >= x) 23623 projtoprocess="osi-gurobi" 23624 projprocessed="" 23625 23626 while test $coin_has_grb = notGiven ; do 23627 # setup list of projects that need to be processed in the next round 23628 nextprojtoprocess="" 23629 23630 for proj in $projtoprocess ; do 23631 # if $proj has been processed already, skip this round 23632 if test "x$projprocessed" != x ; then 23633 for projdone in $projprocessed ; do 23634 if test $projdone = $proj ; then 23635 continue 2 23636 fi 23637 done 23638 fi 23639 23640 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 23641 pcfile="" 23642 save_IFS="$IFS" 23643 IFS=":" 23644 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 23645 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 23646 if test -r "$dir/$proj-uninstalled.pc" ; then 23647 pcfile="$dir/$proj-uninstalled.pc" 23648 pcfiledir="$dir" 23649 break 23650 fi 23651 done 23652 IFS="$save_IFS" 23653 23654 if test "x$pcfile" != x ; then 23655 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 23656 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 23657 GRB_CFLAGS="$projcflags $GRB_CFLAGS" 23658 23659 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 23660 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 23661 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 23662 if test "x$projlibs" != x ; then 23663 if test -d "${pcfiledir}/src" ; then 23664 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 23665 else 23666 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 23667 fi 23668 else 23669 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 23670 fi 23671 GRB_LIBS="$projlibs $GRB_LIBS" 23672 23673 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 23674 if test "x$projprocessed" = x ; then 23675 GRB_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 23676 fi 23677 23678 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 23679 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 23680 nextprojtoprocess="$nextprojtoprocess $projrequires" 23681 23682 # remember that we have processed $proj 23683 projprocessed="$projprocessed $proj" 23684 23685 else 23686 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 23687 echo "${ECHO_T}no, dependency $proj not available" >&6 23688 break 2 23689 fi 23690 23691 done 23692 23693 projtoprocess="$nextprojtoprocess" 23694 23695 if test "x$projtoprocess" = x ; then 23696 coin_has_grb=yes 23697 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 23698 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 23699 23700 REQUIREDPACKAGES="osi-gurobi $REQUIREDPACKAGES" 23701 23702 cat >>confdefs.h <<\_ACEOF 23703 #define COIN_HAS_GRB 1 23704 _ACEOF 23705 23706 23707 if test 1 = 0 ; then #change this test to enable a bit of debugging output 23708 if test -n "$GRB_CFLAGS" ; then 23709 { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5 23710 echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;} 23711 fi 23712 if test -n "$GRB_LIBS" ; then 23713 { echo "$as_me:$LINENO: Grb LIBS are $GRB_LIBS" >&5 23714 echo "$as_me: Grb LIBS are $GRB_LIBS" >&6;} 23715 fi 23716 if test -n "$GRB_DATA" ; then 23717 { echo "$as_me:$LINENO: Grb DATA is $GRB_DATA" >&5 23718 echo "$as_me: Grb DATA is $GRB_DATA" >&6;} 23719 fi 23720 fi 23721 fi 23722 done 23723 23724 23725 23726 if test $coin_has_grb != notGiven && 23727 test $coin_has_grb != skipping; then 23728 COIN_HAS_GRB_TRUE= 23729 COIN_HAS_GRB_FALSE='#' 23730 else 23731 COIN_HAS_GRB_TRUE='#' 23732 COIN_HAS_GRB_FALSE= 23733 fi 23734 23735 23234 23736 23235 23737 fi … … 23382 23884 export PKG_CONFIG_PATH 23383 23885 else 23384 #if 4th argument is given, try fallback - whereby we take the first word from osi-mosek as basename for the .pc file 23385 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 23386 echo "${ECHO_T}skipped check via pkg-config" >&6 23886 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 23887 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 23888 23889 echo "$as_me:$LINENO: checking for COIN-OR module Msk (fallback)" >&5 23890 echo $ECHO_N "checking for COIN-OR module Msk (fallback)... $ECHO_C" >&6 23891 23892 coin_has_msk=notGiven 23893 MSK_LIBS= 23894 MSK_CFLAGS= 23895 MSK_DATA= 23896 23897 23898 # initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x) 23899 projtoprocess="osi-mosek" 23900 projprocessed="" 23901 23902 while test $coin_has_msk = notGiven ; do 23903 # setup list of projects that need to be processed in the next round 23904 nextprojtoprocess="" 23905 23906 for proj in $projtoprocess ; do 23907 # if $proj has been processed already, skip this round 23908 if test "x$projprocessed" != x ; then 23909 for projdone in $projprocessed ; do 23910 if test $projdone = $proj ; then 23911 continue 2 23912 fi 23913 done 23914 fi 23915 23916 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 23917 pcfile="" 23918 save_IFS="$IFS" 23919 IFS=":" 23920 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 23921 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 23922 if test -r "$dir/$proj-uninstalled.pc" ; then 23923 pcfile="$dir/$proj-uninstalled.pc" 23924 pcfiledir="$dir" 23925 break 23926 fi 23927 done 23928 IFS="$save_IFS" 23929 23930 if test "x$pcfile" != x ; then 23931 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 23932 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 23933 MSK_CFLAGS="$projcflags $MSK_CFLAGS" 23934 23935 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 23936 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 23937 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 23938 if test "x$projlibs" != x ; then 23939 if test -d "${pcfiledir}/src" ; then 23940 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 23941 else 23942 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 23943 fi 23944 else 23945 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 23946 fi 23947 MSK_LIBS="$projlibs $MSK_LIBS" 23948 23949 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 23950 if test "x$projprocessed" = x ; then 23951 MSK_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 23952 fi 23953 23954 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 23955 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 23956 nextprojtoprocess="$nextprojtoprocess $projrequires" 23957 23958 # remember that we have processed $proj 23959 projprocessed="$projprocessed $proj" 23960 23961 else 23962 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 23963 echo "${ECHO_T}no, dependency $proj not available" >&6 23964 break 2 23965 fi 23966 23967 done 23968 23969 projtoprocess="$nextprojtoprocess" 23970 23971 if test "x$projtoprocess" = x ; then 23972 coin_has_msk=yes 23973 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 23974 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 23975 23976 REQUIREDPACKAGES="osi-mosek $REQUIREDPACKAGES" 23977 23978 cat >>confdefs.h <<\_ACEOF 23979 #define COIN_HAS_MSK 1 23980 _ACEOF 23981 23982 23983 if test 1 = 0 ; then #change this test to enable a bit of debugging output 23984 if test -n "$MSK_CFLAGS" ; then 23985 { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5 23986 echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;} 23987 fi 23988 if test -n "$MSK_LIBS" ; then 23989 { echo "$as_me:$LINENO: Msk LIBS are $MSK_LIBS" >&5 23990 echo "$as_me: Msk LIBS are $MSK_LIBS" >&6;} 23991 fi 23992 if test -n "$MSK_DATA" ; then 23993 { echo "$as_me:$LINENO: Msk DATA is $MSK_DATA" >&5 23994 echo "$as_me: Msk DATA is $MSK_DATA" >&6;} 23995 fi 23996 fi 23997 fi 23998 done 23999 24000 24001 24002 if test $coin_has_msk != notGiven && 24003 test $coin_has_msk != skipping; then 24004 COIN_HAS_MSK_TRUE= 24005 COIN_HAS_MSK_FALSE='#' 24006 else 24007 COIN_HAS_MSK_TRUE='#' 24008 COIN_HAS_MSK_FALSE= 24009 fi 24010 24011 23387 24012 23388 24013 fi … … 23535 24160 export PKG_CONFIG_PATH 23536 24161 else 23537 #if 4th argument is given, try fallback - whereby we take the first word from osi-soplex as basename for the .pc file 23538 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 23539 echo "${ECHO_T}skipped check via pkg-config" >&6 24162 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 24163 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 24164 24165 echo "$as_me:$LINENO: checking for COIN-OR module Spx (fallback)" >&5 24166 echo $ECHO_N "checking for COIN-OR module Spx (fallback)... $ECHO_C" >&6 24167 24168 coin_has_spx=notGiven 24169 SPX_LIBS= 24170 SPX_CFLAGS= 24171 SPX_DATA= 24172 24173 24174 # initial list of dependencies is "osi-soplex", but we need to filter out version number specifications (= x, <= x, >= x) 24175 projtoprocess="osi-soplex" 24176 projprocessed="" 24177 24178 while test $coin_has_spx = notGiven ; do 24179 # setup list of projects that need to be processed in the next round 24180 nextprojtoprocess="" 24181 24182 for proj in $projtoprocess ; do 24183 # if $proj has been processed already, skip this round 24184 if test "x$projprocessed" != x ; then 24185 for projdone in $projprocessed ; do 24186 if test $projdone = $proj ; then 24187 continue 2 24188 fi 24189 done 24190 fi 24191 24192 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 24193 pcfile="" 24194 save_IFS="$IFS" 24195 IFS=":" 24196 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 24197 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 24198 if test -r "$dir/$proj-uninstalled.pc" ; then 24199 pcfile="$dir/$proj-uninstalled.pc" 24200 pcfiledir="$dir" 24201 break 24202 fi 24203 done 24204 IFS="$save_IFS" 24205 24206 if test "x$pcfile" != x ; then 24207 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 24208 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 24209 SPX_CFLAGS="$projcflags $SPX_CFLAGS" 24210 24211 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 24212 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 24213 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 24214 if test "x$projlibs" != x ; then 24215 if test -d "${pcfiledir}/src" ; then 24216 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 24217 else 24218 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 24219 fi 24220 else 24221 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 24222 fi 24223 SPX_LIBS="$projlibs $SPX_LIBS" 24224 24225 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 24226 if test "x$projprocessed" = x ; then 24227 SPX_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 24228 fi 24229 24230 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 24231 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 24232 nextprojtoprocess="$nextprojtoprocess $projrequires" 24233 24234 # remember that we have processed $proj 24235 projprocessed="$projprocessed $proj" 24236 24237 else 24238 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 24239 echo "${ECHO_T}no, dependency $proj not available" >&6 24240 break 2 24241 fi 24242 24243 done 24244 24245 projtoprocess="$nextprojtoprocess" 24246 24247 if test "x$projtoprocess" = x ; then 24248 coin_has_spx=yes 24249 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 24250 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 24251 24252 REQUIREDPACKAGES="osi-soplex $REQUIREDPACKAGES" 24253 24254 cat >>confdefs.h <<\_ACEOF 24255 #define COIN_HAS_SPX 1 24256 _ACEOF 24257 24258 24259 if test 1 = 0 ; then #change this test to enable a bit of debugging output 24260 if test -n "$SPX_CFLAGS" ; then 24261 { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5 24262 echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;} 24263 fi 24264 if test -n "$SPX_LIBS" ; then 24265 { echo "$as_me:$LINENO: Spx LIBS are $SPX_LIBS" >&5 24266 echo "$as_me: Spx LIBS are $SPX_LIBS" >&6;} 24267 fi 24268 if test -n "$SPX_DATA" ; then 24269 { echo "$as_me:$LINENO: Spx DATA is $SPX_DATA" >&5 24270 echo "$as_me: Spx DATA is $SPX_DATA" >&6;} 24271 fi 24272 fi 24273 fi 24274 done 24275 24276 24277 24278 if test $coin_has_spx != notGiven && 24279 test $coin_has_spx != skipping; then 24280 COIN_HAS_SPX_TRUE= 24281 COIN_HAS_SPX_FALSE='#' 24282 else 24283 COIN_HAS_SPX_TRUE='#' 24284 COIN_HAS_SPX_FALSE= 24285 fi 24286 24287 23540 24288 23541 24289 fi … … 23688 24436 export PKG_CONFIG_PATH 23689 24437 else 23690 #if 4th argument is given, try fallback - whereby we take the first word from osi-xpress as basename for the .pc file 23691 echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5 23692 echo "${ECHO_T}skipped check via pkg-config" >&6 24438 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 24439 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 24440 24441 echo "$as_me:$LINENO: checking for COIN-OR module Xpr (fallback)" >&5 24442 echo $ECHO_N "checking for COIN-OR module Xpr (fallback)... $ECHO_C" >&6 24443 24444 coin_has_xpr=notGiven 24445 XPR_LIBS= 24446 XPR_CFLAGS= 24447 XPR_DATA= 24448 24449 24450 # initial list of dependencies is "osi-xpress", but we need to filter out version number specifications (= x, <= x, >= x) 24451 projtoprocess="osi-xpress" 24452 projprocessed="" 24453 24454 while test $coin_has_xpr = notGiven ; do 24455 # setup list of projects that need to be processed in the next round 24456 nextprojtoprocess="" 24457 24458 for proj in $projtoprocess ; do 24459 # if $proj has been processed already, skip this round 24460 if test "x$projprocessed" != x ; then 24461 for projdone in $projprocessed ; do 24462 if test $projdone = $proj ; then 24463 continue 2 24464 fi 24465 done 24466 fi 24467 24468 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 24469 pcfile="" 24470 save_IFS="$IFS" 24471 IFS=":" 24472 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 24473 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 24474 if test -r "$dir/$proj-uninstalled.pc" ; then 24475 pcfile="$dir/$proj-uninstalled.pc" 24476 pcfiledir="$dir" 24477 break 24478 fi 24479 done 24480 IFS="$save_IFS" 24481 24482 if test "x$pcfile" != x ; then 24483 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 24484 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 24485 XPR_CFLAGS="$projcflags $XPR_CFLAGS" 24486 24487 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 24488 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 24489 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 24490 if test "x$projlibs" != x ; then 24491 if test -d "${pcfiledir}/src" ; then 24492 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 24493 else 24494 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 24495 fi 24496 else 24497 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 24498 fi 24499 XPR_LIBS="$projlibs $XPR_LIBS" 24500 24501 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 24502 if test "x$projprocessed" = x ; then 24503 XPR_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 24504 fi 24505 24506 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 24507 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 24508 nextprojtoprocess="$nextprojtoprocess $projrequires" 24509 24510 # remember that we have processed $proj 24511 projprocessed="$projprocessed $proj" 24512 24513 else 24514 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 24515 echo "${ECHO_T}no, dependency $proj not available" >&6 24516 break 2 24517 fi 24518 24519 done 24520 24521 projtoprocess="$nextprojtoprocess" 24522 24523 if test "x$projtoprocess" = x ; then 24524 coin_has_xpr=yes 24525 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 24526 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 24527 24528 REQUIREDPACKAGES="osi-xpress $REQUIREDPACKAGES" 24529 24530 cat >>confdefs.h <<\_ACEOF 24531 #define COIN_HAS_XPR 1 24532 _ACEOF 24533 24534 24535 if test 1 = 0 ; then #change this test to enable a bit of debugging output 24536 if test -n "$XPR_CFLAGS" ; then 24537 { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5 24538 echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;} 24539 fi 24540 if test -n "$XPR_LIBS" ; then 24541 { echo "$as_me:$LINENO: Xpr LIBS are $XPR_LIBS" >&5 24542 echo "$as_me: Xpr LIBS are $XPR_LIBS" >&6;} 24543 fi 24544 if test -n "$XPR_DATA" ; then 24545 { echo "$as_me:$LINENO: Xpr DATA is $XPR_DATA" >&5 24546 echo "$as_me: Xpr DATA is $XPR_DATA" >&6;} 24547 fi 24548 fi 24549 fi 24550 done 24551 24552 24553 24554 if test $coin_has_xpr != notGiven && 24555 test $coin_has_xpr != skipping; then 24556 COIN_HAS_XPR_TRUE= 24557 COIN_HAS_XPR_FALSE='#' 24558 else 24559 COIN_HAS_XPR_TRUE='#' 24560 COIN_HAS_XPR_FALSE= 24561 fi 24562 24563 23693 24564 23694 24565 fi … … 23847 24718 export PKG_CONFIG_PATH 23848 24719 else 23849 #if 4th argument is given, try fallback - whereby we take the first word from coinasl as basename for the .pc file23850 23851 if test x$coin_has_asl != "xyes" ; then 23852 23853 24720 echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5 24721 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 24722 24723 echo "$as_me:$LINENO: checking for COIN-OR module ASL (fallback)" >&5 24724 echo $ECHO_N "checking for COIN-OR module ASL (fallback)... $ECHO_C" >&6 23854 24725 23855 24726 coin_has_asl=notGiven 23856 23857 # check if user wants to skip module in any case23858 if test x"$COIN_SKIP_PROJECTS" != x; then23859 for dir in $COIN_SKIP_PROJECTS; do23860 if test $dir = "ASL"; then23861 coin_has_asl=skipping23862 fi23863 done23864 fi23865 23866 24727 ASL_LIBS= 23867 24728 ASL_CFLAGS= … … 23869 24730 23870 24731 23871 if test $coin_has_asl != "skipping" ; then 23872 # if the project is available and configured, then a project-uninstalled.pc file should have been created 23873 if test -r ../ThirdParty/ASL/coinasl-uninstalled.pc ; then 23874 # read CFLAGS and LIBS from m4_bpatsubst(coinasl, [ .*], [])-uninstalled.pc file 23875 # add CYGPATH_W cludge into include flags 23876 # replace -L${libdir} by absolute path to build directory in linker flags 23877 # we assume that the build directory is ../ThirdParty/ASL/src if this directory exists, otherwise we assume that it is ../ThirdParty/ASL 23878 ASL_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../ThirdParty/ASL/coinasl-uninstalled.pc` 23879 projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../ThirdParty/ASL/coinasl-uninstalled.pc` 23880 if test "x$projectlibs" != x ; then 23881 if test -d ../ThirdParty/ASL/src ; then 23882 ASL_LIBS="-L`cd ../ThirdParty/ASL/src; pwd` $projectlibs" 24732 # initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x) 24733 projtoprocess="coinasl" 24734 projprocessed="" 24735 24736 while test $coin_has_asl = notGiven ; do 24737 # setup list of projects that need to be processed in the next round 24738 nextprojtoprocess="" 24739 24740 for proj in $projtoprocess ; do 24741 # if $proj has been processed already, skip this round 24742 if test "x$projprocessed" != x ; then 24743 for projdone in $projprocessed ; do 24744 if test $projdone = $proj ; then 24745 continue 2 24746 fi 24747 done 24748 fi 24749 24750 # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it 24751 pcfile="" 24752 save_IFS="$IFS" 24753 IFS=":" 24754 for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do 24755 # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again 24756 if test -r "$dir/$proj-uninstalled.pc" ; then 24757 pcfile="$dir/$proj-uninstalled.pc" 24758 pcfiledir="$dir" 24759 break 24760 fi 24761 done 24762 IFS="$save_IFS" 24763 24764 if test "x$pcfile" != x ; then 24765 # read CFLAGS from $pcfile and add CYGPATH_W cludge into include flags 24766 projcflags=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' "$pcfile"` 24767 ASL_CFLAGS="$projcflags $ASL_CFLAGS" 24768 24769 # read LIBS from $pcfile and replace -L${libdir} by absolute path to build directory in linker flags 24770 # we assume that the build directory is $pcfiledir/src if this directory exists, otherwise we assume that it is $pcfiledir 24771 projlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' "$pcfile"` 24772 if test "x$projlibs" != x ; then 24773 if test -d "${pcfiledir}/src" ; then 24774 projlibs="-L`cd "${pcfiledir}/src"; pwd` $projlibs" 24775 else 24776 projlibs="-L`cd "$pcfiledir"; pwd` $projlibs" 24777 fi 23883 24778 else 23884 ASL_LIBS="-L`cd ../ThirdParty/ASL; pwd` $projectlibs"24779 projlibs=`sed -n -e 's/Libs://p' "$pcfile"` 23885 24780 fi 24781 ASL_LIBS="$projlibs $ASL_LIBS" 24782 24783 # read DATA from $pcfile, if this is the first .pc file we are processing (so assume that its the main one) 24784 if test "x$projprocessed" = x ; then 24785 ASL_DATA=`sed -n -e 's/datadir=//gp' "$pcfile"` 24786 fi 24787 24788 # read dependencies from $pcfile, filter it, and add to list of projects that need to be processed next 24789 projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\?>\?=[ ]*[^ ]\+//g'` 24790 nextprojtoprocess="$nextprojtoprocess $projrequires" 24791 24792 # remember that we have processed $proj 24793 projprocessed="$projprocessed $proj" 24794 23886 24795 else 23887 ASL_LIBS=`sed -n -e 's/Libs://p' ../ThirdParty/ASL/coinasl-uninstalled.pc` 24796 echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5 24797 echo "${ECHO_T}no, dependency $proj not available" >&6 24798 break 2 23888 24799 fi 23889 ASL_DATA=`sed -n -e 's/datadir=//gp' ../ThirdParty/ASL/coinasl-uninstalled.pc` 23890 24800 24801 done 24802 24803 projtoprocess="$nextprojtoprocess" 24804 24805 if test "x$projtoprocess" = x ; then 24806 coin_has_asl=yes 24807 echo "$as_me:$LINENO: result: yes, dependencies are$projprocessed" >&5 24808 echo "${ECHO_T}yes, dependencies are$projprocessed" >&6 23891 24809 23892 24810 … … 23897 24815 23898 24816 23899 23900 coin_has_asl=yes 23901 echo "$as_me:$LINENO: result: ../ThirdParty/ASL" >&5 23902 echo "${ECHO_T}../ThirdParty/ASL" >&6 23903 else 23904 echo "$as_me:$LINENO: result: $coin_has_asl" >&5 23905 echo "${ECHO_T}$coin_has_asl" >&6 23906 fi 23907 else 23908 echo "$as_me:$LINENO: result: skipping" >&5 23909 echo "${ECHO_T}skipping" >&6 23910 fi 23911 23912 #if user did not disable setting of makefile conditional, do it 24817 if test 1 = 0 ; then #change this test to enable a bit of debugging output 24818 if test -n "$ASL_CFLAGS" ; then 24819 { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5 24820 echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;} 24821 fi 24822 if test -n "$ASL_LIBS" ; then 24823 { echo "$as_me:$LINENO: ASL LIBS are $ASL_LIBS" >&5 24824 echo "$as_me: ASL LIBS are $ASL_LIBS" >&6;} 24825 fi 24826 if test -n "$ASL_DATA" ; then 24827 { echo "$as_me:$LINENO: ASL DATA is $ASL_DATA" >&5 24828 echo "$as_me: ASL DATA is $ASL_DATA" >&6;} 24829 fi 24830 fi 24831 fi 24832 done 24833 23913 24834 23914 24835 … … 23922 24843 fi 23923 24844 23924 23925 fi23926 24845 23927 24846 … … 24735 25654 { (exit 1); exit 1; }; } 24736 25655 fi 25656 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then 25657 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 25658 Usually this means the macro was only invoked conditionally." >&5 25659 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 25660 Usually this means the macro was only invoked conditionally." >&2;} 25661 { (exit 1); exit 1; }; } 25662 fi 25663 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then 25664 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 25665 Usually this means the macro was only invoked conditionally." >&5 25666 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 25667 Usually this means the macro was only invoked conditionally." >&2;} 25668 { (exit 1); exit 1; }; } 25669 fi 25670 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then 25671 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 25672 Usually this means the macro was only invoked conditionally." >&5 25673 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 25674 Usually this means the macro was only invoked conditionally." >&2;} 25675 { (exit 1); exit 1; }; } 25676 fi 25677 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then 25678 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 25679 Usually this means the macro was only invoked conditionally." >&5 25680 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 25681 Usually this means the macro was only invoked conditionally." >&2;} 25682 { (exit 1); exit 1; }; } 25683 fi 25684 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then 25685 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined. 25686 Usually this means the macro was only invoked conditionally." >&5 25687 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined. 25688 Usually this means the macro was only invoked conditionally." >&2;} 25689 { (exit 1); exit 1; }; } 25690 fi 25691 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then 25692 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined. 25693 Usually this means the macro was only invoked conditionally." >&5 25694 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined. 25695 Usually this means the macro was only invoked conditionally." >&2;} 25696 { (exit 1); exit 1; }; } 25697 fi 25698 if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then 25699 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 25700 Usually this means the macro was only invoked conditionally." >&5 25701 echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 25702 Usually this means the macro was only invoked conditionally." >&2;} 25703 { (exit 1); exit 1; }; } 25704 fi 25705 if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then 25706 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 25707 Usually this means the macro was only invoked conditionally." >&5 25708 echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 25709 Usually this means the macro was only invoked conditionally." >&2;} 25710 { (exit 1); exit 1; }; } 25711 fi 24737 25712 if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then 24738 25713 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined. … … 24742 25717 { (exit 1); exit 1; }; } 24743 25718 fi 25719 if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then 25720 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined. 25721 Usually this means the macro was only invoked conditionally." >&5 25722 echo "$as_me: error: conditional \"COIN_HAS_DYLP\" was never defined. 25723 Usually this means the macro was only invoked conditionally." >&2;} 25724 { (exit 1); exit 1; }; } 25725 fi 24744 25726 if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then 24745 25727 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined. … … 24749 25731 { (exit 1); exit 1; }; } 24750 25732 fi 24751 if test -z "${COIN_HAS_ OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then24752 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ OSITESTS\" was never defined.25733 if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then 25734 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined. 24753 25735 Usually this means the macro was only invoked conditionally." >&5 24754 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 24755 Usually this means the macro was only invoked conditionally." >&2;} 24756 { (exit 1); exit 1; }; } 24757 fi 24758 if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then 24759 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 24760 Usually this means the macro was only invoked conditionally." >&5 24761 echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined. 24762 Usually this means the macro was only invoked conditionally." >&2;} 24763 { (exit 1); exit 1; }; } 24764 fi 24765 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then 24766 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 24767 Usually this means the macro was only invoked conditionally." >&5 24768 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 24769 Usually this means the macro was only invoked conditionally." >&2;} 24770 { (exit 1); exit 1; }; } 24771 fi 24772 if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then 24773 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 24774 Usually this means the macro was only invoked conditionally." >&5 24775 echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined. 24776 Usually this means the macro was only invoked conditionally." >&2;} 24777 { (exit 1); exit 1; }; } 24778 fi 24779 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then 24780 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined. 24781 Usually this means the macro was only invoked conditionally." >&5 24782 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined. 24783 Usually this means the macro was only invoked conditionally." >&2;} 24784 { (exit 1); exit 1; }; } 24785 fi 24786 if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then 24787 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined. 24788 Usually this means the macro was only invoked conditionally." >&5 24789 echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined. 24790 Usually this means the macro was only invoked conditionally." >&2;} 24791 { (exit 1); exit 1; }; } 24792 fi 24793 if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then 24794 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 24795 Usually this means the macro was only invoked conditionally." >&5 24796 echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 24797 Usually this means the macro was only invoked conditionally." >&2;} 24798 { (exit 1); exit 1; }; } 24799 fi 24800 if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then 24801 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 24802 Usually this means the macro was only invoked conditionally." >&5 24803 echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined. 25736 echo "$as_me: error: conditional \"COIN_HAS_VOL\" was never defined. 24804 25737 Usually this means the macro was only invoked conditionally." >&2;} 24805 25738 { (exit 1); exit 1; }; } … … 24812 25745 { (exit 1); exit 1; }; } 24813 25746 fi 25747 if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then 25748 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined. 25749 Usually this means the macro was only invoked conditionally." >&5 25750 echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined. 25751 Usually this means the macro was only invoked conditionally." >&2;} 25752 { (exit 1); exit 1; }; } 25753 fi 24814 25754 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then 24815 25755 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined. … … 24819 25759 { (exit 1); exit 1; }; } 24820 25760 fi 25761 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then 25762 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined. 25763 Usually this means the macro was only invoked conditionally." >&5 25764 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined. 25765 Usually this means the macro was only invoked conditionally." >&2;} 25766 { (exit 1); exit 1; }; } 25767 fi 24821 25768 if test -z "${COIN_HAS_GRB_TRUE}" && test -z "${COIN_HAS_GRB_FALSE}"; then 24822 25769 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined. … … 24826 25773 { (exit 1); exit 1; }; } 24827 25774 fi 25775 if test -z "${COIN_HAS_GRB_TRUE}" && test -z "${COIN_HAS_GRB_FALSE}"; then 25776 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined. 25777 Usually this means the macro was only invoked conditionally." >&5 25778 echo "$as_me: error: conditional \"COIN_HAS_GRB\" was never defined. 25779 Usually this means the macro was only invoked conditionally." >&2;} 25780 { (exit 1); exit 1; }; } 25781 fi 24828 25782 if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then 24829 25783 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined. … … 24833 25787 { (exit 1); exit 1; }; } 24834 25788 fi 25789 if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then 25790 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined. 25791 Usually this means the macro was only invoked conditionally." >&5 25792 echo "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined. 25793 Usually this means the macro was only invoked conditionally." >&2;} 25794 { (exit 1); exit 1; }; } 25795 fi 24835 25796 if test -z "${COIN_HAS_SPX_TRUE}" && test -z "${COIN_HAS_SPX_FALSE}"; then 24836 25797 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SPX\" was never defined. 24837 25798 Usually this means the macro was only invoked conditionally." >&5 24838 25799 echo "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined. 25800 Usually this means the macro was only invoked conditionally." >&2;} 25801 { (exit 1); exit 1; }; } 25802 fi 25803 if test -z "${COIN_HAS_SPX_TRUE}" && test -z "${COIN_HAS_SPX_FALSE}"; then 25804 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SPX\" was never defined. 25805 Usually this means the macro was only invoked conditionally." >&5 25806 echo "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined. 25807 Usually this means the macro was only invoked conditionally." >&2;} 25808 { (exit 1); exit 1; }; } 25809 fi 25810 if test -z "${COIN_HAS_XPR_TRUE}" && test -z "${COIN_HAS_XPR_FALSE}"; then 25811 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined. 25812 Usually this means the macro was only invoked conditionally." >&5 25813 echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined. 24839 25814 Usually this means the macro was only invoked conditionally." >&2;} 24840 25815 { (exit 1); exit 1; }; } … … 25597 26572 s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t 25598 26573 s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t 25599 s,@DYLP_LIBS@,$DYLP_LIBS,;t t25600 s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t25601 s,@DYLP_DATA@,$DYLP_DATA,;t t25602 s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t25603 s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t25604 s,@VOL_LIBS@,$VOL_LIBS,;t t25605 s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t25606 s,@VOL_DATA@,$VOL_DATA,;t t25607 s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t25608 s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t25609 26574 s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t 25610 26575 s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t … … 25627 26592 s,@COIN_HAS_MIPLIB3_TRUE@,$COIN_HAS_MIPLIB3_TRUE,;t t 25628 26593 s,@COIN_HAS_MIPLIB3_FALSE@,$COIN_HAS_MIPLIB3_FALSE,;t t 26594 s,@DYLP_LIBS@,$DYLP_LIBS,;t t 26595 s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t 26596 s,@DYLP_DATA@,$DYLP_DATA,;t t 26597 s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t 26598 s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t 26599 s,@VOL_LIBS@,$VOL_LIBS,;t t 26600 s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t 26601 s,@VOL_DATA@,$VOL_DATA,;t t 26602 s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t 26603 s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t 25629 26604 s,@CPX_LIBS@,$CPX_LIBS,;t t 25630 26605 s,@CPX_CFLAGS@,$CPX_CFLAGS,;t t -
trunk/Cbc/configure.ac
r1472 r1489 59 59 AC_COIN_HAS_MODULE(CoinDepend, [coinutils = trunk osi cgl]) 60 60 if test $coin_has_coindepend != yes ; then 61 #if we have to use the fallback routines, then obviously it will not find CoinUtils dependencies62 #thus, we check whether ThirdParty/Blas, ThirdParty/Lapack, and ThirdParty/Glpk have been setup and63 #assume that if present then they are dependencies of CoinUtils64 AC_COIN_HAS_MODULE_FALLBACK(Blas, [coinblas], [../ThirdParty/Blas], [required=0 dodefine=0 doconditional=0])65 AC_COIN_HAS_MODULE_FALLBACK(Lapack, [coinlapack], [../ThirdParty/Lapack], [required=0 dodefine=0 doconditional=0])66 AC_COIN_HAS_MODULE_FALLBACK(Glpk, [coinglpk], [../ThirdParty/Glpk], [required=0 dodefine=0 doconditional=0])67 AC_COIN_HAS_MODULE_FALLBACK(CoinUtils, [coinutils], [../CoinUtils], [dodefine=0 doconditional=0])68 AC_COIN_HAS_MODULE_FALLBACK(Osi, [osi], [../Osi], [dodefine=0 doconditional=0])69 AC_COIN_HAS_MODULE_FALLBACK(Cgl, [cgl], [../Cgl], [dodefine=0 doconditional=0])70 COINDEPEND_LIBS="$CGL_LIBS $OSI_LIBS $COINUTILS_LIBS $LAPACK_LIBS $BLAS_LIBS $GLPK_LIBS"71 COINDEPEND_CFLAGS="$COINUTILS_CFLAGS $GLPK_CFLAGS $OSI_CFLAGS $CGL_CFLAGS"72 if test "${coin_has_coinutils}${coin_has_osi}${coin_has_cgl}" = yesyesyes ; then73 coin_has_coindepend=yes74 AC_DEFINE(m4_toupper(COIN_HAS_COINDEPEND),[1],[Define to 1 if the COINDEPEND module is available])75 AM_CONDITIONAL(COIN_HAS_COINDEPEND, [test $coin_has_coindepend = yes])76 fi77 fi78 if test $coin_has_coindepend != yes ; then79 61 AC_MSG_ERROR([Required package CoinUtils, Osi, or Cgl not available.]) 80 62 fi … … 82 64 AC_COIN_HAS_MODULE(Clp, [osi-clp]) 83 65 if test $coin_has_clp != yes ; then 84 # OsiClp depends on Clp85 # so if Clp is there, then we assume that also OsiClp will be there and add the corresponding flags to the Clp flags86 AC_COIN_HAS_MODULE_FALLBACK(Clp, [clp], [../Clp])87 if test $coin_has_clp = yes ; then88 AC_COIN_HAS_MODULE_FALLBACK(OsiClp, [osi-clp], [../Clp], [dodefine=0 doconditional=0])89 CLP_CFLAGS="$CLP_CFLAGS $OSICLP_CFLAGS"90 CLP_LIBS="$CLP_LIBS $OSICLP_LIBS"91 fi92 fi93 if test $coin_has_clp != yes ; then94 66 AC_MSG_ERROR("Required package Clp unavailable.") 95 67 fi 96 68 97 # we skip fallbacks for the following two 98 AC_COIN_HAS_MODULE(DyLP, [osi-dylp]) 99 AC_COIN_HAS_MODULE(Vol, [osi-vol]) 100 AC_COIN_HAS_MODULE(OsiTests, [osi-unittests], [required=0], [../Osi]) 101 102 AC_COIN_HAS_MODULE(Sample, [coindatasample], [required=0], [../Data/Sample]) 103 AC_COIN_HAS_MODULE(Netlib, [coindatanetlib], [required=0], [../Data/Netlib]) 104 AC_COIN_HAS_MODULE(Miplib3, [coindatamiplib3], [required=0], [../Data/Miplib3]) 105 106 ############################################################################# 107 # Third party solvers # 108 ############################################################################# 109 110 # Check which third party solvers are available 69 AC_COIN_HAS_MODULE(OsiTests, [osi-unittests], [required=0]) 70 71 AC_COIN_HAS_MODULE(Sample, [coindatasample], [required=0]) 72 AC_COIN_HAS_MODULE(Netlib, [coindatanetlib], [required=0]) 73 AC_COIN_HAS_MODULE(Miplib3, [coindatamiplib3], [required=0]) 74 75 ############################################################################# 76 # LP solvers other than CLP # 77 ############################################################################# 78 79 # Check which other LP solvers are available 80 AC_COIN_HAS_MODULE(DyLP, [osi-dylp]) 81 AC_COIN_HAS_MODULE(Vol, [osi-vol]) 111 82 AC_COIN_HAS_MODULE(Cpx, [osi-cplex]) 112 83 AC_COIN_HAS_MODULE(Glpk, [osi-glpk]) … … 121 92 122 93 # Ampl Solver library 123 AC_COIN_HAS_MODULE(ASL, [coinasl], [required=0] , [../ThirdParty/ASL])94 AC_COIN_HAS_MODULE(ASL, [coinasl], [required=0]) 124 95 125 96 ############################################################################# -
trunk/Cbc/inc/config_cbc.h.in
r1475 r1489 26 26 #undef COIN_HAS_CLP 27 27 28 /* Define to 1 if the C OINDEPENDmodule is available */28 /* Define to 1 if the CoinDepend module is available */ 29 29 #undef COIN_HAS_COINDEPEND 30 30
Note: See TracChangeset
for help on using the changeset viewer.