Changeset 428


Ignore:
Timestamp:
Aug 7, 2011 11:02:46 AM (8 years ago)
Author:
stefan
Message:

fixup buildsystem

  • fix compiler warnings
  • get C code compiling with C compiler (no C++ style comments allowed!)
  • remove unnecessary package checks, CoinMP seems to depend on Clp, OsiClp?, and Cbc only
  • fix link to mailing list
  • fix copyright statement
  • remove unnecessary config_default.h, CoinMP does not use config header files
  • remove old addlibs file
  • create useable Makefile for example
  • fix directory where example source is installed
  • fix addlibs file for cl compiler
  • fix include of Makemain.inc
Location:
trunk/CoinMP
Files:
1 added
3 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/CoinMP/Makefile.am

    r427 r428  
    6060addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
    6161
    62 examplefiles = $(srcdir)/examples/Makefile $(srcdir)/examples/example.c
    63 examplesdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/examples
    64 
    65 install-exec-local: install-doc
    66         mkdir -p $(DESTDIR)$(examplesdir)
    67         $(install_sh_DATA) $(examplefiles) $(DESTDIR)$(examplesdir)
     62addlibs_DATA = examples/Makefile examples/example.c
    6863
    6964install-data-hook:
     
    7469else
    7570if COIN_CXX_IS_CL
    76         echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
     71        echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
    7772else
    7873        echo -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
     
    8075endif
    8176
    82 uninstall-local: uninstall-doc
    83         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    84         rm -rf $(DESTDIR)$(examplesdir)
    85 
    8677uninstall-hook:
    8778        rm -f $(addlibsdir)/coinmp_addlibs.txt
     79
     80install-exec-local: install-doc
     81
     82uninstall-local: uninstall-doc
    8883
    8984########################################################################
     
    9489DISTCLEANFILES =
    9590
    96 include ../BuildTools/Makemain.inc
     91include BuildTools/Makemain.inc
  • trunk/CoinMP/Makefile.in

    r427 r428  
    5858# included in the tarball
    5959@ALWAYS_FALSE@am__append_1 = test
    60 DIST_COMMON = README $(am__configure_deps) \
    61         $(srcdir)/../BuildTools/Makemain.inc $(srcdir)/../config.guess \
     60DIST_COMMON = README $(am__configure_deps) $(srcdir)/../config.guess \
    6261        $(srcdir)/../config.sub $(srcdir)/../install-sh \
    6362        $(srcdir)/../ltmain.sh $(srcdir)/../missing \
    64         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    65         $(srcdir)/coinmp-uninstalled.pc.in $(srcdir)/coinmp.pc.in \
    66         $(top_srcdir)/configure AUTHORS
     63        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     64        $(srcdir)/Makefile.in $(srcdir)/coinmp-uninstalled.pc.in \
     65        $(srcdir)/coinmp.pc.in $(top_srcdir)/configure \
     66        $(top_srcdir)/examples/Makefile.in AUTHORS
    6767@HAVE_EXTERNALS_TRUE@am__append_2 = Dependencies
    6868@HAVE_EXTERNALS_TRUE@am__append_3 = .Dependencies-stamp
     
    7878CONFIG_HEADER = $(top_builddir)/src/config.h \
    7979        $(top_builddir)/src/config_coinmp.h
    80 CONFIG_CLEAN_FILES = coinmp.pc coinmp-uninstalled.pc
     80CONFIG_CLEAN_FILES = examples/Makefile coinmp.pc coinmp-uninstalled.pc
    8181SOURCES =
    8282DIST_SOURCES =
     
    9393  esac;
    9494am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
    95 am__installdirs = "$(DESTDIR)$(pkgconfiglibdir)"
     95am__installdirs = "$(DESTDIR)$(addlibsdir)" \
     96        "$(DESTDIR)$(pkgconfiglibdir)"
     97addlibsDATA_INSTALL = $(INSTALL_DATA)
    9698pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
    97 DATA = $(pkgconfiglib_DATA)
     99DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
    98100ETAGS = etags
    99101CTAGS = ctags
     
    120122AMTAR = @AMTAR@
    121123AR = @AR@
    122 ASL_CFLAGS = @ASL_CFLAGS@
    123 ASL_CFLAGS_INSTALLED = @ASL_CFLAGS_INSTALLED@
    124 ASL_DATA = @ASL_DATA@
    125 ASL_DATA_INSTALLED = @ASL_DATA_INSTALLED@
    126 ASL_DEPENDENCIES = @ASL_DEPENDENCIES@
    127 ASL_LIBS = @ASL_LIBS@
    128 ASL_LIBS_INSTALLED = @ASL_LIBS_INSTALLED@
    129124AUTOCONF = @AUTOCONF@
    130125AUTOHEADER = @AUTOHEADER@
     
    144139CDEFS = @CDEFS@
    145140CFLAGS = @CFLAGS@
    146 CLP_CFLAGS = @CLP_CFLAGS@
    147 CLP_CFLAGS_INSTALLED = @CLP_CFLAGS_INSTALLED@
    148 CLP_DATA = @CLP_DATA@
    149 CLP_DATA_INSTALLED = @CLP_DATA_INSTALLED@
    150 CLP_DEPENDENCIES = @CLP_DEPENDENCIES@
    151 CLP_LIBS = @CLP_LIBS@
    152 CLP_LIBS_INSTALLED = @CLP_LIBS_INSTALLED@
    153141COINMP_CFLAGS = @COINMP_CFLAGS@
    154142COINMP_CFLAGS_INSTALLED = @COINMP_CFLAGS_INSTALLED@
     
    163151COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
    164152COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
    165 COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    166 COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
    167153COIN_HAS_CBC_FALSE = @COIN_HAS_CBC_FALSE@
    168154COIN_HAS_CBC_TRUE = @COIN_HAS_CBC_TRUE@
    169 COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    170 COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    171 COIN_HAS_CPX_FALSE = @COIN_HAS_CPX_FALSE@
    172 COIN_HAS_CPX_TRUE = @COIN_HAS_CPX_TRUE@
    173 COIN_HAS_DYLP_FALSE = @COIN_HAS_DYLP_FALSE@
    174 COIN_HAS_DYLP_TRUE = @COIN_HAS_DYLP_TRUE@
    175 COIN_HAS_FMP_FALSE = @COIN_HAS_FMP_FALSE@
    176 COIN_HAS_FMP_TRUE = @COIN_HAS_FMP_TRUE@
    177 COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
    178 COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
    179 COIN_HAS_MSK_FALSE = @COIN_HAS_MSK_FALSE@
    180 COIN_HAS_MSK_TRUE = @COIN_HAS_MSK_TRUE@
    181155COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
    182156COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    183 COIN_HAS_SPX_FALSE = @COIN_HAS_SPX_FALSE@
    184 COIN_HAS_SPX_TRUE = @COIN_HAS_SPX_TRUE@
    185 COIN_HAS_SYMPHONY_FALSE = @COIN_HAS_SYMPHONY_FALSE@
    186 COIN_HAS_SYMPHONY_TRUE = @COIN_HAS_SYMPHONY_TRUE@
    187 COIN_HAS_VOL_FALSE = @COIN_HAS_VOL_FALSE@
    188 COIN_HAS_VOL_TRUE = @COIN_HAS_VOL_TRUE@
    189 COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    190 COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
    191157COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    192158COIN_PKG_CONFIG_PATH_UNINSTALLED = @COIN_PKG_CONFIG_PATH_UNINSTALLED@
    193159CPP = @CPP@
    194160CPPFLAGS = @CPPFLAGS@
    195 CPX_CFLAGS = @CPX_CFLAGS@
    196 CPX_CFLAGS_INSTALLED = @CPX_CFLAGS_INSTALLED@
    197 CPX_DATA = @CPX_DATA@
    198 CPX_DATA_INSTALLED = @CPX_DATA_INSTALLED@
    199 CPX_DEPENDENCIES = @CPX_DEPENDENCIES@
    200 CPX_LIBS = @CPX_LIBS@
    201 CPX_LIBS_INSTALLED = @CPX_LIBS_INSTALLED@
    202161CXX = @CXX@
    203162CXXCPP = @CXXCPP@
     
    210169DEFS = @DEFS@
    211170DEPDIR = @DEPDIR@
    212 DYLP_CFLAGS = @DYLP_CFLAGS@
    213 DYLP_CFLAGS_INSTALLED = @DYLP_CFLAGS_INSTALLED@
    214 DYLP_DATA = @DYLP_DATA@
    215 DYLP_DATA_INSTALLED = @DYLP_DATA_INSTALLED@
    216 DYLP_DEPENDENCIES = @DYLP_DEPENDENCIES@
    217 DYLP_LIBS = @DYLP_LIBS@
    218 DYLP_LIBS_INSTALLED = @DYLP_LIBS_INSTALLED@
    219171ECHO = @ECHO@
    220172ECHO_C = @ECHO_C@
     
    225177F77 = @F77@
    226178FFLAGS = @FFLAGS@
    227 FMP_CFLAGS = @FMP_CFLAGS@
    228 FMP_CFLAGS_INSTALLED = @FMP_CFLAGS_INSTALLED@
    229 FMP_DATA = @FMP_DATA@
    230 FMP_DATA_INSTALLED = @FMP_DATA_INSTALLED@
    231 FMP_DEPENDENCIES = @FMP_DEPENDENCIES@
    232 FMP_LIBS = @FMP_LIBS@
    233 FMP_LIBS_INSTALLED = @FMP_LIBS_INSTALLED@
    234 GLPK_CFLAGS = @GLPK_CFLAGS@
    235 GLPK_CFLAGS_INSTALLED = @GLPK_CFLAGS_INSTALLED@
    236 GLPK_DATA = @GLPK_DATA@
    237 GLPK_DATA_INSTALLED = @GLPK_DATA_INSTALLED@
    238 GLPK_DEPENDENCIES = @GLPK_DEPENDENCIES@
    239 GLPK_LIBS = @GLPK_LIBS@
    240 GLPK_LIBS_INSTALLED = @GLPK_LIBS_INSTALLED@
    241179HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    242180HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    260198MPICC = @MPICC@
    261199MPICXX = @MPICXX@
    262 MSK_CFLAGS = @MSK_CFLAGS@
    263 MSK_CFLAGS_INSTALLED = @MSK_CFLAGS_INSTALLED@
    264 MSK_DATA = @MSK_DATA@
    265 MSK_DATA_INSTALLED = @MSK_DATA_INSTALLED@
    266 MSK_DEPENDENCIES = @MSK_DEPENDENCIES@
    267 MSK_LIBS = @MSK_LIBS@
    268 MSK_LIBS_INSTALLED = @MSK_LIBS_INSTALLED@
    269200OBJEXT = @OBJEXT@
    270201OPT_CFLAGS = @OPT_CFLAGS@
     
    282213SET_MAKE = @SET_MAKE@
    283214SHELL = @SHELL@
    284 SPX_CFLAGS = @SPX_CFLAGS@
    285 SPX_CFLAGS_INSTALLED = @SPX_CFLAGS_INSTALLED@
    286 SPX_DATA = @SPX_DATA@
    287 SPX_DATA_INSTALLED = @SPX_DATA_INSTALLED@
    288 SPX_DEPENDENCIES = @SPX_DEPENDENCIES@
    289 SPX_LIBS = @SPX_LIBS@
    290 SPX_LIBS_INSTALLED = @SPX_LIBS_INSTALLED@
    291215STRIP = @STRIP@
    292 SYMPHONY_CFLAGS = @SYMPHONY_CFLAGS@
    293 SYMPHONY_CFLAGS_INSTALLED = @SYMPHONY_CFLAGS_INSTALLED@
    294 SYMPHONY_DATA = @SYMPHONY_DATA@
    295 SYMPHONY_DATA_INSTALLED = @SYMPHONY_DATA_INSTALLED@
    296 SYMPHONY_DEPENDENCIES = @SYMPHONY_DEPENDENCIES@
    297 SYMPHONY_LIBS = @SYMPHONY_LIBS@
    298 SYMPHONY_LIBS_INSTALLED = @SYMPHONY_LIBS_INSTALLED@
    299216VERSION = @VERSION@
    300 VOL_CFLAGS = @VOL_CFLAGS@
    301 VOL_CFLAGS_INSTALLED = @VOL_CFLAGS_INSTALLED@
    302 VOL_DATA = @VOL_DATA@
    303 VOL_DATA_INSTALLED = @VOL_DATA_INSTALLED@
    304 VOL_DEPENDENCIES = @VOL_DEPENDENCIES@
    305 VOL_LIBS = @VOL_LIBS@
    306 VOL_LIBS_INSTALLED = @VOL_LIBS_INSTALLED@
    307217VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
    308 XPR_CFLAGS = @XPR_CFLAGS@
    309 XPR_CFLAGS_INSTALLED = @XPR_CFLAGS_INSTALLED@
    310 XPR_DATA = @XPR_DATA@
    311 XPR_DATA_INSTALLED = @XPR_DATA_INSTALLED@
    312 XPR_DEPENDENCIES = @XPR_DEPENDENCIES@
    313 XPR_LIBS = @XPR_LIBS@
    314 XPR_LIBS_INSTALLED = @XPR_LIBS_INSTALLED@
    315218abs_bin_dir = @abs_bin_dir@
    316219abs_include_dir = @abs_include_dir@
     
    389292pkgconfiglib_DATA = coinmp.pc
    390293addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
    391 examplefiles = $(srcdir)/examples/Makefile $(srcdir)/examples/example.c
    392 examplesdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/examples
     294addlibs_DATA = examples/Makefile examples/example.c
    393295
    394296########################################################################
     
    405307am--refresh:
    406308        @:
    407 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../BuildTools/Makemain.inc $(am__configure_deps)
     309$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/BuildTools/Makemain.inc $(am__configure_deps)
    408310        @for dep in $?; do \
    409311          case '$(am__configure_deps)' in \
     
    436338$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    437339        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     340examples/Makefile: $(top_builddir)/config.status $(top_srcdir)/examples/Makefile.in
     341        cd $(top_builddir) && $(SHELL) ./config.status $@
    438342coinmp.pc: $(top_builddir)/config.status $(srcdir)/coinmp.pc.in
    439343        cd $(top_builddir) && $(SHELL) ./config.status $@
     
    450354        -rm -f libtool
    451355uninstall-info-am:
     356install-addlibsDATA: $(addlibs_DATA)
     357        @$(NORMAL_INSTALL)
     358        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     359        @list='$(addlibs_DATA)'; for p in $$list; do \
     360          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     361          f=$(am__strip_dir) \
     362          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     363          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     364        done
     365
     366uninstall-addlibsDATA:
     367        @$(NORMAL_UNINSTALL)
     368        @list='$(addlibs_DATA)'; for p in $$list; do \
     369          f=$(am__strip_dir) \
     370          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     371          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     372        done
    452373install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
    453374        @$(NORMAL_INSTALL)
     
    603524        $(am__remove_distdir)
    604525        mkdir $(distdir)
    605         $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../BuildTools $(distdir)/examples
     526        $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/BuildTools $(distdir)/examples
    606527        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    607528        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    747668installdirs: installdirs-recursive
    748669installdirs-am:
    749         for dir in "$(DESTDIR)$(pkgconfiglibdir)"; do \
     670        for dir in "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)"; do \
    750671          test -z "$$dir" || $(mkdir_p) "$$dir"; \
    751672        done
     
    795716info-am:
    796717
    797 install-data-am: install-pkgconfiglibDATA
     718install-data-am: install-addlibsDATA install-pkgconfiglibDATA
    798719        @$(NORMAL_INSTALL)
    799720        $(MAKE) $(AM_MAKEFLAGS) install-data-hook
     
    825746ps-am:
    826747
    827 uninstall-am: uninstall-info-am uninstall-local \
     748uninstall-am: uninstall-addlibsDATA uninstall-info-am uninstall-local \
    828749        uninstall-pkgconfiglibDATA
    829750        @$(NORMAL_INSTALL)
     
    839760        distclean-recursive distclean-tags distcleancheck distdir \
    840761        distuninstallcheck dvi dvi-am html html-am info info-am \
    841         install install-am install-data install-data-am \
    842         install-data-hook install-exec install-exec-am \
     762        install install-addlibsDATA install-am install-data \
     763        install-data-am install-data-hook install-exec install-exec-am \
    843764        install-exec-local install-info install-info-am install-man \
    844765        install-pkgconfiglibDATA install-strip installcheck \
     
    847768        mostlyclean mostlyclean-generic mostlyclean-libtool \
    848769        mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
    849         uninstall uninstall-am uninstall-hook uninstall-info-am \
    850         uninstall-local uninstall-pkgconfiglibDATA
     770        uninstall uninstall-addlibsDATA uninstall-am uninstall-hook \
     771        uninstall-info-am uninstall-local uninstall-pkgconfiglibDATA
    851772
    852773
     
    867788
    868789.PHONY: test unitTest
    869 
    870 install-exec-local: install-doc
    871         mkdir -p $(DESTDIR)$(examplesdir)
    872         $(install_sh_DATA) $(examplefiles) $(DESTDIR)$(examplesdir)
    873790
    874791install-data-hook:
     
    876793@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
    877794@COIN_HAS_PKGCONFIG_TRUE@       $(PKG_CONFIG) --libs coinmp > $(addlibsdir)/coinmp_addlibs.txt
    878 @COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
     795@COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
    879796@COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@        echo -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
    880 
    881 uninstall-local: uninstall-doc
    882         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    883         rm -rf $(DESTDIR)$(examplesdir)
    884797
    885798uninstall-hook:
    886799        rm -f $(addlibsdir)/coinmp_addlibs.txt
     800
     801install-exec-local: install-doc
     802
     803uninstall-local: uninstall-doc
    887804
    888805install-doc: $(DocFiles)
  • trunk/CoinMP/coinmp-uninstalled.pc.in

    r427 r428  
    33
    44Name: CoinMP
    5 Description: A Simple API for COIN Solvers
     5Description: Simple C API for COIN-OR Solvers Clp and Cbc
    66URL: https://projects.coin-or.org/CoinMP
    77Version: @PACKAGE_VERSION@
  • trunk/CoinMP/coinmp.pc.in

    r427 r428  
    55
    66Name: CoinMP
    7 Description: Simple API for COIN Solvers
     7Description: Simple C API for COIN-OR Solvers Clp and Cbc
    88URL: https://projects.coin-or.org/CoinMP
    99Version: @PACKAGE_VERSION@
  • trunk/CoinMP/configure

    r427 r428  
    33# Generated by GNU Autoconf 2.59 for CoinMP trunk.
    44#
    5 # Report bugs to <coin-discuss@list.coin-or.org>.
     5# Report bugs to <coinmp@list.coin-or.org>.
    66#
    77# Copyright (C) 2003 Free Software Foundation, Inc.
     
    1212# Copyright 2006 International Business Machines and others.
    1313# All Rights Reserved.
    14 # This file is part of the open source package Coin which is distributed
     14# This file is part of the open source package CoinMP which is distributed
    1515# under the Common Public License.
    1616## --------------------- ##
     
    432432PACKAGE_VERSION='trunk'
    433433PACKAGE_STRING='CoinMP trunk'
    434 PACKAGE_BUGREPORT='coin-discuss@list.coin-or.org'
     434PACKAGE_BUGREPORT='coinmp@list.coin-or.org'
    435435
    436436ac_unique_file="src/CoinMP.h"
     
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINMP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COINMP_CFLAGS COINMP_LIBS COINMP_PCLIBS COINMP_PCREQUIRES COINMP_DEPENDENCIES COINMP_CFLAGS_INSTALLED COINMP_LIBS_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE SYMPHONY_LIBS SYMPHONY_CFLAGS SYMPHONY_DATA SYMPHONY_DEPENDENCIES SYMPHONY_LIBS_INSTALLED SYMPHONY_CFLAGS_INSTALLED SYMPHONY_DATA_INSTALLED COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE FMP_LIBS FMP_CFLAGS FMP_DATA FMP_DEPENDENCIES FMP_LIBS_INSTALLED FMP_CFLAGS_INSTALLED FMP_DATA_INSTALLED COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINMP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED CBC_LIBS CBC_CFLAGS CBC_DATA CBC_DEPENDENCIES CBC_LIBS_INSTALLED CBC_CFLAGS_INSTALLED CBC_DATA_INSTALLED COINMP_CFLAGS COINMP_LIBS COINMP_PCLIBS COINMP_PCREQUIRES COINMP_DEPENDENCIES COINMP_CFLAGS_INSTALLED COINMP_LIBS_INSTALLED COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11171117                          COIN packages
    11181118
    1119   --with-clp-lib linker flags for using package Clp
    1120   --with-clp-incdir directory with header files for using package Clp
    1121   --with-clp-datadir directory with data files for using package Clp
    11221119  --with-cbc-lib linker flags for using package Cbc
    11231120  --with-cbc-incdir directory with header files for using package Cbc
    11241121  --with-cbc-datadir directory with data files for using package Cbc
    1125   --with-dylp-lib linker flags for using package Dylp
    1126   --with-dylp-incdir directory with header files for using package Dylp
    1127   --with-dylp-datadir directory with data files for using package Dylp
    1128   --with-symphony-lib linker flags for using package SYMPHONY
    1129   --with-symphony-incdir directory with header files for using package
    1130                           SYMPHONY
    1131   --with-symphony-datadir directory with data files for using package SYMPHONY
    1132   --with-vol-lib linker flags for using package Vol
    1133   --with-vol-incdir directory with header files for using package Vol
    1134   --with-vol-datadir directory with data files for using package Vol
    1135   --with-cpx-lib linker flags for using package Cpx
    1136   --with-cpx-incdir directory with header files for using package Cpx
    1137   --with-cpx-datadir directory with data files for using package Cpx
    1138   --with-fmp-lib linker flags for using package Fmp
    1139   --with-fmp-incdir directory with header files for using package Fmp
    1140   --with-fmp-datadir directory with data files for using package Fmp
    1141   --with-glpk-lib linker flags for using package Glpk
    1142   --with-glpk-incdir directory with header files for using package Glpk
    1143   --with-glpk-datadir directory with data files for using package Glpk
    1144   --with-msk-lib linker flags for using package Msk
    1145   --with-msk-incdir directory with header files for using package Msk
    1146   --with-msk-datadir directory with data files for using package Msk
    1147   --with-spx-lib linker flags for using package Spx
    1148   --with-spx-incdir directory with header files for using package Spx
    1149   --with-spx-datadir directory with data files for using package Spx
    1150   --with-xpr-lib linker flags for using package Xpr
    1151   --with-xpr-incdir directory with header files for using package Xpr
    1152   --with-xpr-datadir directory with data files for using package Xpr
    1153   --with-asl-lib linker flags for using package ASL
    1154   --with-asl-incdir directory with header files for using package ASL
    1155   --with-asl-datadir directory with data files for using package ASL
    11561122
    11571123Some influential environment variables:
     
    11861152it to find libraries and programs with nonstandard names/locations.
    11871153
    1188 Report bugs to <coin-discuss@list.coin-or.org>.
     1154Report bugs to <coinmp@list.coin-or.org>.
    11891155_ACEOF
    11901156fi
     
    12921258Copyright 2006 International Business Machines and others.
    12931259All Rights Reserved.
    1294 This file is part of the open source package Coin which is distributed
     1260This file is part of the open source package CoinMP which is distributed
    12951261under the Common Public License.
    12961262_ACEOF
     
    59615927*-*-irix6*)
    59625928  # Find out which ABI we are using.
    5963   echo '#line 5963 "configure"' > conftest.$ac_ext
     5929  echo '#line 5929 "configure"' > conftest.$ac_ext
    59645930  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    59655931  (eval $ac_compile) 2>&5
     
    67386704    (
    67396705      cat <<\_ASBOX
    6740 ## -------------------------------------------- ##
    6741 ## Report this to coin-discuss@list.coin-or.org ##
    6742 ## -------------------------------------------- ##
     6706## -------------------------------------- ##
     6707## Report this to coinmp@list.coin-or.org ##
     6708## -------------------------------------- ##
    67436709_ASBOX
    67446710    ) |
     
    70957061
    70967062# Provide some information about the compiler.
    7097 echo "$as_me:7097:" \
     7063echo "$as_me:7063:" \
    70987064     "checking for Fortran 77 compiler version" >&5
    70997065ac_compiler=`set X $ac_compile; echo $2`
     
    81628128   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81638129   -e 's:$: $lt_compiler_flag:'`
    8164    (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
     8130   (eval echo "\"\$as_me:8130: $lt_compile\"" >&5)
    81658131   (eval "$lt_compile" 2>conftest.err)
    81668132   ac_status=$?
    81678133   cat conftest.err >&5
    8168    echo "$as_me:8168: \$? = $ac_status" >&5
     8134   echo "$as_me:8134: \$? = $ac_status" >&5
    81698135   if (exit $ac_status) && test -s "$ac_outfile"; then
    81708136     # The compiler can only warn and ignore the option if not recognized
     
    84308396   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    84318397   -e 's:$: $lt_compiler_flag:'`
    8432    (eval echo "\"\$as_me:8432: $lt_compile\"" >&5)
     8398   (eval echo "\"\$as_me:8398: $lt_compile\"" >&5)
    84338399   (eval "$lt_compile" 2>conftest.err)
    84348400   ac_status=$?
    84358401   cat conftest.err >&5
    8436    echo "$as_me:8436: \$? = $ac_status" >&5
     8402   echo "$as_me:8402: \$? = $ac_status" >&5
    84378403   if (exit $ac_status) && test -s "$ac_outfile"; then
    84388404     # The compiler can only warn and ignore the option if not recognized
     
    85348500   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    85358501   -e 's:$: $lt_compiler_flag:'`
    8536    (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
     8502   (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
    85378503   (eval "$lt_compile" 2>out/conftest.err)
    85388504   ac_status=$?
    85398505   cat out/conftest.err >&5
    8540    echo "$as_me:8540: \$? = $ac_status" >&5
     8506   echo "$as_me:8506: \$? = $ac_status" >&5
    85418507   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    85428508   then
     
    1087910845  lt_status=$lt_dlunknown
    1088010846  cat > conftest.$ac_ext <<EOF
    10881 #line 10881 "configure"
     10847#line 10847 "configure"
    1088210848#include "confdefs.h"
    1088310849
     
    1097910945  lt_status=$lt_dlunknown
    1098010946  cat > conftest.$ac_ext <<EOF
    10981 #line 10981 "configure"
     10947#line 10947 "configure"
    1098210948#include "confdefs.h"
    1098310949
     
    1332313289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1332413290   -e 's:$: $lt_compiler_flag:'`
    13325    (eval echo "\"\$as_me:13325: $lt_compile\"" >&5)
     13291   (eval echo "\"\$as_me:13291: $lt_compile\"" >&5)
    1332613292   (eval "$lt_compile" 2>conftest.err)
    1332713293   ac_status=$?
    1332813294   cat conftest.err >&5
    13329    echo "$as_me:13329: \$? = $ac_status" >&5
     13295   echo "$as_me:13295: \$? = $ac_status" >&5
    1333013296   if (exit $ac_status) && test -s "$ac_outfile"; then
    1333113297     # The compiler can only warn and ignore the option if not recognized
     
    1342713393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1342813394   -e 's:$: $lt_compiler_flag:'`
    13429    (eval echo "\"\$as_me:13429: $lt_compile\"" >&5)
     13395   (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
    1343013396   (eval "$lt_compile" 2>out/conftest.err)
    1343113397   ac_status=$?
    1343213398   cat out/conftest.err >&5
    13433    echo "$as_me:13433: \$? = $ac_status" >&5
     13399   echo "$as_me:13399: \$? = $ac_status" >&5
    1343413400   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1343513401   then
     
    1499714963   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1499814964   -e 's:$: $lt_compiler_flag:'`
    14999    (eval echo "\"\$as_me:14999: $lt_compile\"" >&5)
     14965   (eval echo "\"\$as_me:14965: $lt_compile\"" >&5)
    1500014966   (eval "$lt_compile" 2>conftest.err)
    1500114967   ac_status=$?
    1500214968   cat conftest.err >&5
    15003    echo "$as_me:15003: \$? = $ac_status" >&5
     14969   echo "$as_me:14969: \$? = $ac_status" >&5
    1500414970   if (exit $ac_status) && test -s "$ac_outfile"; then
    1500514971     # The compiler can only warn and ignore the option if not recognized
     
    1510115067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1510215068   -e 's:$: $lt_compiler_flag:'`
    15103    (eval echo "\"\$as_me:15103: $lt_compile\"" >&5)
     15069   (eval echo "\"\$as_me:15069: $lt_compile\"" >&5)
    1510415070   (eval "$lt_compile" 2>out/conftest.err)
    1510515071   ac_status=$?
    1510615072   cat out/conftest.err >&5
    15107    echo "$as_me:15107: \$? = $ac_status" >&5
     15073   echo "$as_me:15073: \$? = $ac_status" >&5
    1510815074   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1510915075   then
     
    1730817274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1730917275   -e 's:$: $lt_compiler_flag:'`
    17310    (eval echo "\"\$as_me:17310: $lt_compile\"" >&5)
     17276   (eval echo "\"\$as_me:17276: $lt_compile\"" >&5)
    1731117277   (eval "$lt_compile" 2>conftest.err)
    1731217278   ac_status=$?
    1731317279   cat conftest.err >&5
    17314    echo "$as_me:17314: \$? = $ac_status" >&5
     17280   echo "$as_me:17280: \$? = $ac_status" >&5
    1731517281   if (exit $ac_status) && test -s "$ac_outfile"; then
    1731617282     # The compiler can only warn and ignore the option if not recognized
     
    1757617542   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1757717543   -e 's:$: $lt_compiler_flag:'`
    17578    (eval echo "\"\$as_me:17578: $lt_compile\"" >&5)
     17544   (eval echo "\"\$as_me:17544: $lt_compile\"" >&5)
    1757917545   (eval "$lt_compile" 2>conftest.err)
    1758017546   ac_status=$?
    1758117547   cat conftest.err >&5
    17582    echo "$as_me:17582: \$? = $ac_status" >&5
     17548   echo "$as_me:17548: \$? = $ac_status" >&5
    1758317549   if (exit $ac_status) && test -s "$ac_outfile"; then
    1758417550     # The compiler can only warn and ignore the option if not recognized
     
    1768017646   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1768117647   -e 's:$: $lt_compiler_flag:'`
    17682    (eval echo "\"\$as_me:17682: $lt_compile\"" >&5)
     17648   (eval echo "\"\$as_me:17648: $lt_compile\"" >&5)
    1768317649   (eval "$lt_compile" 2>out/conftest.err)
    1768417650   ac_status=$?
    1768517651   cat out/conftest.err >&5
    17686    echo "$as_me:17686: \$? = $ac_status" >&5
     17652   echo "$as_me:17652: \$? = $ac_status" >&5
    1768717653   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1768817654   then
     
    2058320549
    2058420550#############################################################################
    20585 #                              COIN components                              #
     20551#                            COIN-OR components                             #
    2058620552#############################################################################
    2058720553
    20588 # Required packages. Since we need the OSI interfaces for clp and cbc, just
    20589 # ask for them and trust that configuration will pull in the information for
    20590 # the clp and cbc base code.
     20554# Required packages.
     20555# We need Clp, Cbc, and the OSI interface to CLP to build CoinCbc.cpp.
    2059120556
    2059220557
     
    2079120756
    2079220757
    20793 echo "$as_me:$LINENO: checking for COIN-OR package Clp" >&5
    20794 echo $ECHO_N "checking for COIN-OR package Clp... $ECHO_C" >&6
    20795 
    20796 coin_has_clp=notGiven
     20758echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
     20759echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
     20760
     20761coin_has_cbc=notGiven
    2079720762
    2079820763# check if user wants to skip package in any case
    2079920764if test x"$COIN_SKIP_PROJECTS" != x; then
    2080020765  for dir in $COIN_SKIP_PROJECTS; do
    20801     if test $dir = "Clp"; then
    20802       coin_has_clp=skipping
     20766    if test $dir = "Cbc"; then
     20767      coin_has_cbc=skipping
    2080320768    fi
    2080420769  done
    2080520770fi
    2080620771
    20807 if test "$coin_has_clp" != skipping; then
    20808 
    20809 # Check whether --with-m4_tolower(Clp) or --without-m4_tolower(Clp) was given.
    20810 if test "${with_clp+set}" = set; then
    20811   withval="$with_clp"
     20772if test "$coin_has_cbc" != skipping; then
     20773
     20774# Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
     20775if test "${with_cbc+set}" = set; then
     20776  withval="$with_cbc"
    2081220777  if test "$withval" = no ; then
    20813        coin_has_clp=skipping
     20778       coin_has_cbc=skipping
    2081420779     fi
    2081520780
     
    2081720782fi
    2081820783
    20819 CLP_LIBS=
    20820 CLP_CFLAGS=
    20821 CLP_DATA=
    20822 CLP_DEPENDENCIES=
    20823 CLP_PCLIBS=
    20824 CLP_PCREQUIRES=
    20825 CLP_DATA=
     20784CBC_LIBS=
     20785CBC_CFLAGS=
     20786CBC_DATA=
     20787CBC_DEPENDENCIES=
     20788CBC_PCLIBS=
     20789CBC_PCREQUIRES=
     20790CBC_DATA=
    2082620791
    2082720792
     
    2084220807
    2084320808#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    20844 if test $coin_has_clp != skipping; then
    20845 
    20846 # Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
    20847 if test "${with_clp_lib+set}" = set; then
    20848   withval="$with_clp_lib"
     20809if test $coin_has_cbc != skipping; then
     20810
     20811# Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
     20812if test "${with_cbc_lib+set}" = set; then
     20813  withval="$with_cbc_lib"
    2084920814  if test "$withval" = no ; then
    20850        coin_has_clp=skipping
     20815       coin_has_cbc=skipping
    2085120816     else
    20852        coin_has_clp=yes
    20853        CLP_LIBS="$withval"
    20854        CLP_PCLIBS="$withval"
     20817       coin_has_cbc=yes
     20818       CBC_LIBS="$withval"
     20819       CBC_PCLIBS="$withval"
    2085520820
    2085620821         COINMP_PCLIBS="$withval $COINMP_PCLIBS"
     
    2085920824       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    2086020825       if test -z "$PKG_CONFIG" ; then
    20861          CLP_LIBS_INSTALLED="$withval"
     20826         CBC_LIBS_INSTALLED="$withval"
    2086220827         COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    2086320828       fi
     
    2086720832fi
    2086820833
    20869 if test $coin_has_clp != skipping; then
    20870 
    20871 # Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
    20872 if test "${with_clp_incdir+set}" = set; then
    20873   withval="$with_clp_incdir"
     20834if test $coin_has_cbc != skipping; then
     20835
     20836# Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
     20837if test "${with_cbc_incdir+set}" = set; then
     20838  withval="$with_cbc_incdir"
    2087420839  if test "$withval" = no ; then
    20875        coin_has_clp=skipping
     20840       coin_has_cbc=skipping
    2087620841     else
    20877        coin_has_clp=yes
    20878        CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     20842       coin_has_cbc=yes
     20843       CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
    2087920844       COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    2088020845       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    2088120846       if test -z "$PKG_CONFIG" ; then
    20882          CLP_CFLAGS_INSTALLED="$CLP_CFLAGS"
    20883          COINMP_CFLAGS_INSTALLED="$CLP_CFLAGS $COINMP_CFLAGS_INSTALLED"
     20847         CBC_CFLAGS_INSTALLED="$CBC_CFLAGS"
     20848         COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS $COINMP_CFLAGS_INSTALLED"
    2088420849       fi
    2088520850     fi
     
    2088820853fi
    2088920854
    20890 if test $coin_has_clp != skipping; then
    20891 
    20892 # Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
    20893 if test "${with_clp_datadir+set}" = set; then
    20894   withval="$with_clp_datadir"
     20855if test $coin_has_cbc != skipping; then
     20856
     20857# Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
     20858if test "${with_cbc_datadir+set}" = set; then
     20859  withval="$with_cbc_datadir"
    2089520860  if test "$withval" = no ; then
    20896        coin_has_clp=skipping
     20861       coin_has_cbc=skipping
    2089720862     else
    20898        coin_has_clp=yes
    20899        CLP_DATA="$withval"
     20863       coin_has_cbc=yes
     20864       CBC_DATA="$withval"
    2090020865       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    2090120866       if test -z "$PKG_CONFIG" ; then
    20902          CLP_DATA_INSTALLED="$withval"
     20867         CBC_DATA_INSTALLED="$withval"
    2090320868       fi
    2090420869     fi
     
    2090720872fi
    2090820873
    20909 if test $coin_has_clp = notGiven; then
     20874if test $coin_has_cbc = notGiven; then
    2091020875  if test -n "$PKG_CONFIG" ; then
    2091120876    # set search path for pkg-config
     
    2092020885
    2092120886if test -n "$PKG_CONFIG" ; then
    20922   if $PKG_CONFIG --exists "osi-clp"; then
    20923     CLP_VERSIONS=`$PKG_CONFIG --modversion "osi-clp" 2>/dev/null | tr '\n' ' '`
    20924      cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
     20887  if $PKG_CONFIG --exists "cbc clp osi-clp"; then
     20888    CBC_VERSIONS=`$PKG_CONFIG --modversion "cbc clp osi-clp" 2>/dev/null | tr '\n' ' '`
     20889     cflags=`$PKG_CONFIG --cflags "cbc clp osi-clp" 2>/dev/null`
    2092520890    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    2092620891        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     
    2093020895      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    2093120896    fi
    20932     CLP_CFLAGS="$cflags"
    20933     CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
    20934     CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
    20935      coin_has_clp=yes
    20936         echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
    20937 echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
     20897    CBC_CFLAGS="$cflags"
     20898    CBC_LIBS=`$PKG_CONFIG --libs "cbc clp osi-clp" 2>/dev/null`
     20899    CBC_DATA=`$PKG_CONFIG --variable=datadir "cbc clp osi-clp" 2>/dev/null`
     20900     coin_has_cbc=yes
     20901        echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
     20902echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
    2093820903
    2093920904        # adjust linker flags for (i)cl compiler
     
    2094120906        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    2094220907        then
    20943           CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     20908          CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    2094420909        fi
    20945         CLP_PCREQUIRES="osi-clp"
     20910        CBC_PCREQUIRES="cbc clp osi-clp"
    2094620911
    2094720912        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    2094820913
    20949           COINMP_PCREQUIRES="osi-clp $COINMP_PCREQUIRES"
    20950           COINMP_CFLAGS="$CLP_CFLAGS $COINMP_CFLAGS"
    20951           COINMP_LIBS="$CLP_LIBS $COINMP_LIBS"
     20914          COINMP_PCREQUIRES="cbc clp osi-clp $COINMP_PCREQUIRES"
     20915          COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
     20916          COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
    2095220917
    2095320918
    2095420919
    2095520920  else
    20956     CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-clp"`
    20957       coin_has_clp=notGiven
    20958         echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
    20959 echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
     20921    CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "cbc clp osi-clp"`
     20922      coin_has_cbc=notGiven
     20923        echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
     20924echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
    2096020925
    2096120926  fi
    2096220927else
    20963   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
    20964 echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
     20928  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
     20929echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
    2096520930   { (exit 1); exit 1; }; }
    2096620931fi
     
    2097720942echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    2097820943
    20979 echo "$as_me:$LINENO: checking for COIN-OR package Clp (fallback)" >&5
    20980 echo $ECHO_N "checking for COIN-OR package Clp (fallback)... $ECHO_C" >&6
    20981 
    20982 coin_has_clp=notGiven
    20983 CLP_LIBS=
    20984 CLP_LIBS_INSTALLED=
    20985 CLP_CFLAGS=
    20986 CLP_CFLAGS_INSTALLED=
    20987 CLP_DATA=
    20988 CLP_DATA_INSTALLED=
    20989 CLP_PCLIBS=
    20990 CLP_PCREQUIRES=
    20991 
    20992 # initial list of dependencies is "osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    20993 projtoprocess="osi-clp"
     20944echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
     20945echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
     20946
     20947coin_has_cbc=notGiven
     20948CBC_LIBS=
     20949CBC_LIBS_INSTALLED=
     20950CBC_CFLAGS=
     20951CBC_CFLAGS_INSTALLED=
     20952CBC_DATA=
     20953CBC_DATA_INSTALLED=
     20954CBC_PCLIBS=
     20955CBC_PCREQUIRES=
     20956
     20957# initial list of dependencies is "cbc clp osi-clp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     20958projtoprocess="cbc clp osi-clp"
    2099420959
    2099520960# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     
    2103220997
    2103320998      # read DATA from $pcfile, if _DATA is still empty
    21034       if test "x$CLP_DATA" = x ; then
    21035         projdatadir=
    21036         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    21037         eval `sh -c "$pcfilemod"`
    21038         CLP_DATA="$projdatadir"
    21039       fi
    21040 
    21041       allproj="$allproj $proj"
    21042       allpcfiles="$pcfile:$allpcfiles"
    21043 
    21044     else
    21045       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    21046 echo "${ECHO_T}no, dependency $proj not available" >&6
    21047       allproj=fail
    21048       break 2
    21049     fi
    21050 
    21051     if test "x$pcifile" != x ; then
    21052       allpcifiles="$pcifile:$allpcifiles"
    21053 
    21054       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    21055       if test "x$CLP_DATA_INSTALLED" = x ; then
    21056         projdatadir=
    21057         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    21058         eval `sh -c "$pcifilemod"`
    21059         if test "${CYGPATH_W}" != "echo"; then
    21060           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    21061         fi
    21062         CLP_DATA_INSTALLED="$projdatadir"
    21063       fi
    21064 
    21065     fi
    21066 
    21067     break
    21068   done
    21069 
    21070   # remove spaces on begin of $projtoprocess
    21071   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    21072 
    21073 done
    21074 
    21075 if test "$allproj" != fail ; then
    21076 
    21077   # now go through the list of .pc files and assemble compiler and linker flags
    21078   # important is here to obey the reverse order that has been setup before,
    21079   # since then libraries that are required by several others should be after these other libraries
    21080   pcfilesprocessed=""
    21081 
    21082   save_IFS="$IFS"
    21083   IFS=":"
    21084   for pcfile in $allpcfiles ; do
    21085 
    21086     # if $pcfile has been processed already, skip this round
    21087     if test "x$pcfilesprocessed" != x ; then
    21088       for pcfiledone in $pcfilesprocessed ; do
    21089         if test "$pcfiledone" = "$pcfile" ; then
    21090           continue 2
    21091         fi
    21092       done
    21093     fi
    21094 
    21095     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    21096     #   replace "Libs:" by "echo projlibs="
    21097     #   replace "Cflags:" by "echo projcflags="
    21098     #   remove every line starting with <some word>:
    21099     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    21100 
    21101     # set projcflags and projlibs variables by running $pcfilemod
    21102     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    21103     projcflags=
    21104     projlibs=
    21105     IFS="$save_IFS"
    21106     eval `sh -c "$pcfilemod"`
    21107     IFS=":"
    21108 
    21109     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    21110     if test "${CYGPATH_W}" != "echo"; then
    21111       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21112     fi
    21113     CLP_CFLAGS="$projcflags $CLP_CFLAGS"
    21114 
    21115     # set LIBS variable
    21116     CLP_LIBS="$projlibs $CLP_LIBS"
    21117 
    21118     # remember that we have processed $pcfile
    21119     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    21120 
    21121   done
    21122   IFS="$save_IFS"
    21123 
    21124 
    21125   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    21126   # important is here again to obey the reverse order that has been setup before,
    21127   # since then libraries that are required by several others should be after these other libraries
    21128   pcfilesprocessed=""
    21129 
    21130   save_IFS="$IFS"
    21131   IFS=":"
    21132   for pcfile in $allpcifiles ; do
    21133 
    21134     # if $pcfile has been processed already, skip this round
    21135     if test "x$pcfilesprocessed" != x ; then
    21136       for pcfiledone in $pcfilesprocessed ; do
    21137         if test "$pcfiledone" = "$pcfile" ; then
    21138           continue 2
    21139         fi
    21140       done
    21141     fi
    21142 
    21143     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    21144     #   replace "Libs:" by "echo projlibs="
    21145     #   replace "Cflags:" by "echo projcflags="
    21146     #   remove every line starting with <some word>:
    21147     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    21148 
    21149     # set projcflags and projlibs variables by running $pcfilemod
    21150     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    21151     projcflags=
    21152     projlibs=
    21153     IFS="$save_IFS"
    21154     eval `sh -c "$pcfilemod"`
    21155     IFS=":"
    21156 
    21157     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    21158     if test "${CYGPATH_W}" != "echo"; then
    21159       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21160     fi
    21161     CLP_CFLAGS_INSTALLED="$projcflags $CLP_CFLAGS_INSTALLED"
    21162 
    21163     # set LIBS variable
    21164     CLP_LIBS_INSTALLED="$projlibs $CLP_LIBS_INSTALLED"
    21165 
    21166     # remember that we have processed $pcfile
    21167     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    21168 
    21169   done
    21170   IFS="$save_IFS"
    21171 
    21172 
    21173   # finish up
    21174   coin_has_clp=yes
    21175   echo "$as_me:$LINENO: result: yes" >&5
    21176 echo "${ECHO_T}yes" >&6
    21177 
    21178 cat >>confdefs.h <<\_ACEOF
    21179 #define COIN_HAS_CLP 1
    21180 _ACEOF
    21181 
    21182 
    21183   # adjust linker flags for (i)cl compiler
    21184   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    21185   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    21186   #    everything of the form "-lname" by "libname.lib", and
    21187   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    21188   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    21189   then
    21190     CLP_LIBS=`echo " $CLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    21191     CLP_LIBS_INSTALLED=`echo " $CLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    21192   fi
    21193 
    21194   CLP_PCREQUIRES="osi-clp"
    21195 
    21196     COINMP_PCREQUIRES="osi-clp $COINMP_PCREQUIRES"
    21197     COINMP_CFLAGS="$CLP_CFLAGS $COINMP_CFLAGS"
    21198     COINMP_LIBS="$CLP_LIBS $COINMP_LIBS"
    21199     COINMP_CFLAGS_INSTALLED="$CLP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    21200     COINMP_LIBS_INSTALLED="$CLP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    21201 
    21202 
    21203 fi
    21204 
    21205 
    21206 
    21207 if test $coin_has_clp != notGiven &&
    21208                 test $coin_has_clp != skipping; then
    21209   COIN_HAS_CLP_TRUE=
    21210   COIN_HAS_CLP_FALSE='#'
    21211 else
    21212   COIN_HAS_CLP_TRUE='#'
    21213   COIN_HAS_CLP_FALSE=
    21214 fi
    21215 
    21216 
    21217 
    21218   fi
    21219 
    21220 else
    21221   echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    21222 echo "${ECHO_T}$coin_has_clp" >&6
    21223 fi
    21224 
    21225 if test $coin_has_clp != skipping &&
    21226    test $coin_has_clp != notGiven ; then
    21227 
    21228 cat >>confdefs.h <<\_ACEOF
    21229 #define COIN_HAS_CLP 1
    21230 _ACEOF
    21231 
    21232 
    21233   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    21234 if test "${enable_interpackage_dependencies+set}" = set; then
    21235   enableval="$enable_interpackage_dependencies"
    21236 
    21237 else
    21238   enable_interpackage_dependencies=yes
    21239 fi;
    21240 
    21241   if test $enable_interpackage_dependencies = yes ; then
    21242      # construct dependencies variables from LIBS variables
    21243      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    21244      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    21245      # then remove everything of the form -xxx
    21246      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    21247      CLP_DEPENDENCIES=`echo " $CLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    21248 
    21249        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    21250 
    21251   fi
    21252 
    21253   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    21254     if test -n "$CLP_CFLAGS" ; then
    21255       { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
    21256 echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
    21257     fi
    21258     if test -n "$CLP_LIBS" ; then
    21259       { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
    21260 echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
    21261     fi
    21262     if test -n "$CLP_DEPENDENCIES" ; then
    21263       { echo "$as_me:$LINENO: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&5
    21264 echo "$as_me: Clp DEPENDENCIES are $CLP_DEPENDENCIES" >&6;}
    21265     fi
    21266     if test -n "$CLP_DATA" ; then
    21267       { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
    21268 echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
    21269     fi
    21270     if test -n "$CLP_PCLIBS" ; then
    21271       { echo "$as_me:$LINENO: Clp PCLIBS are $CLP_PCLIBS" >&5
    21272 echo "$as_me: Clp PCLIBS are $CLP_PCLIBS" >&6;}
    21273     fi
    21274     if test -n "$CLP_PCREQUIRES" ; then
    21275       { echo "$as_me:$LINENO: Clp PCREQUIRES are $CLP_PCREQUIRES" >&5
    21276 echo "$as_me: Clp PCREQUIRES are $CLP_PCREQUIRES" >&6;}
    21277     fi
    21278 
    21279       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    21280 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    21281       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    21282 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    21283       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    21284 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    21285 
    21286   fi
    21287 fi
    21288 
    21289 # Define the Makefile conditional
    21290 
    21291 
    21292 if test $coin_has_clp != notGiven &&
    21293                 test $coin_has_clp != skipping; then
    21294   COIN_HAS_CLP_TRUE=
    21295   COIN_HAS_CLP_FALSE='#'
    21296 else
    21297   COIN_HAS_CLP_TRUE='#'
    21298   COIN_HAS_CLP_FALSE=
    21299 fi
    21300 
    21301 
    21302 
    21303 if test $coin_has_clp != yes ; then
    21304   { { echo "$as_me:$LINENO: error: \"required package Clp Unavailable.\"" >&5
    21305 echo "$as_me: error: \"required package Clp Unavailable.\"" >&2;}
    21306    { (exit 1); exit 1; }; }
    21307 fi
    21308 
    21309 echo "$as_me:$LINENO: checking for COIN-OR package Cbc" >&5
    21310 echo $ECHO_N "checking for COIN-OR package Cbc... $ECHO_C" >&6
    21311 
    21312 coin_has_cbc=notGiven
    21313 
    21314 # check if user wants to skip package in any case
    21315 if test x"$COIN_SKIP_PROJECTS" != x; then
    21316   for dir in $COIN_SKIP_PROJECTS; do
    21317     if test $dir = "Cbc"; then
    21318       coin_has_cbc=skipping
    21319     fi
    21320   done
    21321 fi
    21322 
    21323 if test "$coin_has_cbc" != skipping; then
    21324 
    21325 # Check whether --with-m4_tolower(Cbc) or --without-m4_tolower(Cbc) was given.
    21326 if test "${with_cbc+set}" = set; then
    21327   withval="$with_cbc"
    21328   if test "$withval" = no ; then
    21329        coin_has_cbc=skipping
    21330      fi
    21331 
    21332 fi;
    21333 fi
    21334 
    21335 CBC_LIBS=
    21336 CBC_CFLAGS=
    21337 CBC_DATA=
    21338 CBC_DEPENDENCIES=
    21339 CBC_PCLIBS=
    21340 CBC_PCREQUIRES=
    21341 CBC_DATA=
    21342 
    21343 
    21344 
    21345 
    21346 
    21347 
    21348 
    21349 
    21350 
    21351 
    21352 
    21353 
    21354 
    21355 
    21356 
    21357 
    21358 
    21359 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    21360 if test $coin_has_cbc != skipping; then
    21361 
    21362 # Check whether --with-m4_tolower(Cbc)-lib or --without-m4_tolower(Cbc)-lib was given.
    21363 if test "${with_cbc_lib+set}" = set; then
    21364   withval="$with_cbc_lib"
    21365   if test "$withval" = no ; then
    21366        coin_has_cbc=skipping
    21367      else
    21368        coin_has_cbc=yes
    21369        CBC_LIBS="$withval"
    21370        CBC_PCLIBS="$withval"
    21371 
    21372          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    21373          COINMP_LIBS="$withval $COINMP_LIBS"
    21374 
    21375        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    21376        if test -z "$PKG_CONFIG" ; then
    21377          CBC_LIBS_INSTALLED="$withval"
    21378          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    21379        fi
    21380      fi
    21381 
    21382 fi;
    21383 fi
    21384 
    21385 if test $coin_has_cbc != skipping; then
    21386 
    21387 # Check whether --with-m4_tolower(Cbc)-incdir or --without-m4_tolower(Cbc)-incdir was given.
    21388 if test "${with_cbc_incdir+set}" = set; then
    21389   withval="$with_cbc_incdir"
    21390   if test "$withval" = no ; then
    21391        coin_has_cbc=skipping
    21392      else
    21393        coin_has_cbc=yes
    21394        CBC_CFLAGS="-I`${CYGPATH_W} $withval`"
    21395        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    21396        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    21397        if test -z "$PKG_CONFIG" ; then
    21398          CBC_CFLAGS_INSTALLED="$CBC_CFLAGS"
    21399          COINMP_CFLAGS_INSTALLED="$CBC_CFLAGS $COINMP_CFLAGS_INSTALLED"
    21400        fi
    21401      fi
    21402 
    21403 fi;
    21404 fi
    21405 
    21406 if test $coin_has_cbc != skipping; then
    21407 
    21408 # Check whether --with-m4_tolower(Cbc)-datadir or --without-m4_tolower(Cbc)-datadir was given.
    21409 if test "${with_cbc_datadir+set}" = set; then
    21410   withval="$with_cbc_datadir"
    21411   if test "$withval" = no ; then
    21412        coin_has_cbc=skipping
    21413      else
    21414        coin_has_cbc=yes
    21415        CBC_DATA="$withval"
    21416        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    21417        if test -z "$PKG_CONFIG" ; then
    21418          CBC_DATA_INSTALLED="$withval"
    21419        fi
    21420      fi
    21421 
    21422 fi;
    21423 fi
    21424 
    21425 if test $coin_has_cbc = notGiven; then
    21426   if test -n "$PKG_CONFIG" ; then
    21427     # set search path for pkg-config
    21428     # need to export variable to be sure that the following pkg-config gets these values
    21429     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21430     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    21431     export PKG_CONFIG_PATH
    21432 
    21433     # let pkg-config do it's magic
    21434 
    21435 
    21436 
    21437 if test -n "$PKG_CONFIG" ; then
    21438   if $PKG_CONFIG --exists "osi-cbc"; then
    21439     CBC_VERSIONS=`$PKG_CONFIG --modversion "osi-cbc" 2>/dev/null | tr '\n' ' '`
    21440      cflags=`$PKG_CONFIG --cflags "osi-cbc" 2>/dev/null`
    21441     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    21442         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    21443         # but only do this if is not trivial
    21444     if test "$CYGPATH_W" != "echo" ; then
    21445       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    21446       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21447     fi
    21448     CBC_CFLAGS="$cflags"
    21449     CBC_LIBS=`$PKG_CONFIG --libs "osi-cbc" 2>/dev/null`
    21450     CBC_DATA=`$PKG_CONFIG --variable=datadir "osi-cbc" 2>/dev/null`
    21451      coin_has_cbc=yes
    21452         echo "$as_me:$LINENO: result: yes: $CBC_VERSIONS" >&5
    21453 echo "${ECHO_T}yes: $CBC_VERSIONS" >&6
    21454 
    21455         # adjust linker flags for (i)cl compiler
    21456         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    21457         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    21458         then
    21459           CBC_LIBS=`echo " $CBC_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    21460         fi
    21461         CBC_PCREQUIRES="osi-cbc"
    21462 
    21463         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    21464 
    21465           COINMP_PCREQUIRES="osi-cbc $COINMP_PCREQUIRES"
    21466           COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
    21467           COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
    21468 
    21469 
    21470 
    21471   else
    21472     CBC_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cbc"`
    21473       coin_has_cbc=notGiven
    21474         echo "$as_me:$LINENO: result: not given: $CBC_PKG_ERRORS" >&5
    21475 echo "${ECHO_T}not given: $CBC_PKG_ERRORS" >&6
    21476 
    21477   fi
    21478 else
    21479   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&5
    21480 echo "$as_me: error: \"Cannot check for existance of module Cbc without pkg-config\"" >&2;}
    21481    { (exit 1); exit 1; }; }
    21482 fi
    21483 
    21484 
    21485 
    21486 
    21487     # reset PKG_CONFIG_PATH variable
    21488     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    21489     export PKG_CONFIG_PATH
    21490 
    21491   else
    21492     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    21493 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    21494 
    21495 echo "$as_me:$LINENO: checking for COIN-OR package Cbc (fallback)" >&5
    21496 echo $ECHO_N "checking for COIN-OR package Cbc (fallback)... $ECHO_C" >&6
    21497 
    21498 coin_has_cbc=notGiven
    21499 CBC_LIBS=
    21500 CBC_LIBS_INSTALLED=
    21501 CBC_CFLAGS=
    21502 CBC_CFLAGS_INSTALLED=
    21503 CBC_DATA=
    21504 CBC_DATA_INSTALLED=
    21505 CBC_PCLIBS=
    21506 CBC_PCREQUIRES=
    21507 
    21508 # initial list of dependencies is "osi-cbc", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    21509 projtoprocess="osi-cbc"
    21510 
    21511 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    21512 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    21513 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    21514 # also, we setup the DATA variable
    21515 allproj=""
    21516 allpcfiles=""
    21517 allpcifiles=""
    21518 while test "x$projtoprocess" != x ; do
    21519 
    21520   for proj in $projtoprocess ; do
    21521     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    21522     pcfile=""
    21523     save_IFS="$IFS"
    21524     IFS=":"
    21525     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    21526       # 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
    21527       if test -r "$dir/${proj}-uninstalled.pc" ; then
    21528         pcfile="$dir/$proj-uninstalled.pc"
    21529         if test -r "$dir/${proj}.pc" ; then
    21530           pcifile="$dir/${proj}.pc"
    21531         else
    21532           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    21533 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    21534           pcifile=
    21535         fi
    21536         break
    21537       fi
    21538     done
    21539     IFS="$save_IFS"
    21540 
    21541     if test "x$pcfile" != x ; then
    21542       # read dependencies from $pcfile and filter it
    21543       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    21544 
    21545       # add projrequires to the front of the list of projects that have to be processed next
    21546       # at the same time, remove $proj from this list
    21547       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    21548 
    21549       # read DATA from $pcfile, if _DATA is still empty
    2155020999      if test "x$CBC_DATA" = x ; then
    2155121000        projdatadir=
     
    2170821157  fi
    2170921158
    21710   CBC_PCREQUIRES="osi-cbc"
    21711 
    21712     COINMP_PCREQUIRES="osi-cbc $COINMP_PCREQUIRES"
     21159  CBC_PCREQUIRES="cbc clp osi-clp"
     21160
     21161    COINMP_PCREQUIRES="cbc clp osi-clp $COINMP_PCREQUIRES"
    2171321162    COINMP_CFLAGS="$CBC_CFLAGS $COINMP_CFLAGS"
    2171421163    COINMP_LIBS="$CBC_LIBS $COINMP_LIBS"
     
    2182321272fi
    2182421273
    21825 # Attempt to use some other solver in cbc. No point in reenabling this until
    21826 # cbc again works with a solver other than clp. Right now, it doesn't.
    21827 # -- lh, 110112 --
    21828 
    21829 # AC_MSG_CHECKING(for cbc default solver)
    21830 # AC_ARG_WITH([cbc-default-solver],
    21831 #   AC_HELP_STRING([--with-cbc-default-solver],
    21832 #       [specify default solver for Cbc in lower case letters (if not given, clp
    21833 #        is assumed)]),
    21834 #   [cbc_default_solver=$with_val],
    21835 #   [cbc_default_solver=clp])
    21836 # AC_MSG_RESULT($cbc_default_solver)
    21837 
    21838 # case $cbc_default_solver in
    21839 #   clp)
    21840 #     AC_DEFINE([CBC_DEFAULT_SOLVER],"clp",
    21841 #               [Define to the name of the default solver to be used in CBC in small letters])
    21842 #     ;;
    21843 #   dylp)
    21844 #     AC_DEFINE([CBC_DEFAULT_SOLVER],"dylp")
    21845 #     ;;
    21846 #   *)
    21847 #     AC_MSG_ERROR([Unknown solver $cbc_default_solver chosen as CBC's default solver])
    21848 #     ;;
    21849 # esac
    21850 
    21851 #############################################################################
    21852 #                            Alternative solvers                            #
    21853 #############################################################################
    21854 
    21855 # But see comment above: cbc won't work with any solver other than clp.
    21856 # -- lh, 110112 --
    21857 
    21858 # COIN solvers:
    21859 
    21860 echo "$as_me:$LINENO: checking for COIN-OR package Dylp" >&5
    21861 echo $ECHO_N "checking for COIN-OR package Dylp... $ECHO_C" >&6
    21862 
    21863 coin_has_dylp=notGiven
    21864 
    21865 # check if user wants to skip package in any case
    21866 if test x"$COIN_SKIP_PROJECTS" != x; then
    21867   for dir in $COIN_SKIP_PROJECTS; do
    21868     if test $dir = "Dylp"; then
    21869       coin_has_dylp=skipping
    21870     fi
    21871   done
    21872 fi
    21873 
    21874 if test "$coin_has_dylp" != skipping; then
    21875 
    21876 # Check whether --with-m4_tolower(Dylp) or --without-m4_tolower(Dylp) was given.
    21877 if test "${with_dylp+set}" = set; then
    21878   withval="$with_dylp"
    21879   if test "$withval" = no ; then
    21880        coin_has_dylp=skipping
    21881      fi
    21882 
    21883 fi;
    21884 fi
    21885 
    21886 DYLP_LIBS=
    21887 DYLP_CFLAGS=
    21888 DYLP_DATA=
    21889 DYLP_DEPENDENCIES=
    21890 DYLP_PCLIBS=
    21891 DYLP_PCREQUIRES=
    21892 DYLP_DATA=
    21893 
    21894 
    21895 
    21896 
    21897 
    21898 
    21899 
    21900 
    21901 
    21902 
    21903 
    21904 
    21905 
    21906 
    21907 
    21908 
    21909 
    21910 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    21911 if test $coin_has_dylp != skipping; then
    21912 
    21913 # Check whether --with-m4_tolower(Dylp)-lib or --without-m4_tolower(Dylp)-lib was given.
    21914 if test "${with_dylp_lib+set}" = set; then
    21915   withval="$with_dylp_lib"
    21916   if test "$withval" = no ; then
    21917        coin_has_dylp=skipping
    21918      else
    21919        coin_has_dylp=yes
    21920        DYLP_LIBS="$withval"
    21921        DYLP_PCLIBS="$withval"
    21922 
    21923          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    21924          COINMP_LIBS="$withval $COINMP_LIBS"
    21925 
    21926        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    21927        if test -z "$PKG_CONFIG" ; then
    21928          DYLP_LIBS_INSTALLED="$withval"
    21929          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    21930        fi
    21931      fi
    21932 
    21933 fi;
    21934 fi
    21935 
    21936 if test $coin_has_dylp != skipping; then
    21937 
    21938 # Check whether --with-m4_tolower(Dylp)-incdir or --without-m4_tolower(Dylp)-incdir was given.
    21939 if test "${with_dylp_incdir+set}" = set; then
    21940   withval="$with_dylp_incdir"
    21941   if test "$withval" = no ; then
    21942        coin_has_dylp=skipping
    21943      else
    21944        coin_has_dylp=yes
    21945        DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
    21946        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    21947        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    21948        if test -z "$PKG_CONFIG" ; then
    21949          DYLP_CFLAGS_INSTALLED="$DYLP_CFLAGS"
    21950          COINMP_CFLAGS_INSTALLED="$DYLP_CFLAGS $COINMP_CFLAGS_INSTALLED"
    21951        fi
    21952      fi
    21953 
    21954 fi;
    21955 fi
    21956 
    21957 if test $coin_has_dylp != skipping; then
    21958 
    21959 # Check whether --with-m4_tolower(Dylp)-datadir or --without-m4_tolower(Dylp)-datadir was given.
    21960 if test "${with_dylp_datadir+set}" = set; then
    21961   withval="$with_dylp_datadir"
    21962   if test "$withval" = no ; then
    21963        coin_has_dylp=skipping
    21964      else
    21965        coin_has_dylp=yes
    21966        DYLP_DATA="$withval"
    21967        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    21968        if test -z "$PKG_CONFIG" ; then
    21969          DYLP_DATA_INSTALLED="$withval"
    21970        fi
    21971      fi
    21972 
    21973 fi;
    21974 fi
    21975 
    21976 if test $coin_has_dylp = notGiven; then
    21977   if test -n "$PKG_CONFIG" ; then
    21978     # set search path for pkg-config
    21979     # need to export variable to be sure that the following pkg-config gets these values
    21980     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    21981     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    21982     export PKG_CONFIG_PATH
    21983 
    21984     # let pkg-config do it's magic
    21985 
    21986 
    21987 
    21988 if test -n "$PKG_CONFIG" ; then
    21989   if $PKG_CONFIG --exists "osi-dylp"; then
    21990     DYLP_VERSIONS=`$PKG_CONFIG --modversion "osi-dylp" 2>/dev/null | tr '\n' ' '`
    21991      cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
    21992     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    21993         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    21994         # but only do this if is not trivial
    21995     if test "$CYGPATH_W" != "echo" ; then
    21996       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    21997       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    21998     fi
    21999     DYLP_CFLAGS="$cflags"
    22000     DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
    22001     DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
    22002      coin_has_dylp=yes
    22003         echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
    22004 echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
    22005 
    22006         # adjust linker flags for (i)cl compiler
    22007         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    22008         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    22009         then
    22010           DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    22011         fi
    22012         DYLP_PCREQUIRES="osi-dylp"
    22013 
    22014         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    22015 
    22016           COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
    22017           COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
    22018           COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
    22019 
    22020 
    22021 
    22022   else
    22023     DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-dylp"`
    22024       coin_has_dylp=notGiven
    22025         echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
    22026 echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
    22027 
    22028   fi
    22029 else
    22030   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&5
    22031 echo "$as_me: error: \"Cannot check for existance of module Dylp without pkg-config\"" >&2;}
    22032    { (exit 1); exit 1; }; }
    22033 fi
    22034 
    22035 
    22036 
    22037 
    22038     # reset PKG_CONFIG_PATH variable
    22039     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    22040     export PKG_CONFIG_PATH
    22041 
    22042   else
    22043     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    22044 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    22045 
    22046 echo "$as_me:$LINENO: checking for COIN-OR package Dylp (fallback)" >&5
    22047 echo $ECHO_N "checking for COIN-OR package Dylp (fallback)... $ECHO_C" >&6
    22048 
    22049 coin_has_dylp=notGiven
    22050 DYLP_LIBS=
    22051 DYLP_LIBS_INSTALLED=
    22052 DYLP_CFLAGS=
    22053 DYLP_CFLAGS_INSTALLED=
    22054 DYLP_DATA=
    22055 DYLP_DATA_INSTALLED=
    22056 DYLP_PCLIBS=
    22057 DYLP_PCREQUIRES=
    22058 
    22059 # initial list of dependencies is "osi-dylp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    22060 projtoprocess="osi-dylp"
    22061 
    22062 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    22063 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    22064 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    22065 # also, we setup the DATA variable
    22066 allproj=""
    22067 allpcfiles=""
    22068 allpcifiles=""
    22069 while test "x$projtoprocess" != x ; do
    22070 
    22071   for proj in $projtoprocess ; do
    22072     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    22073     pcfile=""
    22074     save_IFS="$IFS"
    22075     IFS=":"
    22076     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    22077       # 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
    22078       if test -r "$dir/${proj}-uninstalled.pc" ; then
    22079         pcfile="$dir/$proj-uninstalled.pc"
    22080         if test -r "$dir/${proj}.pc" ; then
    22081           pcifile="$dir/${proj}.pc"
    22082         else
    22083           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    22084 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    22085           pcifile=
    22086         fi
    22087         break
    22088       fi
    22089     done
    22090     IFS="$save_IFS"
    22091 
    22092     if test "x$pcfile" != x ; then
    22093       # read dependencies from $pcfile and filter it
    22094       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    22095 
    22096       # add projrequires to the front of the list of projects that have to be processed next
    22097       # at the same time, remove $proj from this list
    22098       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    22099 
    22100       # read DATA from $pcfile, if _DATA is still empty
    22101       if test "x$DYLP_DATA" = x ; then
    22102         projdatadir=
    22103         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    22104         eval `sh -c "$pcfilemod"`
    22105         DYLP_DATA="$projdatadir"
    22106       fi
    22107 
    22108       allproj="$allproj $proj"
    22109       allpcfiles="$pcfile:$allpcfiles"
    22110 
    22111     else
    22112       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    22113 echo "${ECHO_T}no, dependency $proj not available" >&6
    22114       allproj=fail
    22115       break 2
    22116     fi
    22117 
    22118     if test "x$pcifile" != x ; then
    22119       allpcifiles="$pcifile:$allpcifiles"
    22120 
    22121       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    22122       if test "x$DYLP_DATA_INSTALLED" = x ; then
    22123         projdatadir=
    22124         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    22125         eval `sh -c "$pcifilemod"`
    22126         if test "${CYGPATH_W}" != "echo"; then
    22127           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    22128         fi
    22129         DYLP_DATA_INSTALLED="$projdatadir"
    22130       fi
    22131 
    22132     fi
    22133 
    22134     break
    22135   done
    22136 
    22137   # remove spaces on begin of $projtoprocess
    22138   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    22139 
    22140 done
    22141 
    22142 if test "$allproj" != fail ; then
    22143 
    22144   # now go through the list of .pc files and assemble compiler and linker flags
    22145   # important is here to obey the reverse order that has been setup before,
    22146   # since then libraries that are required by several others should be after these other libraries
    22147   pcfilesprocessed=""
    22148 
    22149   save_IFS="$IFS"
    22150   IFS=":"
    22151   for pcfile in $allpcfiles ; do
    22152 
    22153     # if $pcfile has been processed already, skip this round
    22154     if test "x$pcfilesprocessed" != x ; then
    22155       for pcfiledone in $pcfilesprocessed ; do
    22156         if test "$pcfiledone" = "$pcfile" ; then
    22157           continue 2
    22158         fi
    22159       done
    22160     fi
    22161 
    22162     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    22163     #   replace "Libs:" by "echo projlibs="
    22164     #   replace "Cflags:" by "echo projcflags="
    22165     #   remove every line starting with <some word>:
    22166     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    22167 
    22168     # set projcflags and projlibs variables by running $pcfilemod
    22169     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    22170     projcflags=
    22171     projlibs=
    22172     IFS="$save_IFS"
    22173     eval `sh -c "$pcfilemod"`
    22174     IFS=":"
    22175 
    22176     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    22177     if test "${CYGPATH_W}" != "echo"; then
    22178       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22179     fi
    22180     DYLP_CFLAGS="$projcflags $DYLP_CFLAGS"
    22181 
    22182     # set LIBS variable
    22183     DYLP_LIBS="$projlibs $DYLP_LIBS"
    22184 
    22185     # remember that we have processed $pcfile
    22186     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    22187 
    22188   done
    22189   IFS="$save_IFS"
    22190 
    22191 
    22192   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    22193   # important is here again to obey the reverse order that has been setup before,
    22194   # since then libraries that are required by several others should be after these other libraries
    22195   pcfilesprocessed=""
    22196 
    22197   save_IFS="$IFS"
    22198   IFS=":"
    22199   for pcfile in $allpcifiles ; do
    22200 
    22201     # if $pcfile has been processed already, skip this round
    22202     if test "x$pcfilesprocessed" != x ; then
    22203       for pcfiledone in $pcfilesprocessed ; do
    22204         if test "$pcfiledone" = "$pcfile" ; then
    22205           continue 2
    22206         fi
    22207       done
    22208     fi
    22209 
    22210     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    22211     #   replace "Libs:" by "echo projlibs="
    22212     #   replace "Cflags:" by "echo projcflags="
    22213     #   remove every line starting with <some word>:
    22214     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    22215 
    22216     # set projcflags and projlibs variables by running $pcfilemod
    22217     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    22218     projcflags=
    22219     projlibs=
    22220     IFS="$save_IFS"
    22221     eval `sh -c "$pcfilemod"`
    22222     IFS=":"
    22223 
    22224     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    22225     if test "${CYGPATH_W}" != "echo"; then
    22226       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22227     fi
    22228     DYLP_CFLAGS_INSTALLED="$projcflags $DYLP_CFLAGS_INSTALLED"
    22229 
    22230     # set LIBS variable
    22231     DYLP_LIBS_INSTALLED="$projlibs $DYLP_LIBS_INSTALLED"
    22232 
    22233     # remember that we have processed $pcfile
    22234     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    22235 
    22236   done
    22237   IFS="$save_IFS"
    22238 
    22239 
    22240   # finish up
    22241   coin_has_dylp=yes
    22242   echo "$as_me:$LINENO: result: yes" >&5
    22243 echo "${ECHO_T}yes" >&6
    22244 
    22245 cat >>confdefs.h <<\_ACEOF
    22246 #define COIN_HAS_DYLP 1
    22247 _ACEOF
    22248 
    22249 
    22250   # adjust linker flags for (i)cl compiler
    22251   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    22252   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    22253   #    everything of the form "-lname" by "libname.lib", and
    22254   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    22255   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    22256   then
    22257     DYLP_LIBS=`echo " $DYLP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    22258     DYLP_LIBS_INSTALLED=`echo " $DYLP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    22259   fi
    22260 
    22261   DYLP_PCREQUIRES="osi-dylp"
    22262 
    22263     COINMP_PCREQUIRES="osi-dylp $COINMP_PCREQUIRES"
    22264     COINMP_CFLAGS="$DYLP_CFLAGS $COINMP_CFLAGS"
    22265     COINMP_LIBS="$DYLP_LIBS $COINMP_LIBS"
    22266     COINMP_CFLAGS_INSTALLED="$DYLP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    22267     COINMP_LIBS_INSTALLED="$DYLP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    22268 
    22269 
    22270 fi
    22271 
    22272 
    22273 
    22274 if test $coin_has_dylp != notGiven &&
    22275                 test $coin_has_dylp != skipping; then
    22276   COIN_HAS_DYLP_TRUE=
    22277   COIN_HAS_DYLP_FALSE='#'
    22278 else
    22279   COIN_HAS_DYLP_TRUE='#'
    22280   COIN_HAS_DYLP_FALSE=
    22281 fi
    22282 
    22283 
    22284 
    22285   fi
    22286 
    22287 else
    22288   echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    22289 echo "${ECHO_T}$coin_has_dylp" >&6
    22290 fi
    22291 
    22292 if test $coin_has_dylp != skipping &&
    22293    test $coin_has_dylp != notGiven ; then
    22294 
    22295 cat >>confdefs.h <<\_ACEOF
    22296 #define COIN_HAS_DYLP 1
    22297 _ACEOF
    22298 
    22299 
    22300   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    22301 if test "${enable_interpackage_dependencies+set}" = set; then
    22302   enableval="$enable_interpackage_dependencies"
    22303 
    22304 else
    22305   enable_interpackage_dependencies=yes
    22306 fi;
    22307 
    22308   if test $enable_interpackage_dependencies = yes ; then
    22309      # construct dependencies variables from LIBS variables
    22310      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    22311      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    22312      # then remove everything of the form -xxx
    22313      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    22314      DYLP_DEPENDENCIES=`echo " $DYLP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22315 
    22316        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22317 
    22318   fi
    22319 
    22320   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22321     if test -n "$DYLP_CFLAGS" ; then
    22322       { echo "$as_me:$LINENO: Dylp CFLAGS are $DYLP_CFLAGS" >&5
    22323 echo "$as_me: Dylp CFLAGS are $DYLP_CFLAGS" >&6;}
    22324     fi
    22325     if test -n "$DYLP_LIBS" ; then
    22326       { echo "$as_me:$LINENO: Dylp LIBS   are $DYLP_LIBS" >&5
    22327 echo "$as_me: Dylp LIBS   are $DYLP_LIBS" >&6;}
    22328     fi
    22329     if test -n "$DYLP_DEPENDENCIES" ; then
    22330       { echo "$as_me:$LINENO: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&5
    22331 echo "$as_me: Dylp DEPENDENCIES are $DYLP_DEPENDENCIES" >&6;}
    22332     fi
    22333     if test -n "$DYLP_DATA" ; then
    22334       { echo "$as_me:$LINENO: Dylp DATA   is  $DYLP_DATA" >&5
    22335 echo "$as_me: Dylp DATA   is  $DYLP_DATA" >&6;}
    22336     fi
    22337     if test -n "$DYLP_PCLIBS" ; then
    22338       { echo "$as_me:$LINENO: Dylp PCLIBS are $DYLP_PCLIBS" >&5
    22339 echo "$as_me: Dylp PCLIBS are $DYLP_PCLIBS" >&6;}
    22340     fi
    22341     if test -n "$DYLP_PCREQUIRES" ; then
    22342       { echo "$as_me:$LINENO: Dylp PCREQUIRES are $DYLP_PCREQUIRES" >&5
    22343 echo "$as_me: Dylp PCREQUIRES are $DYLP_PCREQUIRES" >&6;}
    22344     fi
    22345 
    22346       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    22347 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    22348       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    22349 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    22350       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    22351 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    22352 
    22353   fi
    22354 fi
    22355 
    22356 # Define the Makefile conditional
    22357 
    22358 
    22359 if test $coin_has_dylp != notGiven &&
    22360                 test $coin_has_dylp != skipping; then
    22361   COIN_HAS_DYLP_TRUE=
    22362   COIN_HAS_DYLP_FALSE='#'
    22363 else
    22364   COIN_HAS_DYLP_TRUE='#'
    22365   COIN_HAS_DYLP_FALSE=
    22366 fi
    22367 
    22368 
    22369 
    22370 
    22371 echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY" >&5
    22372 echo $ECHO_N "checking for COIN-OR package SYMPHONY... $ECHO_C" >&6
    22373 
    22374 coin_has_symphony=notGiven
    22375 
    22376 # check if user wants to skip package in any case
    22377 if test x"$COIN_SKIP_PROJECTS" != x; then
    22378   for dir in $COIN_SKIP_PROJECTS; do
    22379     if test $dir = "SYMPHONY"; then
    22380       coin_has_symphony=skipping
    22381     fi
    22382   done
    22383 fi
    22384 
    22385 if test "$coin_has_symphony" != skipping; then
    22386 
    22387 # Check whether --with-m4_tolower(SYMPHONY) or --without-m4_tolower(SYMPHONY) was given.
    22388 if test "${with_symphony+set}" = set; then
    22389   withval="$with_symphony"
    22390   if test "$withval" = no ; then
    22391        coin_has_symphony=skipping
    22392      fi
    22393 
    22394 fi;
    22395 fi
    22396 
    22397 SYMPHONY_LIBS=
    22398 SYMPHONY_CFLAGS=
    22399 SYMPHONY_DATA=
    22400 SYMPHONY_DEPENDENCIES=
    22401 SYMPHONY_PCLIBS=
    22402 SYMPHONY_PCREQUIRES=
    22403 SYMPHONY_DATA=
    22404 
    22405 
    22406 
    22407 
    22408 
    22409 
    22410 
    22411 
    22412 
    22413 
    22414 
    22415 
    22416 
    22417 
    22418 
    22419 
    22420 
    22421 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    22422 if test $coin_has_symphony != skipping; then
    22423 
    22424 # Check whether --with-m4_tolower(SYMPHONY)-lib or --without-m4_tolower(SYMPHONY)-lib was given.
    22425 if test "${with_symphony_lib+set}" = set; then
    22426   withval="$with_symphony_lib"
    22427   if test "$withval" = no ; then
    22428        coin_has_symphony=skipping
    22429      else
    22430        coin_has_symphony=yes
    22431        SYMPHONY_LIBS="$withval"
    22432        SYMPHONY_PCLIBS="$withval"
    22433 
    22434          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    22435          COINMP_LIBS="$withval $COINMP_LIBS"
    22436 
    22437        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    22438        if test -z "$PKG_CONFIG" ; then
    22439          SYMPHONY_LIBS_INSTALLED="$withval"
    22440          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    22441        fi
    22442      fi
    22443 
    22444 fi;
    22445 fi
    22446 
    22447 if test $coin_has_symphony != skipping; then
    22448 
    22449 # Check whether --with-m4_tolower(SYMPHONY)-incdir or --without-m4_tolower(SYMPHONY)-incdir was given.
    22450 if test "${with_symphony_incdir+set}" = set; then
    22451   withval="$with_symphony_incdir"
    22452   if test "$withval" = no ; then
    22453        coin_has_symphony=skipping
    22454      else
    22455        coin_has_symphony=yes
    22456        SYMPHONY_CFLAGS="-I`${CYGPATH_W} $withval`"
    22457        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    22458        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    22459        if test -z "$PKG_CONFIG" ; then
    22460          SYMPHONY_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS"
    22461          COINMP_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS $COINMP_CFLAGS_INSTALLED"
    22462        fi
    22463      fi
    22464 
    22465 fi;
    22466 fi
    22467 
    22468 if test $coin_has_symphony != skipping; then
    22469 
    22470 # Check whether --with-m4_tolower(SYMPHONY)-datadir or --without-m4_tolower(SYMPHONY)-datadir was given.
    22471 if test "${with_symphony_datadir+set}" = set; then
    22472   withval="$with_symphony_datadir"
    22473   if test "$withval" = no ; then
    22474        coin_has_symphony=skipping
    22475      else
    22476        coin_has_symphony=yes
    22477        SYMPHONY_DATA="$withval"
    22478        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    22479        if test -z "$PKG_CONFIG" ; then
    22480          SYMPHONY_DATA_INSTALLED="$withval"
    22481        fi
    22482      fi
    22483 
    22484 fi;
    22485 fi
    22486 
    22487 if test $coin_has_symphony = notGiven; then
    22488   if test -n "$PKG_CONFIG" ; then
    22489     # set search path for pkg-config
    22490     # need to export variable to be sure that the following pkg-config gets these values
    22491     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    22492     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    22493     export PKG_CONFIG_PATH
    22494 
    22495     # let pkg-config do it's magic
    22496 
    22497 
    22498 
    22499 if test -n "$PKG_CONFIG" ; then
    22500   if $PKG_CONFIG --exists "osi-sym"; then
    22501     SYMPHONY_VERSIONS=`$PKG_CONFIG --modversion "osi-sym" 2>/dev/null | tr '\n' ' '`
    22502      cflags=`$PKG_CONFIG --cflags "osi-sym" 2>/dev/null`
    22503     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    22504         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    22505         # but only do this if is not trivial
    22506     if test "$CYGPATH_W" != "echo" ; then
    22507       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    22508       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22509     fi
    22510     SYMPHONY_CFLAGS="$cflags"
    22511     SYMPHONY_LIBS=`$PKG_CONFIG --libs "osi-sym" 2>/dev/null`
    22512     SYMPHONY_DATA=`$PKG_CONFIG --variable=datadir "osi-sym" 2>/dev/null`
    22513      coin_has_symphony=yes
    22514         echo "$as_me:$LINENO: result: yes: $SYMPHONY_VERSIONS" >&5
    22515 echo "${ECHO_T}yes: $SYMPHONY_VERSIONS" >&6
    22516 
    22517         # adjust linker flags for (i)cl compiler
    22518         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    22519         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    22520         then
    22521           SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    22522         fi
    22523         SYMPHONY_PCREQUIRES="osi-sym"
    22524 
    22525         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    22526 
    22527           COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
    22528           COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
    22529           COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
    22530 
    22531 
    22532 
    22533   else
    22534     SYMPHONY_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-sym"`
    22535       coin_has_symphony=notGiven
    22536         echo "$as_me:$LINENO: result: not given: $SYMPHONY_PKG_ERRORS" >&5
    22537 echo "${ECHO_T}not given: $SYMPHONY_PKG_ERRORS" >&6
    22538 
    22539   fi
    22540 else
    22541   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&5
    22542 echo "$as_me: error: \"Cannot check for existance of module SYMPHONY without pkg-config\"" >&2;}
    22543    { (exit 1); exit 1; }; }
    22544 fi
    22545 
    22546 
    22547 
    22548 
    22549     # reset PKG_CONFIG_PATH variable
    22550     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    22551     export PKG_CONFIG_PATH
    22552 
    22553   else
    22554     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    22555 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    22556 
    22557 echo "$as_me:$LINENO: checking for COIN-OR package SYMPHONY (fallback)" >&5
    22558 echo $ECHO_N "checking for COIN-OR package SYMPHONY (fallback)... $ECHO_C" >&6
    22559 
    22560 coin_has_symphony=notGiven
    22561 SYMPHONY_LIBS=
    22562 SYMPHONY_LIBS_INSTALLED=
    22563 SYMPHONY_CFLAGS=
    22564 SYMPHONY_CFLAGS_INSTALLED=
    22565 SYMPHONY_DATA=
    22566 SYMPHONY_DATA_INSTALLED=
    22567 SYMPHONY_PCLIBS=
    22568 SYMPHONY_PCREQUIRES=
    22569 
    22570 # initial list of dependencies is "osi-sym", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    22571 projtoprocess="osi-sym"
    22572 
    22573 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    22574 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    22575 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    22576 # also, we setup the DATA variable
    22577 allproj=""
    22578 allpcfiles=""
    22579 allpcifiles=""
    22580 while test "x$projtoprocess" != x ; do
    22581 
    22582   for proj in $projtoprocess ; do
    22583     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    22584     pcfile=""
    22585     save_IFS="$IFS"
    22586     IFS=":"
    22587     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    22588       # 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
    22589       if test -r "$dir/${proj}-uninstalled.pc" ; then
    22590         pcfile="$dir/$proj-uninstalled.pc"
    22591         if test -r "$dir/${proj}.pc" ; then
    22592           pcifile="$dir/${proj}.pc"
    22593         else
    22594           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    22595 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    22596           pcifile=
    22597         fi
    22598         break
    22599       fi
    22600     done
    22601     IFS="$save_IFS"
    22602 
    22603     if test "x$pcfile" != x ; then
    22604       # read dependencies from $pcfile and filter it
    22605       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    22606 
    22607       # add projrequires to the front of the list of projects that have to be processed next
    22608       # at the same time, remove $proj from this list
    22609       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    22610 
    22611       # read DATA from $pcfile, if _DATA is still empty
    22612       if test "x$SYMPHONY_DATA" = x ; then
    22613         projdatadir=
    22614         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    22615         eval `sh -c "$pcfilemod"`
    22616         SYMPHONY_DATA="$projdatadir"
    22617       fi
    22618 
    22619       allproj="$allproj $proj"
    22620       allpcfiles="$pcfile:$allpcfiles"
    22621 
    22622     else
    22623       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    22624 echo "${ECHO_T}no, dependency $proj not available" >&6
    22625       allproj=fail
    22626       break 2
    22627     fi
    22628 
    22629     if test "x$pcifile" != x ; then
    22630       allpcifiles="$pcifile:$allpcifiles"
    22631 
    22632       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    22633       if test "x$SYMPHONY_DATA_INSTALLED" = x ; then
    22634         projdatadir=
    22635         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    22636         eval `sh -c "$pcifilemod"`
    22637         if test "${CYGPATH_W}" != "echo"; then
    22638           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    22639         fi
    22640         SYMPHONY_DATA_INSTALLED="$projdatadir"
    22641       fi
    22642 
    22643     fi
    22644 
    22645     break
    22646   done
    22647 
    22648   # remove spaces on begin of $projtoprocess
    22649   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    22650 
    22651 done
    22652 
    22653 if test "$allproj" != fail ; then
    22654 
    22655   # now go through the list of .pc files and assemble compiler and linker flags
    22656   # important is here to obey the reverse order that has been setup before,
    22657   # since then libraries that are required by several others should be after these other libraries
    22658   pcfilesprocessed=""
    22659 
    22660   save_IFS="$IFS"
    22661   IFS=":"
    22662   for pcfile in $allpcfiles ; do
    22663 
    22664     # if $pcfile has been processed already, skip this round
    22665     if test "x$pcfilesprocessed" != x ; then
    22666       for pcfiledone in $pcfilesprocessed ; do
    22667         if test "$pcfiledone" = "$pcfile" ; then
    22668           continue 2
    22669         fi
    22670       done
    22671     fi
    22672 
    22673     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    22674     #   replace "Libs:" by "echo projlibs="
    22675     #   replace "Cflags:" by "echo projcflags="
    22676     #   remove every line starting with <some word>:
    22677     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    22678 
    22679     # set projcflags and projlibs variables by running $pcfilemod
    22680     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    22681     projcflags=
    22682     projlibs=
    22683     IFS="$save_IFS"
    22684     eval `sh -c "$pcfilemod"`
    22685     IFS=":"
    22686 
    22687     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    22688     if test "${CYGPATH_W}" != "echo"; then
    22689       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22690     fi
    22691     SYMPHONY_CFLAGS="$projcflags $SYMPHONY_CFLAGS"
    22692 
    22693     # set LIBS variable
    22694     SYMPHONY_LIBS="$projlibs $SYMPHONY_LIBS"
    22695 
    22696     # remember that we have processed $pcfile
    22697     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    22698 
    22699   done
    22700   IFS="$save_IFS"
    22701 
    22702 
    22703   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    22704   # important is here again to obey the reverse order that has been setup before,
    22705   # since then libraries that are required by several others should be after these other libraries
    22706   pcfilesprocessed=""
    22707 
    22708   save_IFS="$IFS"
    22709   IFS=":"
    22710   for pcfile in $allpcifiles ; do
    22711 
    22712     # if $pcfile has been processed already, skip this round
    22713     if test "x$pcfilesprocessed" != x ; then
    22714       for pcfiledone in $pcfilesprocessed ; do
    22715         if test "$pcfiledone" = "$pcfile" ; then
    22716           continue 2
    22717         fi
    22718       done
    22719     fi
    22720 
    22721     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    22722     #   replace "Libs:" by "echo projlibs="
    22723     #   replace "Cflags:" by "echo projcflags="
    22724     #   remove every line starting with <some word>:
    22725     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    22726 
    22727     # set projcflags and projlibs variables by running $pcfilemod
    22728     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    22729     projcflags=
    22730     projlibs=
    22731     IFS="$save_IFS"
    22732     eval `sh -c "$pcfilemod"`
    22733     IFS=":"
    22734 
    22735     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    22736     if test "${CYGPATH_W}" != "echo"; then
    22737       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    22738     fi
    22739     SYMPHONY_CFLAGS_INSTALLED="$projcflags $SYMPHONY_CFLAGS_INSTALLED"
    22740 
    22741     # set LIBS variable
    22742     SYMPHONY_LIBS_INSTALLED="$projlibs $SYMPHONY_LIBS_INSTALLED"
    22743 
    22744     # remember that we have processed $pcfile
    22745     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    22746 
    22747   done
    22748   IFS="$save_IFS"
    22749 
    22750 
    22751   # finish up
    22752   coin_has_symphony=yes
    22753   echo "$as_me:$LINENO: result: yes" >&5
    22754 echo "${ECHO_T}yes" >&6
    22755 
    22756 cat >>confdefs.h <<\_ACEOF
    22757 #define COIN_HAS_SYMPHONY 1
    22758 _ACEOF
    22759 
    22760 
    22761   # adjust linker flags for (i)cl compiler
    22762   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    22763   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    22764   #    everything of the form "-lname" by "libname.lib", and
    22765   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    22766   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    22767   then
    22768     SYMPHONY_LIBS=`echo " $SYMPHONY_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    22769     SYMPHONY_LIBS_INSTALLED=`echo " $SYMPHONY_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    22770   fi
    22771 
    22772   SYMPHONY_PCREQUIRES="osi-sym"
    22773 
    22774     COINMP_PCREQUIRES="osi-sym $COINMP_PCREQUIRES"
    22775     COINMP_CFLAGS="$SYMPHONY_CFLAGS $COINMP_CFLAGS"
    22776     COINMP_LIBS="$SYMPHONY_LIBS $COINMP_LIBS"
    22777     COINMP_CFLAGS_INSTALLED="$SYMPHONY_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    22778     COINMP_LIBS_INSTALLED="$SYMPHONY_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    22779 
    22780 
    22781 fi
    22782 
    22783 
    22784 
    22785 if test $coin_has_symphony != notGiven &&
    22786                 test $coin_has_symphony != skipping; then
    22787   COIN_HAS_SYMPHONY_TRUE=
    22788   COIN_HAS_SYMPHONY_FALSE='#'
    22789 else
    22790   COIN_HAS_SYMPHONY_TRUE='#'
    22791   COIN_HAS_SYMPHONY_FALSE=
    22792 fi
    22793 
    22794 
    22795 
    22796   fi
    22797 
    22798 else
    22799   echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
    22800 echo "${ECHO_T}$coin_has_symphony" >&6
    22801 fi
    22802 
    22803 if test $coin_has_symphony != skipping &&
    22804    test $coin_has_symphony != notGiven ; then
    22805 
    22806 cat >>confdefs.h <<\_ACEOF
    22807 #define COIN_HAS_SYMPHONY 1
    22808 _ACEOF
    22809 
    22810 
    22811   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    22812 if test "${enable_interpackage_dependencies+set}" = set; then
    22813   enableval="$enable_interpackage_dependencies"
    22814 
    22815 else
    22816   enable_interpackage_dependencies=yes
    22817 fi;
    22818 
    22819   if test $enable_interpackage_dependencies = yes ; then
    22820      # construct dependencies variables from LIBS variables
    22821      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    22822      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    22823      # then remove everything of the form -xxx
    22824      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    22825      SYMPHONY_DEPENDENCIES=`echo " $SYMPHONY_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22826 
    22827        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    22828 
    22829   fi
    22830 
    22831   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    22832     if test -n "$SYMPHONY_CFLAGS" ; then
    22833       { echo "$as_me:$LINENO: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&5
    22834 echo "$as_me: SYMPHONY CFLAGS are $SYMPHONY_CFLAGS" >&6;}
    22835     fi
    22836     if test -n "$SYMPHONY_LIBS" ; then
    22837       { echo "$as_me:$LINENO: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&5
    22838 echo "$as_me: SYMPHONY LIBS   are $SYMPHONY_LIBS" >&6;}
    22839     fi
    22840     if test -n "$SYMPHONY_DEPENDENCIES" ; then
    22841       { echo "$as_me:$LINENO: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&5
    22842 echo "$as_me: SYMPHONY DEPENDENCIES are $SYMPHONY_DEPENDENCIES" >&6;}
    22843     fi
    22844     if test -n "$SYMPHONY_DATA" ; then
    22845       { echo "$as_me:$LINENO: SYMPHONY DATA   is  $SYMPHONY_DATA" >&5
    22846 echo "$as_me: SYMPHONY DATA   is  $SYMPHONY_DATA" >&6;}
    22847     fi
    22848     if test -n "$SYMPHONY_PCLIBS" ; then
    22849       { echo "$as_me:$LINENO: SYMPHONY PCLIBS are $SYMPHONY_PCLIBS" >&5
    22850 echo "$as_me: SYMPHONY PCLIBS are $SYMPHONY_PCLIBS" >&6;}
    22851     fi
    22852     if test -n "$SYMPHONY_PCREQUIRES" ; then
    22853       { echo "$as_me:$LINENO: SYMPHONY PCREQUIRES are $SYMPHONY_PCREQUIRES" >&5
    22854 echo "$as_me: SYMPHONY PCREQUIRES are $SYMPHONY_PCREQUIRES" >&6;}
    22855     fi
    22856 
    22857       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    22858 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    22859       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    22860 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    22861       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    22862 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    22863 
    22864   fi
    22865 fi
    22866 
    22867 # Define the Makefile conditional
    22868 
    22869 
    22870 if test $coin_has_symphony != notGiven &&
    22871                 test $coin_has_symphony != skipping; then
    22872   COIN_HAS_SYMPHONY_TRUE=
    22873   COIN_HAS_SYMPHONY_FALSE='#'
    22874 else
    22875   COIN_HAS_SYMPHONY_TRUE='#'
    22876   COIN_HAS_SYMPHONY_FALSE=
    22877 fi
    22878 
    22879 
    22880 
    22881 
    22882 echo "$as_me:$LINENO: checking for COIN-OR package Vol" >&5
    22883 echo $ECHO_N "checking for COIN-OR package Vol... $ECHO_C" >&6
    22884 
    22885 coin_has_vol=notGiven
    22886 
    22887 # check if user wants to skip package in any case
    22888 if test x"$COIN_SKIP_PROJECTS" != x; then
    22889   for dir in $COIN_SKIP_PROJECTS; do
    22890     if test $dir = "Vol"; then
    22891       coin_has_vol=skipping
    22892     fi
    22893   done
    22894 fi
    22895 
    22896 if test "$coin_has_vol" != skipping; then
    22897 
    22898 # Check whether --with-m4_tolower(Vol) or --without-m4_tolower(Vol) was given.
    22899 if test "${with_vol+set}" = set; then
    22900   withval="$with_vol"
    22901   if test "$withval" = no ; then
    22902        coin_has_vol=skipping
    22903      fi
    22904 
    22905 fi;
    22906 fi
    22907 
    22908 VOL_LIBS=
    22909 VOL_CFLAGS=
    22910 VOL_DATA=
    22911 VOL_DEPENDENCIES=
    22912 VOL_PCLIBS=
    22913 VOL_PCREQUIRES=
    22914 VOL_DATA=
    22915 
    22916 
    22917 
    22918 
    22919 
    22920 
    22921 
    22922 
    22923 
    22924 
    22925 
    22926 
    22927 
    22928 
    22929 
    22930 
    22931 
    22932 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    22933 if test $coin_has_vol != skipping; then
    22934 
    22935 # Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
    22936 if test "${with_vol_lib+set}" = set; then
    22937   withval="$with_vol_lib"
    22938   if test "$withval" = no ; then
    22939        coin_has_vol=skipping
    22940      else
    22941        coin_has_vol=yes
    22942        VOL_LIBS="$withval"
    22943        VOL_PCLIBS="$withval"
    22944 
    22945          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    22946          COINMP_LIBS="$withval $COINMP_LIBS"
    22947 
    22948        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    22949        if test -z "$PKG_CONFIG" ; then
    22950          VOL_LIBS_INSTALLED="$withval"
    22951          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    22952        fi
    22953      fi
    22954 
    22955 fi;
    22956 fi
    22957 
    22958 if test $coin_has_vol != skipping; then
    22959 
    22960 # Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
    22961 if test "${with_vol_incdir+set}" = set; then
    22962   withval="$with_vol_incdir"
    22963   if test "$withval" = no ; then
    22964        coin_has_vol=skipping
    22965      else
    22966        coin_has_vol=yes
    22967        VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
    22968        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    22969        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    22970        if test -z "$PKG_CONFIG" ; then
    22971          VOL_CFLAGS_INSTALLED="$VOL_CFLAGS"
    22972          COINMP_CFLAGS_INSTALLED="$VOL_CFLAGS $COINMP_CFLAGS_INSTALLED"
    22973        fi
    22974      fi
    22975 
    22976 fi;
    22977 fi
    22978 
    22979 if test $coin_has_vol != skipping; then
    22980 
    22981 # Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
    22982 if test "${with_vol_datadir+set}" = set; then
    22983   withval="$with_vol_datadir"
    22984   if test "$withval" = no ; then
    22985        coin_has_vol=skipping
    22986      else
    22987        coin_has_vol=yes
    22988        VOL_DATA="$withval"
    22989        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    22990        if test -z "$PKG_CONFIG" ; then
    22991          VOL_DATA_INSTALLED="$withval"
    22992        fi
    22993      fi
    22994 
    22995 fi;
    22996 fi
    22997 
    22998 if test $coin_has_vol = notGiven; then
    22999   if test -n "$PKG_CONFIG" ; then
    23000     # set search path for pkg-config
    23001     # need to export variable to be sure that the following pkg-config gets these values
    23002     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23003     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    23004     export PKG_CONFIG_PATH
    23005 
    23006     # let pkg-config do it's magic
    23007 
    23008 
    23009 
    23010 if test -n "$PKG_CONFIG" ; then
    23011   if $PKG_CONFIG --exists "osi-vol"; then
    23012     VOL_VERSIONS=`$PKG_CONFIG --modversion "osi-vol" 2>/dev/null | tr '\n' ' '`
    23013      cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
    23014     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    23015         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    23016         # but only do this if is not trivial
    23017     if test "$CYGPATH_W" != "echo" ; then
    23018       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23019       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23020     fi
    23021     VOL_CFLAGS="$cflags"
    23022     VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
    23023     VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
    23024      coin_has_vol=yes
    23025         echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
    23026 echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
    23027 
    23028         # adjust linker flags for (i)cl compiler
    23029         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    23030         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    23031         then
    23032           VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    23033         fi
    23034         VOL_PCREQUIRES="osi-vol"
    23035 
    23036         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    23037 
    23038           COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
    23039           COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
    23040           COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
    23041 
    23042 
    23043 
    23044   else
    23045     VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-vol"`
    23046       coin_has_vol=notGiven
    23047         echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
    23048 echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
    23049 
    23050   fi
    23051 else
    23052   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
    23053 echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
    23054    { (exit 1); exit 1; }; }
    23055 fi
    23056 
    23057 
    23058 
    23059 
    23060     # reset PKG_CONFIG_PATH variable
    23061     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    23062     export PKG_CONFIG_PATH
    23063 
    23064   else
    23065     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    23066 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    23067 
    23068 echo "$as_me:$LINENO: checking for COIN-OR package Vol (fallback)" >&5
    23069 echo $ECHO_N "checking for COIN-OR package Vol (fallback)... $ECHO_C" >&6
    23070 
    23071 coin_has_vol=notGiven
    23072 VOL_LIBS=
    23073 VOL_LIBS_INSTALLED=
    23074 VOL_CFLAGS=
    23075 VOL_CFLAGS_INSTALLED=
    23076 VOL_DATA=
    23077 VOL_DATA_INSTALLED=
    23078 VOL_PCLIBS=
    23079 VOL_PCREQUIRES=
    23080 
    23081 # initial list of dependencies is "osi-vol", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    23082 projtoprocess="osi-vol"
    23083 
    23084 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    23085 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    23086 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    23087 # also, we setup the DATA variable
    23088 allproj=""
    23089 allpcfiles=""
    23090 allpcifiles=""
    23091 while test "x$projtoprocess" != x ; do
    23092 
    23093   for proj in $projtoprocess ; do
    23094     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    23095     pcfile=""
    23096     save_IFS="$IFS"
    23097     IFS=":"
    23098     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    23099       # 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
    23100       if test -r "$dir/${proj}-uninstalled.pc" ; then
    23101         pcfile="$dir/$proj-uninstalled.pc"
    23102         if test -r "$dir/${proj}.pc" ; then
    23103           pcifile="$dir/${proj}.pc"
    23104         else
    23105           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    23106 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    23107           pcifile=
    23108         fi
    23109         break
    23110       fi
    23111     done
    23112     IFS="$save_IFS"
    23113 
    23114     if test "x$pcfile" != x ; then
    23115       # read dependencies from $pcfile and filter it
    23116       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    23117 
    23118       # add projrequires to the front of the list of projects that have to be processed next
    23119       # at the same time, remove $proj from this list
    23120       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    23121 
    23122       # read DATA from $pcfile, if _DATA is still empty
    23123       if test "x$VOL_DATA" = x ; then
    23124         projdatadir=
    23125         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    23126         eval `sh -c "$pcfilemod"`
    23127         VOL_DATA="$projdatadir"
    23128       fi
    23129 
    23130       allproj="$allproj $proj"
    23131       allpcfiles="$pcfile:$allpcfiles"
    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       allproj=fail
    23137       break 2
    23138     fi
    23139 
    23140     if test "x$pcifile" != x ; then
    23141       allpcifiles="$pcifile:$allpcifiles"
    23142 
    23143       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    23144       if test "x$VOL_DATA_INSTALLED" = x ; then
    23145         projdatadir=
    23146         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    23147         eval `sh -c "$pcifilemod"`
    23148         if test "${CYGPATH_W}" != "echo"; then
    23149           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    23150         fi
    23151         VOL_DATA_INSTALLED="$projdatadir"
    23152       fi
    23153 
    23154     fi
    23155 
    23156     break
    23157   done
    23158 
    23159   # remove spaces on begin of $projtoprocess
    23160   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    23161 
    23162 done
    23163 
    23164 if test "$allproj" != fail ; then
    23165 
    23166   # now go through the list of .pc files and assemble compiler and linker flags
    23167   # important is here to obey the reverse order that has been setup before,
    23168   # since then libraries that are required by several others should be after these other libraries
    23169   pcfilesprocessed=""
    23170 
    23171   save_IFS="$IFS"
    23172   IFS=":"
    23173   for pcfile in $allpcfiles ; do
    23174 
    23175     # if $pcfile has been processed already, skip this round
    23176     if test "x$pcfilesprocessed" != x ; then
    23177       for pcfiledone in $pcfilesprocessed ; do
    23178         if test "$pcfiledone" = "$pcfile" ; then
    23179           continue 2
    23180         fi
    23181       done
    23182     fi
    23183 
    23184     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    23185     #   replace "Libs:" by "echo projlibs="
    23186     #   replace "Cflags:" by "echo projcflags="
    23187     #   remove every line starting with <some word>:
    23188     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    23189 
    23190     # set projcflags and projlibs variables by running $pcfilemod
    23191     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    23192     projcflags=
    23193     projlibs=
    23194     IFS="$save_IFS"
    23195     eval `sh -c "$pcfilemod"`
    23196     IFS=":"
    23197 
    23198     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    23199     if test "${CYGPATH_W}" != "echo"; then
    23200       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23201     fi
    23202     VOL_CFLAGS="$projcflags $VOL_CFLAGS"
    23203 
    23204     # set LIBS variable
    23205     VOL_LIBS="$projlibs $VOL_LIBS"
    23206 
    23207     # remember that we have processed $pcfile
    23208     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    23209 
    23210   done
    23211   IFS="$save_IFS"
    23212 
    23213 
    23214   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    23215   # important is here again to obey the reverse order that has been setup before,
    23216   # since then libraries that are required by several others should be after these other libraries
    23217   pcfilesprocessed=""
    23218 
    23219   save_IFS="$IFS"
    23220   IFS=":"
    23221   for pcfile in $allpcifiles ; do
    23222 
    23223     # if $pcfile has been processed already, skip this round
    23224     if test "x$pcfilesprocessed" != x ; then
    23225       for pcfiledone in $pcfilesprocessed ; do
    23226         if test "$pcfiledone" = "$pcfile" ; then
    23227           continue 2
    23228         fi
    23229       done
    23230     fi
    23231 
    23232     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    23233     #   replace "Libs:" by "echo projlibs="
    23234     #   replace "Cflags:" by "echo projcflags="
    23235     #   remove every line starting with <some word>:
    23236     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    23237 
    23238     # set projcflags and projlibs variables by running $pcfilemod
    23239     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    23240     projcflags=
    23241     projlibs=
    23242     IFS="$save_IFS"
    23243     eval `sh -c "$pcfilemod"`
    23244     IFS=":"
    23245 
    23246     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    23247     if test "${CYGPATH_W}" != "echo"; then
    23248       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23249     fi
    23250     VOL_CFLAGS_INSTALLED="$projcflags $VOL_CFLAGS_INSTALLED"
    23251 
    23252     # set LIBS variable
    23253     VOL_LIBS_INSTALLED="$projlibs $VOL_LIBS_INSTALLED"
    23254 
    23255     # remember that we have processed $pcfile
    23256     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    23257 
    23258   done
    23259   IFS="$save_IFS"
    23260 
    23261 
    23262   # finish up
    23263   coin_has_vol=yes
    23264   echo "$as_me:$LINENO: result: yes" >&5
    23265 echo "${ECHO_T}yes" >&6
    23266 
    23267 cat >>confdefs.h <<\_ACEOF
    23268 #define COIN_HAS_VOL 1
    23269 _ACEOF
    23270 
    23271 
    23272   # adjust linker flags for (i)cl compiler
    23273   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    23274   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    23275   #    everything of the form "-lname" by "libname.lib", and
    23276   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    23277   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    23278   then
    23279     VOL_LIBS=`echo " $VOL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    23280     VOL_LIBS_INSTALLED=`echo " $VOL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    23281   fi
    23282 
    23283   VOL_PCREQUIRES="osi-vol"
    23284 
    23285     COINMP_PCREQUIRES="osi-vol $COINMP_PCREQUIRES"
    23286     COINMP_CFLAGS="$VOL_CFLAGS $COINMP_CFLAGS"
    23287     COINMP_LIBS="$VOL_LIBS $COINMP_LIBS"
    23288     COINMP_CFLAGS_INSTALLED="$VOL_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    23289     COINMP_LIBS_INSTALLED="$VOL_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    23290 
    23291 
    23292 fi
    23293 
    23294 
    23295 
    23296 if test $coin_has_vol != notGiven &&
    23297                 test $coin_has_vol != skipping; then
    23298   COIN_HAS_VOL_TRUE=
    23299   COIN_HAS_VOL_FALSE='#'
    23300 else
    23301   COIN_HAS_VOL_TRUE='#'
    23302   COIN_HAS_VOL_FALSE=
    23303 fi
    23304 
    23305 
    23306 
    23307   fi
    23308 
    23309 else
    23310   echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    23311 echo "${ECHO_T}$coin_has_vol" >&6
    23312 fi
    23313 
    23314 if test $coin_has_vol != skipping &&
    23315    test $coin_has_vol != notGiven ; then
    23316 
    23317 cat >>confdefs.h <<\_ACEOF
    23318 #define COIN_HAS_VOL 1
    23319 _ACEOF
    23320 
    23321 
    23322   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    23323 if test "${enable_interpackage_dependencies+set}" = set; then
    23324   enableval="$enable_interpackage_dependencies"
    23325 
    23326 else
    23327   enable_interpackage_dependencies=yes
    23328 fi;
    23329 
    23330   if test $enable_interpackage_dependencies = yes ; then
    23331      # construct dependencies variables from LIBS variables
    23332      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    23333      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    23334      # then remove everything of the form -xxx
    23335      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    23336      VOL_DEPENDENCIES=`echo " $VOL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    23337 
    23338        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    23339 
    23340   fi
    23341 
    23342   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23343     if test -n "$VOL_CFLAGS" ; then
    23344       { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
    23345 echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
    23346     fi
    23347     if test -n "$VOL_LIBS" ; then
    23348       { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
    23349 echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
    23350     fi
    23351     if test -n "$VOL_DEPENDENCIES" ; then
    23352       { echo "$as_me:$LINENO: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&5
    23353 echo "$as_me: Vol DEPENDENCIES are $VOL_DEPENDENCIES" >&6;}
    23354     fi
    23355     if test -n "$VOL_DATA" ; then
    23356       { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
    23357 echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
    23358     fi
    23359     if test -n "$VOL_PCLIBS" ; then
    23360       { echo "$as_me:$LINENO: Vol PCLIBS are $VOL_PCLIBS" >&5
    23361 echo "$as_me: Vol PCLIBS are $VOL_PCLIBS" >&6;}
    23362     fi
    23363     if test -n "$VOL_PCREQUIRES" ; then
    23364       { echo "$as_me:$LINENO: Vol PCREQUIRES are $VOL_PCREQUIRES" >&5
    23365 echo "$as_me: Vol PCREQUIRES are $VOL_PCREQUIRES" >&6;}
    23366     fi
    23367 
    23368       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    23369 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    23370       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    23371 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    23372       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    23373 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    23374 
    23375   fi
    23376 fi
    23377 
    23378 # Define the Makefile conditional
    23379 
    23380 
    23381 if test $coin_has_vol != notGiven &&
    23382                 test $coin_has_vol != skipping; then
    23383   COIN_HAS_VOL_TRUE=
    23384   COIN_HAS_VOL_FALSE='#'
    23385 else
    23386   COIN_HAS_VOL_TRUE='#'
    23387   COIN_HAS_VOL_FALSE=
    23388 fi
    23389 
    23390 
    23391 
    23392 
    23393 # Third party solvers:
    23394 
    23395 echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
    23396 echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
    23397 
    23398 coin_has_cpx=notGiven
    23399 
    23400 # check if user wants to skip package in any case
    23401 if test x"$COIN_SKIP_PROJECTS" != x; then
    23402   for dir in $COIN_SKIP_PROJECTS; do
    23403     if test $dir = "Cpx"; then
    23404       coin_has_cpx=skipping
    23405     fi
    23406   done
    23407 fi
    23408 
    23409 if test "$coin_has_cpx" != skipping; then
    23410 
    23411 # Check whether --with-m4_tolower(Cpx) or --without-m4_tolower(Cpx) was given.
    23412 if test "${with_cpx+set}" = set; then
    23413   withval="$with_cpx"
    23414   if test "$withval" = no ; then
    23415        coin_has_cpx=skipping
    23416      fi
    23417 
    23418 fi;
    23419 fi
    23420 
    23421 CPX_LIBS=
    23422 CPX_CFLAGS=
    23423 CPX_DATA=
    23424 CPX_DEPENDENCIES=
    23425 CPX_PCLIBS=
    23426 CPX_PCREQUIRES=
    23427 CPX_DATA=
    23428 
    23429 
    23430 
    23431 
    23432 
    23433 
    23434 
    23435 
    23436 
    23437 
    23438 
    23439 
    23440 
    23441 
    23442 
    23443 
    23444 
    23445 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    23446 if test $coin_has_cpx != skipping; then
    23447 
    23448 # Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
    23449 if test "${with_cpx_lib+set}" = set; then
    23450   withval="$with_cpx_lib"
    23451   if test "$withval" = no ; then
    23452        coin_has_cpx=skipping
    23453      else
    23454        coin_has_cpx=yes
    23455        CPX_LIBS="$withval"
    23456        CPX_PCLIBS="$withval"
    23457 
    23458          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    23459          COINMP_LIBS="$withval $COINMP_LIBS"
    23460 
    23461        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    23462        if test -z "$PKG_CONFIG" ; then
    23463          CPX_LIBS_INSTALLED="$withval"
    23464          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    23465        fi
    23466      fi
    23467 
    23468 fi;
    23469 fi
    23470 
    23471 if test $coin_has_cpx != skipping; then
    23472 
    23473 # Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
    23474 if test "${with_cpx_incdir+set}" = set; then
    23475   withval="$with_cpx_incdir"
    23476   if test "$withval" = no ; then
    23477        coin_has_cpx=skipping
    23478      else
    23479        coin_has_cpx=yes
    23480        CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
    23481        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    23482        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    23483        if test -z "$PKG_CONFIG" ; then
    23484          CPX_CFLAGS_INSTALLED="$CPX_CFLAGS"
    23485          COINMP_CFLAGS_INSTALLED="$CPX_CFLAGS $COINMP_CFLAGS_INSTALLED"
    23486        fi
    23487      fi
    23488 
    23489 fi;
    23490 fi
    23491 
    23492 if test $coin_has_cpx != skipping; then
    23493 
    23494 # Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
    23495 if test "${with_cpx_datadir+set}" = set; then
    23496   withval="$with_cpx_datadir"
    23497   if test "$withval" = no ; then
    23498        coin_has_cpx=skipping
    23499      else
    23500        coin_has_cpx=yes
    23501        CPX_DATA="$withval"
    23502        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    23503        if test -z "$PKG_CONFIG" ; then
    23504          CPX_DATA_INSTALLED="$withval"
    23505        fi
    23506      fi
    23507 
    23508 fi;
    23509 fi
    23510 
    23511 if test $coin_has_cpx = notGiven; then
    23512   if test -n "$PKG_CONFIG" ; then
    23513     # set search path for pkg-config
    23514     # need to export variable to be sure that the following pkg-config gets these values
    23515     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    23516     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    23517     export PKG_CONFIG_PATH
    23518 
    23519     # let pkg-config do it's magic
    23520 
    23521 
    23522 
    23523 if test -n "$PKG_CONFIG" ; then
    23524   if $PKG_CONFIG --exists "osi-cpx"; then
    23525     CPX_VERSIONS=`$PKG_CONFIG --modversion "osi-cpx" 2>/dev/null | tr '\n' ' '`
    23526      cflags=`$PKG_CONFIG --cflags "osi-cpx" 2>/dev/null`
    23527     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    23528         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    23529         # but only do this if is not trivial
    23530     if test "$CYGPATH_W" != "echo" ; then
    23531       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    23532       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23533     fi
    23534     CPX_CFLAGS="$cflags"
    23535     CPX_LIBS=`$PKG_CONFIG --libs "osi-cpx" 2>/dev/null`
    23536     CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cpx" 2>/dev/null`
    23537      coin_has_cpx=yes
    23538         echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
    23539 echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
    23540 
    23541         # adjust linker flags for (i)cl compiler
    23542         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    23543         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    23544         then
    23545           CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    23546         fi
    23547         CPX_PCREQUIRES="osi-cpx"
    23548 
    23549         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    23550 
    23551           COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
    23552           COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
    23553           COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
    23554 
    23555 
    23556 
    23557   else
    23558     CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cpx"`
    23559       coin_has_cpx=notGiven
    23560         echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
    23561 echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
    23562 
    23563   fi
    23564 else
    23565   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
    23566 echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
    23567    { (exit 1); exit 1; }; }
    23568 fi
    23569 
    23570 
    23571 
    23572 
    23573     # reset PKG_CONFIG_PATH variable
    23574     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    23575     export PKG_CONFIG_PATH
    23576 
    23577   else
    23578     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    23579 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    23580 
    23581 echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
    23582 echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
    23583 
    23584 coin_has_cpx=notGiven
    23585 CPX_LIBS=
    23586 CPX_LIBS_INSTALLED=
    23587 CPX_CFLAGS=
    23588 CPX_CFLAGS_INSTALLED=
    23589 CPX_DATA=
    23590 CPX_DATA_INSTALLED=
    23591 CPX_PCLIBS=
    23592 CPX_PCREQUIRES=
    23593 
    23594 # initial list of dependencies is "osi-cpx", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    23595 projtoprocess="osi-cpx"
    23596 
    23597 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    23598 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    23599 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    23600 # also, we setup the DATA variable
    23601 allproj=""
    23602 allpcfiles=""
    23603 allpcifiles=""
    23604 while test "x$projtoprocess" != x ; do
    23605 
    23606   for proj in $projtoprocess ; do
    23607     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    23608     pcfile=""
    23609     save_IFS="$IFS"
    23610     IFS=":"
    23611     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    23612       # 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
    23613       if test -r "$dir/${proj}-uninstalled.pc" ; then
    23614         pcfile="$dir/$proj-uninstalled.pc"
    23615         if test -r "$dir/${proj}.pc" ; then
    23616           pcifile="$dir/${proj}.pc"
    23617         else
    23618           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    23619 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    23620           pcifile=
    23621         fi
    23622         break
    23623       fi
    23624     done
    23625     IFS="$save_IFS"
    23626 
    23627     if test "x$pcfile" != x ; then
    23628       # read dependencies from $pcfile and filter it
    23629       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    23630 
    23631       # add projrequires to the front of the list of projects that have to be processed next
    23632       # at the same time, remove $proj from this list
    23633       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    23634 
    23635       # read DATA from $pcfile, if _DATA is still empty
    23636       if test "x$CPX_DATA" = x ; then
    23637         projdatadir=
    23638         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    23639         eval `sh -c "$pcfilemod"`
    23640         CPX_DATA="$projdatadir"
    23641       fi
    23642 
    23643       allproj="$allproj $proj"
    23644       allpcfiles="$pcfile:$allpcfiles"
    23645 
    23646     else
    23647       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    23648 echo "${ECHO_T}no, dependency $proj not available" >&6
    23649       allproj=fail
    23650       break 2
    23651     fi
    23652 
    23653     if test "x$pcifile" != x ; then
    23654       allpcifiles="$pcifile:$allpcifiles"
    23655 
    23656       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    23657       if test "x$CPX_DATA_INSTALLED" = x ; then
    23658         projdatadir=
    23659         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    23660         eval `sh -c "$pcifilemod"`
    23661         if test "${CYGPATH_W}" != "echo"; then
    23662           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    23663         fi
    23664         CPX_DATA_INSTALLED="$projdatadir"
    23665       fi
    23666 
    23667     fi
    23668 
    23669     break
    23670   done
    23671 
    23672   # remove spaces on begin of $projtoprocess
    23673   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    23674 
    23675 done
    23676 
    23677 if test "$allproj" != fail ; then
    23678 
    23679   # now go through the list of .pc files and assemble compiler and linker flags
    23680   # important is here to obey the reverse order that has been setup before,
    23681   # since then libraries that are required by several others should be after these other libraries
    23682   pcfilesprocessed=""
    23683 
    23684   save_IFS="$IFS"
    23685   IFS=":"
    23686   for pcfile in $allpcfiles ; do
    23687 
    23688     # if $pcfile has been processed already, skip this round
    23689     if test "x$pcfilesprocessed" != x ; then
    23690       for pcfiledone in $pcfilesprocessed ; do
    23691         if test "$pcfiledone" = "$pcfile" ; then
    23692           continue 2
    23693         fi
    23694       done
    23695     fi
    23696 
    23697     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    23698     #   replace "Libs:" by "echo projlibs="
    23699     #   replace "Cflags:" by "echo projcflags="
    23700     #   remove every line starting with <some word>:
    23701     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    23702 
    23703     # set projcflags and projlibs variables by running $pcfilemod
    23704     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    23705     projcflags=
    23706     projlibs=
    23707     IFS="$save_IFS"
    23708     eval `sh -c "$pcfilemod"`
    23709     IFS=":"
    23710 
    23711     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    23712     if test "${CYGPATH_W}" != "echo"; then
    23713       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23714     fi
    23715     CPX_CFLAGS="$projcflags $CPX_CFLAGS"
    23716 
    23717     # set LIBS variable
    23718     CPX_LIBS="$projlibs $CPX_LIBS"
    23719 
    23720     # remember that we have processed $pcfile
    23721     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    23722 
    23723   done
    23724   IFS="$save_IFS"
    23725 
    23726 
    23727   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    23728   # important is here again to obey the reverse order that has been setup before,
    23729   # since then libraries that are required by several others should be after these other libraries
    23730   pcfilesprocessed=""
    23731 
    23732   save_IFS="$IFS"
    23733   IFS=":"
    23734   for pcfile in $allpcifiles ; do
    23735 
    23736     # if $pcfile has been processed already, skip this round
    23737     if test "x$pcfilesprocessed" != x ; then
    23738       for pcfiledone in $pcfilesprocessed ; do
    23739         if test "$pcfiledone" = "$pcfile" ; then
    23740           continue 2
    23741         fi
    23742       done
    23743     fi
    23744 
    23745     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    23746     #   replace "Libs:" by "echo projlibs="
    23747     #   replace "Cflags:" by "echo projcflags="
    23748     #   remove every line starting with <some word>:
    23749     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    23750 
    23751     # set projcflags and projlibs variables by running $pcfilemod
    23752     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    23753     projcflags=
    23754     projlibs=
    23755     IFS="$save_IFS"
    23756     eval `sh -c "$pcfilemod"`
    23757     IFS=":"
    23758 
    23759     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    23760     if test "${CYGPATH_W}" != "echo"; then
    23761       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    23762     fi
    23763     CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
    23764 
    23765     # set LIBS variable
    23766     CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
    23767 
    23768     # remember that we have processed $pcfile
    23769     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    23770 
    23771   done
    23772   IFS="$save_IFS"
    23773 
    23774 
    23775   # finish up
    23776   coin_has_cpx=yes
    23777   echo "$as_me:$LINENO: result: yes" >&5
    23778 echo "${ECHO_T}yes" >&6
    23779 
    23780 cat >>confdefs.h <<\_ACEOF
    23781 #define COIN_HAS_CPX 1
    23782 _ACEOF
    23783 
    23784 
    23785   # adjust linker flags for (i)cl compiler
    23786   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    23787   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    23788   #    everything of the form "-lname" by "libname.lib", and
    23789   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    23790   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    23791   then
    23792     CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    23793     CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    23794   fi
    23795 
    23796   CPX_PCREQUIRES="osi-cpx"
    23797 
    23798     COINMP_PCREQUIRES="osi-cpx $COINMP_PCREQUIRES"
    23799     COINMP_CFLAGS="$CPX_CFLAGS $COINMP_CFLAGS"
    23800     COINMP_LIBS="$CPX_LIBS $COINMP_LIBS"
    23801     COINMP_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    23802     COINMP_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    23803 
    23804 
    23805 fi
    23806 
    23807 
    23808 
    23809 if test $coin_has_cpx != notGiven &&
    23810                 test $coin_has_cpx != skipping; then
    23811   COIN_HAS_CPX_TRUE=
    23812   COIN_HAS_CPX_FALSE='#'
    23813 else
    23814   COIN_HAS_CPX_TRUE='#'
    23815   COIN_HAS_CPX_FALSE=
    23816 fi
    23817 
    23818 
    23819 
    23820   fi
    23821 
    23822 else
    23823   echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
    23824 echo "${ECHO_T}$coin_has_cpx" >&6
    23825 fi
    23826 
    23827 if test $coin_has_cpx != skipping &&
    23828    test $coin_has_cpx != notGiven ; then
    23829 
    23830 cat >>confdefs.h <<\_ACEOF
    23831 #define COIN_HAS_CPX 1
    23832 _ACEOF
    23833 
    23834 
    23835   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    23836 if test "${enable_interpackage_dependencies+set}" = set; then
    23837   enableval="$enable_interpackage_dependencies"
    23838 
    23839 else
    23840   enable_interpackage_dependencies=yes
    23841 fi;
    23842 
    23843   if test $enable_interpackage_dependencies = yes ; then
    23844      # construct dependencies variables from LIBS variables
    23845      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    23846      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    23847      # then remove everything of the form -xxx
    23848      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    23849      CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    23850 
    23851        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    23852 
    23853   fi
    23854 
    23855   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    23856     if test -n "$CPX_CFLAGS" ; then
    23857       { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
    23858 echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
    23859     fi
    23860     if test -n "$CPX_LIBS" ; then
    23861       { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
    23862 echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
    23863     fi
    23864     if test -n "$CPX_DEPENDENCIES" ; then
    23865       { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
    23866 echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
    23867     fi
    23868     if test -n "$CPX_DATA" ; then
    23869       { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
    23870 echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
    23871     fi
    23872     if test -n "$CPX_PCLIBS" ; then
    23873       { echo "$as_me:$LINENO: Cpx PCLIBS are $CPX_PCLIBS" >&5
    23874 echo "$as_me: Cpx PCLIBS are $CPX_PCLIBS" >&6;}
    23875     fi
    23876     if test -n "$CPX_PCREQUIRES" ; then
    23877       { echo "$as_me:$LINENO: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&5
    23878 echo "$as_me: Cpx PCREQUIRES are $CPX_PCREQUIRES" >&6;}
    23879     fi
    23880 
    23881       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    23882 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    23883       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    23884 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    23885       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    23886 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    23887 
    23888   fi
    23889 fi
    23890 
    23891 # Define the Makefile conditional
    23892 
    23893 
    23894 if test $coin_has_cpx != notGiven &&
    23895                 test $coin_has_cpx != skipping; then
    23896   COIN_HAS_CPX_TRUE=
    23897   COIN_HAS_CPX_FALSE='#'
    23898 else
    23899   COIN_HAS_CPX_TRUE='#'
    23900   COIN_HAS_CPX_FALSE=
    23901 fi
    23902 
    23903 
    23904 
    23905 
    23906 echo "$as_me:$LINENO: checking for COIN-OR package Fmp" >&5
    23907 echo $ECHO_N "checking for COIN-OR package Fmp... $ECHO_C" >&6
    23908 
    23909 coin_has_fmp=notGiven
    23910 
    23911 # check if user wants to skip package in any case
    23912 if test x"$COIN_SKIP_PROJECTS" != x; then
    23913   for dir in $COIN_SKIP_PROJECTS; do
    23914     if test $dir = "Fmp"; then
    23915       coin_has_fmp=skipping
    23916     fi
    23917   done
    23918 fi
    23919 
    23920 if test "$coin_has_fmp" != skipping; then
    23921 
    23922 # Check whether --with-m4_tolower(Fmp) or --without-m4_tolower(Fmp) was given.
    23923 if test "${with_fmp+set}" = set; then
    23924   withval="$with_fmp"
    23925   if test "$withval" = no ; then
    23926        coin_has_fmp=skipping
    23927      fi
    23928 
    23929 fi;
    23930 fi
    23931 
    23932 FMP_LIBS=
    23933 FMP_CFLAGS=
    23934 FMP_DATA=
    23935 FMP_DEPENDENCIES=
    23936 FMP_PCLIBS=
    23937 FMP_PCREQUIRES=
    23938 FMP_DATA=
    23939 
    23940 
    23941 
    23942 
    23943 
    23944 
    23945 
    23946 
    23947 
    23948 
    23949 
    23950 
    23951 
    23952 
    23953 
    23954 
    23955 
    23956 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    23957 if test $coin_has_fmp != skipping; then
    23958 
    23959 # Check whether --with-m4_tolower(Fmp)-lib or --without-m4_tolower(Fmp)-lib was given.
    23960 if test "${with_fmp_lib+set}" = set; then
    23961   withval="$with_fmp_lib"
    23962   if test "$withval" = no ; then
    23963        coin_has_fmp=skipping
    23964      else
    23965        coin_has_fmp=yes
    23966        FMP_LIBS="$withval"
    23967        FMP_PCLIBS="$withval"
    23968 
    23969          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    23970          COINMP_LIBS="$withval $COINMP_LIBS"
    23971 
    23972        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    23973        if test -z "$PKG_CONFIG" ; then
    23974          FMP_LIBS_INSTALLED="$withval"
    23975          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    23976        fi
    23977      fi
    23978 
    23979 fi;
    23980 fi
    23981 
    23982 if test $coin_has_fmp != skipping; then
    23983 
    23984 # Check whether --with-m4_tolower(Fmp)-incdir or --without-m4_tolower(Fmp)-incdir was given.
    23985 if test "${with_fmp_incdir+set}" = set; then
    23986   withval="$with_fmp_incdir"
    23987   if test "$withval" = no ; then
    23988        coin_has_fmp=skipping
    23989      else
    23990        coin_has_fmp=yes
    23991        FMP_CFLAGS="-I`${CYGPATH_W} $withval`"
    23992        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    23993        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    23994        if test -z "$PKG_CONFIG" ; then
    23995          FMP_CFLAGS_INSTALLED="$FMP_CFLAGS"
    23996          COINMP_CFLAGS_INSTALLED="$FMP_CFLAGS $COINMP_CFLAGS_INSTALLED"
    23997        fi
    23998      fi
    23999 
    24000 fi;
    24001 fi
    24002 
    24003 if test $coin_has_fmp != skipping; then
    24004 
    24005 # Check whether --with-m4_tolower(Fmp)-datadir or --without-m4_tolower(Fmp)-datadir was given.
    24006 if test "${with_fmp_datadir+set}" = set; then
    24007   withval="$with_fmp_datadir"
    24008   if test "$withval" = no ; then
    24009        coin_has_fmp=skipping
    24010      else
    24011        coin_has_fmp=yes
    24012        FMP_DATA="$withval"
    24013        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    24014        if test -z "$PKG_CONFIG" ; then
    24015          FMP_DATA_INSTALLED="$withval"
    24016        fi
    24017      fi
    24018 
    24019 fi;
    24020 fi
    24021 
    24022 if test $coin_has_fmp = notGiven; then
    24023   if test -n "$PKG_CONFIG" ; then
    24024     # set search path for pkg-config
    24025     # need to export variable to be sure that the following pkg-config gets these values
    24026     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    24027     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    24028     export PKG_CONFIG_PATH
    24029 
    24030     # let pkg-config do it's magic
    24031 
    24032 
    24033 
    24034 if test -n "$PKG_CONFIG" ; then
    24035   if $PKG_CONFIG --exists "osi-fmp"; then
    24036     FMP_VERSIONS=`$PKG_CONFIG --modversion "osi-fmp" 2>/dev/null | tr '\n' ' '`
    24037      cflags=`$PKG_CONFIG --cflags "osi-fmp" 2>/dev/null`
    24038     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    24039         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    24040         # but only do this if is not trivial
    24041     if test "$CYGPATH_W" != "echo" ; then
    24042       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    24043       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24044     fi
    24045     FMP_CFLAGS="$cflags"
    24046     FMP_LIBS=`$PKG_CONFIG --libs "osi-fmp" 2>/dev/null`
    24047     FMP_DATA=`$PKG_CONFIG --variable=datadir "osi-fmp" 2>/dev/null`
    24048      coin_has_fmp=yes
    24049         echo "$as_me:$LINENO: result: yes: $FMP_VERSIONS" >&5
    24050 echo "${ECHO_T}yes: $FMP_VERSIONS" >&6
    24051 
    24052         # adjust linker flags for (i)cl compiler
    24053         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    24054         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    24055         then
    24056           FMP_LIBS=`echo " $FMP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    24057         fi
    24058         FMP_PCREQUIRES="osi-fmp"
    24059 
    24060         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    24061 
    24062           COINMP_PCREQUIRES="osi-fmp $COINMP_PCREQUIRES"
    24063           COINMP_CFLAGS="$FMP_CFLAGS $COINMP_CFLAGS"
    24064           COINMP_LIBS="$FMP_LIBS $COINMP_LIBS"
    24065 
    24066 
    24067 
    24068   else
    24069     FMP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-fmp"`
    24070       coin_has_fmp=notGiven
    24071         echo "$as_me:$LINENO: result: not given: $FMP_PKG_ERRORS" >&5
    24072 echo "${ECHO_T}not given: $FMP_PKG_ERRORS" >&6
    24073 
    24074   fi
    24075 else
    24076   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Fmp without pkg-config\"" >&5
    24077 echo "$as_me: error: \"Cannot check for existance of module Fmp without pkg-config\"" >&2;}
    24078    { (exit 1); exit 1; }; }
    24079 fi
    24080 
    24081 
    24082 
    24083 
    24084     # reset PKG_CONFIG_PATH variable
    24085     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    24086     export PKG_CONFIG_PATH
    24087 
    24088   else
    24089     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    24090 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    24091 
    24092 echo "$as_me:$LINENO: checking for COIN-OR package Fmp (fallback)" >&5
    24093 echo $ECHO_N "checking for COIN-OR package Fmp (fallback)... $ECHO_C" >&6
    24094 
    24095 coin_has_fmp=notGiven
    24096 FMP_LIBS=
    24097 FMP_LIBS_INSTALLED=
    24098 FMP_CFLAGS=
    24099 FMP_CFLAGS_INSTALLED=
    24100 FMP_DATA=
    24101 FMP_DATA_INSTALLED=
    24102 FMP_PCLIBS=
    24103 FMP_PCREQUIRES=
    24104 
    24105 # initial list of dependencies is "osi-fmp", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    24106 projtoprocess="osi-fmp"
    24107 
    24108 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    24109 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    24110 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    24111 # also, we setup the DATA variable
    24112 allproj=""
    24113 allpcfiles=""
    24114 allpcifiles=""
    24115 while test "x$projtoprocess" != x ; do
    24116 
    24117   for proj in $projtoprocess ; do
    24118     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    24119     pcfile=""
    24120     save_IFS="$IFS"
    24121     IFS=":"
    24122     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    24123       # 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
    24124       if test -r "$dir/${proj}-uninstalled.pc" ; then
    24125         pcfile="$dir/$proj-uninstalled.pc"
    24126         if test -r "$dir/${proj}.pc" ; then
    24127           pcifile="$dir/${proj}.pc"
    24128         else
    24129           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    24130 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    24131           pcifile=
    24132         fi
    24133         break
    24134       fi
    24135     done
    24136     IFS="$save_IFS"
    24137 
    24138     if test "x$pcfile" != x ; then
    24139       # read dependencies from $pcfile and filter it
    24140       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    24141 
    24142       # add projrequires to the front of the list of projects that have to be processed next
    24143       # at the same time, remove $proj from this list
    24144       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    24145 
    24146       # read DATA from $pcfile, if _DATA is still empty
    24147       if test "x$FMP_DATA" = x ; then
    24148         projdatadir=
    24149         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    24150         eval `sh -c "$pcfilemod"`
    24151         FMP_DATA="$projdatadir"
    24152       fi
    24153 
    24154       allproj="$allproj $proj"
    24155       allpcfiles="$pcfile:$allpcfiles"
    24156 
    24157     else
    24158       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    24159 echo "${ECHO_T}no, dependency $proj not available" >&6
    24160       allproj=fail
    24161       break 2
    24162     fi
    24163 
    24164     if test "x$pcifile" != x ; then
    24165       allpcifiles="$pcifile:$allpcifiles"
    24166 
    24167       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    24168       if test "x$FMP_DATA_INSTALLED" = x ; then
    24169         projdatadir=
    24170         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    24171         eval `sh -c "$pcifilemod"`
    24172         if test "${CYGPATH_W}" != "echo"; then
    24173           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    24174         fi
    24175         FMP_DATA_INSTALLED="$projdatadir"
    24176       fi
    24177 
    24178     fi
    24179 
    24180     break
    24181   done
    24182 
    24183   # remove spaces on begin of $projtoprocess
    24184   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    24185 
    24186 done
    24187 
    24188 if test "$allproj" != fail ; then
    24189 
    24190   # now go through the list of .pc files and assemble compiler and linker flags
    24191   # important is here to obey the reverse order that has been setup before,
    24192   # since then libraries that are required by several others should be after these other libraries
    24193   pcfilesprocessed=""
    24194 
    24195   save_IFS="$IFS"
    24196   IFS=":"
    24197   for pcfile in $allpcfiles ; do
    24198 
    24199     # if $pcfile has been processed already, skip this round
    24200     if test "x$pcfilesprocessed" != x ; then
    24201       for pcfiledone in $pcfilesprocessed ; do
    24202         if test "$pcfiledone" = "$pcfile" ; then
    24203           continue 2
    24204         fi
    24205       done
    24206     fi
    24207 
    24208     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    24209     #   replace "Libs:" by "echo projlibs="
    24210     #   replace "Cflags:" by "echo projcflags="
    24211     #   remove every line starting with <some word>:
    24212     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    24213 
    24214     # set projcflags and projlibs variables by running $pcfilemod
    24215     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    24216     projcflags=
    24217     projlibs=
    24218     IFS="$save_IFS"
    24219     eval `sh -c "$pcfilemod"`
    24220     IFS=":"
    24221 
    24222     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    24223     if test "${CYGPATH_W}" != "echo"; then
    24224       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24225     fi
    24226     FMP_CFLAGS="$projcflags $FMP_CFLAGS"
    24227 
    24228     # set LIBS variable
    24229     FMP_LIBS="$projlibs $FMP_LIBS"
    24230 
    24231     # remember that we have processed $pcfile
    24232     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    24233 
    24234   done
    24235   IFS="$save_IFS"
    24236 
    24237 
    24238   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    24239   # important is here again to obey the reverse order that has been setup before,
    24240   # since then libraries that are required by several others should be after these other libraries
    24241   pcfilesprocessed=""
    24242 
    24243   save_IFS="$IFS"
    24244   IFS=":"
    24245   for pcfile in $allpcifiles ; do
    24246 
    24247     # if $pcfile has been processed already, skip this round
    24248     if test "x$pcfilesprocessed" != x ; then
    24249       for pcfiledone in $pcfilesprocessed ; do
    24250         if test "$pcfiledone" = "$pcfile" ; then
    24251           continue 2
    24252         fi
    24253       done
    24254     fi
    24255 
    24256     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    24257     #   replace "Libs:" by "echo projlibs="
    24258     #   replace "Cflags:" by "echo projcflags="
    24259     #   remove every line starting with <some word>:
    24260     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    24261 
    24262     # set projcflags and projlibs variables by running $pcfilemod
    24263     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    24264     projcflags=
    24265     projlibs=
    24266     IFS="$save_IFS"
    24267     eval `sh -c "$pcfilemod"`
    24268     IFS=":"
    24269 
    24270     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    24271     if test "${CYGPATH_W}" != "echo"; then
    24272       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24273     fi
    24274     FMP_CFLAGS_INSTALLED="$projcflags $FMP_CFLAGS_INSTALLED"
    24275 
    24276     # set LIBS variable
    24277     FMP_LIBS_INSTALLED="$projlibs $FMP_LIBS_INSTALLED"
    24278 
    24279     # remember that we have processed $pcfile
    24280     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    24281 
    24282   done
    24283   IFS="$save_IFS"
    24284 
    24285 
    24286   # finish up
    24287   coin_has_fmp=yes
    24288   echo "$as_me:$LINENO: result: yes" >&5
    24289 echo "${ECHO_T}yes" >&6
    24290 
    24291 cat >>confdefs.h <<\_ACEOF
    24292 #define COIN_HAS_FMP 1
    24293 _ACEOF
    24294 
    24295 
    24296   # adjust linker flags for (i)cl compiler
    24297   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    24298   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    24299   #    everything of the form "-lname" by "libname.lib", and
    24300   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    24301   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    24302   then
    24303     FMP_LIBS=`echo " $FMP_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    24304     FMP_LIBS_INSTALLED=`echo " $FMP_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    24305   fi
    24306 
    24307   FMP_PCREQUIRES="osi-fmp"
    24308 
    24309     COINMP_PCREQUIRES="osi-fmp $COINMP_PCREQUIRES"
    24310     COINMP_CFLAGS="$FMP_CFLAGS $COINMP_CFLAGS"
    24311     COINMP_LIBS="$FMP_LIBS $COINMP_LIBS"
    24312     COINMP_CFLAGS_INSTALLED="$FMP_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    24313     COINMP_LIBS_INSTALLED="$FMP_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    24314 
    24315 
    24316 fi
    24317 
    24318 
    24319 
    24320 if test $coin_has_fmp != notGiven &&
    24321                 test $coin_has_fmp != skipping; then
    24322   COIN_HAS_FMP_TRUE=
    24323   COIN_HAS_FMP_FALSE='#'
    24324 else
    24325   COIN_HAS_FMP_TRUE='#'
    24326   COIN_HAS_FMP_FALSE=
    24327 fi
    24328 
    24329 
    24330 
    24331   fi
    24332 
    24333 else
    24334   echo "$as_me:$LINENO: result: $coin_has_fmp" >&5
    24335 echo "${ECHO_T}$coin_has_fmp" >&6
    24336 fi
    24337 
    24338 if test $coin_has_fmp != skipping &&
    24339    test $coin_has_fmp != notGiven ; then
    24340 
    24341 cat >>confdefs.h <<\_ACEOF
    24342 #define COIN_HAS_FMP 1
    24343 _ACEOF
    24344 
    24345 
    24346   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    24347 if test "${enable_interpackage_dependencies+set}" = set; then
    24348   enableval="$enable_interpackage_dependencies"
    24349 
    24350 else
    24351   enable_interpackage_dependencies=yes
    24352 fi;
    24353 
    24354   if test $enable_interpackage_dependencies = yes ; then
    24355      # construct dependencies variables from LIBS variables
    24356      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    24357      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    24358      # then remove everything of the form -xxx
    24359      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    24360      FMP_DEPENDENCIES=`echo " $FMP_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    24361 
    24362        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    24363 
    24364   fi
    24365 
    24366   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24367     if test -n "$FMP_CFLAGS" ; then
    24368       { echo "$as_me:$LINENO: Fmp CFLAGS are $FMP_CFLAGS" >&5
    24369 echo "$as_me: Fmp CFLAGS are $FMP_CFLAGS" >&6;}
    24370     fi
    24371     if test -n "$FMP_LIBS" ; then
    24372       { echo "$as_me:$LINENO: Fmp LIBS   are $FMP_LIBS" >&5
    24373 echo "$as_me: Fmp LIBS   are $FMP_LIBS" >&6;}
    24374     fi
    24375     if test -n "$FMP_DEPENDENCIES" ; then
    24376       { echo "$as_me:$LINENO: Fmp DEPENDENCIES are $FMP_DEPENDENCIES" >&5
    24377 echo "$as_me: Fmp DEPENDENCIES are $FMP_DEPENDENCIES" >&6;}
    24378     fi
    24379     if test -n "$FMP_DATA" ; then
    24380       { echo "$as_me:$LINENO: Fmp DATA   is  $FMP_DATA" >&5
    24381 echo "$as_me: Fmp DATA   is  $FMP_DATA" >&6;}
    24382     fi
    24383     if test -n "$FMP_PCLIBS" ; then
    24384       { echo "$as_me:$LINENO: Fmp PCLIBS are $FMP_PCLIBS" >&5
    24385 echo "$as_me: Fmp PCLIBS are $FMP_PCLIBS" >&6;}
    24386     fi
    24387     if test -n "$FMP_PCREQUIRES" ; then
    24388       { echo "$as_me:$LINENO: Fmp PCREQUIRES are $FMP_PCREQUIRES" >&5
    24389 echo "$as_me: Fmp PCREQUIRES are $FMP_PCREQUIRES" >&6;}
    24390     fi
    24391 
    24392       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    24393 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    24394       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    24395 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    24396       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    24397 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    24398 
    24399   fi
    24400 fi
    24401 
    24402 # Define the Makefile conditional
    24403 
    24404 
    24405 if test $coin_has_fmp != notGiven &&
    24406                 test $coin_has_fmp != skipping; then
    24407   COIN_HAS_FMP_TRUE=
    24408   COIN_HAS_FMP_FALSE='#'
    24409 else
    24410   COIN_HAS_FMP_TRUE='#'
    24411   COIN_HAS_FMP_FALSE=
    24412 fi
    24413 
    24414 
    24415 
    24416 
    24417 echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
    24418 echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
    24419 
    24420 coin_has_glpk=notGiven
    24421 
    24422 # check if user wants to skip package in any case
    24423 if test x"$COIN_SKIP_PROJECTS" != x; then
    24424   for dir in $COIN_SKIP_PROJECTS; do
    24425     if test $dir = "Glpk"; then
    24426       coin_has_glpk=skipping
    24427     fi
    24428   done
    24429 fi
    24430 
    24431 if test "$coin_has_glpk" != skipping; then
    24432 
    24433 # Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
    24434 if test "${with_glpk+set}" = set; then
    24435   withval="$with_glpk"
    24436   if test "$withval" = no ; then
    24437        coin_has_glpk=skipping
    24438      fi
    24439 
    24440 fi;
    24441 fi
    24442 
    24443 GLPK_LIBS=
    24444 GLPK_CFLAGS=
    24445 GLPK_DATA=
    24446 GLPK_DEPENDENCIES=
    24447 GLPK_PCLIBS=
    24448 GLPK_PCREQUIRES=
    24449 GLPK_DATA=
    24450 
    24451 
    24452 
    24453 
    24454 
    24455 
    24456 
    24457 
    24458 
    24459 
    24460 
    24461 
    24462 
    24463 
    24464 
    24465 
    24466 
    24467 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    24468 if test $coin_has_glpk != skipping; then
    24469 
    24470 # Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
    24471 if test "${with_glpk_lib+set}" = set; then
    24472   withval="$with_glpk_lib"
    24473   if test "$withval" = no ; then
    24474        coin_has_glpk=skipping
    24475      else
    24476        coin_has_glpk=yes
    24477        GLPK_LIBS="$withval"
    24478        GLPK_PCLIBS="$withval"
    24479 
    24480          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    24481          COINMP_LIBS="$withval $COINMP_LIBS"
    24482 
    24483        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    24484        if test -z "$PKG_CONFIG" ; then
    24485          GLPK_LIBS_INSTALLED="$withval"
    24486          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    24487        fi
    24488      fi
    24489 
    24490 fi;
    24491 fi
    24492 
    24493 if test $coin_has_glpk != skipping; then
    24494 
    24495 # Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
    24496 if test "${with_glpk_incdir+set}" = set; then
    24497   withval="$with_glpk_incdir"
    24498   if test "$withval" = no ; then
    24499        coin_has_glpk=skipping
    24500      else
    24501        coin_has_glpk=yes
    24502        GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
    24503        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    24504        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    24505        if test -z "$PKG_CONFIG" ; then
    24506          GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
    24507          COINMP_CFLAGS_INSTALLED="$GLPK_CFLAGS $COINMP_CFLAGS_INSTALLED"
    24508        fi
    24509      fi
    24510 
    24511 fi;
    24512 fi
    24513 
    24514 if test $coin_has_glpk != skipping; then
    24515 
    24516 # Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
    24517 if test "${with_glpk_datadir+set}" = set; then
    24518   withval="$with_glpk_datadir"
    24519   if test "$withval" = no ; then
    24520        coin_has_glpk=skipping
    24521      else
    24522        coin_has_glpk=yes
    24523        GLPK_DATA="$withval"
    24524        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    24525        if test -z "$PKG_CONFIG" ; then
    24526          GLPK_DATA_INSTALLED="$withval"
    24527        fi
    24528      fi
    24529 
    24530 fi;
    24531 fi
    24532 
    24533 if test $coin_has_glpk = notGiven; then
    24534   if test -n "$PKG_CONFIG" ; then
    24535     # set search path for pkg-config
    24536     # need to export variable to be sure that the following pkg-config gets these values
    24537     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    24538     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    24539     export PKG_CONFIG_PATH
    24540 
    24541     # let pkg-config do it's magic
    24542 
    24543 
    24544 
    24545 if test -n "$PKG_CONFIG" ; then
    24546   if $PKG_CONFIG --exists "osi-glpk"; then
    24547     GLPK_VERSIONS=`$PKG_CONFIG --modversion "osi-glpk" 2>/dev/null | tr '\n' ' '`
    24548      cflags=`$PKG_CONFIG --cflags "osi-glpk" 2>/dev/null`
    24549     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    24550         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    24551         # but only do this if is not trivial
    24552     if test "$CYGPATH_W" != "echo" ; then
    24553       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    24554       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24555     fi
    24556     GLPK_CFLAGS="$cflags"
    24557     GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/null`
    24558     GLPK_DATA=`$PKG_CONFIG --variable=datadir "osi-glpk" 2>/dev/null`
    24559      coin_has_glpk=yes
    24560         echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
    24561 echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
    24562 
    24563         # adjust linker flags for (i)cl compiler
    24564         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    24565         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    24566         then
    24567           GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    24568         fi
    24569         GLPK_PCREQUIRES="osi-glpk"
    24570 
    24571         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    24572 
    24573           COINMP_PCREQUIRES="osi-glpk $COINMP_PCREQUIRES"
    24574           COINMP_CFLAGS="$GLPK_CFLAGS $COINMP_CFLAGS"
    24575           COINMP_LIBS="$GLPK_LIBS $COINMP_LIBS"
    24576 
    24577 
    24578 
    24579   else
    24580     GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-glpk"`
    24581       coin_has_glpk=notGiven
    24582         echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
    24583 echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
    24584 
    24585   fi
    24586 else
    24587   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
    24588 echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
    24589    { (exit 1); exit 1; }; }
    24590 fi
    24591 
    24592 
    24593 
    24594 
    24595     # reset PKG_CONFIG_PATH variable
    24596     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    24597     export PKG_CONFIG_PATH
    24598 
    24599   else
    24600     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    24601 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    24602 
    24603 echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
    24604 echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
    24605 
    24606 coin_has_glpk=notGiven
    24607 GLPK_LIBS=
    24608 GLPK_LIBS_INSTALLED=
    24609 GLPK_CFLAGS=
    24610 GLPK_CFLAGS_INSTALLED=
    24611 GLPK_DATA=
    24612 GLPK_DATA_INSTALLED=
    24613 GLPK_PCLIBS=
    24614 GLPK_PCREQUIRES=
    24615 
    24616 # initial list of dependencies is "osi-glpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    24617 projtoprocess="osi-glpk"
    24618 
    24619 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    24620 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    24621 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    24622 # also, we setup the DATA variable
    24623 allproj=""
    24624 allpcfiles=""
    24625 allpcifiles=""
    24626 while test "x$projtoprocess" != x ; do
    24627 
    24628   for proj in $projtoprocess ; do
    24629     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    24630     pcfile=""
    24631     save_IFS="$IFS"
    24632     IFS=":"
    24633     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    24634       # 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
    24635       if test -r "$dir/${proj}-uninstalled.pc" ; then
    24636         pcfile="$dir/$proj-uninstalled.pc"
    24637         if test -r "$dir/${proj}.pc" ; then
    24638           pcifile="$dir/${proj}.pc"
    24639         else
    24640           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    24641 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    24642           pcifile=
    24643         fi
    24644         break
    24645       fi
    24646     done
    24647     IFS="$save_IFS"
    24648 
    24649     if test "x$pcfile" != x ; then
    24650       # read dependencies from $pcfile and filter it
    24651       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    24652 
    24653       # add projrequires to the front of the list of projects that have to be processed next
    24654       # at the same time, remove $proj from this list
    24655       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    24656 
    24657       # read DATA from $pcfile, if _DATA is still empty
    24658       if test "x$GLPK_DATA" = x ; then
    24659         projdatadir=
    24660         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    24661         eval `sh -c "$pcfilemod"`
    24662         GLPK_DATA="$projdatadir"
    24663       fi
    24664 
    24665       allproj="$allproj $proj"
    24666       allpcfiles="$pcfile:$allpcfiles"
    24667 
    24668     else
    24669       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    24670 echo "${ECHO_T}no, dependency $proj not available" >&6
    24671       allproj=fail
    24672       break 2
    24673     fi
    24674 
    24675     if test "x$pcifile" != x ; then
    24676       allpcifiles="$pcifile:$allpcifiles"
    24677 
    24678       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    24679       if test "x$GLPK_DATA_INSTALLED" = x ; then
    24680         projdatadir=
    24681         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    24682         eval `sh -c "$pcifilemod"`
    24683         if test "${CYGPATH_W}" != "echo"; then
    24684           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    24685         fi
    24686         GLPK_DATA_INSTALLED="$projdatadir"
    24687       fi
    24688 
    24689     fi
    24690 
    24691     break
    24692   done
    24693 
    24694   # remove spaces on begin of $projtoprocess
    24695   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    24696 
    24697 done
    24698 
    24699 if test "$allproj" != fail ; then
    24700 
    24701   # now go through the list of .pc files and assemble compiler and linker flags
    24702   # important is here to obey the reverse order that has been setup before,
    24703   # since then libraries that are required by several others should be after these other libraries
    24704   pcfilesprocessed=""
    24705 
    24706   save_IFS="$IFS"
    24707   IFS=":"
    24708   for pcfile in $allpcfiles ; do
    24709 
    24710     # if $pcfile has been processed already, skip this round
    24711     if test "x$pcfilesprocessed" != x ; then
    24712       for pcfiledone in $pcfilesprocessed ; do
    24713         if test "$pcfiledone" = "$pcfile" ; then
    24714           continue 2
    24715         fi
    24716       done
    24717     fi
    24718 
    24719     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    24720     #   replace "Libs:" by "echo projlibs="
    24721     #   replace "Cflags:" by "echo projcflags="
    24722     #   remove every line starting with <some word>:
    24723     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    24724 
    24725     # set projcflags and projlibs variables by running $pcfilemod
    24726     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    24727     projcflags=
    24728     projlibs=
    24729     IFS="$save_IFS"
    24730     eval `sh -c "$pcfilemod"`
    24731     IFS=":"
    24732 
    24733     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    24734     if test "${CYGPATH_W}" != "echo"; then
    24735       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24736     fi
    24737     GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
    24738 
    24739     # set LIBS variable
    24740     GLPK_LIBS="$projlibs $GLPK_LIBS"
    24741 
    24742     # remember that we have processed $pcfile
    24743     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    24744 
    24745   done
    24746   IFS="$save_IFS"
    24747 
    24748 
    24749   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    24750   # important is here again to obey the reverse order that has been setup before,
    24751   # since then libraries that are required by several others should be after these other libraries
    24752   pcfilesprocessed=""
    24753 
    24754   save_IFS="$IFS"
    24755   IFS=":"
    24756   for pcfile in $allpcifiles ; do
    24757 
    24758     # if $pcfile has been processed already, skip this round
    24759     if test "x$pcfilesprocessed" != x ; then
    24760       for pcfiledone in $pcfilesprocessed ; do
    24761         if test "$pcfiledone" = "$pcfile" ; then
    24762           continue 2
    24763         fi
    24764       done
    24765     fi
    24766 
    24767     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    24768     #   replace "Libs:" by "echo projlibs="
    24769     #   replace "Cflags:" by "echo projcflags="
    24770     #   remove every line starting with <some word>:
    24771     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    24772 
    24773     # set projcflags and projlibs variables by running $pcfilemod
    24774     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    24775     projcflags=
    24776     projlibs=
    24777     IFS="$save_IFS"
    24778     eval `sh -c "$pcfilemod"`
    24779     IFS=":"
    24780 
    24781     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    24782     if test "${CYGPATH_W}" != "echo"; then
    24783       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    24784     fi
    24785     GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
    24786 
    24787     # set LIBS variable
    24788     GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
    24789 
    24790     # remember that we have processed $pcfile
    24791     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    24792 
    24793   done
    24794   IFS="$save_IFS"
    24795 
    24796 
    24797   # finish up
    24798   coin_has_glpk=yes
    24799   echo "$as_me:$LINENO: result: yes" >&5
    24800 echo "${ECHO_T}yes" >&6
    24801 
    24802 cat >>confdefs.h <<\_ACEOF
    24803 #define COIN_HAS_GLPK 1
    24804 _ACEOF
    24805 
    24806 
    24807   # adjust linker flags for (i)cl compiler
    24808   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    24809   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    24810   #    everything of the form "-lname" by "libname.lib", and
    24811   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    24812   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    24813   then
    24814     GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    24815     GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    24816   fi
    24817 
    24818   GLPK_PCREQUIRES="osi-glpk"
    24819 
    24820     COINMP_PCREQUIRES="osi-glpk $COINMP_PCREQUIRES"
    24821     COINMP_CFLAGS="$GLPK_CFLAGS $COINMP_CFLAGS"
    24822     COINMP_LIBS="$GLPK_LIBS $COINMP_LIBS"
    24823     COINMP_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    24824     COINMP_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    24825 
    24826 
    24827 fi
    24828 
    24829 
    24830 
    24831 if test $coin_has_glpk != notGiven &&
    24832                 test $coin_has_glpk != skipping; then
    24833   COIN_HAS_GLPK_TRUE=
    24834   COIN_HAS_GLPK_FALSE='#'
    24835 else
    24836   COIN_HAS_GLPK_TRUE='#'
    24837   COIN_HAS_GLPK_FALSE=
    24838 fi
    24839 
    24840 
    24841 
    24842   fi
    24843 
    24844 else
    24845   echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
    24846 echo "${ECHO_T}$coin_has_glpk" >&6
    24847 fi
    24848 
    24849 if test $coin_has_glpk != skipping &&
    24850    test $coin_has_glpk != notGiven ; then
    24851 
    24852 cat >>confdefs.h <<\_ACEOF
    24853 #define COIN_HAS_GLPK 1
    24854 _ACEOF
    24855 
    24856 
    24857   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    24858 if test "${enable_interpackage_dependencies+set}" = set; then
    24859   enableval="$enable_interpackage_dependencies"
    24860 
    24861 else
    24862   enable_interpackage_dependencies=yes
    24863 fi;
    24864 
    24865   if test $enable_interpackage_dependencies = yes ; then
    24866      # construct dependencies variables from LIBS variables
    24867      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    24868      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    24869      # then remove everything of the form -xxx
    24870      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    24871      GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    24872 
    24873        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    24874 
    24875   fi
    24876 
    24877   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    24878     if test -n "$GLPK_CFLAGS" ; then
    24879       { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
    24880 echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
    24881     fi
    24882     if test -n "$GLPK_LIBS" ; then
    24883       { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
    24884 echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
    24885     fi
    24886     if test -n "$GLPK_DEPENDENCIES" ; then
    24887       { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
    24888 echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
    24889     fi
    24890     if test -n "$GLPK_DATA" ; then
    24891       { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
    24892 echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
    24893     fi
    24894     if test -n "$GLPK_PCLIBS" ; then
    24895       { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
    24896 echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
    24897     fi
    24898     if test -n "$GLPK_PCREQUIRES" ; then
    24899       { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
    24900 echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
    24901     fi
    24902 
    24903       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    24904 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    24905       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    24906 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    24907       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    24908 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    24909 
    24910   fi
    24911 fi
    24912 
    24913 # Define the Makefile conditional
    24914 
    24915 
    24916 if test $coin_has_glpk != notGiven &&
    24917                 test $coin_has_glpk != skipping; then
    24918   COIN_HAS_GLPK_TRUE=
    24919   COIN_HAS_GLPK_FALSE='#'
    24920 else
    24921   COIN_HAS_GLPK_TRUE='#'
    24922   COIN_HAS_GLPK_FALSE=
    24923 fi
    24924 
    24925 
    24926 
    24927 
    24928 echo "$as_me:$LINENO: checking for COIN-OR package Msk" >&5
    24929 echo $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6
    24930 
    24931 coin_has_msk=notGiven
    24932 
    24933 # check if user wants to skip package in any case
    24934 if test x"$COIN_SKIP_PROJECTS" != x; then
    24935   for dir in $COIN_SKIP_PROJECTS; do
    24936     if test $dir = "Msk"; then
    24937       coin_has_msk=skipping
    24938     fi
    24939   done
    24940 fi
    24941 
    24942 if test "$coin_has_msk" != skipping; then
    24943 
    24944 # Check whether --with-m4_tolower(Msk) or --without-m4_tolower(Msk) was given.
    24945 if test "${with_msk+set}" = set; then
    24946   withval="$with_msk"
    24947   if test "$withval" = no ; then
    24948        coin_has_msk=skipping
    24949      fi
    24950 
    24951 fi;
    24952 fi
    24953 
    24954 MSK_LIBS=
    24955 MSK_CFLAGS=
    24956 MSK_DATA=
    24957 MSK_DEPENDENCIES=
    24958 MSK_PCLIBS=
    24959 MSK_PCREQUIRES=
    24960 MSK_DATA=
    24961 
    24962 
    24963 
    24964 
    24965 
    24966 
    24967 
    24968 
    24969 
    24970 
    24971 
    24972 
    24973 
    24974 
    24975 
    24976 
    24977 
    24978 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    24979 if test $coin_has_msk != skipping; then
    24980 
    24981 # Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given.
    24982 if test "${with_msk_lib+set}" = set; then
    24983   withval="$with_msk_lib"
    24984   if test "$withval" = no ; then
    24985        coin_has_msk=skipping
    24986      else
    24987        coin_has_msk=yes
    24988        MSK_LIBS="$withval"
    24989        MSK_PCLIBS="$withval"
    24990 
    24991          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    24992          COINMP_LIBS="$withval $COINMP_LIBS"
    24993 
    24994        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    24995        if test -z "$PKG_CONFIG" ; then
    24996          MSK_LIBS_INSTALLED="$withval"
    24997          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    24998        fi
    24999      fi
    25000 
    25001 fi;
    25002 fi
    25003 
    25004 if test $coin_has_msk != skipping; then
    25005 
    25006 # Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given.
    25007 if test "${with_msk_incdir+set}" = set; then
    25008   withval="$with_msk_incdir"
    25009   if test "$withval" = no ; then
    25010        coin_has_msk=skipping
    25011      else
    25012        coin_has_msk=yes
    25013        MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
    25014        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    25015        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    25016        if test -z "$PKG_CONFIG" ; then
    25017          MSK_CFLAGS_INSTALLED="$MSK_CFLAGS"
    25018          COINMP_CFLAGS_INSTALLED="$MSK_CFLAGS $COINMP_CFLAGS_INSTALLED"
    25019        fi
    25020      fi
    25021 
    25022 fi;
    25023 fi
    25024 
    25025 if test $coin_has_msk != skipping; then
    25026 
    25027 # Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given.
    25028 if test "${with_msk_datadir+set}" = set; then
    25029   withval="$with_msk_datadir"
    25030   if test "$withval" = no ; then
    25031        coin_has_msk=skipping
    25032      else
    25033        coin_has_msk=yes
    25034        MSK_DATA="$withval"
    25035        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    25036        if test -z "$PKG_CONFIG" ; then
    25037          MSK_DATA_INSTALLED="$withval"
    25038        fi
    25039      fi
    25040 
    25041 fi;
    25042 fi
    25043 
    25044 if test $coin_has_msk = notGiven; then
    25045   if test -n "$PKG_CONFIG" ; then
    25046     # set search path for pkg-config
    25047     # need to export variable to be sure that the following pkg-config gets these values
    25048     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    25049     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    25050     export PKG_CONFIG_PATH
    25051 
    25052     # let pkg-config do it's magic
    25053 
    25054 
    25055 
    25056 if test -n "$PKG_CONFIG" ; then
    25057   if $PKG_CONFIG --exists "osi-msk"; then
    25058     MSK_VERSIONS=`$PKG_CONFIG --modversion "osi-msk" 2>/dev/null | tr '\n' ' '`
    25059      cflags=`$PKG_CONFIG --cflags "osi-msk" 2>/dev/null`
    25060     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    25061         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    25062         # but only do this if is not trivial
    25063     if test "$CYGPATH_W" != "echo" ; then
    25064       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    25065       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25066     fi
    25067     MSK_CFLAGS="$cflags"
    25068     MSK_LIBS=`$PKG_CONFIG --libs "osi-msk" 2>/dev/null`
    25069     MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-msk" 2>/dev/null`
    25070      coin_has_msk=yes
    25071         echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
    25072 echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
    25073 
    25074         # adjust linker flags for (i)cl compiler
    25075         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    25076         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    25077         then
    25078           MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    25079         fi
    25080         MSK_PCREQUIRES="osi-msk"
    25081 
    25082         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    25083 
    25084           COINMP_PCREQUIRES="osi-msk $COINMP_PCREQUIRES"
    25085           COINMP_CFLAGS="$MSK_CFLAGS $COINMP_CFLAGS"
    25086           COINMP_LIBS="$MSK_LIBS $COINMP_LIBS"
    25087 
    25088 
    25089 
    25090   else
    25091     MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-msk"`
    25092       coin_has_msk=notGiven
    25093         echo "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5
    25094 echo "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6
    25095 
    25096   fi
    25097 else
    25098   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5
    25099 echo "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;}
    25100    { (exit 1); exit 1; }; }
    25101 fi
    25102 
    25103 
    25104 
    25105 
    25106     # reset PKG_CONFIG_PATH variable
    25107     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    25108     export PKG_CONFIG_PATH
    25109 
    25110   else
    25111     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    25112 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    25113 
    25114 echo "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5
    25115 echo $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6
    25116 
    25117 coin_has_msk=notGiven
    25118 MSK_LIBS=
    25119 MSK_LIBS_INSTALLED=
    25120 MSK_CFLAGS=
    25121 MSK_CFLAGS_INSTALLED=
    25122 MSK_DATA=
    25123 MSK_DATA_INSTALLED=
    25124 MSK_PCLIBS=
    25125 MSK_PCREQUIRES=
    25126 
    25127 # initial list of dependencies is "osi-msk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    25128 projtoprocess="osi-msk"
    25129 
    25130 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    25131 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    25132 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    25133 # also, we setup the DATA variable
    25134 allproj=""
    25135 allpcfiles=""
    25136 allpcifiles=""
    25137 while test "x$projtoprocess" != x ; do
    25138 
    25139   for proj in $projtoprocess ; do
    25140     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    25141     pcfile=""
    25142     save_IFS="$IFS"
    25143     IFS=":"
    25144     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    25145       # 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
    25146       if test -r "$dir/${proj}-uninstalled.pc" ; then
    25147         pcfile="$dir/$proj-uninstalled.pc"
    25148         if test -r "$dir/${proj}.pc" ; then
    25149           pcifile="$dir/${proj}.pc"
    25150         else
    25151           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    25152 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    25153           pcifile=
    25154         fi
    25155         break
    25156       fi
    25157     done
    25158     IFS="$save_IFS"
    25159 
    25160     if test "x$pcfile" != x ; then
    25161       # read dependencies from $pcfile and filter it
    25162       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    25163 
    25164       # add projrequires to the front of the list of projects that have to be processed next
    25165       # at the same time, remove $proj from this list
    25166       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    25167 
    25168       # read DATA from $pcfile, if _DATA is still empty
    25169       if test "x$MSK_DATA" = x ; then
    25170         projdatadir=
    25171         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    25172         eval `sh -c "$pcfilemod"`
    25173         MSK_DATA="$projdatadir"
    25174       fi
    25175 
    25176       allproj="$allproj $proj"
    25177       allpcfiles="$pcfile:$allpcfiles"
    25178 
    25179     else
    25180       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    25181 echo "${ECHO_T}no, dependency $proj not available" >&6
    25182       allproj=fail
    25183       break 2
    25184     fi
    25185 
    25186     if test "x$pcifile" != x ; then
    25187       allpcifiles="$pcifile:$allpcifiles"
    25188 
    25189       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    25190       if test "x$MSK_DATA_INSTALLED" = x ; then
    25191         projdatadir=
    25192         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    25193         eval `sh -c "$pcifilemod"`
    25194         if test "${CYGPATH_W}" != "echo"; then
    25195           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    25196         fi
    25197         MSK_DATA_INSTALLED="$projdatadir"
    25198       fi
    25199 
    25200     fi
    25201 
    25202     break
    25203   done
    25204 
    25205   # remove spaces on begin of $projtoprocess
    25206   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    25207 
    25208 done
    25209 
    25210 if test "$allproj" != fail ; then
    25211 
    25212   # now go through the list of .pc files and assemble compiler and linker flags
    25213   # important is here to obey the reverse order that has been setup before,
    25214   # since then libraries that are required by several others should be after these other libraries
    25215   pcfilesprocessed=""
    25216 
    25217   save_IFS="$IFS"
    25218   IFS=":"
    25219   for pcfile in $allpcfiles ; do
    25220 
    25221     # if $pcfile has been processed already, skip this round
    25222     if test "x$pcfilesprocessed" != x ; then
    25223       for pcfiledone in $pcfilesprocessed ; do
    25224         if test "$pcfiledone" = "$pcfile" ; then
    25225           continue 2
    25226         fi
    25227       done
    25228     fi
    25229 
    25230     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    25231     #   replace "Libs:" by "echo projlibs="
    25232     #   replace "Cflags:" by "echo projcflags="
    25233     #   remove every line starting with <some word>:
    25234     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    25235 
    25236     # set projcflags and projlibs variables by running $pcfilemod
    25237     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    25238     projcflags=
    25239     projlibs=
    25240     IFS="$save_IFS"
    25241     eval `sh -c "$pcfilemod"`
    25242     IFS=":"
    25243 
    25244     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    25245     if test "${CYGPATH_W}" != "echo"; then
    25246       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25247     fi
    25248     MSK_CFLAGS="$projcflags $MSK_CFLAGS"
    25249 
    25250     # set LIBS variable
    25251     MSK_LIBS="$projlibs $MSK_LIBS"
    25252 
    25253     # remember that we have processed $pcfile
    25254     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    25255 
    25256   done
    25257   IFS="$save_IFS"
    25258 
    25259 
    25260   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    25261   # important is here again to obey the reverse order that has been setup before,
    25262   # since then libraries that are required by several others should be after these other libraries
    25263   pcfilesprocessed=""
    25264 
    25265   save_IFS="$IFS"
    25266   IFS=":"
    25267   for pcfile in $allpcifiles ; do
    25268 
    25269     # if $pcfile has been processed already, skip this round
    25270     if test "x$pcfilesprocessed" != x ; then
    25271       for pcfiledone in $pcfilesprocessed ; do
    25272         if test "$pcfiledone" = "$pcfile" ; then
    25273           continue 2
    25274         fi
    25275       done
    25276     fi
    25277 
    25278     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    25279     #   replace "Libs:" by "echo projlibs="
    25280     #   replace "Cflags:" by "echo projcflags="
    25281     #   remove every line starting with <some word>:
    25282     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    25283 
    25284     # set projcflags and projlibs variables by running $pcfilemod
    25285     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    25286     projcflags=
    25287     projlibs=
    25288     IFS="$save_IFS"
    25289     eval `sh -c "$pcfilemod"`
    25290     IFS=":"
    25291 
    25292     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    25293     if test "${CYGPATH_W}" != "echo"; then
    25294       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25295     fi
    25296     MSK_CFLAGS_INSTALLED="$projcflags $MSK_CFLAGS_INSTALLED"
    25297 
    25298     # set LIBS variable
    25299     MSK_LIBS_INSTALLED="$projlibs $MSK_LIBS_INSTALLED"
    25300 
    25301     # remember that we have processed $pcfile
    25302     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    25303 
    25304   done
    25305   IFS="$save_IFS"
    25306 
    25307 
    25308   # finish up
    25309   coin_has_msk=yes
    25310   echo "$as_me:$LINENO: result: yes" >&5
    25311 echo "${ECHO_T}yes" >&6
    25312 
    25313 cat >>confdefs.h <<\_ACEOF
    25314 #define COIN_HAS_MSK 1
    25315 _ACEOF
    25316 
    25317 
    25318   # adjust linker flags for (i)cl compiler
    25319   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    25320   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    25321   #    everything of the form "-lname" by "libname.lib", and
    25322   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    25323   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    25324   then
    25325     MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    25326     MSK_LIBS_INSTALLED=`echo " $MSK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    25327   fi
    25328 
    25329   MSK_PCREQUIRES="osi-msk"
    25330 
    25331     COINMP_PCREQUIRES="osi-msk $COINMP_PCREQUIRES"
    25332     COINMP_CFLAGS="$MSK_CFLAGS $COINMP_CFLAGS"
    25333     COINMP_LIBS="$MSK_LIBS $COINMP_LIBS"
    25334     COINMP_CFLAGS_INSTALLED="$MSK_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    25335     COINMP_LIBS_INSTALLED="$MSK_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    25336 
    25337 
    25338 fi
    25339 
    25340 
    25341 
    25342 if test $coin_has_msk != notGiven &&
    25343                 test $coin_has_msk != skipping; then
    25344   COIN_HAS_MSK_TRUE=
    25345   COIN_HAS_MSK_FALSE='#'
    25346 else
    25347   COIN_HAS_MSK_TRUE='#'
    25348   COIN_HAS_MSK_FALSE=
    25349 fi
    25350 
    25351 
    25352 
    25353   fi
    25354 
    25355 else
    25356   echo "$as_me:$LINENO: result: $coin_has_msk" >&5
    25357 echo "${ECHO_T}$coin_has_msk" >&6
    25358 fi
    25359 
    25360 if test $coin_has_msk != skipping &&
    25361    test $coin_has_msk != notGiven ; then
    25362 
    25363 cat >>confdefs.h <<\_ACEOF
    25364 #define COIN_HAS_MSK 1
    25365 _ACEOF
    25366 
    25367 
    25368   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    25369 if test "${enable_interpackage_dependencies+set}" = set; then
    25370   enableval="$enable_interpackage_dependencies"
    25371 
    25372 else
    25373   enable_interpackage_dependencies=yes
    25374 fi;
    25375 
    25376   if test $enable_interpackage_dependencies = yes ; then
    25377      # construct dependencies variables from LIBS variables
    25378      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    25379      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    25380      # then remove everything of the form -xxx
    25381      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    25382      MSK_DEPENDENCIES=`echo " $MSK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    25383 
    25384        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    25385 
    25386   fi
    25387 
    25388   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    25389     if test -n "$MSK_CFLAGS" ; then
    25390       { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
    25391 echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
    25392     fi
    25393     if test -n "$MSK_LIBS" ; then
    25394       { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
    25395 echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
    25396     fi
    25397     if test -n "$MSK_DEPENDENCIES" ; then
    25398       { echo "$as_me:$LINENO: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&5
    25399 echo "$as_me: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&6;}
    25400     fi
    25401     if test -n "$MSK_DATA" ; then
    25402       { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
    25403 echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
    25404     fi
    25405     if test -n "$MSK_PCLIBS" ; then
    25406       { echo "$as_me:$LINENO: Msk PCLIBS are $MSK_PCLIBS" >&5
    25407 echo "$as_me: Msk PCLIBS are $MSK_PCLIBS" >&6;}
    25408     fi
    25409     if test -n "$MSK_PCREQUIRES" ; then
    25410       { echo "$as_me:$LINENO: Msk PCREQUIRES are $MSK_PCREQUIRES" >&5
    25411 echo "$as_me: Msk PCREQUIRES are $MSK_PCREQUIRES" >&6;}
    25412     fi
    25413 
    25414       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    25415 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    25416       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    25417 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    25418       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    25419 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    25420 
    25421   fi
    25422 fi
    25423 
    25424 # Define the Makefile conditional
    25425 
    25426 
    25427 if test $coin_has_msk != notGiven &&
    25428                 test $coin_has_msk != skipping; then
    25429   COIN_HAS_MSK_TRUE=
    25430   COIN_HAS_MSK_FALSE='#'
    25431 else
    25432   COIN_HAS_MSK_TRUE='#'
    25433   COIN_HAS_MSK_FALSE=
    25434 fi
    25435 
    25436 
    25437 
    25438 
    25439 echo "$as_me:$LINENO: checking for COIN-OR package Spx" >&5
    25440 echo $ECHO_N "checking for COIN-OR package Spx... $ECHO_C" >&6
    25441 
    25442 coin_has_spx=notGiven
    25443 
    25444 # check if user wants to skip package in any case
    25445 if test x"$COIN_SKIP_PROJECTS" != x; then
    25446   for dir in $COIN_SKIP_PROJECTS; do
    25447     if test $dir = "Spx"; then
    25448       coin_has_spx=skipping
    25449     fi
    25450   done
    25451 fi
    25452 
    25453 if test "$coin_has_spx" != skipping; then
    25454 
    25455 # Check whether --with-m4_tolower(Spx) or --without-m4_tolower(Spx) was given.
    25456 if test "${with_spx+set}" = set; then
    25457   withval="$with_spx"
    25458   if test "$withval" = no ; then
    25459        coin_has_spx=skipping
    25460      fi
    25461 
    25462 fi;
    25463 fi
    25464 
    25465 SPX_LIBS=
    25466 SPX_CFLAGS=
    25467 SPX_DATA=
    25468 SPX_DEPENDENCIES=
    25469 SPX_PCLIBS=
    25470 SPX_PCREQUIRES=
    25471 SPX_DATA=
    25472 
    25473 
    25474 
    25475 
    25476 
    25477 
    25478 
    25479 
    25480 
    25481 
    25482 
    25483 
    25484 
    25485 
    25486 
    25487 
    25488 
    25489 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    25490 if test $coin_has_spx != skipping; then
    25491 
    25492 # Check whether --with-m4_tolower(Spx)-lib or --without-m4_tolower(Spx)-lib was given.
    25493 if test "${with_spx_lib+set}" = set; then
    25494   withval="$with_spx_lib"
    25495   if test "$withval" = no ; then
    25496        coin_has_spx=skipping
    25497      else
    25498        coin_has_spx=yes
    25499        SPX_LIBS="$withval"
    25500        SPX_PCLIBS="$withval"
    25501 
    25502          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    25503          COINMP_LIBS="$withval $COINMP_LIBS"
    25504 
    25505        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    25506        if test -z "$PKG_CONFIG" ; then
    25507          SPX_LIBS_INSTALLED="$withval"
    25508          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    25509        fi
    25510      fi
    25511 
    25512 fi;
    25513 fi
    25514 
    25515 if test $coin_has_spx != skipping; then
    25516 
    25517 # Check whether --with-m4_tolower(Spx)-incdir or --without-m4_tolower(Spx)-incdir was given.
    25518 if test "${with_spx_incdir+set}" = set; then
    25519   withval="$with_spx_incdir"
    25520   if test "$withval" = no ; then
    25521        coin_has_spx=skipping
    25522      else
    25523        coin_has_spx=yes
    25524        SPX_CFLAGS="-I`${CYGPATH_W} $withval`"
    25525        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    25526        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    25527        if test -z "$PKG_CONFIG" ; then
    25528          SPX_CFLAGS_INSTALLED="$SPX_CFLAGS"
    25529          COINMP_CFLAGS_INSTALLED="$SPX_CFLAGS $COINMP_CFLAGS_INSTALLED"
    25530        fi
    25531      fi
    25532 
    25533 fi;
    25534 fi
    25535 
    25536 if test $coin_has_spx != skipping; then
    25537 
    25538 # Check whether --with-m4_tolower(Spx)-datadir or --without-m4_tolower(Spx)-datadir was given.
    25539 if test "${with_spx_datadir+set}" = set; then
    25540   withval="$with_spx_datadir"
    25541   if test "$withval" = no ; then
    25542        coin_has_spx=skipping
    25543      else
    25544        coin_has_spx=yes
    25545        SPX_DATA="$withval"
    25546        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    25547        if test -z "$PKG_CONFIG" ; then
    25548          SPX_DATA_INSTALLED="$withval"
    25549        fi
    25550      fi
    25551 
    25552 fi;
    25553 fi
    25554 
    25555 if test $coin_has_spx = notGiven; then
    25556   if test -n "$PKG_CONFIG" ; then
    25557     # set search path for pkg-config
    25558     # need to export variable to be sure that the following pkg-config gets these values
    25559     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    25560     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    25561     export PKG_CONFIG_PATH
    25562 
    25563     # let pkg-config do it's magic
    25564 
    25565 
    25566 
    25567 if test -n "$PKG_CONFIG" ; then
    25568   if $PKG_CONFIG --exists "osi-spx"; then
    25569     SPX_VERSIONS=`$PKG_CONFIG --modversion "osi-spx" 2>/dev/null | tr '\n' ' '`
    25570      cflags=`$PKG_CONFIG --cflags "osi-spx" 2>/dev/null`
    25571     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    25572         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    25573         # but only do this if is not trivial
    25574     if test "$CYGPATH_W" != "echo" ; then
    25575       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    25576       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25577     fi
    25578     SPX_CFLAGS="$cflags"
    25579     SPX_LIBS=`$PKG_CONFIG --libs "osi-spx" 2>/dev/null`
    25580     SPX_DATA=`$PKG_CONFIG --variable=datadir "osi-spx" 2>/dev/null`
    25581      coin_has_spx=yes
    25582         echo "$as_me:$LINENO: result: yes: $SPX_VERSIONS" >&5
    25583 echo "${ECHO_T}yes: $SPX_VERSIONS" >&6
    25584 
    25585         # adjust linker flags for (i)cl compiler
    25586         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    25587         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    25588         then
    25589           SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    25590         fi
    25591         SPX_PCREQUIRES="osi-spx"
    25592 
    25593         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    25594 
    25595           COINMP_PCREQUIRES="osi-spx $COINMP_PCREQUIRES"
    25596           COINMP_CFLAGS="$SPX_CFLAGS $COINMP_CFLAGS"
    25597           COINMP_LIBS="$SPX_LIBS $COINMP_LIBS"
    25598 
    25599 
    25600 
    25601   else
    25602     SPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-spx"`
    25603       coin_has_spx=notGiven
    25604         echo "$as_me:$LINENO: result: not given: $SPX_PKG_ERRORS" >&5
    25605 echo "${ECHO_T}not given: $SPX_PKG_ERRORS" >&6
    25606 
    25607   fi
    25608 else
    25609   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Spx without pkg-config\"" >&5
    25610 echo "$as_me: error: \"Cannot check for existance of module Spx without pkg-config\"" >&2;}
    25611    { (exit 1); exit 1; }; }
    25612 fi
    25613 
    25614 
    25615 
    25616 
    25617     # reset PKG_CONFIG_PATH variable
    25618     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    25619     export PKG_CONFIG_PATH
    25620 
    25621   else
    25622     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    25623 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    25624 
    25625 echo "$as_me:$LINENO: checking for COIN-OR package Spx (fallback)" >&5
    25626 echo $ECHO_N "checking for COIN-OR package Spx (fallback)... $ECHO_C" >&6
    25627 
    25628 coin_has_spx=notGiven
    25629 SPX_LIBS=
    25630 SPX_LIBS_INSTALLED=
    25631 SPX_CFLAGS=
    25632 SPX_CFLAGS_INSTALLED=
    25633 SPX_DATA=
    25634 SPX_DATA_INSTALLED=
    25635 SPX_PCLIBS=
    25636 SPX_PCREQUIRES=
    25637 
    25638 # initial list of dependencies is "osi-spx", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    25639 projtoprocess="osi-spx"
    25640 
    25641 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    25642 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    25643 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    25644 # also, we setup the DATA variable
    25645 allproj=""
    25646 allpcfiles=""
    25647 allpcifiles=""
    25648 while test "x$projtoprocess" != x ; do
    25649 
    25650   for proj in $projtoprocess ; do
    25651     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    25652     pcfile=""
    25653     save_IFS="$IFS"
    25654     IFS=":"
    25655     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    25656       # 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
    25657       if test -r "$dir/${proj}-uninstalled.pc" ; then
    25658         pcfile="$dir/$proj-uninstalled.pc"
    25659         if test -r "$dir/${proj}.pc" ; then
    25660           pcifile="$dir/${proj}.pc"
    25661         else
    25662           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    25663 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    25664           pcifile=
    25665         fi
    25666         break
    25667       fi
    25668     done
    25669     IFS="$save_IFS"
    25670 
    25671     if test "x$pcfile" != x ; then
    25672       # read dependencies from $pcfile and filter it
    25673       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    25674 
    25675       # add projrequires to the front of the list of projects that have to be processed next
    25676       # at the same time, remove $proj from this list
    25677       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    25678 
    25679       # read DATA from $pcfile, if _DATA is still empty
    25680       if test "x$SPX_DATA" = x ; then
    25681         projdatadir=
    25682         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    25683         eval `sh -c "$pcfilemod"`
    25684         SPX_DATA="$projdatadir"
    25685       fi
    25686 
    25687       allproj="$allproj $proj"
    25688       allpcfiles="$pcfile:$allpcfiles"
    25689 
    25690     else
    25691       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    25692 echo "${ECHO_T}no, dependency $proj not available" >&6
    25693       allproj=fail
    25694       break 2
    25695     fi
    25696 
    25697     if test "x$pcifile" != x ; then
    25698       allpcifiles="$pcifile:$allpcifiles"
    25699 
    25700       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    25701       if test "x$SPX_DATA_INSTALLED" = x ; then
    25702         projdatadir=
    25703         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    25704         eval `sh -c "$pcifilemod"`
    25705         if test "${CYGPATH_W}" != "echo"; then
    25706           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    25707         fi
    25708         SPX_DATA_INSTALLED="$projdatadir"
    25709       fi
    25710 
    25711     fi
    25712 
    25713     break
    25714   done
    25715 
    25716   # remove spaces on begin of $projtoprocess
    25717   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    25718 
    25719 done
    25720 
    25721 if test "$allproj" != fail ; then
    25722 
    25723   # now go through the list of .pc files and assemble compiler and linker flags
    25724   # important is here to obey the reverse order that has been setup before,
    25725   # since then libraries that are required by several others should be after these other libraries
    25726   pcfilesprocessed=""
    25727 
    25728   save_IFS="$IFS"
    25729   IFS=":"
    25730   for pcfile in $allpcfiles ; do
    25731 
    25732     # if $pcfile has been processed already, skip this round
    25733     if test "x$pcfilesprocessed" != x ; then
    25734       for pcfiledone in $pcfilesprocessed ; do
    25735         if test "$pcfiledone" = "$pcfile" ; then
    25736           continue 2
    25737         fi
    25738       done
    25739     fi
    25740 
    25741     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    25742     #   replace "Libs:" by "echo projlibs="
    25743     #   replace "Cflags:" by "echo projcflags="
    25744     #   remove every line starting with <some word>:
    25745     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    25746 
    25747     # set projcflags and projlibs variables by running $pcfilemod
    25748     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    25749     projcflags=
    25750     projlibs=
    25751     IFS="$save_IFS"
    25752     eval `sh -c "$pcfilemod"`
    25753     IFS=":"
    25754 
    25755     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    25756     if test "${CYGPATH_W}" != "echo"; then
    25757       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25758     fi
    25759     SPX_CFLAGS="$projcflags $SPX_CFLAGS"
    25760 
    25761     # set LIBS variable
    25762     SPX_LIBS="$projlibs $SPX_LIBS"
    25763 
    25764     # remember that we have processed $pcfile
    25765     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    25766 
    25767   done
    25768   IFS="$save_IFS"
    25769 
    25770 
    25771   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    25772   # important is here again to obey the reverse order that has been setup before,
    25773   # since then libraries that are required by several others should be after these other libraries
    25774   pcfilesprocessed=""
    25775 
    25776   save_IFS="$IFS"
    25777   IFS=":"
    25778   for pcfile in $allpcifiles ; do
    25779 
    25780     # if $pcfile has been processed already, skip this round
    25781     if test "x$pcfilesprocessed" != x ; then
    25782       for pcfiledone in $pcfilesprocessed ; do
    25783         if test "$pcfiledone" = "$pcfile" ; then
    25784           continue 2
    25785         fi
    25786       done
    25787     fi
    25788 
    25789     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    25790     #   replace "Libs:" by "echo projlibs="
    25791     #   replace "Cflags:" by "echo projcflags="
    25792     #   remove every line starting with <some word>:
    25793     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    25794 
    25795     # set projcflags and projlibs variables by running $pcfilemod
    25796     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    25797     projcflags=
    25798     projlibs=
    25799     IFS="$save_IFS"
    25800     eval `sh -c "$pcfilemod"`
    25801     IFS=":"
    25802 
    25803     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    25804     if test "${CYGPATH_W}" != "echo"; then
    25805       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    25806     fi
    25807     SPX_CFLAGS_INSTALLED="$projcflags $SPX_CFLAGS_INSTALLED"
    25808 
    25809     # set LIBS variable
    25810     SPX_LIBS_INSTALLED="$projlibs $SPX_LIBS_INSTALLED"
    25811 
    25812     # remember that we have processed $pcfile
    25813     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    25814 
    25815   done
    25816   IFS="$save_IFS"
    25817 
    25818 
    25819   # finish up
    25820   coin_has_spx=yes
    25821   echo "$as_me:$LINENO: result: yes" >&5
    25822 echo "${ECHO_T}yes" >&6
    25823 
    25824 cat >>confdefs.h <<\_ACEOF
    25825 #define COIN_HAS_SPX 1
    25826 _ACEOF
    25827 
    25828 
    25829   # adjust linker flags for (i)cl compiler
    25830   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    25831   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    25832   #    everything of the form "-lname" by "libname.lib", and
    25833   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    25834   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    25835   then
    25836     SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    25837     SPX_LIBS_INSTALLED=`echo " $SPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    25838   fi
    25839 
    25840   SPX_PCREQUIRES="osi-spx"
    25841 
    25842     COINMP_PCREQUIRES="osi-spx $COINMP_PCREQUIRES"
    25843     COINMP_CFLAGS="$SPX_CFLAGS $COINMP_CFLAGS"
    25844     COINMP_LIBS="$SPX_LIBS $COINMP_LIBS"
    25845     COINMP_CFLAGS_INSTALLED="$SPX_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    25846     COINMP_LIBS_INSTALLED="$SPX_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    25847 
    25848 
    25849 fi
    25850 
    25851 
    25852 
    25853 if test $coin_has_spx != notGiven &&
    25854                 test $coin_has_spx != skipping; then
    25855   COIN_HAS_SPX_TRUE=
    25856   COIN_HAS_SPX_FALSE='#'
    25857 else
    25858   COIN_HAS_SPX_TRUE='#'
    25859   COIN_HAS_SPX_FALSE=
    25860 fi
    25861 
    25862 
    25863 
    25864   fi
    25865 
    25866 else
    25867   echo "$as_me:$LINENO: result: $coin_has_spx" >&5
    25868 echo "${ECHO_T}$coin_has_spx" >&6
    25869 fi
    25870 
    25871 if test $coin_has_spx != skipping &&
    25872    test $coin_has_spx != notGiven ; then
    25873 
    25874 cat >>confdefs.h <<\_ACEOF
    25875 #define COIN_HAS_SPX 1
    25876 _ACEOF
    25877 
    25878 
    25879   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    25880 if test "${enable_interpackage_dependencies+set}" = set; then
    25881   enableval="$enable_interpackage_dependencies"
    25882 
    25883 else
    25884   enable_interpackage_dependencies=yes
    25885 fi;
    25886 
    25887   if test $enable_interpackage_dependencies = yes ; then
    25888      # construct dependencies variables from LIBS variables
    25889      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    25890      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    25891      # then remove everything of the form -xxx
    25892      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    25893      SPX_DEPENDENCIES=`echo " $SPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    25894 
    25895        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    25896 
    25897   fi
    25898 
    25899   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    25900     if test -n "$SPX_CFLAGS" ; then
    25901       { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
    25902 echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
    25903     fi
    25904     if test -n "$SPX_LIBS" ; then
    25905       { echo "$as_me:$LINENO: Spx LIBS   are $SPX_LIBS" >&5
    25906 echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
    25907     fi
    25908     if test -n "$SPX_DEPENDENCIES" ; then
    25909       { echo "$as_me:$LINENO: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&5
    25910 echo "$as_me: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&6;}
    25911     fi
    25912     if test -n "$SPX_DATA" ; then
    25913       { echo "$as_me:$LINENO: Spx DATA   is  $SPX_DATA" >&5
    25914 echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
    25915     fi
    25916     if test -n "$SPX_PCLIBS" ; then
    25917       { echo "$as_me:$LINENO: Spx PCLIBS are $SPX_PCLIBS" >&5
    25918 echo "$as_me: Spx PCLIBS are $SPX_PCLIBS" >&6;}
    25919     fi
    25920     if test -n "$SPX_PCREQUIRES" ; then
    25921       { echo "$as_me:$LINENO: Spx PCREQUIRES are $SPX_PCREQUIRES" >&5
    25922 echo "$as_me: Spx PCREQUIRES are $SPX_PCREQUIRES" >&6;}
    25923     fi
    25924 
    25925       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    25926 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    25927       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    25928 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    25929       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    25930 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    25931 
    25932   fi
    25933 fi
    25934 
    25935 # Define the Makefile conditional
    25936 
    25937 
    25938 if test $coin_has_spx != notGiven &&
    25939                 test $coin_has_spx != skipping; then
    25940   COIN_HAS_SPX_TRUE=
    25941   COIN_HAS_SPX_FALSE='#'
    25942 else
    25943   COIN_HAS_SPX_TRUE='#'
    25944   COIN_HAS_SPX_FALSE=
    25945 fi
    25946 
    25947 
    25948 
    25949 
    25950 echo "$as_me:$LINENO: checking for COIN-OR package Xpr" >&5
    25951 echo $ECHO_N "checking for COIN-OR package Xpr... $ECHO_C" >&6
    25952 
    25953 coin_has_xpr=notGiven
    25954 
    25955 # check if user wants to skip package in any case
    25956 if test x"$COIN_SKIP_PROJECTS" != x; then
    25957   for dir in $COIN_SKIP_PROJECTS; do
    25958     if test $dir = "Xpr"; then
    25959       coin_has_xpr=skipping
    25960     fi
    25961   done
    25962 fi
    25963 
    25964 if test "$coin_has_xpr" != skipping; then
    25965 
    25966 # Check whether --with-m4_tolower(Xpr) or --without-m4_tolower(Xpr) was given.
    25967 if test "${with_xpr+set}" = set; then
    25968   withval="$with_xpr"
    25969   if test "$withval" = no ; then
    25970        coin_has_xpr=skipping
    25971      fi
    25972 
    25973 fi;
    25974 fi
    25975 
    25976 XPR_LIBS=
    25977 XPR_CFLAGS=
    25978 XPR_DATA=
    25979 XPR_DEPENDENCIES=
    25980 XPR_PCLIBS=
    25981 XPR_PCREQUIRES=
    25982 XPR_DATA=
    25983 
    25984 
    25985 
    25986 
    25987 
    25988 
    25989 
    25990 
    25991 
    25992 
    25993 
    25994 
    25995 
    25996 
    25997 
    25998 
    25999 
    26000 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    26001 if test $coin_has_xpr != skipping; then
    26002 
    26003 # Check whether --with-m4_tolower(Xpr)-lib or --without-m4_tolower(Xpr)-lib was given.
    26004 if test "${with_xpr_lib+set}" = set; then
    26005   withval="$with_xpr_lib"
    26006   if test "$withval" = no ; then
    26007        coin_has_xpr=skipping
    26008      else
    26009        coin_has_xpr=yes
    26010        XPR_LIBS="$withval"
    26011        XPR_PCLIBS="$withval"
    26012 
    26013          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    26014          COINMP_LIBS="$withval $COINMP_LIBS"
    26015 
    26016        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    26017        if test -z "$PKG_CONFIG" ; then
    26018          XPR_LIBS_INSTALLED="$withval"
    26019          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    26020        fi
    26021      fi
    26022 
    26023 fi;
    26024 fi
    26025 
    26026 if test $coin_has_xpr != skipping; then
    26027 
    26028 # Check whether --with-m4_tolower(Xpr)-incdir or --without-m4_tolower(Xpr)-incdir was given.
    26029 if test "${with_xpr_incdir+set}" = set; then
    26030   withval="$with_xpr_incdir"
    26031   if test "$withval" = no ; then
    26032        coin_has_xpr=skipping
    26033      else
    26034        coin_has_xpr=yes
    26035        XPR_CFLAGS="-I`${CYGPATH_W} $withval`"
    26036        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    26037        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    26038        if test -z "$PKG_CONFIG" ; then
    26039          XPR_CFLAGS_INSTALLED="$XPR_CFLAGS"
    26040          COINMP_CFLAGS_INSTALLED="$XPR_CFLAGS $COINMP_CFLAGS_INSTALLED"
    26041        fi
    26042      fi
    26043 
    26044 fi;
    26045 fi
    26046 
    26047 if test $coin_has_xpr != skipping; then
    26048 
    26049 # Check whether --with-m4_tolower(Xpr)-datadir or --without-m4_tolower(Xpr)-datadir was given.
    26050 if test "${with_xpr_datadir+set}" = set; then
    26051   withval="$with_xpr_datadir"
    26052   if test "$withval" = no ; then
    26053        coin_has_xpr=skipping
    26054      else
    26055        coin_has_xpr=yes
    26056        XPR_DATA="$withval"
    26057        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    26058        if test -z "$PKG_CONFIG" ; then
    26059          XPR_DATA_INSTALLED="$withval"
    26060        fi
    26061      fi
    26062 
    26063 fi;
    26064 fi
    26065 
    26066 if test $coin_has_xpr = notGiven; then
    26067   if test -n "$PKG_CONFIG" ; then
    26068     # set search path for pkg-config
    26069     # need to export variable to be sure that the following pkg-config gets these values
    26070     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    26071     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    26072     export PKG_CONFIG_PATH
    26073 
    26074     # let pkg-config do it's magic
    26075 
    26076 
    26077 
    26078 if test -n "$PKG_CONFIG" ; then
    26079   if $PKG_CONFIG --exists "osi-xpr"; then
    26080     XPR_VERSIONS=`$PKG_CONFIG --modversion "osi-xpr" 2>/dev/null | tr '\n' ' '`
    26081      cflags=`$PKG_CONFIG --cflags "osi-xpr" 2>/dev/null`
    26082     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    26083         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    26084         # but only do this if is not trivial
    26085     if test "$CYGPATH_W" != "echo" ; then
    26086       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    26087       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    26088     fi
    26089     XPR_CFLAGS="$cflags"
    26090     XPR_LIBS=`$PKG_CONFIG --libs "osi-xpr" 2>/dev/null`
    26091     XPR_DATA=`$PKG_CONFIG --variable=datadir "osi-xpr" 2>/dev/null`
    26092      coin_has_xpr=yes
    26093         echo "$as_me:$LINENO: result: yes: $XPR_VERSIONS" >&5
    26094 echo "${ECHO_T}yes: $XPR_VERSIONS" >&6
    26095 
    26096         # adjust linker flags for (i)cl compiler
    26097         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    26098         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    26099         then
    26100           XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    26101         fi
    26102         XPR_PCREQUIRES="osi-xpr"
    26103 
    26104         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    26105 
    26106           COINMP_PCREQUIRES="osi-xpr $COINMP_PCREQUIRES"
    26107           COINMP_CFLAGS="$XPR_CFLAGS $COINMP_CFLAGS"
    26108           COINMP_LIBS="$XPR_LIBS $COINMP_LIBS"
    26109 
    26110 
    26111 
    26112   else
    26113     XPR_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-xpr"`
    26114       coin_has_xpr=notGiven
    26115         echo "$as_me:$LINENO: result: not given: $XPR_PKG_ERRORS" >&5
    26116 echo "${ECHO_T}not given: $XPR_PKG_ERRORS" >&6
    26117 
    26118   fi
    26119 else
    26120   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&5
    26121 echo "$as_me: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&2;}
    26122    { (exit 1); exit 1; }; }
    26123 fi
    26124 
    26125 
    26126 
    26127 
    26128     # reset PKG_CONFIG_PATH variable
    26129     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    26130     export PKG_CONFIG_PATH
    26131 
    26132   else
    26133     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    26134 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    26135 
    26136 echo "$as_me:$LINENO: checking for COIN-OR package Xpr (fallback)" >&5
    26137 echo $ECHO_N "checking for COIN-OR package Xpr (fallback)... $ECHO_C" >&6
    26138 
    26139 coin_has_xpr=notGiven
    26140 XPR_LIBS=
    26141 XPR_LIBS_INSTALLED=
    26142 XPR_CFLAGS=
    26143 XPR_CFLAGS_INSTALLED=
    26144 XPR_DATA=
    26145 XPR_DATA_INSTALLED=
    26146 XPR_PCLIBS=
    26147 XPR_PCREQUIRES=
    26148 
    26149 # initial list of dependencies is "osi-xpr", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    26150 projtoprocess="osi-xpr"
    26151 
    26152 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    26153 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    26154 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    26155 # also, we setup the DATA variable
    26156 allproj=""
    26157 allpcfiles=""
    26158 allpcifiles=""
    26159 while test "x$projtoprocess" != x ; do
    26160 
    26161   for proj in $projtoprocess ; do
    26162     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    26163     pcfile=""
    26164     save_IFS="$IFS"
    26165     IFS=":"
    26166     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    26167       # 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
    26168       if test -r "$dir/${proj}-uninstalled.pc" ; then
    26169         pcfile="$dir/$proj-uninstalled.pc"
    26170         if test -r "$dir/${proj}.pc" ; then
    26171           pcifile="$dir/${proj}.pc"
    26172         else
    26173           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    26174 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    26175           pcifile=
    26176         fi
    26177         break
    26178       fi
    26179     done
    26180     IFS="$save_IFS"
    26181 
    26182     if test "x$pcfile" != x ; then
    26183       # read dependencies from $pcfile and filter it
    26184       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    26185 
    26186       # add projrequires to the front of the list of projects that have to be processed next
    26187       # at the same time, remove $proj from this list
    26188       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    26189 
    26190       # read DATA from $pcfile, if _DATA is still empty
    26191       if test "x$XPR_DATA" = x ; then
    26192         projdatadir=
    26193         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    26194         eval `sh -c "$pcfilemod"`
    26195         XPR_DATA="$projdatadir"
    26196       fi
    26197 
    26198       allproj="$allproj $proj"
    26199       allpcfiles="$pcfile:$allpcfiles"
    26200 
    26201     else
    26202       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    26203 echo "${ECHO_T}no, dependency $proj not available" >&6
    26204       allproj=fail
    26205       break 2
    26206     fi
    26207 
    26208     if test "x$pcifile" != x ; then
    26209       allpcifiles="$pcifile:$allpcifiles"
    26210 
    26211       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    26212       if test "x$XPR_DATA_INSTALLED" = x ; then
    26213         projdatadir=
    26214         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    26215         eval `sh -c "$pcifilemod"`
    26216         if test "${CYGPATH_W}" != "echo"; then
    26217           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    26218         fi
    26219         XPR_DATA_INSTALLED="$projdatadir"
    26220       fi
    26221 
    26222     fi
    26223 
    26224     break
    26225   done
    26226 
    26227   # remove spaces on begin of $projtoprocess
    26228   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    26229 
    26230 done
    26231 
    26232 if test "$allproj" != fail ; then
    26233 
    26234   # now go through the list of .pc files and assemble compiler and linker flags
    26235   # important is here to obey the reverse order that has been setup before,
    26236   # since then libraries that are required by several others should be after these other libraries
    26237   pcfilesprocessed=""
    26238 
    26239   save_IFS="$IFS"
    26240   IFS=":"
    26241   for pcfile in $allpcfiles ; do
    26242 
    26243     # if $pcfile has been processed already, skip this round
    26244     if test "x$pcfilesprocessed" != x ; then
    26245       for pcfiledone in $pcfilesprocessed ; do
    26246         if test "$pcfiledone" = "$pcfile" ; then
    26247           continue 2
    26248         fi
    26249       done
    26250     fi
    26251 
    26252     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    26253     #   replace "Libs:" by "echo projlibs="
    26254     #   replace "Cflags:" by "echo projcflags="
    26255     #   remove every line starting with <some word>:
    26256     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    26257 
    26258     # set projcflags and projlibs variables by running $pcfilemod
    26259     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    26260     projcflags=
    26261     projlibs=
    26262     IFS="$save_IFS"
    26263     eval `sh -c "$pcfilemod"`
    26264     IFS=":"
    26265 
    26266     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    26267     if test "${CYGPATH_W}" != "echo"; then
    26268       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    26269     fi
    26270     XPR_CFLAGS="$projcflags $XPR_CFLAGS"
    26271 
    26272     # set LIBS variable
    26273     XPR_LIBS="$projlibs $XPR_LIBS"
    26274 
    26275     # remember that we have processed $pcfile
    26276     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    26277 
    26278   done
    26279   IFS="$save_IFS"
    26280 
    26281 
    26282   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    26283   # important is here again to obey the reverse order that has been setup before,
    26284   # since then libraries that are required by several others should be after these other libraries
    26285   pcfilesprocessed=""
    26286 
    26287   save_IFS="$IFS"
    26288   IFS=":"
    26289   for pcfile in $allpcifiles ; do
    26290 
    26291     # if $pcfile has been processed already, skip this round
    26292     if test "x$pcfilesprocessed" != x ; then
    26293       for pcfiledone in $pcfilesprocessed ; do
    26294         if test "$pcfiledone" = "$pcfile" ; then
    26295           continue 2
    26296         fi
    26297       done
    26298     fi
    26299 
    26300     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    26301     #   replace "Libs:" by "echo projlibs="
    26302     #   replace "Cflags:" by "echo projcflags="
    26303     #   remove every line starting with <some word>:
    26304     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    26305 
    26306     # set projcflags and projlibs variables by running $pcfilemod
    26307     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    26308     projcflags=
    26309     projlibs=
    26310     IFS="$save_IFS"
    26311     eval `sh -c "$pcfilemod"`
    26312     IFS=":"
    26313 
    26314     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    26315     if test "${CYGPATH_W}" != "echo"; then
    26316       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    26317     fi
    26318     XPR_CFLAGS_INSTALLED="$projcflags $XPR_CFLAGS_INSTALLED"
    26319 
    26320     # set LIBS variable
    26321     XPR_LIBS_INSTALLED="$projlibs $XPR_LIBS_INSTALLED"
    26322 
    26323     # remember that we have processed $pcfile
    26324     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    26325 
    26326   done
    26327   IFS="$save_IFS"
    26328 
    26329 
    26330   # finish up
    26331   coin_has_xpr=yes
    26332   echo "$as_me:$LINENO: result: yes" >&5
    26333 echo "${ECHO_T}yes" >&6
    26334 
    26335 cat >>confdefs.h <<\_ACEOF
    26336 #define COIN_HAS_XPR 1
    26337 _ACEOF
    26338 
    26339 
    26340   # adjust linker flags for (i)cl compiler
    26341   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    26342   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    26343   #    everything of the form "-lname" by "libname.lib", and
    26344   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    26345   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    26346   then
    26347     XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    26348     XPR_LIBS_INSTALLED=`echo " $XPR_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    26349   fi
    26350 
    26351   XPR_PCREQUIRES="osi-xpr"
    26352 
    26353     COINMP_PCREQUIRES="osi-xpr $COINMP_PCREQUIRES"
    26354     COINMP_CFLAGS="$XPR_CFLAGS $COINMP_CFLAGS"
    26355     COINMP_LIBS="$XPR_LIBS $COINMP_LIBS"
    26356     COINMP_CFLAGS_INSTALLED="$XPR_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    26357     COINMP_LIBS_INSTALLED="$XPR_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    26358 
    26359 
    26360 fi
    26361 
    26362 
    26363 
    26364 if test $coin_has_xpr != notGiven &&
    26365                 test $coin_has_xpr != skipping; then
    26366   COIN_HAS_XPR_TRUE=
    26367   COIN_HAS_XPR_FALSE='#'
    26368 else
    26369   COIN_HAS_XPR_TRUE='#'
    26370   COIN_HAS_XPR_FALSE=
    26371 fi
    26372 
    26373 
    26374 
    26375   fi
    26376 
    26377 else
    26378   echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
    26379 echo "${ECHO_T}$coin_has_xpr" >&6
    26380 fi
    26381 
    26382 if test $coin_has_xpr != skipping &&
    26383    test $coin_has_xpr != notGiven ; then
    26384 
    26385 cat >>confdefs.h <<\_ACEOF
    26386 #define COIN_HAS_XPR 1
    26387 _ACEOF
    26388 
    26389 
    26390   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    26391 if test "${enable_interpackage_dependencies+set}" = set; then
    26392   enableval="$enable_interpackage_dependencies"
    26393 
    26394 else
    26395   enable_interpackage_dependencies=yes
    26396 fi;
    26397 
    26398   if test $enable_interpackage_dependencies = yes ; then
    26399      # construct dependencies variables from LIBS variables
    26400      # we add an extra space in LIBS so we can substitute out everything starting with " -"
    26401      # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
    26402      # then remove everything of the form -xxx
    26403      # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
    26404      XPR_DEPENDENCIES=`echo " $XPR_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    26405 
    26406        COINMP_DEPENDENCIES=`echo " $COINMP_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
    26407 
    26408   fi
    26409 
    26410   if test 1 = 0 ; then  #change this test to enable a bit of debugging output
    26411     if test -n "$XPR_CFLAGS" ; then
    26412       { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
    26413 echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
    26414     fi
    26415     if test -n "$XPR_LIBS" ; then
    26416       { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
    26417 echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
    26418     fi
    26419     if test -n "$XPR_DEPENDENCIES" ; then
    26420       { echo "$as_me:$LINENO: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&5
    26421 echo "$as_me: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&6;}
    26422     fi
    26423     if test -n "$XPR_DATA" ; then
    26424       { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
    26425 echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
    26426     fi
    26427     if test -n "$XPR_PCLIBS" ; then
    26428       { echo "$as_me:$LINENO: Xpr PCLIBS are $XPR_PCLIBS" >&5
    26429 echo "$as_me: Xpr PCLIBS are $XPR_PCLIBS" >&6;}
    26430     fi
    26431     if test -n "$XPR_PCREQUIRES" ; then
    26432       { echo "$as_me:$LINENO: Xpr PCREQUIRES are $XPR_PCREQUIRES" >&5
    26433 echo "$as_me: Xpr PCREQUIRES are $XPR_PCREQUIRES" >&6;}
    26434     fi
    26435 
    26436       { echo "$as_me:$LINENO: CoinMP CFLAGS are $COINMP_CFLAGS" >&5
    26437 echo "$as_me: CoinMP CFLAGS are $COINMP_CFLAGS" >&6;}
    26438       { echo "$as_me:$LINENO: CoinMP LIBS   are $COINMP_LIBS" >&5
    26439 echo "$as_me: CoinMP LIBS   are $COINMP_LIBS" >&6;}
    26440       { echo "$as_me:$LINENO: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&5
    26441 echo "$as_me: CoinMP DEPENDENCIES are $COINMP_DEPENDENCIES" >&6;}
    26442 
    26443   fi
    26444 fi
    26445 
    26446 # Define the Makefile conditional
    26447 
    26448 
    26449 if test $coin_has_xpr != notGiven &&
    26450                 test $coin_has_xpr != skipping; then
    26451   COIN_HAS_XPR_TRUE=
    26452   COIN_HAS_XPR_FALSE='#'
    26453 else
    26454   COIN_HAS_XPR_TRUE='#'
    26455   COIN_HAS_XPR_FALSE=
    26456 fi
    26457 
    26458 
    26459 
    26460 
    26461 #############################################################################
    26462 #                       Other third party software                          #
    26463 #############################################################################
    26464 
    26465 # Ampl Solver library
    26466 
    26467 echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
    26468 echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
    26469 
    26470 coin_has_asl=notGiven
    26471 
    26472 # check if user wants to skip package in any case
    26473 if test x"$COIN_SKIP_PROJECTS" != x; then
    26474   for dir in $COIN_SKIP_PROJECTS; do
    26475     if test $dir = "ASL"; then
    26476       coin_has_asl=skipping
    26477     fi
    26478   done
    26479 fi
    26480 
    26481 if test "$coin_has_asl" != skipping; then
    26482 
    26483 # Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
    26484 if test "${with_asl+set}" = set; then
    26485   withval="$with_asl"
    26486   if test "$withval" = no ; then
    26487        coin_has_asl=skipping
    26488      fi
    26489 
    26490 fi;
    26491 fi
    26492 
    26493 ASL_LIBS=
    26494 ASL_CFLAGS=
    26495 ASL_DATA=
    26496 ASL_DEPENDENCIES=
    26497 ASL_PCLIBS=
    26498 ASL_PCREQUIRES=
    26499 ASL_DATA=
    26500 
    26501 
    26502 
    26503 
    26504 
    26505 
    26506 
    26507 
    26508 
    26509 
    26510 
    26511 
    26512 
    26513 
    26514 
    26515 
    26516 
    26517 #check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    26518 if test $coin_has_asl != skipping; then
    26519 
    26520 # Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
    26521 if test "${with_asl_lib+set}" = set; then
    26522   withval="$with_asl_lib"
    26523   if test "$withval" = no ; then
    26524        coin_has_asl=skipping
    26525      else
    26526        coin_has_asl=yes
    26527        ASL_LIBS="$withval"
    26528        ASL_PCLIBS="$withval"
    26529 
    26530          COINMP_PCLIBS="$withval $COINMP_PCLIBS"
    26531          COINMP_LIBS="$withval $COINMP_LIBS"
    26532 
    26533        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    26534        if test -z "$PKG_CONFIG" ; then
    26535          ASL_LIBS_INSTALLED="$withval"
    26536          COINMP_LIBS_INSTALLED="$withval $COINMP_LIBS_INSTALLED"
    26537        fi
    26538      fi
    26539 
    26540 fi;
    26541 fi
    26542 
    26543 if test $coin_has_asl != skipping; then
    26544 
    26545 # Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
    26546 if test "${with_asl_incdir+set}" = set; then
    26547   withval="$with_asl_incdir"
    26548   if test "$withval" = no ; then
    26549        coin_has_asl=skipping
    26550      else
    26551        coin_has_asl=yes
    26552        ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
    26553        COINMP_CFLAGS="-I`${CYGPATH_W} $withval` $COINMP_CFLAGS"
    26554        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    26555        if test -z "$PKG_CONFIG" ; then
    26556          ASL_CFLAGS_INSTALLED="$ASL_CFLAGS"
    26557          COINMP_CFLAGS_INSTALLED="$ASL_CFLAGS $COINMP_CFLAGS_INSTALLED"
    26558        fi
    26559      fi
    26560 
    26561 fi;
    26562 fi
    26563 
    26564 if test $coin_has_asl != skipping; then
    26565 
    26566 # Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
    26567 if test "${with_asl_datadir+set}" = set; then
    26568   withval="$with_asl_datadir"
    26569   if test "$withval" = no ; then
    26570        coin_has_asl=skipping
    26571      else
    26572        coin_has_asl=yes
    26573        ASL_DATA="$withval"
    26574        # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
    26575        if test -z "$PKG_CONFIG" ; then
    26576          ASL_DATA_INSTALLED="$withval"
    26577        fi
    26578      fi
    26579 
    26580 fi;
    26581 fi
    26582 
    26583 if test $coin_has_asl = notGiven; then
    26584   if test -n "$PKG_CONFIG" ; then
    26585     # set search path for pkg-config
    26586     # need to export variable to be sure that the following pkg-config gets these values
    26587     coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
    26588     PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
    26589     export PKG_CONFIG_PATH
    26590 
    26591     # let pkg-config do it's magic
    26592 
    26593 
    26594 
    26595 if test -n "$PKG_CONFIG" ; then
    26596   if $PKG_CONFIG --exists "coinasl"; then
    26597     ASL_VERSIONS=`$PKG_CONFIG --modversion "coinasl" 2>/dev/null | tr '\n' ' '`
    26598      cflags=`$PKG_CONFIG --cflags "coinasl" 2>/dev/null`
    26599     # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
    26600         # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
    26601         # but only do this if is not trivial
    26602     if test "$CYGPATH_W" != "echo" ; then
    26603       # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
    26604       cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    26605     fi
    26606     ASL_CFLAGS="$cflags"
    26607     ASL_LIBS=`$PKG_CONFIG --libs "coinasl" 2>/dev/null`
    26608     ASL_DATA=`$PKG_CONFIG --variable=datadir "coinasl" 2>/dev/null`
    26609      coin_has_asl=yes
    26610         echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
    26611 echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
    26612 
    26613         # adjust linker flags for (i)cl compiler
    26614         # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
    26615         if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    26616         then
    26617           ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    26618         fi
    26619         ASL_PCREQUIRES="coinasl"
    26620 
    26621         # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinMP
    26622 
    26623           COINMP_PCREQUIRES="coinasl $COINMP_PCREQUIRES"
    26624           COINMP_CFLAGS="$ASL_CFLAGS $COINMP_CFLAGS"
    26625           COINMP_LIBS="$ASL_LIBS $COINMP_LIBS"
    26626 
    26627 
    26628 
    26629   else
    26630     ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinasl"`
    26631       coin_has_asl=notGiven
    26632         echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
    26633 echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
    26634 
    26635   fi
    26636 else
    26637   { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
    26638 echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
    26639    { (exit 1); exit 1; }; }
    26640 fi
    26641 
    26642 
    26643 
    26644 
    26645     # reset PKG_CONFIG_PATH variable
    26646     PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    26647     export PKG_CONFIG_PATH
    26648 
    26649   else
    26650     echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
    26651 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
    26652 
    26653 echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
    26654 echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
    26655 
    26656 coin_has_asl=notGiven
    26657 ASL_LIBS=
    26658 ASL_LIBS_INSTALLED=
    26659 ASL_CFLAGS=
    26660 ASL_CFLAGS_INSTALLED=
    26661 ASL_DATA=
    26662 ASL_DATA_INSTALLED=
    26663 ASL_PCLIBS=
    26664 ASL_PCREQUIRES=
    26665 
    26666 # initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x, != x)
    26667 projtoprocess="coinasl"
    26668 
    26669 # we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
    26670 # further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
    26671 # the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
    26672 # also, we setup the DATA variable
    26673 allproj=""
    26674 allpcfiles=""
    26675 allpcifiles=""
    26676 while test "x$projtoprocess" != x ; do
    26677 
    26678   for proj in $projtoprocess ; do
    26679     # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
    26680     pcfile=""
    26681     save_IFS="$IFS"
    26682     IFS=":"
    26683     for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
    26684       # 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
    26685       if test -r "$dir/${proj}-uninstalled.pc" ; then
    26686         pcfile="$dir/$proj-uninstalled.pc"
    26687         if test -r "$dir/${proj}.pc" ; then
    26688           pcifile="$dir/${proj}.pc"
    26689         else
    26690           { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
    26691 echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
    26692           pcifile=
    26693         fi
    26694         break
    26695       fi
    26696     done
    26697     IFS="$save_IFS"
    26698 
    26699     if test "x$pcfile" != x ; then
    26700       # read dependencies from $pcfile and filter it
    26701       projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
    26702 
    26703       # add projrequires to the front of the list of projects that have to be processed next
    26704       # at the same time, remove $proj from this list
    26705       projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
    26706 
    26707       # read DATA from $pcfile, if _DATA is still empty
    26708       if test "x$ASL_DATA" = x ; then
    26709         projdatadir=
    26710         pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
    26711         eval `sh -c "$pcfilemod"`
    26712         ASL_DATA="$projdatadir"
    26713       fi
    26714 
    26715       allproj="$allproj $proj"
    26716       allpcfiles="$pcfile:$allpcfiles"
    26717 
    26718     else
    26719       echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
    26720 echo "${ECHO_T}no, dependency $proj not available" >&6
    26721       allproj=fail
    26722       break 2
    26723     fi
    26724 
    26725     if test "x$pcifile" != x ; then
    26726       allpcifiles="$pcifile:$allpcifiles"
    26727 
    26728       # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
    26729       if test "x$ASL_DATA_INSTALLED" = x ; then
    26730         projdatadir=
    26731         pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
    26732         eval `sh -c "$pcifilemod"`
    26733         if test "${CYGPATH_W}" != "echo"; then
    26734           projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
    26735         fi
    26736         ASL_DATA_INSTALLED="$projdatadir"
    26737       fi
    26738 
    26739     fi
    26740 
    26741     break
    26742   done
    26743 
    26744   # remove spaces on begin of $projtoprocess
    26745   projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
    26746 
    26747 done
    26748 
    26749 if test "$allproj" != fail ; then
    26750 
    26751   # now go through the list of .pc files and assemble compiler and linker flags
    26752   # important is here to obey the reverse order that has been setup before,
    26753   # since then libraries that are required by several others should be after these other libraries
    26754   pcfilesprocessed=""
    26755 
    26756   save_IFS="$IFS"
    26757   IFS=":"
    26758   for pcfile in $allpcfiles ; do
    26759 
    26760     # if $pcfile has been processed already, skip this round
    26761     if test "x$pcfilesprocessed" != x ; then
    26762       for pcfiledone in $pcfilesprocessed ; do
    26763         if test "$pcfiledone" = "$pcfile" ; then
    26764           continue 2
    26765         fi
    26766       done
    26767     fi
    26768 
    26769     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    26770     #   replace "Libs:" by "echo projlibs="
    26771     #   replace "Cflags:" by "echo projcflags="
    26772     #   remove every line starting with <some word>:
    26773     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    26774 
    26775     # set projcflags and projlibs variables by running $pcfilemod
    26776     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    26777     projcflags=
    26778     projlibs=
    26779     IFS="$save_IFS"
    26780     eval `sh -c "$pcfilemod"`
    26781     IFS=":"
    26782 
    26783     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    26784     if test "${CYGPATH_W}" != "echo"; then
    26785       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    26786     fi
    26787     ASL_CFLAGS="$projcflags $ASL_CFLAGS"
    26788 
    26789     # set LIBS variable
    26790     ASL_LIBS="$projlibs $ASL_LIBS"
    26791 
    26792     # remember that we have processed $pcfile
    26793     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    26794 
    26795   done
    26796   IFS="$save_IFS"
    26797 
    26798 
    26799   # now go through the list of .pc files for installed projects and assemble compiler and linker flags
    26800   # important is here again to obey the reverse order that has been setup before,
    26801   # since then libraries that are required by several others should be after these other libraries
    26802   pcfilesprocessed=""
    26803 
    26804   save_IFS="$IFS"
    26805   IFS=":"
    26806   for pcfile in $allpcifiles ; do
    26807 
    26808     # if $pcfile has been processed already, skip this round
    26809     if test "x$pcfilesprocessed" != x ; then
    26810       for pcfiledone in $pcfilesprocessed ; do
    26811         if test "$pcfiledone" = "$pcfile" ; then
    26812           continue 2
    26813         fi
    26814       done
    26815     fi
    26816 
    26817     # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
    26818     #   replace "Libs:" by "echo projlibs="
    26819     #   replace "Cflags:" by "echo projcflags="
    26820     #   remove every line starting with <some word>:
    26821     pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
    26822 
    26823     # set projcflags and projlibs variables by running $pcfilemod
    26824     # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
    26825     projcflags=
    26826     projlibs=
    26827     IFS="$save_IFS"
    26828     eval `sh -c "$pcfilemod"`
    26829     IFS=":"
    26830 
    26831     # add CYGPATH_W cludge into include flags and set CFLAGS variable
    26832     if test "${CYGPATH_W}" != "echo"; then
    26833       projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
    26834     fi
    26835     ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
    26836 
    26837     # set LIBS variable
    26838     ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
    26839 
    26840     # remember that we have processed $pcfile
    26841     pcfilesprocessed="$pcfilesprocessed:$pcfile"
    26842 
    26843   done
    26844   IFS="$save_IFS"
    26845 
    26846 
    26847   # finish up
    26848   coin_has_asl=yes
    26849   echo "$as_me:$LINENO: result: yes" >&5
    26850 echo "${ECHO_T}yes" >&6
    26851 
    26852 cat >>confdefs.h <<\_ACEOF
    26853 #define COIN_HAS_ASL 1
    26854 _ACEOF
    26855 
    26856 
    26857   # adjust linker flags for (i)cl compiler
    26858   # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
    26859   # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
    26860   #    everything of the form "-lname" by "libname.lib", and
    26861   #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
    26862   if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
    26863   then
    26864     ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
    26865     ASL_LIBS_INSTALLED=`echo " $ASL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
    26866   fi
    26867 
    26868   ASL_PCREQUIRES="coinasl"
    26869 
    26870     COINMP_PCREQUIRES="coinasl $COINMP_PCREQUIRES"
    26871     COINMP_CFLAGS="$ASL_CFLAGS $COINMP_CFLAGS"
    26872     COINMP_LIBS="$ASL_LIBS $COINMP_LIBS"
    26873     COINMP_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $COINMP_CFLAGS_INSTALLED"
    26874     COINMP_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $COINMP_LIBS_INSTALLED"
    26875 
    26876 
    26877 fi
    26878 
    26879 
    26880 
    26881 if test $coin_has_asl != notGiven &&
    26882                 test $coin_has_asl != skipping; then
    26883   COIN_HAS_ASL_TRUE=
    26884   COIN_HAS_ASL_FALSE='#'
    26885 else
    26886   COIN_HAS_ASL_TRUE='#'
    26887   COIN_HAS_ASL_FALSE=
    26888 fi
    26889 
    26890 
    26891 
    26892   fi
    26893 
    26894 else
    26895   echo "$as_me:$LINENO: result: $coin_has_asl" >&5
    26896 echo "${ECHO_T}$coin_has_asl" >&6
    26897 fi
    26898 
    26899 if test $coin_has_asl != skipping &&
    26900    test $coin_has_asl != notGiven ; then
    26901 
    26902 cat >>confdefs.h <<\_ACEOF
    26903 #define COIN_HAS_ASL 1
    26904 _ACEOF
    26905 
    26906 
    26907   # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
    26908 if test "${enable_interpackage_dependencies+set}" = set; then
    26909   enableval="$enable_interpackage_dependencies"
    26910 
    26911 else
    26912   enable_interpackage_dependencies=yes
    26913 fi;
    26914