Changeset 478


Ignore:
Timestamp:
Jan 8, 2011 6:10:13 PM (9 years ago)
Author:
stefan
Message:

first round on updating to new build system: seem to compile against installed version of Bonmin/trunk and test works

Location:
branches/split
Files:
8 added
48 edited

Legend:

Unmodified
Added
Removed
  • branches/split

    • Property svn:externals
      •  

        old new  
        1 BuildTools  https://projects.coin-or.org/svn/BuildTools/releases/0.5.30
        2 CoinUtils  https://projects.coin-or.org/svn/CoinUtils/releases/2.6.4/CoinUtils
        3 ThirdParty/ASL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/releases/1.0.17
        4 ThirdParty/Blas  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/releases/1.0.14
        5 ThirdParty/HSL  https://projects.coin-or.org/svn/BuildTools/ThirdParty/HSL/releases/1.1.4
        6 ThirdParty/Lapack  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/releases/1.0.21
        7 ThirdParty/Mumps  https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/releases/1.1.8
        8 Cbc  https://projects.coin-or.org/svn/Cbc/releases/2.4.2/Cbc
        9 Cgl  https://projects.coin-or.org/svn/Cgl/releases/0.55.0/Cgl
        10 Clp  https://projects.coin-or.org/svn/Clp/releases/1.11.1/Clp
        11 Osi  https://projects.coin-or.org/svn/Osi/releases/0.102.3/Osi
        12 Ipopt  https://projects.coin-or.org/svn/Ipopt/releases/3.8.3/Ipopt
        13 Bonmin  https://projects.coin-or.org/svn/Bonmin/releases/1.4.1/Bonmin
         1BuildTools     https://projects.coin-or.org/svn/BuildTools/stable/0.7
         2CoinUtils      https://projects.coin-or.org/svn/CoinUtils/stable/2.8/CoinUtils
         3ThirdParty/ASL https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.2
         4ThirdParty/Blas https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.2
         5ThirdParty/HSL https://projects.coin-or.org/svn/BuildTools/ThirdParty/HSL/stable/1.3
         6ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.3
         7ThirdParty/Mumps https://projects.coin-or.org/svn/BuildTools/ThirdParty/Mumps/stable/1.4
         8Cbc            https://projects.coin-or.org/svn/Cbc/stable/2.7/Cbc
         9Cgl            https://projects.coin-or.org/svn/Cgl/stable/0.57/Cgl
         10Clp            https://projects.coin-or.org/svn/Clp/stable/1.14/Clp
         11Osi            https://projects.coin-or.org/svn/Osi/stable/0.105/Osi
         12Ipopt          https://projects.coin-or.org/svn/Ipopt/stable/3.9/Ipopt
         13Bonmin         https://projects.coin-or.org/svn/Bonmin/trunk/Bonmin
  • branches/split/Couenne/Makefile.am

    r393 r478  
    1313########################################################################
    1414
    15 SUBDIRS = \
    16           src/util \
     15SUBDIRS = src/util \
    1716          src/expression
    1817
     
    6766        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    6867
     68install-exec-local: install-doc
     69
     70uninstall-local: uninstall-doc
     71
    6972.PHONY: test unitTest
    7073
     
    7376########################################################################
    7477
    75 addlibsfile = couenne_addlibs.txt
    76 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     78pkgconfiglibdir = $(libdir)/pkgconfig
     79pkgconfiglib_DATA = couenne.pc
    7780
    78 install-exec-local: install-doc
    79         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     81addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Couenne
    8082
    81 uninstall-local: uninstall-doc
    82         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     83install-data-hook:
     84        @$(mkdir_p) "$(addlibsdir)"
     85if COIN_HAS_PKGCONFIG
     86        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
     87        $(PKG_CONFIG) --libs couenne > $(addlibsdir)/couenne_addlibs.txt
     88else
     89if COIN_CXX_IS_CL
     90        echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCouenne.lib @COUENNELIB_LIBS_INSTALLED@" > $(addlibsdir)/couenne_addlibs_cpp.txt
     91else
     92        echo -L@abs_lib_dir@ -lCouenne @COUENNELIB_LIBS_INSTALLED@ > $(addlibsdir)/couenne_addlibs.txt
     93endif
     94endif
     95
     96uninstall-hook:
     97        rm -f $(addlibsdir)/couenne_addlibs.txt
    8398
    8499########################################################################
     
    89104DISTCLEANFILES =
    90105
    91 include ../BuildTools/Makemain.inc
     106include BuildTools/Makemain.inc
  • branches/split/Couenne/Makefile.in

    r393 r478  
    2323# Copyright (C) 2006, 2007 International Business Machines and others.
    2424# All Rights Reserved.
    25 # This file is distributed under the Common Public License.
     25# This file is distributed under the Eclipse Public License.
    2626
    2727# Author:  Andreas Waechter           IBM    2006-04-13
     
    3030#                    Documentation installation                        #
    3131########################################################################
     32
    3233srcdir = @srcdir@
    3334top_srcdir = @top_srcdir@
     
    5960@ALWAYS_FALSE@am__append_2 = test
    6061DIST_COMMON = README $(am__configure_deps) \
    61         $(srcdir)/../BuildTools/Makemain.inc $(srcdir)/../config.guess \
    62         $(srcdir)/../config.sub $(srcdir)/../install-sh \
    63         $(srcdir)/../ltmain.sh $(srcdir)/../missing \
    64         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    65         $(srcdir)/couenne_addlibs.txt.in $(top_srcdir)/configure \
    66         $(top_srcdir)/inc/config_couenne.h.in AUTHORS
     62        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     63        $(srcdir)/Makefile.in $(srcdir)/couenne-uninstalled.pc.in \
     64        $(srcdir)/couenne.pc.in $(top_srcdir)/configure \
     65        $(top_srcdir)/inc/config_couenne.h.in AUTHORS config.guess \
     66        config.sub depcomp install-sh ltmain.sh missing
    6767@HAVE_EXTERNALS_TRUE@am__append_3 = Externals
    6868@HAVE_EXTERNALS_TRUE@am__append_4 = .Externals-stamp
     
    7777mkinstalldirs = $(install_sh) -d
    7878CONFIG_HEADER = $(top_builddir)/inc/config_couenne.h
    79 CONFIG_CLEAN_FILES = couenne_addlibs.txt
     79CONFIG_CLEAN_FILES = couenne.pc couenne-uninstalled.pc
    8080SOURCES =
    8181DIST_SOURCES =
     
    8686        pdf-recursive ps-recursive uninstall-info-recursive \
    8787        uninstall-recursive
     88am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     89am__vpath_adj = case $$p in \
     90    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     91    *) f=$$p;; \
     92  esac;
     93am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     94am__installdirs = "$(DESTDIR)$(pkgconfiglibdir)"
     95pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     96DATA = $(pkgconfiglib_DATA)
    8897ETAGS = etags
    8998CTAGS = ctags
     
    104113distuninstallcheck_listfiles = find . -type f -print
    105114distcleancheck_listfiles = find . -type f -print
     115ABSBUILDDIR = @ABSBUILDDIR@
    106116ACLOCAL = @ACLOCAL@
    107 ADDLIBS = @ADDLIBS@
    108117ADD_CFLAGS = @ADD_CFLAGS@
    109118ADD_CXXFLAGS = @ADD_CXXFLAGS@
     
    114123AMTAR = @AMTAR@
    115124AR = @AR@
    116 ASLLIB = @ASLLIB@
    117 ASL_CPPFLAGS = @ASL_CPPFLAGS@
     125ASL_CFLAGS = @ASL_CFLAGS@
     126ASL_CFLAGS_INSTALLED = @ASL_CFLAGS_INSTALLED@
     127ASL_DATA = @ASL_DATA@
     128ASL_DATA_INSTALLED = @ASL_DATA_INSTALLED@
     129ASL_DEPENDENCIES = @ASL_DEPENDENCIES@
     130ASL_LIBS = @ASL_LIBS@
     131ASL_LIBS_INSTALLED = @ASL_LIBS_INSTALLED@
    118132AUTOCONF = @AUTOCONF@
    119133AUTOHEADER = @AUTOHEADER@
     
    121135AUX_DIR = @AUX_DIR@
    122136AWK = @AWK@
    123 BONMINDOCDIR = @BONMINDOCDIR@
    124 BONMINOBJDIR = @BONMINOBJDIR@
    125 BONMINSRCDIR = @BONMINSRCDIR@
     137BONMIN_CFLAGS = @BONMIN_CFLAGS@
     138BONMIN_CFLAGS_INSTALLED = @BONMIN_CFLAGS_INSTALLED@
     139BONMIN_DATA = @BONMIN_DATA@
     140BONMIN_DATA_INSTALLED = @BONMIN_DATA_INSTALLED@
     141BONMIN_DEPENDENCIES = @BONMIN_DEPENDENCIES@
     142BONMIN_LIBS = @BONMIN_LIBS@
     143BONMIN_LIBS_INSTALLED = @BONMIN_LIBS_INSTALLED@
    126144BUILDTOOLSDIR = @BUILDTOOLSDIR@
    127 CBCDOCDIR = @CBCDOCDIR@
    128 CBCOBJDIR = @CBCOBJDIR@
    129 CBCSRCDIR = @CBCSRCDIR@
    130145CC = @CC@
    131146CCDEPMODE = @CCDEPMODE@
    132147CDEFS = @CDEFS@
    133148CFLAGS = @CFLAGS@
    134 CGLDOCDIR = @CGLDOCDIR@
    135 CGLOBJDIR = @CGLOBJDIR@
    136 CGLSRCDIR = @CGLSRCDIR@
    137 CLPDOCDIR = @CLPDOCDIR@
    138 CLPOBJDIR = @CLPOBJDIR@
    139 CLPSRCDIR = @CLPSRCDIR@
    140 COINUTILSDOCDIR = @COINUTILSDOCDIR@
    141 COINUTILSOBJDIR = @COINUTILSOBJDIR@
    142 COINUTILSSRCDIR = @COINUTILSSRCDIR@
     149COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@
     150COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@
     151COIN_CXX_IS_CL_FALSE = @COIN_CXX_IS_CL_FALSE@
     152COIN_CXX_IS_CL_TRUE = @COIN_CXX_IS_CL_TRUE@
    143153COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    144154COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
    145155COIN_HAS_BONMIN_FALSE = @COIN_HAS_BONMIN_FALSE@
    146156COIN_HAS_BONMIN_TRUE = @COIN_HAS_BONMIN_TRUE@
    147 COIN_HAS_CBC_FALSE = @COIN_HAS_CBC_FALSE@
    148 COIN_HAS_CBC_TRUE = @COIN_HAS_CBC_TRUE@
    149 COIN_HAS_CGL_FALSE = @COIN_HAS_CGL_FALSE@
    150 COIN_HAS_CGL_TRUE = @COIN_HAS_CGL_TRUE@
    151 COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    152 COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    153 COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    154 COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
    155 COIN_HAS_COUENNE_FALSE = @COIN_HAS_COUENNE_FALSE@
    156 COIN_HAS_COUENNE_TRUE = @COIN_HAS_COUENNE_TRUE@
    157157COIN_HAS_CPX_FALSE = @COIN_HAS_CPX_FALSE@
    158158COIN_HAS_CPX_TRUE = @COIN_HAS_CPX_TRUE@
    159159COIN_HAS_GRB_FALSE = @COIN_HAS_GRB_FALSE@
    160160COIN_HAS_GRB_TRUE = @COIN_HAS_GRB_TRUE@
    161 COIN_HAS_IPOPT_FALSE = @COIN_HAS_IPOPT_FALSE@
    162 COIN_HAS_IPOPT_TRUE = @COIN_HAS_IPOPT_TRUE@
    163161COIN_HAS_MSK_FALSE = @COIN_HAS_MSK_FALSE@
    164162COIN_HAS_MSK_TRUE = @COIN_HAS_MSK_TRUE@
    165163COIN_HAS_NTY_FALSE = @COIN_HAS_NTY_FALSE@
    166164COIN_HAS_NTY_TRUE = @COIN_HAS_NTY_TRUE@
    167 COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    168 COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
    169 COIN_HAS_OSL_FALSE = @COIN_HAS_OSL_FALSE@
    170 COIN_HAS_OSL_TRUE = @COIN_HAS_OSL_TRUE@
     165COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     166COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
    171167COIN_HAS_SPX_FALSE = @COIN_HAS_SPX_FALSE@
    172168COIN_HAS_SPX_TRUE = @COIN_HAS_SPX_TRUE@
    173 COIN_HAS_THIRDPARTY_FALSE = @COIN_HAS_THIRDPARTY_FALSE@
    174 COIN_HAS_THIRDPARTY_TRUE = @COIN_HAS_THIRDPARTY_TRUE@
    175169COIN_HAS_XPR_FALSE = @COIN_HAS_XPR_FALSE@
    176170COIN_HAS_XPR_TRUE = @COIN_HAS_XPR_TRUE@
    177 COUENNEDOCDIR = @COUENNEDOCDIR@
    178 COUENNEOBJDIR = @COUENNEOBJDIR@
    179 COUENNESRCDIR = @COUENNESRCDIR@
     171COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
     172COIN_PKG_CONFIG_PATH_UNINSTALLED = @COIN_PKG_CONFIG_PATH_UNINSTALLED@
     173COUENNELIB_CFLAGS = @COUENNELIB_CFLAGS@
     174COUENNELIB_CFLAGS_INSTALLED = @COUENNELIB_CFLAGS_INSTALLED@
     175COUENNELIB_DEPENDENCIES = @COUENNELIB_DEPENDENCIES@
     176COUENNELIB_LIBS = @COUENNELIB_LIBS@
     177COUENNELIB_LIBS_INSTALLED = @COUENNELIB_LIBS_INSTALLED@
     178COUENNELIB_PCLIBS = @COUENNELIB_PCLIBS@
     179COUENNELIB_PCREQUIRES = @COUENNELIB_PCREQUIRES@
     180COUENNE_SVN_REV = @COUENNE_SVN_REV@
    180181CPP = @CPP@
    181182CPPFLAGS = @CPPFLAGS@
    182 CPXINCDIR = @CPXINCDIR@
    183 CPXLIB = @CPXLIB@
     183CPX_CFLAGS = @CPX_CFLAGS@
     184CPX_CFLAGS_INSTALLED = @CPX_CFLAGS_INSTALLED@
     185CPX_DATA = @CPX_DATA@
     186CPX_DATA_INSTALLED = @CPX_DATA_INSTALLED@
     187CPX_DEPENDENCIES = @CPX_DEPENDENCIES@
     188CPX_LIBS = @CPX_LIBS@
     189CPX_LIBS_INSTALLED = @CPX_LIBS_INSTALLED@
    184190CXX = @CXX@
    185191CXXCPP = @CXXCPP@
     
    199205EXEEXT = @EXEEXT@
    200206F77 = @F77@
    201 FADDLIBS = @FADDLIBS@
    202207FFLAGS = @FFLAGS@
    203 GRBINCDIR = @GRBINCDIR@
    204 GRBLIB = @GRBLIB@
     208GRB_CFLAGS = @GRB_CFLAGS@
     209GRB_CFLAGS_INSTALLED = @GRB_CFLAGS_INSTALLED@
     210GRB_DATA = @GRB_DATA@
     211GRB_DATA_INSTALLED = @GRB_DATA_INSTALLED@
     212GRB_DEPENDENCIES = @GRB_DEPENDENCIES@
     213GRB_LIBS = @GRB_LIBS@
     214GRB_LIBS_INSTALLED = @GRB_LIBS_INSTALLED@
    205215HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    206216HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    209219INSTALL_SCRIPT = @INSTALL_SCRIPT@
    210220INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    211 IPOPTDOCDIR = @IPOPTDOCDIR@
    212 IPOPTOBJDIR = @IPOPTOBJDIR@
    213 IPOPTSRCDIR = @IPOPTSRCDIR@
    214221LDFLAGS = @LDFLAGS@
    215222LIBEXT = @LIBEXT@
     
    227234MPICC = @MPICC@
    228235MPICXX = @MPICXX@
    229 MSKINCDIR = @MSKINCDIR@
    230 MSKLIB = @MSKLIB@
     236MSK_CFLAGS = @MSK_CFLAGS@
     237MSK_CFLAGS_INSTALLED = @MSK_CFLAGS_INSTALLED@
     238MSK_DATA = @MSK_DATA@
     239MSK_DATA_INSTALLED = @MSK_DATA_INSTALLED@
     240MSK_DEPENDENCIES = @MSK_DEPENDENCIES@
     241MSK_LIBS = @MSK_LIBS@
     242MSK_LIBS_INSTALLED = @MSK_LIBS_INSTALLED@
    231243NTYINCDIR = @NTYINCDIR@
    232244NTYLIB = @NTYLIB@
     
    234246OPT_CFLAGS = @OPT_CFLAGS@
    235247OPT_CXXFLAGS = @OPT_CXXFLAGS@
    236 OSIDOCDIR = @OSIDOCDIR@
    237 OSIOBJDIR = @OSIOBJDIR@
    238 OSISRCDIR = @OSISRCDIR@
    239 OSLINCDIR = @OSLINCDIR@
    240 OSLLIB = @OSLLIB@
    241248PACKAGE = @PACKAGE@
    242249PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    246253PACKAGE_VERSION = @PACKAGE_VERSION@
    247254PATH_SEPARATOR = @PATH_SEPARATOR@
     255PKG_CONFIG = @PKG_CONFIG@
    248256RANLIB = @RANLIB@
    249257RPATH_FLAGS = @RPATH_FLAGS@
    250258SET_MAKE = @SET_MAKE@
    251259SHELL = @SHELL@
    252 SPXINCDIR = @SPXINCDIR@
    253 SPXLIB = @SPXLIB@
     260SPX_CFLAGS = @SPX_CFLAGS@
     261SPX_CFLAGS_INSTALLED = @SPX_CFLAGS_INSTALLED@
     262SPX_DATA = @SPX_DATA@
     263SPX_DATA_INSTALLED = @SPX_DATA_INSTALLED@
     264SPX_DEPENDENCIES = @SPX_DEPENDENCIES@
     265SPX_LIBS = @SPX_LIBS@
     266SPX_LIBS_INSTALLED = @SPX_LIBS_INSTALLED@
    254267STRIP = @STRIP@
    255 THIRDPARTYDOCDIR = @THIRDPARTYDOCDIR@
    256 THIRDPARTYOBJDIR = @THIRDPARTYOBJDIR@
    257 THIRDPARTYSRCDIR = @THIRDPARTYSRCDIR@
    258268VERSION = @VERSION@
    259269VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
    260 XPRINCDIR = @XPRINCDIR@
    261 XPRLIB = @XPRLIB@
     270XPR_CFLAGS = @XPR_CFLAGS@
     271XPR_CFLAGS_INSTALLED = @XPR_CFLAGS_INSTALLED@
     272XPR_DATA = @XPR_DATA@
     273XPR_DATA_INSTALLED = @XPR_DATA_INSTALLED@
     274XPR_DEPENDENCIES = @XPR_DEPENDENCIES@
     275XPR_LIBS = @XPR_LIBS@
     276XPR_LIBS_INSTALLED = @XPR_LIBS_INSTALLED@
    262277abs_bin_dir = @abs_bin_dir@
    263278abs_include_dir = @abs_include_dir@
     
    272287ac_ct_STRIP = @ac_ct_STRIP@
    273288ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     289ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    274290am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    275291am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    292308have_automake = @have_automake@
    293309have_svn = @have_svn@
     310have_svnversion = @have_svnversion@
    294311host = @host@
    295312host_alias = @host_alias@
     
    334351#                  Installation of the addlibs file                    #
    335352########################################################################
    336 addlibsfile = couenne_addlibs.txt
    337 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     353pkgconfiglibdir = $(libdir)/pkgconfig
     354pkgconfiglib_DATA = couenne.pc
     355addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Couenne
    338356
    339357########################################################################
     
    344362DISTCLEANFILES = $(am__append_4) $(VPATH_DISTCLEANFILES)
    345363DocFiles = README AUTHORS LICENSE
    346 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     364DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    347365all: all-recursive
    348366
     
    350368am--refresh:
    351369        @:
    352 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../BuildTools/Makemain.inc $(am__configure_deps)
     370$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/BuildTools/Makemain.inc $(am__configure_deps)
    353371        @for dep in $?; do \
    354372          case '$(am__configure_deps)' in \
     
    398416distclean-hdr:
    399417        -rm -f inc/config_couenne.h inc/stamp-h1
    400 couenne_addlibs.txt: $(top_builddir)/config.status $(srcdir)/couenne_addlibs.txt.in
     418couenne.pc: $(top_builddir)/config.status $(srcdir)/couenne.pc.in
     419        cd $(top_builddir) && $(SHELL) ./config.status $@
     420couenne-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/couenne-uninstalled.pc.in
    401421        cd $(top_builddir) && $(SHELL) ./config.status $@
    402422
     
    410430        -rm -f libtool
    411431uninstall-info-am:
     432install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     433        @$(NORMAL_INSTALL)
     434        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     435        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     436          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     437          f=$(am__strip_dir) \
     438          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     439          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     440        done
     441
     442uninstall-pkgconfiglibDATA:
     443        @$(NORMAL_UNINSTALL)
     444        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     445          f=$(am__strip_dir) \
     446          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     447          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     448        done
    412449
    413450# This directory's subdirectories are mostly independent; you can cd
     
    546583        $(am__remove_distdir)
    547584        mkdir $(distdir)
    548         $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../BuildTools $(distdir)/inc $(distdir)/test
     585        $(mkdir_p) $(distdir)/. $(distdir)/BuildTools $(distdir)/inc $(distdir)/test
    549586        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    550587        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    687724check-am: all-am
    688725check: check-recursive
    689 all-am: Makefile
     726all-am: Makefile $(DATA)
    690727installdirs: installdirs-recursive
    691728installdirs-am:
     729        for dir in "$(DESTDIR)$(pkgconfiglibdir)"; do \
     730          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     731        done
    692732install: install-recursive
    693733install-exec: install-exec-recursive
     
    735775info-am:
    736776
    737 install-data-am:
     777install-data-am: install-pkgconfiglibDATA
     778        @$(NORMAL_INSTALL)
     779        $(MAKE) $(AM_MAKEFLAGS) install-data-hook
    738780
    739781install-exec-am: install-exec-local
     
    763805ps-am:
    764806
    765 uninstall-am: uninstall-info-am uninstall-local
     807uninstall-am: uninstall-info-am uninstall-local \
     808        uninstall-pkgconfiglibDATA
     809        @$(NORMAL_INSTALL)
     810        $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
    766811
    767812uninstall-info: uninstall-info-recursive
     
    775820        distcleancheck distdir distuninstallcheck dvi dvi-am html \
    776821        html-am info info-am install install-am install-data \
    777         install-data-am install-exec install-exec-am \
     822        install-data-am install-data-hook install-exec install-exec-am \
    778823        install-exec-local install-info install-info-am install-man \
    779         install-strip installcheck installcheck-am installdirs \
    780         installdirs-am maintainer-clean maintainer-clean-generic \
    781         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    782         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    783         tags tags-recursive uninstall uninstall-am uninstall-info-am \
    784         uninstall-local
     824        install-pkgconfiglibDATA install-strip installcheck \
     825        installcheck-am installdirs installdirs-am maintainer-clean \
     826        maintainer-clean-generic maintainer-clean-recursive \
     827        mostlyclean mostlyclean-generic mostlyclean-libtool \
     828        mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
     829        uninstall uninstall-am uninstall-hook uninstall-info-am \
     830        uninstall-local uninstall-pkgconfiglibDATA
    785831
    786832
     
    800846        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    801847
     848install-exec-local: install-doc
     849
     850uninstall-local: uninstall-doc
     851
    802852.PHONY: test unitTest
    803853
    804 install-exec-local: install-doc
    805         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    806 
    807 uninstall-local: uninstall-doc
    808         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     854install-data-hook:
     855        @$(mkdir_p) "$(addlibsdir)"
     856@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
     857@COIN_HAS_PKGCONFIG_TRUE@       $(PKG_CONFIG) --libs couenne > $(addlibsdir)/couenne_addlibs.txt
     858@COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCouenne.lib @COUENNELIB_LIBS_INSTALLED@" > $(addlibsdir)/couenne_addlibs_cpp.txt
     859@COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@        echo -L@abs_lib_dir@ -lCouenne @COUENNELIB_LIBS_INSTALLED@ > $(addlibsdir)/couenne_addlibs.txt
     860
     861uninstall-hook:
     862        rm -f $(addlibsdir)/couenne_addlibs.txt
    809863
    810864install-doc: $(DocFiles)
  • branches/split/Couenne/configure

    r400 r478  
    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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES 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 COUENNE_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BONMIN_LIBS BONMIN_CFLAGS BONMIN_DATA BONMIN_DEPENDENCIES BONMIN_LIBS_INSTALLED BONMIN_CFLAGS_INSTALLED BONMIN_DATA_INSTALLED COUENNELIB_CFLAGS COUENNELIB_LIBS COUENNELIB_PCLIBS COUENNELIB_PCREQUIRES COUENNELIB_DEPENDENCIES COUENNELIB_CFLAGS_INSTALLED COUENNELIB_LIBS_INSTALLED COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_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 NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_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 GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    994994ac_cv_env_FFLAGS_set=${FFLAGS+set}
    995995ac_cv_env_FFLAGS_value=$FFLAGS
     996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     997ac_env_PKG_CONFIG_value=$PKG_CONFIG
     998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    9961000
    9971001#
     
    10931097                          optimize for fast installation [default=yes]
    10941098  --disable-libtool-lock  avoid locking (might break parallel builds)
     1099  --enable-pkg-config     use pkg-config if available (default is yes)
     1100  --enable-interpackage-dependencies
     1101                          whether to deduce Makefile dependencies from package
     1102                          linker flags (default: yes)
    10951103  --enable-nauty-libcheck use disable-nauty-libcheck to skip the
    1096                           link check at configuration time
    1097   --enable-cplex-libcheck use disable-cplex-libcheck to skip the
    1098                           link check at configuration time
    1099   --enable-gurobi-libcheck
    1100                           use disable-gurobi-libcheck to skip the
    1101                           link check at configuration time
    1102   --enable-mosek-libcheck use disable-mosek-libcheck to skip the
    1103                           link check at configuration time
    1104   --enable-osl-libcheck use disable-osl-libcheck to skip the link
    1105                           check at configuration time
    1106   --enable-soplex-libcheck
    1107                           use disable-soplex-libcheck to skip the
    1108                           link check at configuration time
    1109   --enable-xpress-libcheck
    1110                           use disable-xpress-libcheck to skip the
    11111104                          link check at configuration time
    11121105
     
    11241117  --with-tags[=TAGS]
    11251118                          include additional configurations [automatic]
    1126   --with-asldir           specify path to AMPL solver directory (or BUILD for
    1127                           compilation, or "no" for disabling AMPL)
     1119  --with-coin-instdir     prefix of installation directory for precompiled
     1120                          COIN packages
     1121  --with-bonmin-lib linker flags for using package Bonmin
     1122  --with-bonmin-incdir directory with header files for using package Bonmin
     1123  --with-bonmin-datadir directory with data files for using package Bonmin
     1124  --with-asl-lib linker flags for using package ASL
     1125  --with-asl-incdir directory with header files for using package ASL
     1126  --with-asl-datadir directory with data files for using package ASL
    11281127  --with-nauty-incdir specify the header file directory for library Nauty
    11291128  --with-nauty-lib specify the flags used to link with the library Nauty
    1130   --with-cplex-incdir specify the header file directory for library Cplex
    1131   --with-cplex-lib specify the flags used to link with the library Cplex
    1132   --with-gurobi-incdir specify the header file directory for library Gurobi
    1133   --with-gurobi-lib specify the flags used to link with the library Gurobi
    1134   --with-mosek-incdir specify the header file directory for library Mosek
    1135   --with-mosek-lib specify the flags used to link with the library Mosek
    1136   --with-osl-incdir specify the header file directory for library Osl
    1137   --with-osl-lib specify the flags used to link with the library Osl
    1138   --with-soplex-incdir specify the header file directory for library Soplex
    1139   --with-soplex-lib specify the flags used to link with the library Soplex
    1140   --with-xpress-incdir specify the header file directory for library Xpress
    1141   --with-xpress-lib specify the flags used to link with the library Xpress
     1129  --with-cpx-lib linker flags for using package Cpx
     1130  --with-cpx-incdir directory with header files for using package Cpx
     1131  --with-cpx-datadir directory with data files for using package Cpx
     1132  cplex-incdir            specify the header file directory for library cplex
     1133  --with-grb-lib linker flags for using package Grb
     1134  --with-grb-incdir directory with header files for using package Grb
     1135  --with-grb-datadir directory with data files for using package Grb
     1136  --with-msk-lib linker flags for using package Msk
     1137  --with-msk-incdir directory with header files for using package Msk
     1138  --with-msk-datadir directory with data files for using package Msk
     1139  --with-spx-lib linker flags for using package Spx
     1140  --with-spx-incdir directory with header files for using package Spx
     1141  --with-spx-datadir directory with data files for using package Spx
     1142  --with-xpr-lib linker flags for using package Xpr
     1143  --with-xpr-incdir directory with header files for using package Xpr
     1144  --with-xpr-datadir directory with data files for using package Xpr
    11421145
    11431146Some influential environment variables:
     
    11671170  F77         Fortran 77 compiler command
    11681171  FFLAGS      Fortran 77 compiler flags
     1172  PKG_CONFIG  path to pkg-config utility
    11691173
    11701174Use these variables to override the choices made by `configure' or to help
     
    17001704
    17011705# Initialization specifically for project main directories
    1702 # Initialize the ADDLIBS variable
    1703 ADDLIBS="-lm $LIBS"
    1704 
    17051706
    17061707# As backup, we make sure we don't loose an FLIBS if it has been set
     
    17081709save_FLIBS="$FLIBS"
    17091710
    1710 # Initialize the FADDLIBS variable (which is to be used with a fortran
    1711 # compiler and will not include FLIBS)
    1712 FADDLIBS="$LIBS"
    1713 
    1714 
    17151711# A useful makefile conditional that is always false
    17161712
     
    17291725coin_projectdir=yes
    17301726
    1731 # Set the project's version number. Use m4_ifval here to avoid defining
    1732 # _VERSION when the user has not supplied a parameter.
     1727# Set the project's version number
     1728if test "xCouenne" != x; then
     1729
     1730cat >>confdefs.h <<_ACEOF
     1731#define COUENNE_VERSION "$PACKAGE_VERSION"
     1732_ACEOF
     1733
     1734fi
     1735
     1736# Set the project's SVN revision number. The complicated sed expression
     1737# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
     1738# as a single number.
     1739# Extract the first word of "svnversion", so it can be a program name with args.
     1740set dummy svnversion; ac_word=$2
     1741echo "$as_me:$LINENO: checking for $ac_word" >&5
     1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1743if test "${ac_cv_prog_have_svnversion+set}" = set; then
     1744  echo $ECHO_N "(cached) $ECHO_C" >&6
     1745else
     1746  if test -n "$have_svnversion"; then
     1747  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
     1748else
     1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1750for as_dir in $PATH
     1751do
     1752  IFS=$as_save_IFS
     1753  test -z "$as_dir" && as_dir=.
     1754  for ac_exec_ext in '' $ac_executable_extensions; do
     1755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1756    ac_cv_prog_have_svnversion="yes"
     1757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1758    break 2
     1759  fi
     1760done
     1761done
     1762
     1763  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
     1764fi
     1765fi
     1766have_svnversion=$ac_cv_prog_have_svnversion
     1767if test -n "$have_svnversion"; then
     1768  echo "$as_me:$LINENO: result: $have_svnversion" >&5
     1769echo "${ECHO_T}$have_svnversion" >&6
     1770else
     1771  echo "$as_me:$LINENO: result: no" >&5
     1772echo "${ECHO_T}no" >&6
     1773fi
     1774
     1775if test "x$have_svnversion" = xyes && test "xCouenne" != x; then
     1776
     1777  svn_rev_tmp=`cd $srcdir/$coin_has_couenne ; svnversion`
     1778  COUENNE_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
     1779  if test $COUENNE_SVN_REV != exported; then
     1780
     1781cat >>confdefs.h <<_ACEOF
     1782#define COUENNE_SVN_REV $COUENNE_SVN_REV
     1783_ACEOF
     1784
     1785  fi
     1786fi
     1787
     1788# Capture libtool library version, if given.
    17331789
    17341790
     
    19041960  esac
    19051961fi
     1962
     1963# add automake conditional so we can recognize cl compiler in makefile
     1964coin_cc_is_cl=false
     1965if test x"$CXX" != x; then
     1966  case "$CXX" in
     1967    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     1968      coin_cc_is_cl=true
     1969      ;;
     1970  esac
     1971fi
     1972
     1973
     1974if test $coin_cc_is_cl = true; then
     1975  COIN_CC_IS_CL_TRUE=
     1976  COIN_CC_IS_CL_FALSE='#'
     1977else
     1978  COIN_CC_IS_CL_TRUE='#'
     1979  COIN_CC_IS_CL_FALSE=
     1980fi
     1981
    19061982
    19071983
     
    19852061             fi
    19862062             ;;
     2063  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
    19872064  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    19882065  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    27422819        ;;
    27432820      *)
    2744         coin_opt_cflags="-O3 -fomit-frame-pointer"
     2821        coin_opt_cflags="-O3"
    27452822        coin_add_cflags="-pipe"
    27462823        coin_dbg_cflags="-g"
     
    31243201fi
    31253202
    3126 # Correct ADDLIBS initialization if we are using the MS compiler
     3203# Correct the LD variable if we are using the MS or Intel-windows compiler
    31273204case "$CC" in
    31283205  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    3129     ADDLIBS=
    31303206    case $build in
    31313207  *-mingw*)
     
    31823258             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    31833259  *-darwin*) comps="g++ c++ CC" ;;
     3260  *-linux-gnu*)
     3261             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
    31843262          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    31853263esac
     
    36133691
    36143692
     3693coin_cxx_is_cl=false
    36153694# It seems that we need to cleanup something here for the Windows
    36163695case "$CXX" in
     
    36183697    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
    36193698    mv confdefs.hh confdefs.h
     3699    coin_cxx_is_cl=true
    36203700    ;;
    36213701esac
     3702
     3703# add automake conditional so we can recognize cl compiler in makefile
     3704
     3705
     3706if test $coin_cxx_is_cl = true; then
     3707  COIN_CXX_IS_CL_TRUE=
     3708  COIN_CXX_IS_CL_FALSE='#'
     3709else
     3710  COIN_CXX_IS_CL_TRUE='#'
     3711  COIN_CXX_IS_CL_FALSE=
     3712fi
     3713
    36223714
    36233715# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     
    36543746      *)
    36553747# ToDo decide about unroll-loops
    3656         coin_opt_cxxflags="-O3 -fomit-frame-pointer"
     3748        coin_opt_cxxflags="-O3"
    36573749        coin_add_cxxflags="-pipe"
    36583750        coin_dbg_cxxflags="-g"
     
    40484140fi
    40494141
     4142# correct the LD variable in a mingw build with MS or intel compiler
    40504143case "$CXX" in
    4051   cl* | */cl* | CL* | */CL* )
     4144  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    40524145    case $build in
    40534146  *-mingw*)
     
    40994192  esac
    41004193fi
     4194
     4195# add automake conditional so we can recognize cl compiler in makefile
     4196coin_cc_is_cl=false
     4197if test x"$CXX" != x; then
     4198  case "$CXX" in
     4199    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     4200      coin_cc_is_cl=true
     4201      ;;
     4202  esac
     4203fi
     4204
     4205
     4206if test $coin_cc_is_cl = true; then
     4207  COIN_CC_IS_CL_TRUE=
     4208  COIN_CC_IS_CL_FALSE='#'
     4209else
     4210  COIN_CC_IS_CL_TRUE='#'
     4211  COIN_CC_IS_CL_FALSE=
     4212fi
     4213
    41014214
    41024215
     
    41804293             fi
    41814294             ;;
     4295  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
    41824296  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    41834297  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    47364850        ;;
    47374851      *)
    4738         coin_opt_cflags="-O3 -fomit-frame-pointer"
     4852        coin_opt_cflags="-O3"
    47394853        coin_add_cflags="-pipe"
    47404854        coin_dbg_cflags="-g"
     
    51185232fi
    51195233
    5120 # Correct ADDLIBS initialization if we are using the MS compiler
     5234# Correct the LD variable if we are using the MS or Intel-windows compiler
    51215235case "$CC" in
    51225236  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    5123     ADDLIBS=
    51245237    case $build in
    51255238  *-mingw*)
     
    68907003*-*-irix6*)
    68917004  # Find out which ABI we are using.
    6892   echo '#line 6892 "configure"' > conftest.$ac_ext
     7005  echo '#line 7005 "configure"' > conftest.$ac_ext
    68937006  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    68947007  (eval $ac_compile) 2>&5
     
    80248137
    80258138# Provide some information about the compiler.
    8026 echo "$as_me:8026:" \
     8139echo "$as_me:8139:" \
    80278140     "checking for Fortran 77 compiler version" >&5
    80288141ac_compiler=`set X $ac_compile; echo $2`
     
    90919204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90929205   -e 's:$: $lt_compiler_flag:'`
    9093    (eval echo "\"\$as_me:9093: $lt_compile\"" >&5)
     9206   (eval echo "\"\$as_me:9206: $lt_compile\"" >&5)
    90949207   (eval "$lt_compile" 2>conftest.err)
    90959208   ac_status=$?
    90969209   cat conftest.err >&5
    9097    echo "$as_me:9097: \$? = $ac_status" >&5
     9210   echo "$as_me:9210: \$? = $ac_status" >&5
    90989211   if (exit $ac_status) && test -s "$ac_outfile"; then
    90999212     # The compiler can only warn and ignore the option if not recognized
     
    93599472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    93609473   -e 's:$: $lt_compiler_flag:'`
    9361    (eval echo "\"\$as_me:9361: $lt_compile\"" >&5)
     9474   (eval echo "\"\$as_me:9474: $lt_compile\"" >&5)
    93629475   (eval "$lt_compile" 2>conftest.err)
    93639476   ac_status=$?
    93649477   cat conftest.err >&5
    9365    echo "$as_me:9365: \$? = $ac_status" >&5
     9478   echo "$as_me:9478: \$? = $ac_status" >&5
    93669479   if (exit $ac_status) && test -s "$ac_outfile"; then
    93679480     # The compiler can only warn and ignore the option if not recognized
     
    94639576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    94649577   -e 's:$: $lt_compiler_flag:'`
    9465    (eval echo "\"\$as_me:9465: $lt_compile\"" >&5)
     9578   (eval echo "\"\$as_me:9578: $lt_compile\"" >&5)
    94669579   (eval "$lt_compile" 2>out/conftest.err)
    94679580   ac_status=$?
    94689581   cat out/conftest.err >&5
    9469    echo "$as_me:9469: \$? = $ac_status" >&5
     9582   echo "$as_me:9582: \$? = $ac_status" >&5
    94709583   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    94719584   then
     
    1180811921  lt_status=$lt_dlunknown
    1180911922  cat > conftest.$ac_ext <<EOF
    11810 #line 11810 "configure"
     11923#line 11923 "configure"
    1181111924#include "confdefs.h"
    1181211925
     
    1190812021  lt_status=$lt_dlunknown
    1190912022  cat > conftest.$ac_ext <<EOF
    11910 #line 11910 "configure"
     12023#line 12023 "configure"
    1191112024#include "confdefs.h"
    1191212025
     
    1425214365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1425314366   -e 's:$: $lt_compiler_flag:'`
    14254    (eval echo "\"\$as_me:14254: $lt_compile\"" >&5)
     14367   (eval echo "\"\$as_me:14367: $lt_compile\"" >&5)
    1425514368   (eval "$lt_compile" 2>conftest.err)
    1425614369   ac_status=$?
    1425714370   cat conftest.err >&5
    14258    echo "$as_me:14258: \$? = $ac_status" >&5
     14371   echo "$as_me:14371: \$? = $ac_status" >&5
    1425914372   if (exit $ac_status) && test -s "$ac_outfile"; then
    1426014373     # The compiler can only warn and ignore the option if not recognized
     
    1435614469   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1435714470   -e 's:$: $lt_compiler_flag:'`
    14358    (eval echo "\"\$as_me:14358: $lt_compile\"" >&5)
     14471   (eval echo "\"\$as_me:14471: $lt_compile\"" >&5)
    1435914472   (eval "$lt_compile" 2>out/conftest.err)
    1436014473   ac_status=$?
    1436114474   cat out/conftest.err >&5
    14362    echo "$as_me:14362: \$? = $ac_status" >&5
     14475   echo "$as_me:14475: \$? = $ac_status" >&5
    1436314476   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1436414477   then
     
    1592616039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1592716040   -e 's:$: $lt_compiler_flag:'`
    15928    (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
     16041   (eval echo "\"\$as_me:16041: $lt_compile\"" >&5)
    1592916042   (eval "$lt_compile" 2>conftest.err)
    1593016043   ac_status=$?
    1593116044   cat conftest.err >&5
    15932    echo "$as_me:15932: \$? = $ac_status" >&5
     16045   echo "$as_me:16045: \$? = $ac_status" >&5
    1593316046   if (exit $ac_status) && test -s "$ac_outfile"; then
    1593416047     # The compiler can only warn and ignore the option if not recognized
     
    1603016143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1603116144   -e 's:$: $lt_compiler_flag:'`
    16032    (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
     16145   (eval echo "\"\$as_me:16145: $lt_compile\"" >&5)
    1603316146   (eval "$lt_compile" 2>out/conftest.err)
    1603416147   ac_status=$?
    1603516148   cat out/conftest.err >&5
    16036    echo "$as_me:16036: \$? = $ac_status" >&5
     16149   echo "$as_me:16149: \$? = $ac_status" >&5
    1603716150   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1603816151   then
     
    1823718350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1823818351   -e 's:$: $lt_compiler_flag:'`
    18239    (eval echo "\"\$as_me:18239: $lt_compile\"" >&5)
     18352   (eval echo "\"\$as_me:18352: $lt_compile\"" >&5)
    1824018353   (eval "$lt_compile" 2>conftest.err)
    1824118354   ac_status=$?
    1824218355   cat conftest.err >&5
    18243    echo "$as_me:18243: \$? = $ac_status" >&5
     18356   echo "$as_me:18356: \$? = $ac_status" >&5
    1824418357   if (exit $ac_status) && test -s "$ac_outfile"; then
    1824518358     # The compiler can only warn and ignore the option if not recognized
     
    1850518618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1850618619   -e 's:$: $lt_compiler_flag:'`
    18507    (eval echo "\"\$as_me:18507: $lt_compile\"" >&5)
     18620   (eval echo "\"\$as_me:18620: $lt_compile\"" >&5)
    1850818621   (eval "$lt_compile" 2>conftest.err)
    1850918622   ac_status=$?
    1851018623   cat conftest.err >&5
    18511    echo "$as_me:18511: \$? = $ac_status" >&5
     18624   echo "$as_me:18624: \$? = $ac_status" >&5
    1851218625   if (exit $ac_status) && test -s "$ac_outfile"; then
    1851318626     # The compiler can only warn and ignore the option if not recognized
     
    1860918722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1861018723   -e 's:$: $lt_compiler_flag:'`
    18611    (eval echo "\"\$as_me:18611: $lt_compile\"" >&5)
     18724   (eval echo "\"\$as_me:18724: $lt_compile\"" >&5)
    1861218725   (eval "$lt_compile" 2>out/conftest.err)
    1861318726   ac_status=$?
    1861418727   cat out/conftest.err >&5
    18615    echo "$as_me:18615: \$? = $ac_status" >&5
     18728   echo "$as_me:18728: \$? = $ac_status" >&5
    1861618729   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1861718730   then
     
    2149421607LT_LDFLAGS=
    2149521608
     21609# Check if we want to set the library version
     21610echo "$as_me:$LINENO: checking if library version is set" >&5
     21611echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
     21612if test x"$coin_libversion" != x; then
     21613  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
     21614  echo "$as_me:$LINENO: result: $coin_libversion" >&5
     21615echo "${ECHO_T}$coin_libversion" >&6
     21616else
     21617  echo "$as_me:$LINENO: result: no" >&5
     21618echo "${ECHO_T}no" >&6
     21619fi
     21620
     21621
    2149621622
    2149721623#END
     
    2183121957
    2183221958#############################################################################
    21833 #                              COIN components                              #
     21959#                            COIN-OR components                             #
    2183421960#############################################################################
    2183521961
    21836 echo "$as_me:$LINENO: checking for COIN project ThirdParty" >&5
    21837 echo $ECHO_N "checking for COIN project ThirdParty... $ECHO_C" >&6
    21838 
    21839 # First check, if the sub-project is actually available (ToDo: allow
    21840 # other locations)
    21841 
    21842 coin_has_thirdparty=unavailable
     21962
     21963
     21964# Check whether --enable-pkg-config or --disable-pkg-config was given.
     21965if test "${enable_pkg_config+set}" = set; then
     21966  enableval="$enable_pkg_config"
     21967  use_pkgconfig="$enableval"
     21968else
     21969  use_pkgconfig=yes
     21970fi;
     21971
     21972if test $use_pkgconfig = yes ; then
     21973  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     21974    if test -n "$ac_tool_prefix"; then
     21975  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     21976set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     21977echo "$as_me:$LINENO: checking for $ac_word" >&5
     21978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     21979if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     21980  echo $ECHO_N "(cached) $ECHO_C" >&6
     21981else
     21982  case $PKG_CONFIG in
     21983  [\\/]* | ?:[\\/]*)
     21984  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     21985  ;;
     21986  *)
     21987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     21988for as_dir in $PATH
     21989do
     21990  IFS=$as_save_IFS
     21991  test -z "$as_dir" && as_dir=.
     21992  for ac_exec_ext in '' $ac_executable_extensions; do
     21993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     21994    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     21995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     21996    break 2
     21997  fi
     21998done
     21999done
     22000
     22001  ;;
     22002esac
     22003fi
     22004PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     22005
     22006if test -n "$PKG_CONFIG"; then
     22007  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     22008echo "${ECHO_T}$PKG_CONFIG" >&6
     22009else
     22010  echo "$as_me:$LINENO: result: no" >&5
     22011echo "${ECHO_T}no" >&6
     22012fi
     22013
     22014fi
     22015if test -z "$ac_cv_path_PKG_CONFIG"; then
     22016  ac_pt_PKG_CONFIG=$PKG_CONFIG
     22017  # Extract the first word of "pkg-config", so it can be a program name with args.
     22018set dummy pkg-config; ac_word=$2
     22019echo "$as_me:$LINENO: checking for $ac_word" >&5
     22020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     22021if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     22022  echo $ECHO_N "(cached) $ECHO_C" >&6
     22023else
     22024  case $ac_pt_PKG_CONFIG in
     22025  [\\/]* | ?:[\\/]*)
     22026  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     22027  ;;
     22028  *)
     22029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     22030for as_dir in $PATH
     22031do
     22032  IFS=$as_save_IFS
     22033  test -z "$as_dir" && as_dir=.
     22034  for ac_exec_ext in '' $ac_executable_extensions; do
     22035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     22036    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     22037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     22038    break 2
     22039  fi
     22040done
     22041done
     22042
     22043  ;;
     22044esac
     22045fi
     22046ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     22047
     22048if test -n "$ac_pt_PKG_CONFIG"; then
     22049  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     22050echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     22051else
     22052  echo "$as_me:$LINENO: result: no" >&5
     22053echo "${ECHO_T}no" >&6
     22054fi
     22055
     22056  PKG_CONFIG=$ac_pt_PKG_CONFIG
     22057else
     22058  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     22059fi
     22060
     22061  fi
     22062  if test -n "$PKG_CONFIG"; then
     22063    _pkg_min_version=0.9.0
     22064    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     22065echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     22066    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     22067      echo "$as_me:$LINENO: result: yes" >&5
     22068echo "${ECHO_T}yes" >&6
     22069    else
     22070      echo "$as_me:$LINENO: result: no" >&5
     22071echo "${ECHO_T}no" >&6
     22072      PKG_CONFIG=""
     22073    fi
     22074  fi
     22075
     22076  # check if pkg-config supports the short-errors flag
     22077  if test -n "$PKG_CONFIG" && \
     22078    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     22079    pkg_short_errors=" --short-errors "
     22080  else
     22081    pkg_short_errors=""
     22082  fi
     22083fi
     22084
     22085
     22086
     22087if test -n "$PKG_CONFIG"; then
     22088  COIN_HAS_PKGCONFIG_TRUE=
     22089  COIN_HAS_PKGCONFIG_FALSE='#'
     22090else
     22091  COIN_HAS_PKGCONFIG_TRUE='#'
     22092  COIN_HAS_PKGCONFIG_FALSE=
     22093fi
     22094
     22095
     22096
     22097# assemble pkg-config search path for installed projects
     22098COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22099
     22100# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     22101# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22102# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22103if test "x${prefix}" = xNONE ; then
     22104  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     22105else
     22106  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     22107fi
     22108
     22109
     22110# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22111if test "${with_coin_instdir+set}" = set; then
     22112  withval="$with_coin_instdir"
     22113  if test -d "$withval"; then : ; else
     22114     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22115echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     22116   { (exit 1); exit 1; }; }
     22117   fi
     22118   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     22119
     22120fi;
     22121
     22122
     22123
     22124# assemble additional pkg-config search paths for uninstalled projects
     22125if test x$coin_projectdir = xyes ; then
     22126  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
     22127  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22128  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22129  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     22130  COIN_PKG_CONFIG_PATH_UNINSTALLED=
     22131  if test -e ../coin_subdirs.txt ; then
     22132    for i in `cat ../coin_subdirs.txt` ; do
     22133      if test -d ../$i ; then
     22134        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22135      fi
     22136      if test -d ../$i/pkgconfig ; then
     22137        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22138      fi
     22139    done
     22140  fi
     22141
     22142  if test -e ../../coin_subdirs.txt ; then
     22143    for i in `cat ../../coin_subdirs.txt` ; do
     22144      if test -d ../../$i ; then
     22145        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22146      fi
     22147      if test -d ../../$i/pkgconfig ; then
     22148        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
     22149      fi
     22150    done
     22151  fi
     22152
     22153
     22154fi
     22155
     22156
     22157
     22158echo "$as_me:$LINENO: checking for COIN-OR package Bonmin" >&5
     22159echo $ECHO_N "checking for COIN-OR package Bonmin... $ECHO_C" >&6
     22160
     22161coin_has_bonmin=notGiven
     22162
     22163# check if user wants to skip package in any case
    2184322164if test x"$COIN_SKIP_PROJECTS" != x; then
    2184422165  for dir in $COIN_SKIP_PROJECTS; do
    21845     if test $dir = ThirdParty; then
    21846       coin_has_thirdparty=skipping
    21847     fi
    21848   done
    21849 fi
    21850 
    21851 if test $coin_has_thirdparty != skipping; then
    21852   if test $PACKAGE_TARNAME = thirdparty; then
    21853     coin_has_thirdparty=.
    21854   else
    21855     if test -d $srcdir/../ThirdParty; then
    21856       coin_has_thirdparty=../ThirdParty
    21857     fi
    21858   fi
    21859 fi
    21860 
    21861 if test $coin_has_thirdparty != unavailable &&
    21862    test $coin_has_thirdparty != skipping; then
    21863   # Set the #define if the component is available
    21864 
    21865 cat >>confdefs.h <<\_ACEOF
    21866 #define COIN_HAS_THIRDPARTY 1
    21867 _ACEOF
    21868 
    21869 
    21870   # Set the variables for source and object code location
    21871 
    21872   THIRDPARTYSRCDIR=`cd $srcdir/$coin_has_thirdparty; pwd`
    21873 
    21874   THIRDPARTYOBJDIR=`pwd`/$coin_has_thirdparty
    21875 
    21876   THIRDPARTYDOCDIR=$abs_lib_dir/../share/doc/coin/ThirdParty
    21877 fi
    21878 
    21879   # Define the Makefile conditional
    21880 
    21881 
    21882 if test $coin_has_thirdparty != unavailable &&
    21883                 test $coin_has_thirdparty != skipping; then
    21884   COIN_HAS_THIRDPARTY_TRUE=
    21885   COIN_HAS_THIRDPARTY_FALSE='#'
    21886 else
    21887   COIN_HAS_THIRDPARTY_TRUE='#'
    21888   COIN_HAS_THIRDPARTY_FALSE=
    21889 fi
    21890 
    21891 echo "$as_me:$LINENO: result: $coin_has_thirdparty" >&5
    21892 echo "${ECHO_T}$coin_has_thirdparty" >&6
    21893 
    21894 echo "$as_me:$LINENO: checking for COIN project CoinUtils" >&5
    21895 echo $ECHO_N "checking for COIN project CoinUtils... $ECHO_C" >&6
    21896 
    21897 # First check, if the sub-project is actually available (ToDo: allow
    21898 # other locations)
    21899 
    21900 coin_has_coinutils=unavailable
    21901 if test x"$COIN_SKIP_PROJECTS" != x; then
    21902   for dir in $COIN_SKIP_PROJECTS; do
    21903     if test $dir = CoinUtils; then
    21904       coin_has_coinutils=skipping
    21905     fi
    21906   done
    21907 fi
    21908 
    21909 if test $coin_has_coinutils != skipping; then
    21910   if test $PACKAGE_TARNAME = coinutils; then
    21911     coin_has_coinutils=.
    21912   else
    21913     if test -d $srcdir/../CoinUtils; then
    21914       coin_has_coinutils=../CoinUtils
    21915     fi
    21916   fi
    21917 fi
    21918 
    21919 if test $coin_has_coinutils != unavailable &&
    21920    test $coin_has_coinutils != skipping; then
    21921   # Set the #define if the component is available
    21922 
    21923 cat >>confdefs.h <<\_ACEOF
    21924 #define COIN_HAS_COINUTILS 1
    21925 _ACEOF
    21926 
    21927 
    21928   # Set the variables for source and object code location
    21929 
    21930   COINUTILSSRCDIR=`cd $srcdir/$coin_has_coinutils; pwd`
    21931 
    21932   COINUTILSOBJDIR=`pwd`/$coin_has_coinutils
    21933 
    21934   COINUTILSDOCDIR=$abs_lib_dir/../share/doc/coin/CoinUtils
    21935 fi
    21936 
    21937   # Define the Makefile conditional
    21938 
    21939 
    21940 if test $coin_has_coinutils != unavailable &&
    21941                 test $coin_has_coinutils != skipping; then
    21942   COIN_HAS_COINUTILS_TRUE=
    21943   COIN_HAS_COINUTILS_FALSE='#'
    21944 else
    21945   COIN_HAS_COINUTILS_TRUE='#'
    21946   COIN_HAS_COINUTILS_FALSE=
    21947 fi
    21948 
    21949 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    21950 echo "${ECHO_T}$coin_has_coinutils" >&6
    21951 
    21952 echo "$as_me:$LINENO: checking for COIN project Clp" >&5
    21953 echo $ECHO_N "checking for COIN project Clp... $ECHO_C" >&6
    21954 
    21955 # First check, if the sub-project is actually available (ToDo: allow
    21956 # other locations)
    21957 
    21958 coin_has_clp=unavailable
    21959 if test x"$COIN_SKIP_PROJECTS" != x; then
    21960   for dir in $COIN_SKIP_PROJECTS; do
    21961     if test $dir = Clp; then
    21962       coin_has_clp=skipping
    21963     fi
    21964   done
    21965 fi
    21966 
    21967 if test $coin_has_clp != skipping; then
    21968   if test $PACKAGE_TARNAME = clp; then
    21969     coin_has_clp=.
    21970   else
    21971     if test -d $srcdir/../Clp; then
    21972       coin_has_clp=../Clp
    21973     fi
    21974   fi
    21975 fi
    21976 
    21977 if test $coin_has_clp != unavailable &&
    21978    test $coin_has_clp != skipping; then
    21979   # Set the #define if the component is available
    21980 
    21981 cat >>confdefs.h <<\_ACEOF
    21982 #define COIN_HAS_CLP 1
    21983 _ACEOF
    21984 
    21985 
    21986   # Set the variables for source and object code location
    21987 
    21988   CLPSRCDIR=`cd $srcdir/$coin_has_clp; pwd`
    21989 
    21990   CLPOBJDIR=`pwd`/$coin_has_clp
    21991 
    21992   CLPDOCDIR=$abs_lib_dir/../share/doc/coin/Clp
    21993 fi
    21994 
    21995   # Define the Makefile conditional
    21996 
    21997 
    21998 if test $coin_has_clp != unavailable &&
    21999                 test $coin_has_clp != skipping; then
    22000   COIN_HAS_CLP_TRUE=
    22001   COIN_HAS_CLP_FALSE='#'
    22002 else
    22003   COIN_HAS_CLP_TRUE='#'
    22004   COIN_HAS_CLP_FALSE=
    22005 fi
    22006 
    22007 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    22008 echo "${ECHO_T}$coin_has_clp" >&6
    22009 
    22010 echo "$as_me:$LINENO: checking for COIN project Bonmin" >&5
    22011 echo $ECHO_N "checking for COIN project Bonmin... $ECHO_C" >&6
    22012 
    22013 # First check, if the sub-project is actually available (ToDo: allow
    22014 # other locations)
    22015 
    22016 coin_has_bonmin=unavailable
    22017 if test x"$COIN_SKIP_PROJECTS" != x; then
    22018   for dir in $COIN_SKIP_PROJECTS; do
    22019     if test $dir = Bonmin; then
     22166    if test $dir = "Bonmin"; then
    2202022167      coin_has_bonmin=skipping
    2202122168    fi
     
    2202322170fi
    2202422171
     22172BONMIN_LIBS=
     22173BONMIN_CFLAGS=
     22174BONMIN_DATA=
     22175
     22176
     22177
     22178
     22179
     22180
     22181
     22182
     22183
     22184
     22185
     22186
     22187
     22188
     22189
     22190
     22191
     22192#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
    2202522193if test $coin_has_bonmin != skipping; then
    22026   if test $PACKAGE_TARNAME = bonmin; then
    22027     coin_has_bonmin=.
     22194
     22195# Check whether --with-m4_tolower(Bonmin)-lib or --without-m4_tolower(Bonmin)-lib was given.
     22196if test "${with_bonmin_lib+set}" = set; then
     22197  withval="$with_bonmin_lib"
     22198  if test "$withval" = no ; then
     22199       coin_has_bonmin=skipping
     22200     else
     22201       coin_has_bonmin=yes
     22202       BONMIN_LIBS="$withval"
     22203
     22204         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     22205         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     22206
     22207     fi
     22208
     22209fi;
     22210fi
     22211
     22212if test $coin_has_bonmin != skipping; then
     22213
     22214# Check whether --with-m4_tolower(Bonmin)-incdir or --without-m4_tolower(Bonmin)-incdir was given.
     22215if test "${with_bonmin_incdir+set}" = set; then
     22216  withval="$with_bonmin_incdir"
     22217  if test "$withval" = no ; then
     22218       coin_has_bonmin=skipping
     22219     else
     22220       coin_has_bonmin=yes
     22221       BONMIN_CFLAGS="-I`${CYGPATH_W} $withval`"
     22222       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     22223     fi
     22224
     22225fi;
     22226fi
     22227
     22228if test $coin_has_bonmin != skipping; then
     22229
     22230# Check whether --with-m4_tolower(Bonmin)-datadir or --without-m4_tolower(Bonmin)-datadir was given.
     22231if test "${with_bonmin_datadir+set}" = set; then
     22232  withval="$with_bonmin_datadir"
     22233  if test "$withval" = no ; then
     22234       coin_has_bonmin=skipping
     22235     else
     22236       coin_has_bonmin=yes
     22237       BONMIN_DATA="$withval"
     22238     fi
     22239
     22240fi;
     22241fi
     22242
     22243if test $coin_has_bonmin = notGiven; then
     22244  if test -n "$PKG_CONFIG" ; then
     22245    # set search path for pkg-config
     22246    # need to export variable to be sure that the following pkg-config gets these values
     22247    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22248    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22249    export PKG_CONFIG_PATH
     22250
     22251    # let pkg-config do it's magic
     22252
     22253
     22254
     22255if test -n "$PKG_CONFIG" ; then
     22256  if $PKG_CONFIG --exists "bonmin"; then
     22257    BONMIN_VERSIONS="`$PKG_CONFIG --modversion "bonmin" 2>/dev/null | tr '\n' ' '`"
     22258     cflags=`$PKG_CONFIG --cflags "bonmin" 2>/dev/null`
     22259    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22260        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22261        # but only do this if is not trivial
     22262    if test "$CYGPATH_W" != "echo" ; then
     22263      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22264      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22265    fi
     22266    BONMIN_CFLAGS="$cflags"
     22267    BONMIN_LIBS=`$PKG_CONFIG --libs "bonmin" 2>/dev/null`
     22268    BONMIN_DATA=`$PKG_CONFIG --variable=datadir "bonmin" 2>/dev/null`
     22269     coin_has_bonmin=yes
     22270        echo "$as_me:$LINENO: result: yes: $BONMIN_VERSIONS" >&5
     22271echo "${ECHO_T}yes: $BONMIN_VERSIONS" >&6
     22272
     22273        # adjust linker flags for (i)cl compiler
     22274        # 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)
     22275        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22276        then
     22277          BONMIN_LIBS=`echo " $BONMIN_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22278        fi
     22279
     22280        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     22281
     22282          COUENNELIB_PCREQUIRES="bonmin $COUENNELIB_PCREQUIRES"
     22283          COUENNELIB_CFLAGS="$BONMIN_CFLAGS $COUENNELIB_CFLAGS"
     22284          COUENNELIB_LIBS="$BONMIN_LIBS $COUENNELIB_LIBS"
     22285
     22286
     22287
    2202822288  else
    22029     if test -d $srcdir/../Bonmin; then
    22030       coin_has_bonmin=../Bonmin
     22289    BONMIN_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "bonmin"`
     22290      coin_has_bonmin=notGiven
     22291        echo "$as_me:$LINENO: result: not given: $BONMIN_PKG_ERRORS" >&5
     22292echo "${ECHO_T}not given: $BONMIN_PKG_ERRORS" >&6
     22293
     22294  fi
     22295else
     22296  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Bonmin without pkg-config\"" >&5
     22297echo "$as_me: error: \"Cannot check for existance of module Bonmin without pkg-config\"" >&2;}
     22298   { (exit 1); exit 1; }; }
     22299fi
     22300
     22301
     22302
     22303
     22304    # reset PKG_CONFIG_PATH variable
     22305    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22306    export PKG_CONFIG_PATH
     22307
     22308  else
     22309    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22310echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22311
     22312echo "$as_me:$LINENO: checking for COIN-OR package Bonmin (fallback)" >&5
     22313echo $ECHO_N "checking for COIN-OR package Bonmin (fallback)... $ECHO_C" >&6
     22314
     22315coin_has_bonmin=notGiven
     22316BONMIN_LIBS=
     22317BONMIN_LIBS_INSTALLED=
     22318BONMIN_CFLAGS=
     22319BONMIN_CFLAGS_INSTALLED=
     22320BONMIN_DATA=
     22321BONMIN_DATA_INSTALLED=
     22322
     22323# initial list of dependencies is "bonmin", but we need to filter out version number specifications (= x, <= x, >= x)
     22324projtoprocess="bonmin"
     22325
     22326# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22327# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22328# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     22329# also, we setup the DATA variable
     22330allproj=""
     22331allpcfiles=""
     22332allpcifiles=""
     22333while test "x$projtoprocess" != x ; do
     22334
     22335  for proj in $projtoprocess ; do
     22336    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22337    pcfile=""
     22338    save_IFS="$IFS"
     22339    IFS=":"
     22340    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22341      # 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
     22342      if test -r "$dir/${proj}-uninstalled.pc" ; then
     22343        pcfile="$dir/$proj-uninstalled.pc"
     22344        if test -r "$dir/${proj}.pc" ; then
     22345          pcifile="$dir/${proj}.pc"
     22346        else
     22347          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22348echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22349          pcifile=
     22350        fi
     22351        break
     22352      fi
     22353    done
     22354    IFS="$save_IFS"
     22355
     22356    if test "x$pcfile" != x ; then
     22357      # read dependencies from $pcfile and filter it
     22358      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22359
     22360      # add projrequires to the front of the list of projects that have to be processed next
     22361      # at the same time, remove $proj from this list
     22362      projtoprocess=${projtoprocess/$proj/$projrequires}
     22363
     22364      # read DATA from $pcfile, if _DATA is still empty
     22365      if test "x$BONMIN_DATA" = x ; then
     22366        projdatadir=
     22367        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22368        eval `sh -c "$pcfilemod"`
     22369        BONMIN_DATA="$projdatadir"
     22370      fi
     22371
     22372      allproj="$allproj $proj"
     22373      allpcfiles="$pcfile:$allpcfiles"
     22374
     22375    else
     22376      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22377echo "${ECHO_T}no, dependency $proj not available" >&6
     22378      allproj=fail
     22379      break 2
    2203122380    fi
    22032   fi
    22033 fi
    22034 
    22035 if test $coin_has_bonmin != unavailable &&
    22036    test $coin_has_bonmin != skipping; then
    22037   # Set the #define if the component is available
     22381
     22382    if test "x$pcifile" != x ; then
     22383      allpcifiles="$pcifile:$allpcifiles"
     22384
     22385      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22386      if test "x$BONMIN_DATA_INSTALLED" = x ; then
     22387        projdatadir=
     22388        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22389        eval `sh -c "$pcifilemod"`
     22390        if test "${CYGPATH_W}" != "echo"; then
     22391          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22392        fi
     22393        BONMIN_DATA_INSTALLED="$projdatadir"
     22394      fi
     22395
     22396    fi
     22397
     22398    break
     22399  done
     22400
     22401  # remove spaces on begin of $projtoprocess
     22402  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22403
     22404done
     22405
     22406if test "$allproj" != fail ; then
     22407
     22408  # now go through the list of .pc files and assemble compiler and linker flags
     22409  # important is here to obey the reverse order that has been setup before,
     22410  # since then libraries that are required by several others should be after these other libraries
     22411  pcfilesprocessed=""
     22412
     22413  save_IFS="$IFS"
     22414  IFS=":"
     22415  for pcfile in $allpcfiles ; do
     22416
     22417    # if $pcfile has been processed already, skip this round
     22418    if test "x$pcfilesprocessed" != x ; then
     22419      for pcfiledone in $pcfilesprocessed ; do
     22420        if test "$pcfiledone" = "$pcfile" ; then
     22421          continue 2
     22422        fi
     22423      done
     22424    fi
     22425
     22426    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22427    #   replace "Libs:" by "echo projlibs="
     22428    #   replace "Cflags:" by "echo projcflags="
     22429    #   remove every line starting with <some word>:
     22430    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22431
     22432    # set projcflags and projlibs variables by running $pcfilemod
     22433    projcflags=
     22434    projlibs=
     22435    eval `sh -c "$pcfilemod"`
     22436
     22437    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22438    if test "${CYGPATH_W}" != "echo"; then
     22439      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22440    fi
     22441    BONMIN_CFLAGS="$projcflags $BONMIN_CFLAGS"
     22442
     22443    # set LIBS variable
     22444    BONMIN_LIBS="$projlibs $BONMIN_LIBS"
     22445
     22446    # remember that we have processed $pcfile
     22447    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22448
     22449  done
     22450  IFS="$save_IFS"
     22451
     22452
     22453  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22454  # important is here again to obey the reverse order that has been setup before,
     22455  # since then libraries that are required by several others should be after these other libraries
     22456  pcfilesprocessed=""
     22457
     22458  save_IFS="$IFS"
     22459  IFS=":"
     22460  for pcfile in $allpcifiles ; do
     22461
     22462    # if $pcfile has been processed already, skip this round
     22463    if test "x$pcfilesprocessed" != x ; then
     22464      for pcfiledone in $pcfilesprocessed ; do
     22465        if test "$pcfiledone" = "$pcfile" ; then
     22466          continue 2
     22467        fi
     22468      done
     22469    fi
     22470
     22471    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22472    #   replace "Libs:" by "echo projlibs="
     22473    #   replace "Cflags:" by "echo projcflags="
     22474    #   remove every line starting with <some word>:
     22475    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22476
     22477    # set projcflags and projlibs variables by running $pcfilemod
     22478    projcflags=
     22479    projlibs=
     22480    eval `sh -c "$pcfilemod"`
     22481
     22482    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22483    if test "${CYGPATH_W}" != "echo"; then
     22484      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22485    fi
     22486    BONMIN_CFLAGS_INSTALLED="$projcflags $BONMIN_CFLAGS_INSTALLED"
     22487
     22488    # set LIBS variable
     22489    BONMIN_LIBS_INSTALLED="$projlibs $BONMIN_LIBS_INSTALLED"
     22490
     22491    # remember that we have processed $pcfile
     22492    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22493
     22494  done
     22495  IFS="$save_IFS"
     22496
     22497
     22498  # finish up
     22499  coin_has_bonmin=yes
     22500  echo "$as_me:$LINENO: result: yes" >&5
     22501echo "${ECHO_T}yes" >&6
    2203822502
    2203922503cat >>confdefs.h <<\_ACEOF
     
    2204222506
    2204322507
    22044   # Set the variables for source and object code location
    22045 
    22046   BONMINSRCDIR=`cd $srcdir/$coin_has_bonmin; pwd`
    22047 
    22048   BONMINOBJDIR=`pwd`/$coin_has_bonmin
    22049 
    22050   BONMINDOCDIR=$abs_lib_dir/../share/doc/coin/Bonmin
    22051 fi
    22052 
    22053   # Define the Makefile conditional
    22054 
    22055 
    22056 if test $coin_has_bonmin != unavailable &&
     22508  # adjust linker flags for (i)cl compiler
     22509  # 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),
     22510  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22511  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22512  #    everything of the form "-lname" by "libname.lib"
     22513  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22514  then
     22515    BONMIN_LIBS=`echo " $BONMIN_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22516    BONMIN_LIBS_INSTALLED=`echo " $BONMIN_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22517  fi
     22518
     22519
     22520    COUENNELIB_PCREQUIRES="bonmin $COUENNELIB_PCREQUIRES"
     22521    COUENNELIB_CFLAGS="$BONMIN_CFLAGS $COUENNELIB_CFLAGS"
     22522    COUENNELIB_LIBS="$BONMIN_LIBS $COUENNELIB_LIBS"
     22523    COUENNELIB_CFLAGS_INSTALLED="$BONMIN_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     22524    COUENNELIB_LIBS_INSTALLED="$BONMIN_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     22525
     22526
     22527fi
     22528
     22529
     22530
     22531if test $coin_has_bonmin != notGiven &&
    2205722532                test $coin_has_bonmin != skipping; then
    2205822533  COIN_HAS_BONMIN_TRUE=
     
    2206322538fi
    2206422539
    22065 echo "$as_me:$LINENO: result: $coin_has_bonmin" >&5
     22540
     22541
     22542  fi
     22543
     22544else
     22545  echo "$as_me:$LINENO: result: $coin_has_bonmin" >&5
    2206622546echo "${ECHO_T}$coin_has_bonmin" >&6
    22067 
    22068 echo "$as_me:$LINENO: checking for COIN project Ipopt" >&5
    22069 echo $ECHO_N "checking for COIN project Ipopt... $ECHO_C" >&6
    22070 
    22071 # First check, if the sub-project is actually available (ToDo: allow
    22072 # other locations)
    22073 
    22074 coin_has_ipopt=unavailable
    22075 if test x"$COIN_SKIP_PROJECTS" != x; then
    22076   for dir in $COIN_SKIP_PROJECTS; do
    22077     if test $dir = Ipopt; then
    22078       coin_has_ipopt=skipping
     22547fi
     22548
     22549if test $coin_has_bonmin != skipping &&
     22550   test $coin_has_bonmin != notGiven ; then
     22551
     22552cat >>confdefs.h <<\_ACEOF
     22553#define COIN_HAS_BONMIN 1
     22554_ACEOF
     22555
     22556
     22557  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     22558if test "${enable_interpackage_dependencies+set}" = set; then
     22559  enableval="$enable_interpackage_dependencies"
     22560
     22561else
     22562  enable_interpackage_dependencies=yes
     22563fi;
     22564
     22565  if test $enable_interpackage_dependencies = yes ; then
     22566     # construct dependencies variables from LIBS variables
     22567     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     22568     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     22569     # then remove everything of the form -xxx
     22570     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     22571     BONMIN_DEPENDENCIES=`echo " $BONMIN_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22572
     22573       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     22574
     22575  fi
     22576
     22577  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     22578    if test -n "$BONMIN_CFLAGS" ; then
     22579      { echo "$as_me:$LINENO: Bonmin CFLAGS are $BONMIN_CFLAGS" >&5
     22580echo "$as_me: Bonmin CFLAGS are $BONMIN_CFLAGS" >&6;}
    2207922581    fi
    22080   done
    22081 fi
    22082 
    22083 if test $coin_has_ipopt != skipping; then
    22084   if test $PACKAGE_TARNAME = ipopt; then
    22085     coin_has_ipopt=.
    22086   else
    22087     if test -d $srcdir/../Ipopt; then
    22088       coin_has_ipopt=../Ipopt
     22582    if test -n "$BONMIN_LIBS" ; then
     22583      { echo "$as_me:$LINENO: Bonmin LIBS   are $BONMIN_LIBS" >&5
     22584echo "$as_me: Bonmin LIBS   are $BONMIN_LIBS" >&6;}
    2208922585    fi
     22586    if test -n "$BONMIN_DEPENDENCIES" ; then
     22587      { echo "$as_me:$LINENO: Bonmin DEPENDENCIES are $BONMIN_DEPENDENCIES" >&5
     22588echo "$as_me: Bonmin DEPENDENCIES are $BONMIN_DEPENDENCIES" >&6;}
     22589    fi
     22590    if test -n "$BONMIN_DATA" ; then
     22591      { echo "$as_me:$LINENO: Bonmin DATA   is  $BONMIN_DATA" >&5
     22592echo "$as_me: Bonmin DATA   is  $BONMIN_DATA" >&6;}
     22593    fi
     22594    if test -n "$BONMIN_CFLAGS" ; then
     22595      { echo "$as_me:$LINENO: Bonmin CFLAGS are $BONMIN_CFLAGS" >&5
     22596echo "$as_me: Bonmin CFLAGS are $BONMIN_CFLAGS" >&6;}
     22597    fi
     22598
     22599      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     22600echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     22601      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     22602echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     22603      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     22604echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     22605
    2209022606  fi
    2209122607fi
    2209222608
    22093 if test $coin_has_ipopt != unavailable &&
    22094    test $coin_has_ipopt != skipping; then
    22095   # Set the #define if the component is available
    22096 
    22097 cat >>confdefs.h <<\_ACEOF
    22098 #define COIN_HAS_IPOPT 1
    22099 _ACEOF
    22100 
    22101 
    22102   # Set the variables for source and object code location
    22103 
    22104   IPOPTSRCDIR=`cd $srcdir/$coin_has_ipopt; pwd`
    22105 
    22106   IPOPTOBJDIR=`pwd`/$coin_has_ipopt
    22107 
    22108   IPOPTDOCDIR=$abs_lib_dir/../share/doc/coin/Ipopt
    22109 fi
    22110 
    22111   # Define the Makefile conditional
    22112 
    22113 
    22114 if test $coin_has_ipopt != unavailable &&
    22115                 test $coin_has_ipopt != skipping; then
    22116   COIN_HAS_IPOPT_TRUE=
    22117   COIN_HAS_IPOPT_FALSE='#'
    22118 else
    22119   COIN_HAS_IPOPT_TRUE='#'
    22120   COIN_HAS_IPOPT_FALSE=
    22121 fi
    22122 
    22123 echo "$as_me:$LINENO: result: $coin_has_ipopt" >&5
    22124 echo "${ECHO_T}$coin_has_ipopt" >&6
    22125 
    22126 echo "$as_me:$LINENO: checking for COIN project Cbc" >&5
    22127 echo $ECHO_N "checking for COIN project Cbc... $ECHO_C" >&6
    22128 
    22129 # First check, if the sub-project is actually available (ToDo: allow
    22130 # other locations)
    22131 
    22132 coin_has_cbc=unavailable
    22133 if test x"$COIN_SKIP_PROJECTS" != x; then
    22134   for dir in $COIN_SKIP_PROJECTS; do
    22135     if test $dir = Cbc; then
    22136       coin_has_cbc=skipping
    22137     fi
    22138   done
    22139 fi
    22140 
    22141 if test $coin_has_cbc != skipping; then
    22142   if test $PACKAGE_TARNAME = cbc; then
    22143     coin_has_cbc=.
    22144   else
    22145     if test -d $srcdir/../Cbc; then
    22146       coin_has_cbc=../Cbc
    22147     fi
    22148   fi
    22149 fi
    22150 
    22151 if test $coin_has_cbc != unavailable &&
    22152    test $coin_has_cbc != skipping; then
    22153   # Set the #define if the component is available
    22154 
    22155 cat >>confdefs.h <<\_ACEOF
    22156 #define COIN_HAS_CBC 1
    22157 _ACEOF
    22158 
    22159 
    22160   # Set the variables for source and object code location
    22161 
    22162   CBCSRCDIR=`cd $srcdir/$coin_has_cbc; pwd`
    22163 
    22164   CBCOBJDIR=`pwd`/$coin_has_cbc
    22165 
    22166   CBCDOCDIR=$abs_lib_dir/../share/doc/coin/Cbc
    22167 fi
    22168 
    22169   # Define the Makefile conditional
    22170 
    22171 
    22172 if test $coin_has_cbc != unavailable &&
    22173                 test $coin_has_cbc != skipping; then
    22174   COIN_HAS_CBC_TRUE=
    22175   COIN_HAS_CBC_FALSE='#'
    22176 else
    22177   COIN_HAS_CBC_TRUE='#'
    22178   COIN_HAS_CBC_FALSE=
    22179 fi
    22180 
    22181 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
    22182 echo "${ECHO_T}$coin_has_cbc" >&6
    22183 
    22184 echo "$as_me:$LINENO: checking for COIN project Osi" >&5
    22185 echo $ECHO_N "checking for COIN project Osi... $ECHO_C" >&6
    22186 
    22187 # First check, if the sub-project is actually available (ToDo: allow
    22188 # other locations)
    22189 
    22190 coin_has_osi=unavailable
    22191 if test x"$COIN_SKIP_PROJECTS" != x; then
    22192   for dir in $COIN_SKIP_PROJECTS; do
    22193     if test $dir = Osi; then
    22194       coin_has_osi=skipping
    22195     fi
    22196   done
    22197 fi
    22198 
    22199 if test $coin_has_osi != skipping; then
    22200   if test $PACKAGE_TARNAME = osi; then
    22201     coin_has_osi=.
    22202   else
    22203     if test -d $srcdir/../Osi; then
    22204       coin_has_osi=../Osi
    22205     fi
    22206   fi
    22207 fi
    22208 
    22209 if test $coin_has_osi != unavailable &&
    22210    test $coin_has_osi != skipping; then
    22211   # Set the #define if the component is available
    22212 
    22213 cat >>confdefs.h <<\_ACEOF
    22214 #define COIN_HAS_OSI 1
    22215 _ACEOF
    22216 
    22217 
    22218   # Set the variables for source and object code location
    22219 
    22220   OSISRCDIR=`cd $srcdir/$coin_has_osi; pwd`
    22221 
    22222   OSIOBJDIR=`pwd`/$coin_has_osi
    22223 
    22224   OSIDOCDIR=$abs_lib_dir/../share/doc/coin/Osi
    22225 fi
    22226 
    22227   # Define the Makefile conditional
    22228 
    22229 
    22230 if test $coin_has_osi != unavailable &&
    22231                 test $coin_has_osi != skipping; then
    22232   COIN_HAS_OSI_TRUE=
    22233   COIN_HAS_OSI_FALSE='#'
    22234 else
    22235   COIN_HAS_OSI_TRUE='#'
    22236   COIN_HAS_OSI_FALSE=
    22237 fi
    22238 
    22239 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    22240 echo "${ECHO_T}$coin_has_osi" >&6
    22241 
    22242 echo "$as_me:$LINENO: checking for COIN project Cgl" >&5
    22243 echo $ECHO_N "checking for COIN project Cgl... $ECHO_C" >&6
    22244 
    22245 # First check, if the sub-project is actually available (ToDo: allow
    22246 # other locations)
    22247 
    22248 coin_has_cgl=unavailable
    22249 if test x"$COIN_SKIP_PROJECTS" != x; then
    22250   for dir in $COIN_SKIP_PROJECTS; do
    22251     if test $dir = Cgl; then
    22252       coin_has_cgl=skipping
    22253     fi
    22254   done
    22255 fi
    22256 
    22257 if test $coin_has_cgl != skipping; then
    22258   if test $PACKAGE_TARNAME = cgl; then
    22259     coin_has_cgl=.
    22260   else
    22261     if test -d $srcdir/../Cgl; then
    22262       coin_has_cgl=../Cgl
    22263     fi
    22264   fi
    22265 fi
    22266 
    22267 if test $coin_has_cgl != unavailable &&
    22268    test $coin_has_cgl != skipping; then
    22269   # Set the #define if the component is available
    22270 
    22271 cat >>confdefs.h <<\_ACEOF
    22272 #define COIN_HAS_CGL 1
    22273 _ACEOF
    22274 
    22275 
    22276   # Set the variables for source and object code location
    22277 
    22278   CGLSRCDIR=`cd $srcdir/$coin_has_cgl; pwd`
    22279 
    22280   CGLOBJDIR=`pwd`/$coin_has_cgl
    22281 
    22282   CGLDOCDIR=$abs_lib_dir/../share/doc/coin/Cgl
    22283 fi
    22284 
    22285   # Define the Makefile conditional
    22286 
    22287 
    22288 if test $coin_has_cgl != unavailable &&
    22289                 test $coin_has_cgl != skipping; then
    22290   COIN_HAS_CGL_TRUE=
    22291   COIN_HAS_CGL_FALSE='#'
    22292 else
    22293   COIN_HAS_CGL_TRUE='#'
    22294   COIN_HAS_CGL_FALSE=
    22295 fi
    22296 
    22297 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
    22298 echo "${ECHO_T}$coin_has_cgl" >&6
    22299 
    22300 echo "$as_me:$LINENO: checking for COIN project Couenne" >&5
    22301 echo $ECHO_N "checking for COIN project Couenne... $ECHO_C" >&6
    22302 
    22303 # First check, if the sub-project is actually available (ToDo: allow
    22304 # other locations)
    22305 
    22306 coin_has_couenne=unavailable
    22307 if test x"$COIN_SKIP_PROJECTS" != x; then
    22308   for dir in $COIN_SKIP_PROJECTS; do
    22309     if test $dir = Couenne; then
    22310       coin_has_couenne=skipping
    22311     fi
    22312   done
    22313 fi
    22314 
    22315 if test $coin_has_couenne != skipping; then
    22316   if test $PACKAGE_TARNAME = couenne; then
    22317     coin_has_couenne=.
    22318   else
    22319     if test -d $srcdir/../Couenne; then
    22320       coin_has_couenne=../Couenne
    22321     fi
    22322   fi
    22323 fi
    22324 
    22325 if test $coin_has_couenne != unavailable &&
    22326    test $coin_has_couenne != skipping; then
    22327   # Set the #define if the component is available
    22328 
    22329 cat >>confdefs.h <<\_ACEOF
    22330 #define COIN_HAS_COUENNE 1
    22331 _ACEOF
    22332 
    22333 
    22334   # Set the variables for source and object code location
    22335 
    22336   COUENNESRCDIR=`cd $srcdir/$coin_has_couenne; pwd`
    22337 
    22338   COUENNEOBJDIR=`pwd`/$coin_has_couenne
    22339 
    22340   COUENNEDOCDIR=$abs_lib_dir/../share/doc/coin/Couenne
    22341 fi
    22342 
    22343   # Define the Makefile conditional
    22344 
    22345 
    22346 if test $coin_has_couenne != unavailable &&
    22347                 test $coin_has_couenne != skipping; then
    22348   COIN_HAS_COUENNE_TRUE=
    22349   COIN_HAS_COUENNE_FALSE='#'
    22350 else
    22351   COIN_HAS_COUENNE_TRUE='#'
    22352   COIN_HAS_COUENNE_FALSE=
    22353 fi
    22354 
    22355 echo "$as_me:$LINENO: result: $coin_has_couenne" >&5
    22356 echo "${ECHO_T}$coin_has_couenne" >&6
    22357 
     22609# Define the Makefile conditional
     22610
     22611
     22612if test $coin_has_bonmin != notGiven &&
     22613                test $coin_has_bonmin != skipping; then
     22614  COIN_HAS_BONMIN_TRUE=
     22615  COIN_HAS_BONMIN_FALSE='#'
     22616else
     22617  COIN_HAS_BONMIN_TRUE='#'
     22618  COIN_HAS_BONMIN_FALSE=
     22619fi
     22620
     22621
     22622
     22623if test $coin_has_bonmin != yes ; then
     22624  { { echo "$as_me:$LINENO: error: Required package Bonmin not available." >&5
     22625echo "$as_me: error: Required package Bonmin not available." >&2;}
     22626   { (exit 1); exit 1; }; }
     22627fi
    2235822628
    2235922629#############################################################################
     
    2236122631#############################################################################
    2236222632
    22363 # Ampl Solver library
    22364 coin_aslobjdir=../ThirdParty/ASL
    22365 coin_aslsrcdir=$srcdir/$coin_aslobjdir
    22366 
    22367 # Determine the name of the ASL library
    22368 case "$CC" in
    22369   cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    22370     ampllib=amplsolv.lib ;;
    22371   *)
    22372     ampllib=amplsolver.a ;;
    22373 esac
    22374 
    22375 
    22376 # Check whether --with-asldir or --without-asldir was given.
    22377 if test "${with_asldir+set}" = set; then
    22378   withval="$with_asldir"
    22379   use_asldir=$withval
    22380 else
    22381   use_asldir=
     22633# Bonmin AMPL interface
     22634
     22635echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
     22636echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
     22637
     22638coin_has_asl=notGiven
     22639
     22640# check if user wants to skip package in any case
     22641if test x"$COIN_SKIP_PROJECTS" != x; then
     22642  for dir in $COIN_SKIP_PROJECTS; do
     22643    if test $dir = "ASL"; then
     22644      coin_has_asl=skipping
     22645    fi
     22646  done
     22647fi
     22648
     22649ASL_LIBS=
     22650ASL_CFLAGS=
     22651ASL_DATA=
     22652
     22653
     22654
     22655
     22656
     22657
     22658
     22659
     22660
     22661#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     22662if test $coin_has_asl != skipping; then
     22663
     22664# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
     22665if test "${with_asl_lib+set}" = set; then
     22666  withval="$with_asl_lib"
     22667  if test "$withval" = no ; then
     22668       coin_has_asl=skipping
     22669     else
     22670       coin_has_asl=yes
     22671       ASL_LIBS="$withval"
     22672
     22673     fi
     22674
    2238222675fi;
    22383 
    22384 if test "$use_asldir" = BUILD; then
    22385   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    22386     # If we are configuring ThirdParty/ASL, don't check
    22387     if test -r $coin_aslobjdir/.MakeOk; then :; else
    22388       { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5
    22389 echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;}
     22676fi
     22677
     22678if test $coin_has_asl != skipping; then
     22679
     22680# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
     22681if test "${with_asl_incdir+set}" = set; then
     22682  withval="$with_asl_incdir"
     22683  if test "$withval" = no ; then
     22684       coin_has_asl=skipping
     22685     else
     22686       coin_has_asl=yes
     22687       ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
     22688
     22689     fi
     22690
     22691fi;
     22692fi
     22693
     22694if test $coin_has_asl != skipping; then
     22695
     22696# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
     22697if test "${with_asl_datadir+set}" = set; then
     22698  withval="$with_asl_datadir"
     22699  if test "$withval" = no ; then
     22700       coin_has_asl=skipping
     22701     else
     22702       coin_has_asl=yes
     22703       ASL_DATA="$withval"
     22704     fi
     22705
     22706fi;
     22707fi
     22708
     22709if test $coin_has_asl = notGiven; then
     22710  if test -n "$PKG_CONFIG" ; then
     22711    # set search path for pkg-config
     22712    # need to export variable to be sure that the following pkg-config gets these values
     22713    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22714    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     22715    export PKG_CONFIG_PATH
     22716
     22717    # let pkg-config do it's magic
     22718
     22719
     22720
     22721if test -n "$PKG_CONFIG" ; then
     22722  if $PKG_CONFIG --exists "bonminamplinterface"; then
     22723    ASL_VERSIONS="`$PKG_CONFIG --modversion "bonminamplinterface" 2>/dev/null | tr '\n' ' '`"
     22724     cflags=`$PKG_CONFIG --cflags "bonminamplinterface" 2>/dev/null`
     22725    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22726        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22727        # but only do this if is not trivial
     22728    if test "$CYGPATH_W" != "echo" ; then
     22729      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22730      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22731    fi
     22732    ASL_CFLAGS="$cflags"
     22733    ASL_LIBS=`$PKG_CONFIG --libs "bonminamplinterface" 2>/dev/null`
     22734    ASL_DATA=`$PKG_CONFIG --variable=datadir "bonminamplinterface" 2>/dev/null`
     22735     coin_has_asl=yes
     22736        echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
     22737echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
     22738
     22739        # adjust linker flags for (i)cl compiler
     22740        # 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)
     22741        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22742        then
     22743          ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22744        fi
     22745
     22746        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
     22747
     22748
     22749
     22750  else
     22751    ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "bonminamplinterface"`
     22752      coin_has_asl=notGiven
     22753        echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
     22754echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
     22755
     22756  fi
     22757else
     22758  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
     22759echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
    2239022760   { (exit 1); exit 1; }; }
     22761fi
     22762
     22763
     22764
     22765
     22766    # reset PKG_CONFIG_PATH variable
     22767    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22768    export PKG_CONFIG_PATH
     22769
     22770  else
     22771    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     22772echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     22773
     22774echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
     22775echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
     22776
     22777coin_has_asl=notGiven
     22778ASL_LIBS=
     22779ASL_LIBS_INSTALLED=
     22780ASL_CFLAGS=
     22781ASL_CFLAGS_INSTALLED=
     22782ASL_DATA=
     22783ASL_DATA_INSTALLED=
     22784
     22785# initial list of dependencies is "bonminamplinterface", but we need to filter out version number specifications (= x, <= x, >= x)
     22786projtoprocess="bonminamplinterface"
     22787
     22788# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     22789# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     22790# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     22791# also, we setup the DATA variable
     22792allproj=""
     22793allpcfiles=""
     22794allpcifiles=""
     22795while test "x$projtoprocess" != x ; do
     22796
     22797  for proj in $projtoprocess ; do
     22798    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     22799    pcfile=""
     22800    save_IFS="$IFS"
     22801    IFS=":"
     22802    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     22803      # 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
     22804      if test -r "$dir/${proj}-uninstalled.pc" ; then
     22805        pcfile="$dir/$proj-uninstalled.pc"
     22806        if test -r "$dir/${proj}.pc" ; then
     22807          pcifile="$dir/${proj}.pc"
     22808        else
     22809          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     22810echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     22811          pcifile=
     22812        fi
     22813        break
     22814      fi
     22815    done
     22816    IFS="$save_IFS"
     22817
     22818    if test "x$pcfile" != x ; then
     22819      # read dependencies from $pcfile and filter it
     22820      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     22821
     22822      # add projrequires to the front of the list of projects that have to be processed next
     22823      # at the same time, remove $proj from this list
     22824      projtoprocess=${projtoprocess/$proj/$projrequires}
     22825
     22826      # read DATA from $pcfile, if _DATA is still empty
     22827      if test "x$ASL_DATA" = x ; then
     22828        projdatadir=
     22829        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     22830        eval `sh -c "$pcfilemod"`
     22831        ASL_DATA="$projdatadir"
     22832      fi
     22833
     22834      allproj="$allproj $proj"
     22835      allpcfiles="$pcfile:$allpcfiles"
     22836
     22837    else
     22838      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     22839echo "${ECHO_T}no, dependency $proj not available" >&6
     22840      allproj=fail
     22841      break 2
    2239122842    fi
    22392   fi
    22393 elif test -z "$use_asldir"; then
    22394  # try to find sources - if not given don't compile
    22395   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    22396     if test -r $coin_aslobjdir/.MakeOk; then
    22397       use_asldir=BUILD
    22398     else
    22399       use_asldir=no
     22843
     22844    if test "x$pcifile" != x ; then
     22845      allpcifiles="$pcifile:$allpcifiles"
     22846
     22847      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     22848      if test "x$ASL_DATA_INSTALLED" = x ; then
     22849        projdatadir=
     22850        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     22851        eval `sh -c "$pcifilemod"`
     22852        if test "${CYGPATH_W}" != "echo"; then
     22853          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     22854        fi
     22855        ASL_DATA_INSTALLED="$projdatadir"
     22856      fi
     22857
    2240022858    fi
    22401   else
    22402     use_asldir=no
    22403   fi
    22404 elif test "$use_asldir" != "no"; then
    22405   if test -r $use_asldir/$ampllib; then
    22406 
    22407   :
    22408 else
    22409   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
    22410 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
    22411    { (exit 1); exit 1; }; }
    22412   :
    22413 fi
    22414 
    22415   if test -r $use_asldir/asl.h; then
    22416 
    22417   :
    22418 else
    22419   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
    22420 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
    22421    { (exit 1); exit 1; }; }
    22422   :
    22423 fi
    22424 
    22425   use_asldir=`cd $use_asldir; pwd`
    22426   case $build in
    22427     *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
    22428   esac
    22429 fi
    22430 
    22431 # Variable containing ASL library (including full path)
    22432 
    22433 # Variable containing flags for including ASL header files
    22434 
    22435 
    22436 if test "$use_asldir" = BUILD; then
    22437   coin_aslobjdir=`cd $coin_aslobjdir; pwd`
    22438   ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    22439   coin_aslsrcdir=`cd $coin_aslsrcdir; pwd`
    22440   ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg`
    22441 elif test "$use_asldir" != no; then
    22442   ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    22443   ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg`
    22444 fi
    22445 
    22446 if test "$use_asldir" != no; then
    22447   ac_ext=c
    22448 ac_cpp='$CPP $CPPFLAGS'
    22449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22452 
    22453   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    22454 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    22455 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    22456   echo $ECHO_N "(cached) $ECHO_C" >&6
    22457 else
    22458   ac_check_lib_save_LIBS=$LIBS
    22459 LIBS="-ldl  $LIBS"
    22460 cat >conftest.$ac_ext <<_ACEOF
    22461 /* confdefs.h.  */
    22462 _ACEOF
    22463 cat confdefs.h >>conftest.$ac_ext
    22464 cat >>conftest.$ac_ext <<_ACEOF
    22465 /* end confdefs.h.  */
    22466 
    22467 /* Override any gcc2 internal prototype to avoid an error.  */
    22468 #ifdef __cplusplus
    22469 extern "C"
    22470 #endif
    22471 /* We use char because int might match the return type of a gcc2
    22472    builtin and then its argument prototype would still apply.  */
    22473 char dlopen ();
    22474 int
    22475 main ()
    22476 {
    22477 dlopen ();
    22478   ;
    22479   return 0;
    22480 }
    22481 _ACEOF
    22482 rm -f conftest.$ac_objext conftest$ac_exeext
    22483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22484   (eval $ac_link) 2>conftest.er1
    22485   ac_status=$?
    22486   grep -v '^ *+' conftest.er1 >conftest.err
    22487   rm -f conftest.er1
    22488   cat conftest.err >&5
    22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22490   (exit $ac_status); } &&
    22491          { ac_try='test -z "$ac_c_werror_flag"
    22492                          || test ! -s conftest.err'
    22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22494   (eval $ac_try) 2>&5
    22495   ac_status=$?
    22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22497   (exit $ac_status); }; } &&
    22498          { ac_try='test -s conftest$ac_exeext'
    22499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22500   (eval $ac_try) 2>&5
    22501   ac_status=$?
    22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22503   (exit $ac_status); }; }; then
    22504   ac_cv_lib_dl_dlopen=yes
    22505 else
    22506   echo "$as_me: failed program was:" >&5
    22507 sed 's/^/| /' conftest.$ac_ext >&5
    22508 
    22509 ac_cv_lib_dl_dlopen=no
    22510 fi
    22511 rm -f conftest.err conftest.$ac_objext \
    22512       conftest$ac_exeext conftest.$ac_ext
    22513 LIBS=$ac_check_lib_save_LIBS
    22514 fi
    22515 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    22516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    22517 if test $ac_cv_lib_dl_dlopen = yes; then
    22518   ASLLIB="$ASLLIB -ldl"
    22519 fi
    22520 
     22859
     22860    break
     22861  done
     22862
     22863  # remove spaces on begin of $projtoprocess
     22864  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     22865
     22866done
     22867
     22868if test "$allproj" != fail ; then
     22869
     22870  # now go through the list of .pc files and assemble compiler and linker flags
     22871  # important is here to obey the reverse order that has been setup before,
     22872  # since then libraries that are required by several others should be after these other libraries
     22873  pcfilesprocessed=""
     22874
     22875  save_IFS="$IFS"
     22876  IFS=":"
     22877  for pcfile in $allpcfiles ; do
     22878
     22879    # if $pcfile has been processed already, skip this round
     22880    if test "x$pcfilesprocessed" != x ; then
     22881      for pcfiledone in $pcfilesprocessed ; do
     22882        if test "$pcfiledone" = "$pcfile" ; then
     22883          continue 2
     22884        fi
     22885      done
     22886    fi
     22887
     22888    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22889    #   replace "Libs:" by "echo projlibs="
     22890    #   replace "Cflags:" by "echo projcflags="
     22891    #   remove every line starting with <some word>:
     22892    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22893
     22894    # set projcflags and projlibs variables by running $pcfilemod
     22895    projcflags=
     22896    projlibs=
     22897    eval `sh -c "$pcfilemod"`
     22898
     22899    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22900    if test "${CYGPATH_W}" != "echo"; then
     22901      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22902    fi
     22903    ASL_CFLAGS="$projcflags $ASL_CFLAGS"
     22904
     22905    # set LIBS variable
     22906    ASL_LIBS="$projlibs $ASL_LIBS"
     22907
     22908    # remember that we have processed $pcfile
     22909    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22910
     22911  done
     22912  IFS="$save_IFS"
     22913
     22914
     22915  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     22916  # important is here again to obey the reverse order that has been setup before,
     22917  # since then libraries that are required by several others should be after these other libraries
     22918  pcfilesprocessed=""
     22919
     22920  save_IFS="$IFS"
     22921  IFS=":"
     22922  for pcfile in $allpcifiles ; do
     22923
     22924    # if $pcfile has been processed already, skip this round
     22925    if test "x$pcfilesprocessed" != x ; then
     22926      for pcfiledone in $pcfilesprocessed ; do
     22927        if test "$pcfiledone" = "$pcfile" ; then
     22928          continue 2
     22929        fi
     22930      done
     22931    fi
     22932
     22933    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     22934    #   replace "Libs:" by "echo projlibs="
     22935    #   replace "Cflags:" by "echo projcflags="
     22936    #   remove every line starting with <some word>:
     22937    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     22938
     22939    # set projcflags and projlibs variables by running $pcfilemod
     22940    projcflags=
     22941    projlibs=
     22942    eval `sh -c "$pcfilemod"`
     22943
     22944    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     22945    if test "${CYGPATH_W}" != "echo"; then
     22946      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22947    fi
     22948    ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
     22949
     22950    # set LIBS variable
     22951    ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
     22952
     22953    # remember that we have processed $pcfile
     22954    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     22955
     22956  done
     22957  IFS="$save_IFS"
     22958
     22959
     22960  # finish up
    2252122961  coin_has_asl=yes
     22962  echo "$as_me:$LINENO: result: yes" >&5
     22963echo "${ECHO_T}yes" >&6
    2252222964
    2252322965cat >>confdefs.h <<\_ACEOF
     
    2252522967_ACEOF
    2252622968
    22527   ac_ext=c
    22528 ac_cpp='$CPP $CPPFLAGS'
    22529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22532 
    22533 else
    22534   coin_has_asl=no
    22535 fi
    22536 
    22537 
    22538 if test $coin_has_asl = yes; then
     22969
     22970  # adjust linker flags for (i)cl compiler
     22971  # 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),
     22972  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     22973  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     22974  #    everything of the form "-lname" by "libname.lib"
     22975  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     22976  then
     22977    ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     22978    ASL_LIBS_INSTALLED=`echo " $ASL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     22979  fi
     22980
     22981
     22982
     22983fi
     22984
     22985
     22986
     22987if test $coin_has_asl != notGiven &&
     22988                test $coin_has_asl != skipping; then
    2253922989  COIN_HAS_ASL_TRUE=
    2254022990  COIN_HAS_ASL_FALSE='#'
     
    2254322993  COIN_HAS_ASL_FALSE=
    2254422994fi
     22995
     22996
     22997
     22998  fi
     22999
     23000else
     23001  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
     23002echo "${ECHO_T}$coin_has_asl" >&6
     23003fi
     23004
     23005if test $coin_has_asl != skipping &&
     23006   test $coin_has_asl != notGiven ; then
     23007
     23008cat >>confdefs.h <<\_ACEOF
     23009#define COIN_HAS_ASL 1
     23010_ACEOF
     23011
     23012
     23013  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23014if test "${enable_interpackage_dependencies+set}" = set; then
     23015  enableval="$enable_interpackage_dependencies"
     23016
     23017else
     23018  enable_interpackage_dependencies=yes
     23019fi;
     23020
     23021  if test $enable_interpackage_dependencies = yes ; then
     23022     # construct dependencies variables from LIBS variables
     23023     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23024     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23025     # then remove everything of the form -xxx
     23026     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23027     ASL_DEPENDENCIES=`echo " $ASL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23028
     23029  fi
     23030
     23031  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23032    if test -n "$ASL_CFLAGS" ; then
     23033      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     23034echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
     23035    fi
     23036    if test -n "$ASL_LIBS" ; then
     23037      { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
     23038echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
     23039    fi
     23040    if test -n "$ASL_DEPENDENCIES" ; then
     23041      { echo "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5
     23042echo "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;}
     23043    fi
     23044    if test -n "$ASL_DATA" ; then
     23045      { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
     23046echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
     23047    fi
     23048    if test -n "$ASL_CFLAGS" ; then
     23049      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     23050echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
     23051    fi
     23052
     23053  fi
     23054fi
     23055
     23056# Define the Makefile conditional
     23057
     23058
     23059if test $coin_has_asl != notGiven &&
     23060                test $coin_has_asl != skipping; then
     23061  COIN_HAS_ASL_TRUE=
     23062  COIN_HAS_ASL_FALSE='#'
     23063else
     23064  COIN_HAS_ASL_TRUE='#'
     23065  COIN_HAS_ASL_FALSE=
     23066fi
     23067
    2254523068
    2254623069
     
    2263023153    if test x"$nauty_libcheck" != xno; then
    2263123154           coin_save_LIBS="$LIBS"
    22632            LIBS="$NTYLIB $ADDLIBS"
     23155           LIBS="$NTYLIB "
    2263323156           coin_NTY_link=no
    2263423157           ac_ext=c
     
    2269823221ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2269923222
    22700            if test x"$coin_NTY_link" = xyes ; then
    22701              LIBS="$coin_save_LIBS"
    22702            else
     23223           LIBS="$coin_save_LIBS"
     23224           if test x"$coin_NTY_link" != xyes ; then
    2270323225             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) nauty with NTY" >&5
    2270423226echo "$as_me: error: Cannot find symbol(s) nauty with NTY" >&2;}
     
    2270923231
    2271023232# If we make it this far, we've verified the file and linked the function. Add
    22711 # the necessary link flags to ADDLIBS and define the preprocessor symbol
     23233# the necessary link flags to CouenneLib_{PC}LIBS and define the preprocessor symbol
    2271223234# COIN_HAS_LBRY.
    2271323235
    22714     ADDLIBS="$NTYLIB $ADDLIBS"
     23236
     23237      COUENNELIB_LIBS="$NTYLIB $COUENNELIB_LIBS"
     23238      COUENNELIB_PCLIBS="$NTYLIB $COUENNELIB_PCLIBS"
     23239      COUENNELIB_LIBS_INSTALLED="$NTYLIB $COUENNELIB_LIBS_INSTALLED"
     23240
     23241
    2271523242
    2271623243cat >>confdefs.h <<\_ACEOF
     
    2274323270
    2274423271
    22745 
    22746   echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
    22747 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
    22748 
    22749 # Check for header file directory
     23272# CPLEX: check for OsiCplex, and check for cplex include dir, so we can include cplex.h
     23273
     23274echo "$as_me:$LINENO: checking for COIN-OR package Cpx" >&5
     23275echo $ECHO_N "checking for COIN-OR package Cpx... $ECHO_C" >&6
     23276
     23277coin_has_cpx=notGiven
     23278
     23279# check if user wants to skip package in any case
     23280if test x"$COIN_SKIP_PROJECTS" != x; then
     23281  for dir in $COIN_SKIP_PROJECTS; do
     23282    if test $dir = "Cpx"; then
     23283      coin_has_cpx=skipping
     23284    fi
     23285  done
     23286fi
     23287
     23288CPX_LIBS=
     23289CPX_CFLAGS=
     23290CPX_DATA=
     23291
     23292
     23293
     23294
     23295
     23296
     23297
     23298
     23299
     23300
     23301
     23302
     23303
     23304
     23305
     23306
     23307
     23308#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     23309if test $coin_has_cpx != skipping; then
     23310
     23311# Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
     23312if test "${with_cpx_lib+set}" = set; then
     23313  withval="$with_cpx_lib"
     23314  if test "$withval" = no ; then
     23315       coin_has_cpx=skipping
     23316     else
     23317       coin_has_cpx=yes
     23318       CPX_LIBS="$withval"
     23319
     23320         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     23321         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     23322
     23323     fi
     23324
     23325fi;
     23326fi
     23327
     23328if test $coin_has_cpx != skipping; then
     23329
     23330# Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
     23331if test "${with_cpx_incdir+set}" = set; then
     23332  withval="$with_cpx_incdir"
     23333  if test "$withval" = no ; then
     23334       coin_has_cpx=skipping
     23335     else
     23336       coin_has_cpx=yes
     23337       CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     23338       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     23339     fi
     23340
     23341fi;
     23342fi
     23343
     23344if test $coin_has_cpx != skipping; then
     23345
     23346# Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
     23347if test "${with_cpx_datadir+set}" = set; then
     23348  withval="$with_cpx_datadir"
     23349  if test "$withval" = no ; then
     23350       coin_has_cpx=skipping
     23351     else
     23352       coin_has_cpx=yes
     23353       CPX_DATA="$withval"
     23354     fi
     23355
     23356fi;
     23357fi
     23358
     23359if test $coin_has_cpx = notGiven; then
     23360  if test -n "$PKG_CONFIG" ; then
     23361    # set search path for pkg-config
     23362    # need to export variable to be sure that the following pkg-config gets these values
     23363    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23364    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23365    export PKG_CONFIG_PATH
     23366
     23367    # let pkg-config do it's magic
     23368
     23369
     23370
     23371if test -n "$PKG_CONFIG" ; then
     23372  if $PKG_CONFIG --exists "osi-cplex"; then
     23373    CPX_VERSIONS="`$PKG_CONFIG --modversion "osi-cplex" 2>/dev/null | tr '\n' ' '`"
     23374     cflags=`$PKG_CONFIG --cflags "osi-cplex" 2>/dev/null`
     23375    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23376        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23377        # but only do this if is not trivial
     23378    if test "$CYGPATH_W" != "echo" ; then
     23379      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23380      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23381    fi
     23382    CPX_CFLAGS="$cflags"
     23383    CPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/null`
     23384    CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cplex" 2>/dev/null`
     23385     coin_has_cpx=yes
     23386        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
     23387echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
     23388
     23389        # adjust linker flags for (i)cl compiler
     23390        # 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)
     23391        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23392        then
     23393          CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23394        fi
     23395
     23396        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     23397
     23398          COUENNELIB_PCREQUIRES="osi-cplex $COUENNELIB_PCREQUIRES"
     23399          COUENNELIB_CFLAGS="$CPX_CFLAGS $COUENNELIB_CFLAGS"
     23400          COUENNELIB_LIBS="$CPX_LIBS $COUENNELIB_LIBS"
     23401
     23402
     23403
     23404  else
     23405    CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-cplex"`
     23406      coin_has_cpx=notGiven
     23407        echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
     23408echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
     23409
     23410  fi
     23411else
     23412  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
     23413echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
     23414   { (exit 1); exit 1; }; }
     23415fi
     23416
     23417
     23418
     23419
     23420    # reset PKG_CONFIG_PATH variable
     23421    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23422    export PKG_CONFIG_PATH
     23423
     23424  else
     23425    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23426echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23427
     23428echo "$as_me:$LINENO: checking for COIN-OR package Cpx (fallback)" >&5
     23429echo $ECHO_N "checking for COIN-OR package Cpx (fallback)... $ECHO_C" >&6
     23430
     23431coin_has_cpx=notGiven
     23432CPX_LIBS=
     23433CPX_LIBS_INSTALLED=
     23434CPX_CFLAGS=
     23435CPX_CFLAGS_INSTALLED=
     23436CPX_DATA=
     23437CPX_DATA_INSTALLED=
     23438
     23439# initial list of dependencies is "osi-cplex", but we need to filter out version number specifications (= x, <= x, >= x)
     23440projtoprocess="osi-cplex"
     23441
     23442# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23443# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23444# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23445# also, we setup the DATA variable
     23446allproj=""
     23447allpcfiles=""
     23448allpcifiles=""
     23449while test "x$projtoprocess" != x ; do
     23450
     23451  for proj in $projtoprocess ; do
     23452    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23453    pcfile=""
     23454    save_IFS="$IFS"
     23455    IFS=":"
     23456    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23457      # 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
     23458      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23459        pcfile="$dir/$proj-uninstalled.pc"
     23460        if test -r "$dir/${proj}.pc" ; then
     23461          pcifile="$dir/${proj}.pc"
     23462        else
     23463          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23464echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23465          pcifile=
     23466        fi
     23467        break
     23468      fi
     23469    done
     23470    IFS="$save_IFS"
     23471
     23472    if test "x$pcfile" != x ; then
     23473      # read dependencies from $pcfile and filter it
     23474      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23475
     23476      # add projrequires to the front of the list of projects that have to be processed next
     23477      # at the same time, remove $proj from this list
     23478      projtoprocess=${projtoprocess/$proj/$projrequires}
     23479
     23480      # read DATA from $pcfile, if _DATA is still empty
     23481      if test "x$CPX_DATA" = x ; then
     23482        projdatadir=
     23483        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23484        eval `sh -c "$pcfilemod"`
     23485        CPX_DATA="$projdatadir"
     23486      fi
     23487
     23488      allproj="$allproj $proj"
     23489      allpcfiles="$pcfile:$allpcfiles"
     23490
     23491    else
     23492      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23493echo "${ECHO_T}no, dependency $proj not available" >&6
     23494      allproj=fail
     23495      break 2
     23496    fi
     23497
     23498    if test "x$pcifile" != x ; then
     23499      allpcifiles="$pcifile:$allpcifiles"
     23500
     23501      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23502      if test "x$CPX_DATA_INSTALLED" = x ; then
     23503        projdatadir=
     23504        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23505        eval `sh -c "$pcifilemod"`
     23506        if test "${CYGPATH_W}" != "echo"; then
     23507          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23508        fi
     23509        CPX_DATA_INSTALLED="$projdatadir"
     23510      fi
     23511
     23512    fi
     23513
     23514    break
     23515  done
     23516
     23517  # remove spaces on begin of $projtoprocess
     23518  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     23519
     23520done
     23521
     23522if test "$allproj" != fail ; then
     23523
     23524  # now go through the list of .pc files and assemble compiler and linker flags
     23525  # important is here to obey the reverse order that has been setup before,
     23526  # since then libraries that are required by several others should be after these other libraries
     23527  pcfilesprocessed=""
     23528
     23529  save_IFS="$IFS"
     23530  IFS=":"
     23531  for pcfile in $allpcfiles ; do
     23532
     23533    # if $pcfile has been processed already, skip this round
     23534    if test "x$pcfilesprocessed" != x ; then
     23535      for pcfiledone in $pcfilesprocessed ; do
     23536        if test "$pcfiledone" = "$pcfile" ; then
     23537          continue 2
     23538        fi
     23539      done
     23540    fi
     23541
     23542    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23543    #   replace "Libs:" by "echo projlibs="
     23544    #   replace "Cflags:" by "echo projcflags="
     23545    #   remove every line starting with <some word>:
     23546    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23547
     23548    # set projcflags and projlibs variables by running $pcfilemod
     23549    projcflags=
     23550    projlibs=
     23551    eval `sh -c "$pcfilemod"`
     23552
     23553    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23554    if test "${CYGPATH_W}" != "echo"; then
     23555      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23556    fi
     23557    CPX_CFLAGS="$projcflags $CPX_CFLAGS"
     23558
     23559    # set LIBS variable
     23560    CPX_LIBS="$projlibs $CPX_LIBS"
     23561
     23562    # remember that we have processed $pcfile
     23563    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23564
     23565  done
     23566  IFS="$save_IFS"
     23567
     23568
     23569  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     23570  # important is here again to obey the reverse order that has been setup before,
     23571  # since then libraries that are required by several others should be after these other libraries
     23572  pcfilesprocessed=""
     23573
     23574  save_IFS="$IFS"
     23575  IFS=":"
     23576  for pcfile in $allpcifiles ; do
     23577
     23578    # if $pcfile has been processed already, skip this round
     23579    if test "x$pcfilesprocessed" != x ; then
     23580      for pcfiledone in $pcfilesprocessed ; do
     23581        if test "$pcfiledone" = "$pcfile" ; then
     23582          continue 2
     23583        fi
     23584      done
     23585    fi
     23586
     23587    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     23588    #   replace "Libs:" by "echo projlibs="
     23589    #   replace "Cflags:" by "echo projcflags="
     23590    #   remove every line starting with <some word>:
     23591    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     23592
     23593    # set projcflags and projlibs variables by running $pcfilemod
     23594    projcflags=
     23595    projlibs=
     23596    eval `sh -c "$pcfilemod"`
     23597
     23598    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     23599    if test "${CYGPATH_W}" != "echo"; then
     23600      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23601    fi
     23602    CPX_CFLAGS_INSTALLED="$projcflags $CPX_CFLAGS_INSTALLED"
     23603
     23604    # set LIBS variable
     23605    CPX_LIBS_INSTALLED="$projlibs $CPX_LIBS_INSTALLED"
     23606
     23607    # remember that we have processed $pcfile
     23608    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     23609
     23610  done
     23611  IFS="$save_IFS"
     23612
     23613
     23614  # finish up
     23615  coin_has_cpx=yes
     23616  echo "$as_me:$LINENO: result: yes" >&5
     23617echo "${ECHO_T}yes" >&6
     23618
     23619cat >>confdefs.h <<\_ACEOF
     23620#define COIN_HAS_CPX 1
     23621_ACEOF
     23622
     23623
     23624  # adjust linker flags for (i)cl compiler
     23625  # 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),
     23626  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     23627  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     23628  #    everything of the form "-lname" by "libname.lib"
     23629  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23630  then
     23631    CPX_LIBS=`echo " $CPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23632    CPX_LIBS_INSTALLED=`echo " $CPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     23633  fi
     23634
     23635
     23636    COUENNELIB_PCREQUIRES="osi-cplex $COUENNELIB_PCREQUIRES"
     23637    COUENNELIB_CFLAGS="$CPX_CFLAGS $COUENNELIB_CFLAGS"
     23638    COUENNELIB_LIBS="$CPX_LIBS $COUENNELIB_LIBS"
     23639    COUENNELIB_CFLAGS_INSTALLED="$CPX_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     23640    COUENNELIB_LIBS_INSTALLED="$CPX_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     23641
     23642
     23643fi
     23644
     23645
     23646
     23647if test $coin_has_cpx != notGiven &&
     23648                test $coin_has_cpx != skipping; then
     23649  COIN_HAS_CPX_TRUE=
     23650  COIN_HAS_CPX_FALSE='#'
     23651else
     23652  COIN_HAS_CPX_TRUE='#'
     23653  COIN_HAS_CPX_FALSE=
     23654fi
     23655
     23656
     23657
     23658  fi
     23659
     23660else
     23661  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     23662echo "${ECHO_T}$coin_has_cpx" >&6
     23663fi
     23664
     23665if test $coin_has_cpx != skipping &&
     23666   test $coin_has_cpx != notGiven ; then
     23667
     23668cat >>confdefs.h <<\_ACEOF
     23669#define COIN_HAS_CPX 1
     23670_ACEOF
     23671
     23672
     23673  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     23674if test "${enable_interpackage_dependencies+set}" = set; then
     23675  enableval="$enable_interpackage_dependencies"
     23676
     23677else
     23678  enable_interpackage_dependencies=yes
     23679fi;
     23680
     23681  if test $enable_interpackage_dependencies = yes ; then
     23682     # construct dependencies variables from LIBS variables
     23683     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     23684     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     23685     # then remove everything of the form -xxx
     23686     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     23687     CPX_DEPENDENCIES=`echo " $CPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23688
     23689       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     23690
     23691  fi
     23692
     23693  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     23694    if test -n "$CPX_CFLAGS" ; then
     23695      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23696echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     23697    fi
     23698    if test -n "$CPX_LIBS" ; then
     23699      { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
     23700echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
     23701    fi
     23702    if test -n "$CPX_DEPENDENCIES" ; then
     23703      { echo "$as_me:$LINENO: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&5
     23704echo "$as_me: Cpx DEPENDENCIES are $CPX_DEPENDENCIES" >&6;}
     23705    fi
     23706    if test -n "$CPX_DATA" ; then
     23707      { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
     23708echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
     23709    fi
     23710    if test -n "$CPX_CFLAGS" ; then
     23711      { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     23712echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     23713    fi
     23714
     23715      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     23716echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     23717      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     23718echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     23719      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     23720echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     23721
     23722  fi
     23723fi
     23724
     23725# Define the Makefile conditional
     23726
     23727
     23728if test $coin_has_cpx != notGiven &&
     23729                test $coin_has_cpx != skipping; then
     23730  COIN_HAS_CPX_TRUE=
     23731  COIN_HAS_CPX_FALSE='#'
     23732else
     23733  COIN_HAS_CPX_TRUE='#'
     23734  COIN_HAS_CPX_FALSE=
     23735fi
     23736
     23737
    2275023738
    2275123739
     
    2275623744fi;
    2275723745
    22758 # Check for library directory
    22759 
    22760 
    22761 # Check whether --with-cplex-lib or --without-cplex-lib was given.
    22762 if test "${with_cplex_lib+set}" = set; then
    22763   withval="$with_cplex_lib"
    22764   CPXLIB=$withval
     23746# other LP solvers
     23747
     23748echo "$as_me:$LINENO: checking for COIN-OR package Grb" >&5
     23749echo $ECHO_N "checking for COIN-OR package Grb... $ECHO_C" >&6
     23750
     23751coin_has_grb=notGiven
     23752
     23753# check if user wants to skip package in any case
     23754if test x"$COIN_SKIP_PROJECTS" != x; then
     23755  for dir in $COIN_SKIP_PROJECTS; do
     23756    if test $dir = "Grb"; then
     23757      coin_has_grb=skipping
     23758    fi
     23759  done
     23760fi
     23761
     23762GRB_LIBS=
     23763GRB_CFLAGS=
     23764GRB_DATA=
     23765
     23766
     23767
     23768
     23769
     23770
     23771
     23772
     23773
     23774
     23775
     23776
     23777
     23778
     23779
     23780
     23781
     23782#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     23783if test $coin_has_grb != skipping; then
     23784
     23785# Check whether --with-m4_tolower(Grb)-lib or --without-m4_tolower(Grb)-lib was given.
     23786if test "${with_grb_lib+set}" = set; then
     23787  withval="$with_grb_lib"
     23788  if test "$withval" = no ; then
     23789       coin_has_grb=skipping
     23790     else
     23791       coin_has_grb=yes
     23792       GRB_LIBS="$withval"
     23793
     23794         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     23795         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     23796
     23797     fi
     23798
    2276523799fi;
    22766 
    22767 # Switch to disable library check if requested
    22768 
    22769   # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
    22770 if test "${enable_cplex_libcheck+set}" = set; then
    22771   enableval="$enable_cplex_libcheck"
    22772   cplex_libcheck=$enableval
    22773 else
    22774   cplex_libcheck=yes
     23800fi
     23801
     23802if test $coin_has_grb != skipping; then
     23803
     23804# Check whether --with-m4_tolower(Grb)-incdir or --without-m4_tolower(Grb)-incdir was given.
     23805if test "${with_grb_incdir+set}" = set; then
     23806  withval="$with_grb_incdir"
     23807  if test "$withval" = no ; then
     23808       coin_has_grb=skipping
     23809     else
     23810       coin_has_grb=yes
     23811       GRB_CFLAGS="-I`${CYGPATH_W} $withval`"
     23812       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     23813     fi
     23814
    2277523815fi;
    22776 
    22777 # At this point, if we're going to use the library, both LBRYINCDIR and
    22778 # LBRYLIB must be defined and not empty.
    22779 
    22780   if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
    22781     if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
    22782       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&5
    22783 echo "$as_me: error: You need to specify both an include directory and link flags to use library Cplex. Use --with-cplex-incdir of environment variable $CPXINCDIR to specify the include directory. Use --with-cplex-lib or environment variable $CPXLIB to specify link flags." >&2;}
     23816fi
     23817
     23818if test $coin_has_grb != skipping; then
     23819
     23820# Check whether --with-m4_tolower(Grb)-datadir or --without-m4_tolower(Grb)-datadir was given.
     23821if test "${with_grb_datadir+set}" = set; then
     23822  withval="$with_grb_datadir"
     23823  if test "$withval" = no ; then
     23824       coin_has_grb=skipping
     23825     else
     23826       coin_has_grb=yes
     23827       GRB_DATA="$withval"
     23828     fi
     23829
     23830fi;
     23831fi
     23832
     23833if test $coin_has_grb = notGiven; then
     23834  if test -n "$PKG_CONFIG" ; then
     23835    # set search path for pkg-config
     23836    # need to export variable to be sure that the following pkg-config gets these values
     23837    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23838    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     23839    export PKG_CONFIG_PATH
     23840
     23841    # let pkg-config do it's magic
     23842
     23843
     23844
     23845if test -n "$PKG_CONFIG" ; then
     23846  if $PKG_CONFIG --exists "osi-gurobi"; then
     23847    GRB_VERSIONS="`$PKG_CONFIG --modversion "osi-gurobi" 2>/dev/null | tr '\n' ' '`"
     23848     cflags=`$PKG_CONFIG --cflags "osi-gurobi" 2>/dev/null`
     23849    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23850        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23851        # but only do this if is not trivial
     23852    if test "$CYGPATH_W" != "echo" ; then
     23853      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23854      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23855    fi
     23856    GRB_CFLAGS="$cflags"
     23857    GRB_LIBS=`$PKG_CONFIG --libs "osi-gurobi" 2>/dev/null`
     23858    GRB_DATA=`$PKG_CONFIG --variable=datadir "osi-gurobi" 2>/dev/null`
     23859     coin_has_grb=yes
     23860        echo "$as_me:$LINENO: result: yes: $GRB_VERSIONS" >&5
     23861echo "${ECHO_T}yes: $GRB_VERSIONS" >&6
     23862
     23863        # adjust linker flags for (i)cl compiler
     23864        # 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)
     23865        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     23866        then
     23867          GRB_LIBS=`echo " $GRB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     23868        fi
     23869
     23870        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     23871
     23872          COUENNELIB_PCREQUIRES="osi-gurobi $COUENNELIB_PCREQUIRES"
     23873          COUENNELIB_CFLAGS="$GRB_CFLAGS $COUENNELIB_CFLAGS"
     23874          COUENNELIB_LIBS="$GRB_LIBS $COUENNELIB_LIBS"
     23875
     23876
     23877
     23878  else
     23879    GRB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-gurobi"`
     23880      coin_has_grb=notGiven
     23881        echo "$as_me:$LINENO: result: not given: $GRB_PKG_ERRORS" >&5
     23882echo "${ECHO_T}not given: $GRB_PKG_ERRORS" >&6
     23883
     23884  fi
     23885else
     23886  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Grb without pkg-config\"" >&5
     23887echo "$as_me: error: \"Cannot check for existance of module Grb without pkg-config\"" >&2;}
    2278423888   { (exit 1); exit 1; }; }
     23889fi
     23890
     23891
     23892
     23893
     23894    # reset PKG_CONFIG_PATH variable
     23895    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23896    export PKG_CONFIG_PATH
     23897
     23898  else
     23899    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     23900echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     23901
     23902echo "$as_me:$LINENO: checking for COIN-OR package Grb (fallback)" >&5
     23903echo $ECHO_N "checking for COIN-OR package Grb (fallback)... $ECHO_C" >&6
     23904
     23905coin_has_grb=notGiven
     23906GRB_LIBS=
     23907GRB_LIBS_INSTALLED=
     23908GRB_CFLAGS=
     23909GRB_CFLAGS_INSTALLED=
     23910GRB_DATA=
     23911GRB_DATA_INSTALLED=
     23912
     23913# initial list of dependencies is "osi-gurobi", but we need to filter out version number specifications (= x, <= x, >= x)
     23914projtoprocess="osi-gurobi"
     23915
     23916# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     23917# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     23918# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     23919# also, we setup the DATA variable
     23920allproj=""
     23921allpcfiles=""
     23922allpcifiles=""
     23923while test "x$projtoprocess" != x ; do
     23924
     23925  for proj in $projtoprocess ; do
     23926    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     23927    pcfile=""
     23928    save_IFS="$IFS"
     23929    IFS=":"
     23930    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     23931      # 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
     23932      if test -r "$dir/${proj}-uninstalled.pc" ; then
     23933        pcfile="$dir/$proj-uninstalled.pc"
     23934        if test -r "$dir/${proj}.pc" ; then
     23935          pcifile="$dir/${proj}.pc"
     23936        else
     23937          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     23938echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     23939          pcifile=
     23940        fi
     23941        break
     23942      fi
     23943    done
     23944    IFS="$save_IFS"
     23945
     23946    if test "x$pcfile" != x ; then
     23947      # read dependencies from $pcfile and filter it
     23948      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     23949
     23950      # add projrequires to the front of the list of projects that have to be processed next
     23951      # at the same time, remove $proj from this list
     23952      projtoprocess=${projtoprocess/$proj/$projrequires}
     23953
     23954      # read DATA from $pcfile, if _DATA is still empty
     23955      if test "x$GRB_DATA" = x ; then
     23956        projdatadir=
     23957        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     23958        eval `sh -c "$pcfilemod"`
     23959        GRB_DATA="$projdatadir"
     23960      fi
     23961
     23962      allproj="$allproj $proj"
     23963      allpcfiles="$pcfile:$allpcfiles"
     23964
     23965    else
     23966      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     23967echo "${ECHO_T}no, dependency $proj not available" >&6
     23968      allproj=fail
     23969      break 2
    2278523970    fi
    22786     coin_has_cpx=true
    22787     echo "$as_me:$LINENO: result: yes" >&5
    22788 echo "${ECHO_T}yes" >&6
    22789   else
    22790     coin_has_cpx=false
    22791     echo "$as_me:$LINENO: result: no" >&5
    22792 echo "${ECHO_T}no" >&6
    22793   fi
    22794 
    22795 # If we have instructions for use, consider header and link checks.
    22796 
    22797   if test $coin_has_cpx = true; then
    22798 
    22799 # If argument 3 (file) is given, check for the file. Typically this will be a
    22800 # header file, but that's not assumed.
    22801 
    22802     if test -r $CPXINCDIR/cplex.h; then
    22803 
    22804   :
    22805 else
    22806   { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
    22807 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
    22808    { (exit 1); exit 1; }; }
    22809   :
    22810 fi
    22811 
    22812 
    22813 # Now see if we can link the function. There are arguments for and against
    22814 # assuming argument 3 is a header file declaring the function. A correct
    22815 # function declaration is the main argument in favour. Having to cope with
    22816 # possible dependencies or other oddities are the main arguments against.
    22817 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    22818 # Obviously, this has limits.
    22819 
    22820     if test x"$cplex_libcheck" != xno; then
    22821            coin_save_LIBS="$LIBS"
    22822            LIBS="$CPXLIB $ADDLIBS"
    22823            coin_CPX_link=no
    22824            ac_ext=c
    22825 ac_cpp='$CPP $CPPFLAGS'
    22826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22829 
    22830            for fnm in CPXgetstat ; do
    22831              echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
    22832 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
    22833              cat >conftest.$ac_ext <<_ACEOF
    22834 /* confdefs.h.  */
    22835 _ACEOF
    22836 cat confdefs.h >>conftest.$ac_ext
    22837 cat >>conftest.$ac_ext <<_ACEOF
    22838 /* end confdefs.h.  */
    22839 
    22840 int
    22841 main ()
    22842 {
    22843 $fnm()
    22844   ;
    22845   return 0;
    22846 }
    22847 _ACEOF
    22848 rm -f conftest.$ac_objext conftest$ac_exeext
    22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22850   (eval $ac_link) 2>conftest.er1
    22851   ac_status=$?
    22852   grep -v '^ *+' conftest.er1 >conftest.err
    22853   rm -f conftest.er1
    22854   cat conftest.err >&5
    22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22856   (exit $ac_status); } &&
    22857          { ac_try='test -z "$ac_c_werror_flag"
    22858                          || test ! -s conftest.err'
    22859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22860   (eval $ac_try) 2>&5
    22861   ac_status=$?
    22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22863   (exit $ac_status); }; } &&
    22864          { ac_try='test -s conftest$ac_exeext'
    22865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22866   (eval $ac_try) 2>&5
    22867   ac_status=$?
    22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22869   (exit $ac_status); }; }; then
     23971
     23972    if test "x$pcifile" != x ; then
     23973      allpcifiles="$pcifile:$allpcifiles"
     23974
     23975      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     23976      if test "x$GRB_DATA_INSTALLED" = x ; then
     23977        projdatadir=
     23978        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     23979        eval `sh -c "$pcifilemod"`
     23980        if test "${CYGPATH_W}" != "echo"; then
     23981          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     23982        fi
     23983        GRB_DATA_INSTALLED="$projdatadir"
     23984      fi
     23985
     23986    fi
     23987
     23988    break
     23989  done
     23990
     23991  # remove spaces on begin of $projtoprocess
     23992  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     23993
     23994done
     23995
     23996if test "$allproj" != fail ; then
     23997
     23998  # now go through the list of .pc files and assemble compiler and linker flags
     23999  # important is here to obey the reverse order that has been setup before,
     24000  # since then libraries that are required by several others should be after these other libraries
     24001  pcfilesprocessed=""
     24002
     24003  save_IFS="$IFS"
     24004  IFS=":"
     24005  for pcfile in $allpcfiles ; do
     24006
     24007    # if $pcfile has been processed already, skip this round
     24008    if test "x$pcfilesprocessed" != x ; then
     24009      for pcfiledone in $pcfilesprocessed ; do
     24010        if test "$pcfiledone" = "$pcfile" ; then
     24011          continue 2
     24012        fi
     24013      done
     24014    fi
     24015
     24016    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24017    #   replace "Libs:" by "echo projlibs="
     24018    #   replace "Cflags:" by "echo projcflags="
     24019    #   remove every line starting with <some word>:
     24020    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24021
     24022    # set projcflags and projlibs variables by running $pcfilemod
     24023    projcflags=
     24024    projlibs=
     24025    eval `sh -c "$pcfilemod"`
     24026
     24027    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24028    if test "${CYGPATH_W}" != "echo"; then
     24029      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24030    fi
     24031    GRB_CFLAGS="$projcflags $GRB_CFLAGS"
     24032
     24033    # set LIBS variable
     24034    GRB_LIBS="$projlibs $GRB_LIBS"
     24035
     24036    # remember that we have processed $pcfile
     24037    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24038
     24039  done
     24040  IFS="$save_IFS"
     24041
     24042
     24043  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24044  # important is here again to obey the reverse order that has been setup before,
     24045  # since then libraries that are required by several others should be after these other libraries
     24046  pcfilesprocessed=""
     24047
     24048  save_IFS="$IFS"
     24049  IFS=":"
     24050  for pcfile in $allpcifiles ; do
     24051
     24052    # if $pcfile has been processed already, skip this round
     24053    if test "x$pcfilesprocessed" != x ; then
     24054      for pcfiledone in $pcfilesprocessed ; do
     24055        if test "$pcfiledone" = "$pcfile" ; then
     24056          continue 2
     24057        fi
     24058      done
     24059    fi
     24060
     24061    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24062    #   replace "Libs:" by "echo projlibs="
     24063    #   replace "Cflags:" by "echo projcflags="
     24064    #   remove every line starting with <some word>:
     24065    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24066
     24067    # set projcflags and projlibs variables by running $pcfilemod
     24068    projcflags=
     24069    projlibs=
     24070    eval `sh -c "$pcfilemod"`
     24071
     24072    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24073    if test "${CYGPATH_W}" != "echo"; then
     24074      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24075    fi
     24076    GRB_CFLAGS_INSTALLED="$projcflags $GRB_CFLAGS_INSTALLED"
     24077
     24078    # set LIBS variable
     24079    GRB_LIBS_INSTALLED="$projlibs $GRB_LIBS_INSTALLED"
     24080
     24081    # remember that we have processed $pcfile
     24082    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24083
     24084  done
     24085  IFS="$save_IFS"
     24086
     24087
     24088  # finish up
     24089  coin_has_grb=yes
    2287024090  echo "$as_me:$LINENO: result: yes" >&5
    2287124091echo "${ECHO_T}yes" >&6
    22872                   coin_CPX_link=yes
    22873                   break
    22874 else
    22875   echo "$as_me: failed program was:" >&5
    22876 sed 's/^/| /' conftest.$ac_ext >&5
    22877 
    22878 echo "$as_me:$LINENO: result: no" >&5
    22879 echo "${ECHO_T}no" >&6
    22880 fi
    22881 rm -f conftest.err conftest.$ac_objext \
    22882       conftest$ac_exeext conftest.$ac_ext
    22883            done
    22884            ac_ext=c
    22885 ac_cpp='$CPP $CPPFLAGS'
    22886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22889 
    22890            if test x"$coin_CPX_link" = xyes ; then
    22891              LIBS="$coin_save_LIBS"
    22892            else
    22893              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
    22894 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
    22895    { (exit 1); exit 1; }; }
    22896            fi
    22897          fi
    22898 
    22899 
    22900 # If we make it this far, we've verified the file and linked the function. Add
    22901 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    22902 # COIN_HAS_LBRY.
    22903 
    22904     ADDLIBS="$CPXLIB $ADDLIBS"
    22905 
    22906 cat >>confdefs.h <<\_ACEOF
    22907 #define COIN_HAS_CPX 1
    22908 _ACEOF
    22909 
    22910   fi
    22911 
    22912 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    22913 # automake conditional. These actions must occur unconditionally.
    22914 
    22915 
    22916 
    22917 
    22918 
    22919 if test $coin_has_cpx = true; then
    22920   COIN_HAS_CPX_TRUE=
    22921   COIN_HAS_CPX_FALSE='#'
    22922 else
    22923   COIN_HAS_CPX_TRUE='#'
    22924   COIN_HAS_CPX_FALSE=
    22925 fi
    22926 
    22927          # Cplex library
    22928 
    22929   echo "$as_me:$LINENO: checking if user provides library for Gurobi" >&5
    22930 echo $ECHO_N "checking if user provides library for Gurobi... $ECHO_C" >&6
    22931 
    22932 # Check for header file directory
    22933 
    22934 
    22935 # Check whether --with-gurobi-incdir or --without-gurobi-incdir was given.
    22936 if test "${with_gurobi_incdir+set}" = set; then
    22937   withval="$with_gurobi_incdir"
    22938   GRBINCDIR=`cd $withval; pwd`
    22939 fi;
    22940 
    22941 # Check for library directory
    22942 
    22943 
    22944 # Check whether --with-gurobi-lib or --without-gurobi-lib was given.
    22945 if test "${with_gurobi_lib+set}" = set; then
    22946   withval="$with_gurobi_lib"
    22947   GRBLIB=$withval
    22948 fi;
    22949 
    22950 # Switch to disable library check if requested
    22951 
    22952   # Check whether --enable-gurobi-libcheck or --disable-gurobi-libcheck was given.
    22953 if test "${enable_gurobi_libcheck+set}" = set; then
    22954   enableval="$enable_gurobi_libcheck"
    22955   gurobi_libcheck=$enableval
    22956 else
    22957   gurobi_libcheck=yes
    22958 fi;
    22959 
    22960 # At this point, if we're going to use the library, both LBRYINCDIR and
    22961 # LBRYLIB must be defined and not empty.
    22962 
    22963   if test x"$GRBINCDIR" != x || test x"$GRBLIB" != x; then
    22964     if test x"$GRBINCDIR" = x || test x"$GRBLIB" = x; then
    22965       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&5
    22966 echo "$as_me: error: You need to specify both an include directory and link flags to use library Gurobi. Use --with-gurobi-incdir of environment variable $GRBINCDIR to specify the include directory. Use --with-gurobi-lib or environment variable $GRBLIB to specify link flags." >&2;}
    22967    { (exit 1); exit 1; }; }
    22968     fi
    22969     coin_has_grb=true
    22970     echo "$as_me:$LINENO: result: yes" >&5
    22971 echo "${ECHO_T}yes" >&6
    22972   else
    22973     coin_has_grb=false
    22974     echo "$as_me:$LINENO: result: no" >&5
    22975 echo "${ECHO_T}no" >&6
    22976   fi
    22977 
    22978 # If we have instructions for use, consider header and link checks.
    22979 
    22980   if test $coin_has_grb = true; then
    22981 
    22982 # If argument 3 (file) is given, check for the file. Typically this will be a
    22983 # header file, but that's not assumed.
    22984 
    22985     if test -r $GRBINCDIR/gurobi_c.h; then
    22986 
    22987   :
    22988 else
    22989   { { echo "$as_me:$LINENO: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&5
    22990 echo "$as_me: error: Cannot find file gurobi_c.h in $GRBINCDIR" >&2;}
    22991    { (exit 1); exit 1; }; }
    22992   :
    22993 fi
    22994 
    22995 
    22996 # Now see if we can link the function. There are arguments for and against
    22997 # assuming argument 3 is a header file declaring the function. A correct
    22998 # function declaration is the main argument in favour. Having to cope with
    22999 # possible dependencies or other oddities are the main arguments against.
    23000 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23001 # Obviously, this has limits.
    23002 
    23003     if test x"$gurobi_libcheck" != xno; then
    23004            coin_save_LIBS="$LIBS"
    23005            LIBS="$GRBLIB $ADDLIBS"
    23006            coin_GRB_link=no
    23007            ac_ext=c
    23008 ac_cpp='$CPP $CPPFLAGS'
    23009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23012 
    23013            for fnm in GRBgetattrinfo ; do
    23014              echo "$as_me:$LINENO: checking whether symbol $fnm is available with GRB" >&5
    23015 echo $ECHO_N "checking whether symbol $fnm is available with GRB... $ECHO_C" >&6
    23016              cat >conftest.$ac_ext <<_ACEOF
    23017 /* confdefs.h.  */
    23018 _ACEOF
    23019 cat confdefs.h >>conftest.$ac_ext
    23020 cat >>conftest.$ac_ext <<_ACEOF
    23021 /* end confdefs.h.  */
    23022 
    23023 int
    23024 main ()
    23025 {
    23026 $fnm()
    23027   ;
    23028   return 0;
    23029 }
    23030 _ACEOF
    23031 rm -f conftest.$ac_objext conftest$ac_exeext
    23032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23033   (eval $ac_link) 2>conftest.er1
    23034   ac_status=$?
    23035   grep -v '^ *+' conftest.er1 >conftest.err
    23036   rm -f conftest.er1
    23037   cat conftest.err >&5
    23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23039   (exit $ac_status); } &&
    23040          { ac_try='test -z "$ac_c_werror_flag"
    23041                          || test ! -s conftest.err'
    23042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23043   (eval $ac_try) 2>&5
    23044   ac_status=$?
    23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23046   (exit $ac_status); }; } &&
    23047          { ac_try='test -s conftest$ac_exeext'
    23048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23049   (eval $ac_try) 2>&5
    23050   ac_status=$?
    23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23052   (exit $ac_status); }; }; then
    23053   echo "$as_me:$LINENO: result: yes" >&5
    23054 echo "${ECHO_T}yes" >&6
    23055                   coin_GRB_link=yes
    23056                   break
    23057 else
    23058   echo "$as_me: failed program was:" >&5
    23059 sed 's/^/| /' conftest.$ac_ext >&5
    23060 
    23061 echo "$as_me:$LINENO: result: no" >&5
    23062 echo "${ECHO_T}no" >&6
    23063 fi
    23064 rm -f conftest.err conftest.$ac_objext \
    23065       conftest$ac_exeext conftest.$ac_ext
    23066            done
    23067            ac_ext=c
    23068 ac_cpp='$CPP $CPPFLAGS'
    23069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23072 
    23073            if test x"$coin_GRB_link" = xyes ; then
    23074              LIBS="$coin_save_LIBS"
    23075            else
    23076              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) GRBgetattrinfo with GRB" >&5
    23077 echo "$as_me: error: Cannot find symbol(s) GRBgetattrinfo with GRB" >&2;}
    23078    { (exit 1); exit 1; }; }
    23079            fi
    23080          fi
    23081 
    23082 
    23083 # If we make it this far, we've verified the file and linked the function. Add
    23084 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23085 # COIN_HAS_LBRY.
    23086 
    23087     ADDLIBS="$GRBLIB $ADDLIBS"
    2308824092
    2308924093cat >>confdefs.h <<\_ACEOF
     
    2309124095_ACEOF
    2309224096
     24097
     24098  # adjust linker flags for (i)cl compiler
     24099  # 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),
     24100  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24101  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24102  #    everything of the form "-lname" by "libname.lib"
     24103  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24104  then
     24105    GRB_LIBS=`echo " $GRB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24106    GRB_LIBS_INSTALLED=`echo " $GRB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2309324107  fi
    2309424108
    23095 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23096 # automake conditional. These actions must occur unconditionally.
    23097 
    23098 
    23099 
    23100 
    23101 
    23102 if test $coin_has_grb = true; then
     24109
     24110    COUENNELIB_PCREQUIRES="osi-gurobi $COUENNELIB_PCREQUIRES"
     24111    COUENNELIB_CFLAGS="$GRB_CFLAGS $COUENNELIB_CFLAGS"
     24112    COUENNELIB_LIBS="$GRB_LIBS $COUENNELIB_LIBS"
     24113    COUENNELIB_CFLAGS_INSTALLED="$GRB_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     24114    COUENNELIB_LIBS_INSTALLED="$GRB_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     24115
     24116
     24117fi
     24118
     24119
     24120
     24121if test $coin_has_grb != notGiven &&
     24122                test $coin_has_grb != skipping; then
    2310324123  COIN_HAS_GRB_TRUE=
    2310424124  COIN_HAS_GRB_FALSE='#'
     
    2310824128fi
    2310924129
    23110  # Gurobi library
    23111 
    23112   echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
    23113 echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
    23114 
    23115 # Check for header file directory
    23116 
    23117 
    23118 # Check whether --with-mosek-incdir or --without-mosek-incdir was given.
    23119 if test "${with_mosek_incdir+set}" = set; then
    23120   withval="$with_mosek_incdir"
    23121   MSKINCDIR=`cd $withval; pwd`
     24130
     24131
     24132  fi
     24133
     24134else
     24135  echo "$as_me:$LINENO: result: $coin_has_grb" >&5
     24136echo "${ECHO_T}$coin_has_grb" >&6
     24137fi
     24138
     24139if test $coin_has_grb != skipping &&
     24140   test $coin_has_grb != notGiven ; then
     24141
     24142cat >>confdefs.h <<\_ACEOF
     24143#define COIN_HAS_GRB 1
     24144_ACEOF
     24145
     24146
     24147  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     24148if test "${enable_interpackage_dependencies+set}" = set; then
     24149  enableval="$enable_interpackage_dependencies"
     24150
     24151else
     24152  enable_interpackage_dependencies=yes
    2312224153fi;
    2312324154
    23124 # Check for library directory
    23125 
    23126 
    23127 # Check whether --with-mosek-lib or --without-mosek-lib was given.
    23128 if test "${with_mosek_lib+set}" = set; then
    23129   withval="$with_mosek_lib"
    23130   MSKLIB=$withval
     24155  if test $enable_interpackage_dependencies = yes ; then
     24156     # construct dependencies variables from LIBS variables
     24157     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24158     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     24159     # then remove everything of the form -xxx
     24160     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24161     GRB_DEPENDENCIES=`echo " $GRB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24162
     24163       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24164
     24165  fi
     24166
     24167  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24168    if test -n "$GRB_CFLAGS" ; then
     24169      { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     24170echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
     24171    fi
     24172    if test -n "$GRB_LIBS" ; then
     24173      { echo "$as_me:$LINENO: Grb LIBS   are $GRB_LIBS" >&5
     24174echo "$as_me: Grb LIBS   are $GRB_LIBS" >&6;}
     24175    fi
     24176    if test -n "$GRB_DEPENDENCIES" ; then
     24177      { echo "$as_me:$LINENO: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&5
     24178echo "$as_me: Grb DEPENDENCIES are $GRB_DEPENDENCIES" >&6;}
     24179    fi
     24180    if test -n "$GRB_DATA" ; then
     24181      { echo "$as_me:$LINENO: Grb DATA   is  $GRB_DATA" >&5
     24182echo "$as_me: Grb DATA   is  $GRB_DATA" >&6;}
     24183    fi
     24184    if test -n "$GRB_CFLAGS" ; then
     24185      { echo "$as_me:$LINENO: Grb CFLAGS are $GRB_CFLAGS" >&5
     24186echo "$as_me: Grb CFLAGS are $GRB_CFLAGS" >&6;}
     24187    fi
     24188
     24189      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     24190echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     24191      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     24192echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     24193      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     24194echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     24195
     24196  fi
     24197fi
     24198
     24199# Define the Makefile conditional
     24200
     24201
     24202if test $coin_has_grb != notGiven &&
     24203                test $coin_has_grb != skipping; then
     24204  COIN_HAS_GRB_TRUE=
     24205  COIN_HAS_GRB_FALSE='#'
     24206else
     24207  COIN_HAS_GRB_TRUE='#'
     24208  COIN_HAS_GRB_FALSE=
     24209fi
     24210
     24211
     24212  # Osi/Gurobi
     24213
     24214echo "$as_me:$LINENO: checking for COIN-OR package Msk" >&5
     24215echo $ECHO_N "checking for COIN-OR package Msk... $ECHO_C" >&6
     24216
     24217coin_has_msk=notGiven
     24218
     24219# check if user wants to skip package in any case
     24220if test x"$COIN_SKIP_PROJECTS" != x; then
     24221  for dir in $COIN_SKIP_PROJECTS; do
     24222    if test $dir = "Msk"; then
     24223      coin_has_msk=skipping
     24224    fi
     24225  done
     24226fi
     24227
     24228MSK_LIBS=
     24229MSK_CFLAGS=
     24230MSK_DATA=
     24231
     24232
     24233
     24234
     24235
     24236
     24237
     24238
     24239
     24240
     24241
     24242
     24243
     24244
     24245
     24246
     24247
     24248#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     24249if test $coin_has_msk != skipping; then
     24250
     24251# Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given.
     24252if test "${with_msk_lib+set}" = set; then
     24253  withval="$with_msk_lib"
     24254  if test "$withval" = no ; then
     24255       coin_has_msk=skipping
     24256     else
     24257       coin_has_msk=yes
     24258       MSK_LIBS="$withval"
     24259
     24260         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     24261         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     24262
     24263     fi
     24264
    2313124265fi;
    23132 
    23133 # Switch to disable library check if requested
    23134 
    23135   # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
    23136 if test "${enable_mosek_libcheck+set}" = set; then
    23137   enableval="$enable_mosek_libcheck"
    23138   mosek_libcheck=$enableval
    23139 else
    23140   mosek_libcheck=yes
     24266fi
     24267
     24268if test $coin_has_msk != skipping; then
     24269
     24270# Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given.
     24271if test "${with_msk_incdir+set}" = set; then
     24272  withval="$with_msk_incdir"
     24273  if test "$withval" = no ; then
     24274       coin_has_msk=skipping
     24275     else
     24276       coin_has_msk=yes
     24277       MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
     24278       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     24279     fi
     24280
    2314124281fi;
    23142 
    23143 # At this point, if we're going to use the library, both LBRYINCDIR and
    23144 # LBRYLIB must be defined and not empty.
    23145 
    23146   if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
    23147     if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
    23148       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&5
    23149 echo "$as_me: error: You need to specify both an include directory and link flags to use library Mosek. Use --with-mosek-incdir of environment variable $MSKINCDIR to specify the include directory. Use --with-mosek-lib or environment variable $MSKLIB to specify link flags." >&2;}
     24282fi
     24283
     24284if test $coin_has_msk != skipping; then
     24285
     24286# Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given.
     24287if test "${with_msk_datadir+set}" = set; then
     24288  withval="$with_msk_datadir"
     24289  if test "$withval" = no ; then
     24290       coin_has_msk=skipping
     24291     else
     24292       coin_has_msk=yes
     24293       MSK_DATA="$withval"
     24294     fi
     24295
     24296fi;
     24297fi
     24298
     24299if test $coin_has_msk = notGiven; then
     24300  if test -n "$PKG_CONFIG" ; then
     24301    # set search path for pkg-config
     24302    # need to export variable to be sure that the following pkg-config gets these values
     24303    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24304    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     24305    export PKG_CONFIG_PATH
     24306
     24307    # let pkg-config do it's magic
     24308
     24309
     24310
     24311if test -n "$PKG_CONFIG" ; then
     24312  if $PKG_CONFIG --exists "osi-mosek"; then
     24313    MSK_VERSIONS="`$PKG_CONFIG --modversion "osi-mosek" 2>/dev/null | tr '\n' ' '`"
     24314     cflags=`$PKG_CONFIG --cflags "osi-mosek" 2>/dev/null`
     24315    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24316        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24317        # but only do this if is not trivial
     24318    if test "$CYGPATH_W" != "echo" ; then
     24319      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24320      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24321    fi
     24322    MSK_CFLAGS="$cflags"
     24323    MSK_LIBS=`$PKG_CONFIG --libs "osi-mosek" 2>/dev/null`
     24324    MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-mosek" 2>/dev/null`
     24325     coin_has_msk=yes
     24326        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
     24327echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
     24328
     24329        # adjust linker flags for (i)cl compiler
     24330        # 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)
     24331        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24332        then
     24333          MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24334        fi
     24335
     24336        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     24337
     24338          COUENNELIB_PCREQUIRES="osi-mosek $COUENNELIB_PCREQUIRES"
     24339          COUENNELIB_CFLAGS="$MSK_CFLAGS $COUENNELIB_CFLAGS"
     24340          COUENNELIB_LIBS="$MSK_LIBS $COUENNELIB_LIBS"
     24341
     24342
     24343
     24344  else
     24345    MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-mosek"`
     24346      coin_has_msk=notGiven
     24347        echo "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5
     24348echo "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6
     24349
     24350  fi
     24351else
     24352  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5
     24353echo "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;}
    2315024354   { (exit 1); exit 1; }; }
     24355fi
     24356
     24357
     24358
     24359
     24360    # reset PKG_CONFIG_PATH variable
     24361    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24362    export PKG_CONFIG_PATH
     24363
     24364  else
     24365    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     24366echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     24367
     24368echo "$as_me:$LINENO: checking for COIN-OR package Msk (fallback)" >&5
     24369echo $ECHO_N "checking for COIN-OR package Msk (fallback)... $ECHO_C" >&6
     24370
     24371coin_has_msk=notGiven
     24372MSK_LIBS=
     24373MSK_LIBS_INSTALLED=
     24374MSK_CFLAGS=
     24375MSK_CFLAGS_INSTALLED=
     24376MSK_DATA=
     24377MSK_DATA_INSTALLED=
     24378
     24379# initial list of dependencies is "osi-mosek", but we need to filter out version number specifications (= x, <= x, >= x)
     24380projtoprocess="osi-mosek"
     24381
     24382# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24383# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24384# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     24385# also, we setup the DATA variable
     24386allproj=""
     24387allpcfiles=""
     24388allpcifiles=""
     24389while test "x$projtoprocess" != x ; do
     24390
     24391  for proj in $projtoprocess ; do
     24392    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     24393    pcfile=""
     24394    save_IFS="$IFS"
     24395    IFS=":"
     24396    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     24397      # 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
     24398      if test -r "$dir/${proj}-uninstalled.pc" ; then
     24399        pcfile="$dir/$proj-uninstalled.pc"
     24400        if test -r "$dir/${proj}.pc" ; then
     24401          pcifile="$dir/${proj}.pc"
     24402        else
     24403          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24404echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24405          pcifile=
     24406        fi
     24407        break
     24408      fi
     24409    done
     24410    IFS="$save_IFS"
     24411
     24412    if test "x$pcfile" != x ; then
     24413      # read dependencies from $pcfile and filter it
     24414      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24415
     24416      # add projrequires to the front of the list of projects that have to be processed next
     24417      # at the same time, remove $proj from this list
     24418      projtoprocess=${projtoprocess/$proj/$projrequires}
     24419
     24420      # read DATA from $pcfile, if _DATA is still empty
     24421      if test "x$MSK_DATA" = x ; then
     24422        projdatadir=
     24423        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24424        eval `sh -c "$pcfilemod"`
     24425        MSK_DATA="$projdatadir"
     24426      fi
     24427
     24428      allproj="$allproj $proj"
     24429      allpcfiles="$pcfile:$allpcfiles"
     24430
     24431    else
     24432      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     24433echo "${ECHO_T}no, dependency $proj not available" >&6
     24434      allproj=fail
     24435      break 2
    2315124436    fi
    23152     coin_has_msk=true
    23153     echo "$as_me:$LINENO: result: yes" >&5
    23154 echo "${ECHO_T}yes" >&6
    23155   else
    23156     coin_has_msk=false
    23157     echo "$as_me:$LINENO: result: no" >&5
    23158 echo "${ECHO_T}no" >&6
    23159   fi
    23160 
    23161 # If we have instructions for use, consider header and link checks.
    23162 
    23163   if test $coin_has_msk = true; then
    23164 
    23165 # If argument 3 (file) is given, check for the file. Typically this will be a
    23166 # header file, but that's not assumed.
    23167 
    23168     if test -r $MSKINCDIR/mosek.h; then
    23169 
    23170   :
    23171 else
    23172   { { echo "$as_me:$LINENO: error: Cannot find file mosek.h in $MSKINCDIR" >&5
    23173 echo "$as_me: error: Cannot find file mosek.h in $MSKINCDIR" >&2;}
    23174    { (exit 1); exit 1; }; }
    23175   :
    23176 fi
    23177 
    23178 
    23179 # Now see if we can link the function. There are arguments for and against
    23180 # assuming argument 3 is a header file declaring the function. A correct
    23181 # function declaration is the main argument in favour. Having to cope with
    23182 # possible dependencies or other oddities are the main arguments against.
    23183 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23184 # Obviously, this has limits.
    23185 
    23186     if test x"$mosek_libcheck" != xno; then
    23187            coin_save_LIBS="$LIBS"
    23188            LIBS="$MSKLIB $ADDLIBS"
    23189            coin_MSK_link=no
    23190            ac_ext=c
    23191 ac_cpp='$CPP $CPPFLAGS'
    23192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23195 
    23196            for fnm in MSK_openmosek ; do
    23197              echo "$as_me:$LINENO: checking whether symbol $fnm is available with MSK" >&5
    23198 echo $ECHO_N "checking whether symbol $fnm is available with MSK... $ECHO_C" >&6
    23199              cat >conftest.$ac_ext <<_ACEOF
    23200 /* confdefs.h.  */
    23201 _ACEOF
    23202 cat confdefs.h >>conftest.$ac_ext
    23203 cat >>conftest.$ac_ext <<_ACEOF
    23204 /* end confdefs.h.  */
    23205 
    23206 int
    23207 main ()
    23208 {
    23209 $fnm()
    23210   ;
    23211   return 0;
    23212 }
    23213 _ACEOF
    23214 rm -f conftest.$ac_objext conftest$ac_exeext
    23215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23216   (eval $ac_link) 2>conftest.er1
    23217   ac_status=$?
    23218   grep -v '^ *+' conftest.er1 >conftest.err
    23219   rm -f conftest.er1
    23220   cat conftest.err >&5
    23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23222   (exit $ac_status); } &&
    23223          { ac_try='test -z "$ac_c_werror_flag"
    23224                          || test ! -s conftest.err'
    23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23226   (eval $ac_try) 2>&5
    23227   ac_status=$?
    23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23229   (exit $ac_status); }; } &&
    23230          { ac_try='test -s conftest$ac_exeext'
    23231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23232   (eval $ac_try) 2>&5
    23233   ac_status=$?
    23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23235   (exit $ac_status); }; }; then
     24437
     24438    if test "x$pcifile" != x ; then
     24439      allpcifiles="$pcifile:$allpcifiles"
     24440
     24441      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24442      if test "x$MSK_DATA_INSTALLED" = x ; then
     24443        projdatadir=
     24444        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24445        eval `sh -c "$pcifilemod"`
     24446        if test "${CYGPATH_W}" != "echo"; then
     24447          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24448        fi
     24449        MSK_DATA_INSTALLED="$projdatadir"
     24450      fi
     24451
     24452    fi
     24453
     24454    break
     24455  done
     24456
     24457  # remove spaces on begin of $projtoprocess
     24458  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24459
     24460done
     24461
     24462if test "$allproj" != fail ; then
     24463
     24464  # now go through the list of .pc files and assemble compiler and linker flags
     24465  # important is here to obey the reverse order that has been setup before,
     24466  # since then libraries that are required by several others should be after these other libraries
     24467  pcfilesprocessed=""
     24468
     24469  save_IFS="$IFS"
     24470  IFS=":"
     24471  for pcfile in $allpcfiles ; do
     24472
     24473    # if $pcfile has been processed already, skip this round
     24474    if test "x$pcfilesprocessed" != x ; then
     24475      for pcfiledone in $pcfilesprocessed ; do
     24476        if test "$pcfiledone" = "$pcfile" ; then
     24477          continue 2
     24478        fi
     24479      done
     24480    fi
     24481
     24482    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24483    #   replace "Libs:" by "echo projlibs="
     24484    #   replace "Cflags:" by "echo projcflags="
     24485    #   remove every line starting with <some word>:
     24486    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24487
     24488    # set projcflags and projlibs variables by running $pcfilemod
     24489    projcflags=
     24490    projlibs=
     24491    eval `sh -c "$pcfilemod"`
     24492
     24493    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24494    if test "${CYGPATH_W}" != "echo"; then
     24495      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24496    fi
     24497    MSK_CFLAGS="$projcflags $MSK_CFLAGS"
     24498
     24499    # set LIBS variable
     24500    MSK_LIBS="$projlibs $MSK_LIBS"
     24501
     24502    # remember that we have processed $pcfile
     24503    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24504
     24505  done
     24506  IFS="$save_IFS"
     24507
     24508
     24509  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24510  # important is here again to obey the reverse order that has been setup before,
     24511  # since then libraries that are required by several others should be after these other libraries
     24512  pcfilesprocessed=""
     24513
     24514  save_IFS="$IFS"
     24515  IFS=":"
     24516  for pcfile in $allpcifiles ; do
     24517
     24518    # if $pcfile has been processed already, skip this round
     24519    if test "x$pcfilesprocessed" != x ; then
     24520      for pcfiledone in $pcfilesprocessed ; do
     24521        if test "$pcfiledone" = "$pcfile" ; then
     24522          continue 2
     24523        fi
     24524      done
     24525    fi
     24526
     24527    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24528    #   replace "Libs:" by "echo projlibs="
     24529    #   replace "Cflags:" by "echo projcflags="
     24530    #   remove every line starting with <some word>:
     24531    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24532
     24533    # set projcflags and projlibs variables by running $pcfilemod
     24534    projcflags=
     24535    projlibs=
     24536    eval `sh -c "$pcfilemod"`
     24537
     24538    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24539    if test "${CYGPATH_W}" != "echo"; then
     24540      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24541    fi
     24542    MSK_CFLAGS_INSTALLED="$projcflags $MSK_CFLAGS_INSTALLED"
     24543
     24544    # set LIBS variable
     24545    MSK_LIBS_INSTALLED="$projlibs $MSK_LIBS_INSTALLED"
     24546
     24547    # remember that we have processed $pcfile
     24548    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24549
     24550  done
     24551  IFS="$save_IFS"
     24552
     24553
     24554  # finish up
     24555  coin_has_msk=yes
    2323624556  echo "$as_me:$LINENO: result: yes" >&5
    2323724557echo "${ECHO_T}yes" >&6
    23238                   coin_MSK_link=yes
    23239                   break
    23240 else
    23241   echo "$as_me: failed program was:" >&5
    23242 sed 's/^/| /' conftest.$ac_ext >&5
    23243 
    23244 echo "$as_me:$LINENO: result: no" >&5
    23245 echo "${ECHO_T}no" >&6
    23246 fi
    23247 rm -f conftest.err conftest.$ac_objext \
    23248       conftest$ac_exeext conftest.$ac_ext
    23249            done
    23250            ac_ext=c
    23251 ac_cpp='$CPP $CPPFLAGS'
    23252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23255 
    23256            if test x"$coin_MSK_link" = xyes ; then
    23257              LIBS="$coin_save_LIBS"
    23258            else
    23259              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) MSK_openmosek with MSK" >&5
    23260 echo "$as_me: error: Cannot find symbol(s) MSK_openmosek with MSK" >&2;}
    23261    { (exit 1); exit 1; }; }
    23262            fi
    23263          fi
    23264 
    23265 
    23266 # If we make it this far, we've verified the file and linked the function. Add
    23267 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23268 # COIN_HAS_LBRY.
    23269 
    23270     ADDLIBS="$MSKLIB $ADDLIBS"
    2327124558
    2327224559cat >>confdefs.h <<\_ACEOF
     
    2327424561_ACEOF
    2327524562
     24563
     24564  # adjust linker flags for (i)cl compiler
     24565  # 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),
     24566  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     24567  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     24568  #    everything of the form "-lname" by "libname.lib"
     24569  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24570  then
     24571    MSK_LIBS=`echo " $MSK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24572    MSK_LIBS_INSTALLED=`echo " $MSK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2327624573  fi
    2327724574
    23278 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23279 # automake conditional. These actions must occur unconditionally.
    23280 
    23281 
    23282 
    23283 
    23284 
    23285 if test $coin_has_msk = true; then
     24575
     24576    COUENNELIB_PCREQUIRES="osi-mosek $COUENNELIB_PCREQUIRES"
     24577    COUENNELIB_CFLAGS="$MSK_CFLAGS $COUENNELIB_CFLAGS"
     24578    COUENNELIB_LIBS="$MSK_LIBS $COUENNELIB_LIBS"
     24579    COUENNELIB_CFLAGS_INSTALLED="$MSK_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     24580    COUENNELIB_LIBS_INSTALLED="$MSK_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     24581
     24582
     24583fi
     24584
     24585
     24586
     24587if test $coin_has_msk != notGiven &&
     24588                test $coin_has_msk != skipping; then
    2328624589  COIN_HAS_MSK_TRUE=
    2328724590  COIN_HAS_MSK_FALSE='#'
     
    2329124594fi
    2329224595
    23293       # Mosek
    23294 
    23295   echo "$as_me:$LINENO: checking if user provides library for Osl" >&5
    23296 echo $ECHO_N "checking if user provides library for Osl... $ECHO_C" >&6
    23297 
    23298 # Check for header file directory
    23299 
    23300 
    23301 # Check whether --with-osl-incdir or --without-osl-incdir was given.
    23302 if test "${with_osl_incdir+set}" = set; then
    23303   withval="$with_osl_incdir"
    23304   OSLINCDIR=`cd $withval; pwd`
     24596
     24597
     24598  fi
     24599
     24600else
     24601  echo "$as_me:$LINENO: result: $coin_has_msk" >&5
     24602echo "${ECHO_T}$coin_has_msk" >&6
     24603fi
     24604
     24605if test $coin_has_msk != skipping &&
     24606   test $coin_has_msk != notGiven ; then
     24607
     24608cat >>confdefs.h <<\_ACEOF
     24609#define COIN_HAS_MSK 1
     24610_ACEOF
     24611
     24612
     24613  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     24614if test "${enable_interpackage_dependencies+set}" = set; then
     24615  enableval="$enable_interpackage_dependencies"
     24616
     24617else
     24618  enable_interpackage_dependencies=yes
    2330524619fi;
    2330624620
    23307 # Check for library directory
    23308 
    23309 
    23310 # Check whether --with-osl-lib or --without-osl-lib was given.
    23311 if test "${with_osl_lib+set}" = set; then
    23312   withval="$with_osl_lib"
    23313   OSLLIB=$withval
     24621  if test $enable_interpackage_dependencies = yes ; then
     24622     # construct dependencies variables from LIBS variables
     24623     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     24624     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     24625     # then remove everything of the form -xxx
     24626     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     24627     MSK_DEPENDENCIES=`echo " $MSK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24628
     24629       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     24630
     24631  fi
     24632
     24633  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     24634    if test -n "$MSK_CFLAGS" ; then
     24635      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     24636echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
     24637    fi
     24638    if test -n "$MSK_LIBS" ; then
     24639      { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
     24640echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
     24641    fi
     24642    if test -n "$MSK_DEPENDENCIES" ; then
     24643      { echo "$as_me:$LINENO: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&5
     24644echo "$as_me: Msk DEPENDENCIES are $MSK_DEPENDENCIES" >&6;}
     24645    fi
     24646    if test -n "$MSK_DATA" ; then
     24647      { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
     24648echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
     24649    fi
     24650    if test -n "$MSK_CFLAGS" ; then
     24651      { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     24652echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
     24653    fi
     24654
     24655      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     24656echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     24657      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     24658echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     24659      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     24660echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     24661
     24662  fi
     24663fi
     24664
     24665# Define the Makefile conditional
     24666
     24667
     24668if test $coin_has_msk != notGiven &&
     24669                test $coin_has_msk != skipping; then
     24670  COIN_HAS_MSK_TRUE=
     24671  COIN_HAS_MSK_FALSE='#'
     24672else
     24673  COIN_HAS_MSK_TRUE='#'
     24674  COIN_HAS_MSK_FALSE=
     24675fi
     24676
     24677
     24678  # Osi/Mosek
     24679
     24680echo "$as_me:$LINENO: checking for COIN-OR package Spx" >&5
     24681echo $ECHO_N "checking for COIN-OR package Spx... $ECHO_C" >&6
     24682
     24683coin_has_spx=notGiven
     24684
     24685# check if user wants to skip package in any case
     24686if test x"$COIN_SKIP_PROJECTS" != x; then
     24687  for dir in $COIN_SKIP_PROJECTS; do
     24688    if test $dir = "Spx"; then
     24689      coin_has_spx=skipping
     24690    fi
     24691  done
     24692fi
     24693
     24694SPX_LIBS=
     24695SPX_CFLAGS=
     24696SPX_DATA=
     24697
     24698
     24699
     24700
     24701
     24702
     24703
     24704
     24705
     24706
     24707
     24708
     24709
     24710
     24711
     24712
     24713
     24714#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     24715if test $coin_has_spx != skipping; then
     24716
     24717# Check whether --with-m4_tolower(Spx)-lib or --without-m4_tolower(Spx)-lib was given.
     24718if test "${with_spx_lib+set}" = set; then
     24719  withval="$with_spx_lib"
     24720  if test "$withval" = no ; then
     24721       coin_has_spx=skipping
     24722     else
     24723       coin_has_spx=yes
     24724       SPX_LIBS="$withval"
     24725
     24726         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     24727         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     24728
     24729     fi
     24730
    2331424731fi;
    23315 
    23316 # Switch to disable library check if requested
    23317 
    23318   # Check whether --enable-osl-libcheck or --disable-osl-libcheck was given.
    23319 if test "${enable_osl_libcheck+set}" = set; then
    23320   enableval="$enable_osl_libcheck"
    23321   osl_libcheck=$enableval
    23322 else
    23323   osl_libcheck=yes
     24732fi
     24733
     24734if test $coin_has_spx != skipping; then
     24735
     24736# Check whether --with-m4_tolower(Spx)-incdir or --without-m4_tolower(Spx)-incdir was given.
     24737if test "${with_spx_incdir+set}" = set; then
     24738  withval="$with_spx_incdir"
     24739  if test "$withval" = no ; then
     24740       coin_has_spx=skipping
     24741     else
     24742       coin_has_spx=yes
     24743       SPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     24744       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     24745     fi
     24746
    2332424747fi;
    23325 
    23326 # At this point, if we're going to use the library, both LBRYINCDIR and
    23327 # LBRYLIB must be defined and not empty.
    23328 
    23329   if test x"$OSLINCDIR" != x || test x"$OSLLIB" != x; then
    23330     if test x"$OSLINCDIR" = x || test x"$OSLLIB" = x; then
    23331       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Osl. Use --with-osl-incdir of environment variable $OSLINCDIR to specify the include directory. Use --with-osl-lib or environment variable $OSLLIB to specify link flags." >&5
    23332 echo "$as_me: error: You need to specify both an include directory and link flags to use library Osl. Use --with-osl-incdir of environment variable $OSLINCDIR to specify the include directory. Use --with-osl-lib or environment variable $OSLLIB to specify link flags." >&2;}
     24748fi
     24749
     24750if test $coin_has_spx != skipping; then
     24751
     24752# Check whether --with-m4_tolower(Spx)-datadir or --without-m4_tolower(Spx)-datadir was given.
     24753if test "${with_spx_datadir+set}" = set; then
     24754  withval="$with_spx_datadir"
     24755  if test "$withval" = no ; then
     24756       coin_has_spx=skipping
     24757     else
     24758       coin_has_spx=yes
     24759       SPX_DATA="$withval"
     24760     fi
     24761
     24762fi;
     24763fi
     24764
     24765if test $coin_has_spx = notGiven; then
     24766  if test -n "$PKG_CONFIG" ; then
     24767    # set search path for pkg-config
     24768    # need to export variable to be sure that the following pkg-config gets these values
     24769    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24770    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     24771    export PKG_CONFIG_PATH
     24772
     24773    # let pkg-config do it's magic
     24774
     24775
     24776
     24777if test -n "$PKG_CONFIG" ; then
     24778  if $PKG_CONFIG --exists "osi-soplex"; then
     24779    SPX_VERSIONS="`$PKG_CONFIG --modversion "osi-soplex" 2>/dev/null | tr '\n' ' '`"
     24780     cflags=`$PKG_CONFIG --cflags "osi-soplex" 2>/dev/null`
     24781    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24782        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24783        # but only do this if is not trivial
     24784    if test "$CYGPATH_W" != "echo" ; then
     24785      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24786      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24787    fi
     24788    SPX_CFLAGS="$cflags"
     24789    SPX_LIBS=`$PKG_CONFIG --libs "osi-soplex" 2>/dev/null`
     24790    SPX_DATA=`$PKG_CONFIG --variable=datadir "osi-soplex" 2>/dev/null`
     24791     coin_has_spx=yes
     24792        echo "$as_me:$LINENO: result: yes: $SPX_VERSIONS" >&5
     24793echo "${ECHO_T}yes: $SPX_VERSIONS" >&6
     24794
     24795        # adjust linker flags for (i)cl compiler
     24796        # 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)
     24797        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     24798        then
     24799          SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     24800        fi
     24801
     24802        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     24803
     24804          COUENNELIB_PCREQUIRES="osi-soplex $COUENNELIB_PCREQUIRES"
     24805          COUENNELIB_CFLAGS="$SPX_CFLAGS $COUENNELIB_CFLAGS"
     24806          COUENNELIB_LIBS="$SPX_LIBS $COUENNELIB_LIBS"
     24807
     24808
     24809
     24810  else
     24811    SPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-soplex"`
     24812      coin_has_spx=notGiven
     24813        echo "$as_me:$LINENO: result: not given: $SPX_PKG_ERRORS" >&5
     24814echo "${ECHO_T}not given: $SPX_PKG_ERRORS" >&6
     24815
     24816  fi
     24817else
     24818  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Spx without pkg-config\"" >&5
     24819echo "$as_me: error: \"Cannot check for existance of module Spx without pkg-config\"" >&2;}
    2333324820   { (exit 1); exit 1; }; }
     24821fi
     24822
     24823
     24824
     24825
     24826    # reset PKG_CONFIG_PATH variable
     24827    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24828    export PKG_CONFIG_PATH
     24829
     24830  else
     24831    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     24832echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     24833
     24834echo "$as_me:$LINENO: checking for COIN-OR package Spx (fallback)" >&5
     24835echo $ECHO_N "checking for COIN-OR package Spx (fallback)... $ECHO_C" >&6
     24836
     24837coin_has_spx=notGiven
     24838SPX_LIBS=
     24839SPX_LIBS_INSTALLED=
     24840SPX_CFLAGS=
     24841SPX_CFLAGS_INSTALLED=
     24842SPX_DATA=
     24843SPX_DATA_INSTALLED=
     24844
     24845# initial list of dependencies is "osi-soplex", but we need to filter out version number specifications (= x, <= x, >= x)
     24846projtoprocess="osi-soplex"
     24847
     24848# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     24849# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     24850# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     24851# also, we setup the DATA variable
     24852allproj=""
     24853allpcfiles=""
     24854allpcifiles=""
     24855while test "x$projtoprocess" != x ; do
     24856
     24857  for proj in $projtoprocess ; do
     24858    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     24859    pcfile=""
     24860    save_IFS="$IFS"
     24861    IFS=":"
     24862    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     24863      # 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
     24864      if test -r "$dir/${proj}-uninstalled.pc" ; then
     24865        pcfile="$dir/$proj-uninstalled.pc"
     24866        if test -r "$dir/${proj}.pc" ; then
     24867          pcifile="$dir/${proj}.pc"
     24868        else
     24869          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     24870echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     24871          pcifile=
     24872        fi
     24873        break
     24874      fi
     24875    done
     24876    IFS="$save_IFS"
     24877
     24878    if test "x$pcfile" != x ; then
     24879      # read dependencies from $pcfile and filter it
     24880      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     24881
     24882      # add projrequires to the front of the list of projects that have to be processed next
     24883      # at the same time, remove $proj from this list
     24884      projtoprocess=${projtoprocess/$proj/$projrequires}
     24885
     24886      # read DATA from $pcfile, if _DATA is still empty
     24887      if test "x$SPX_DATA" = x ; then
     24888        projdatadir=
     24889        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     24890        eval `sh -c "$pcfilemod"`
     24891        SPX_DATA="$projdatadir"
     24892      fi
     24893
     24894      allproj="$allproj $proj"
     24895      allpcfiles="$pcfile:$allpcfiles"
     24896
     24897    else
     24898      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     24899echo "${ECHO_T}no, dependency $proj not available" >&6
     24900      allproj=fail
     24901      break 2
    2333424902    fi
    23335     coin_has_osl=true
    23336     echo "$as_me:$LINENO: result: yes" >&5
    23337 echo "${ECHO_T}yes" >&6
    23338   else
    23339     coin_has_osl=false
    23340     echo "$as_me:$LINENO: result: no" >&5
    23341 echo "${ECHO_T}no" >&6
    23342   fi
    23343 
    23344 # If we have instructions for use, consider header and link checks.
    23345 
    23346   if test $coin_has_osl = true; then
    23347 
    23348 # If argument 3 (file) is given, check for the file. Typically this will be a
    23349 # header file, but that's not assumed.
    23350 
    23351     if test -r $OSLINCDIR/ekk_c_api.h; then
    23352 
    23353   :
    23354 else
    23355   { { echo "$as_me:$LINENO: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&5
    23356 echo "$as_me: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&2;}
    23357    { (exit 1); exit 1; }; }
    23358   :
    23359 fi
    23360 
    23361 
    23362 # Now see if we can link the function. There are arguments for and against
    23363 # assuming argument 3 is a header file declaring the function. A correct
    23364 # function declaration is the main argument in favour. Having to cope with
    23365 # possible dependencies or other oddities are the main arguments against.
    23366 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23367 # Obviously, this has limits.
    23368 
    23369     if test x"$osl_libcheck" != xno; then
    23370            coin_save_LIBS="$LIBS"
    23371            LIBS="$OSLLIB $ADDLIBS"
    23372            coin_OSL_link=no
    23373            ac_ext=c
    23374 ac_cpp='$CPP $CPPFLAGS'
    23375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23378 
    23379            for fnm in ekk_simplex ; do
    23380              echo "$as_me:$LINENO: checking whether symbol $fnm is available with OSL" >&5
    23381 echo $ECHO_N "checking whether symbol $fnm is available with OSL... $ECHO_C" >&6
    23382              cat >conftest.$ac_ext <<_ACEOF
    23383 /* confdefs.h.  */
    23384 _ACEOF
    23385 cat confdefs.h >>conftest.$ac_ext
    23386 cat >>conftest.$ac_ext <<_ACEOF
    23387 /* end confdefs.h.  */
    23388 
    23389 int
    23390 main ()
    23391 {
    23392 $fnm()
    23393   ;
    23394   return 0;
    23395 }
    23396 _ACEOF
    23397 rm -f conftest.$ac_objext conftest$ac_exeext
    23398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23399   (eval $ac_link) 2>conftest.er1
    23400   ac_status=$?
    23401   grep -v '^ *+' conftest.er1 >conftest.err
    23402   rm -f conftest.er1
    23403   cat conftest.err >&5
    23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23405   (exit $ac_status); } &&
    23406          { ac_try='test -z "$ac_c_werror_flag"
    23407                          || test ! -s conftest.err'
    23408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23409   (eval $ac_try) 2>&5
    23410   ac_status=$?
    23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23412   (exit $ac_status); }; } &&
    23413          { ac_try='test -s conftest$ac_exeext'
    23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23415   (eval $ac_try) 2>&5
    23416   ac_status=$?
    23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23418   (exit $ac_status); }; }; then
     24903
     24904    if test "x$pcifile" != x ; then
     24905      allpcifiles="$pcifile:$allpcifiles"
     24906
     24907      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     24908      if test "x$SPX_DATA_INSTALLED" = x ; then
     24909        projdatadir=
     24910        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     24911        eval `sh -c "$pcifilemod"`
     24912        if test "${CYGPATH_W}" != "echo"; then
     24913          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     24914        fi
     24915        SPX_DATA_INSTALLED="$projdatadir"
     24916      fi
     24917
     24918    fi
     24919
     24920    break
     24921  done
     24922
     24923  # remove spaces on begin of $projtoprocess
     24924  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     24925
     24926done
     24927
     24928if test "$allproj" != fail ; then
     24929
     24930  # now go through the list of .pc files and assemble compiler and linker flags
     24931  # important is here to obey the reverse order that has been setup before,
     24932  # since then libraries that are required by several others should be after these other libraries
     24933  pcfilesprocessed=""
     24934
     24935  save_IFS="$IFS"
     24936  IFS=":"
     24937  for pcfile in $allpcfiles ; do
     24938
     24939    # if $pcfile has been processed already, skip this round
     24940    if test "x$pcfilesprocessed" != x ; then
     24941      for pcfiledone in $pcfilesprocessed ; do
     24942        if test "$pcfiledone" = "$pcfile" ; then
     24943          continue 2
     24944        fi
     24945      done
     24946    fi
     24947
     24948    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24949    #   replace "Libs:" by "echo projlibs="
     24950    #   replace "Cflags:" by "echo projcflags="
     24951    #   remove every line starting with <some word>:
     24952    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24953
     24954    # set projcflags and projlibs variables by running $pcfilemod
     24955    projcflags=
     24956    projlibs=
     24957    eval `sh -c "$pcfilemod"`
     24958
     24959    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     24960    if test "${CYGPATH_W}" != "echo"; then
     24961      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24962    fi
     24963    SPX_CFLAGS="$projcflags $SPX_CFLAGS"
     24964
     24965    # set LIBS variable
     24966    SPX_LIBS="$projlibs $SPX_LIBS"
     24967
     24968    # remember that we have processed $pcfile
     24969    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     24970
     24971  done
     24972  IFS="$save_IFS"
     24973
     24974
     24975  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     24976  # important is here again to obey the reverse order that has been setup before,
     24977  # since then libraries that are required by several others should be after these other libraries
     24978  pcfilesprocessed=""
     24979
     24980  save_IFS="$IFS"
     24981  IFS=":"
     24982  for pcfile in $allpcifiles ; do
     24983
     24984    # if $pcfile has been processed already, skip this round
     24985    if test "x$pcfilesprocessed" != x ; then
     24986      for pcfiledone in $pcfilesprocessed ; do
     24987        if test "$pcfiledone" = "$pcfile" ; then
     24988          continue 2
     24989        fi
     24990      done
     24991    fi
     24992
     24993    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     24994    #   replace "Libs:" by "echo projlibs="
     24995    #   replace "Cflags:" by "echo projcflags="
     24996    #   remove every line starting with <some word>:
     24997    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     24998
     24999    # set projcflags and projlibs variables by running $pcfilemod
     25000    projcflags=
     25001    projlibs=
     25002    eval `sh -c "$pcfilemod"`
     25003
     25004    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25005    if test "${CYGPATH_W}" != "echo"; then
     25006      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25007    fi
     25008    SPX_CFLAGS_INSTALLED="$projcflags $SPX_CFLAGS_INSTALLED"
     25009
     25010    # set LIBS variable
     25011    SPX_LIBS_INSTALLED="$projlibs $SPX_LIBS_INSTALLED"
     25012
     25013    # remember that we have processed $pcfile
     25014    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25015
     25016  done
     25017  IFS="$save_IFS"
     25018
     25019
     25020  # finish up
     25021  coin_has_spx=yes
    2341925022  echo "$as_me:$LINENO: result: yes" >&5
    2342025023echo "${ECHO_T}yes" >&6
    23421                   coin_OSL_link=yes
    23422                   break
    23423 else
    23424   echo "$as_me: failed program was:" >&5
    23425 sed 's/^/| /' conftest.$ac_ext >&5
    23426 
    23427 echo "$as_me:$LINENO: result: no" >&5
    23428 echo "${ECHO_T}no" >&6
    23429 fi
    23430 rm -f conftest.err conftest.$ac_objext \
    23431       conftest$ac_exeext conftest.$ac_ext
    23432            done
    23433            ac_ext=c
    23434 ac_cpp='$CPP $CPPFLAGS'
    23435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23438 
    23439            if test x"$coin_OSL_link" = xyes ; then
    23440              LIBS="$coin_save_LIBS"
    23441            else
    23442              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) ekk_simplex with OSL" >&5
    23443 echo "$as_me: error: Cannot find symbol(s) ekk_simplex with OSL" >&2;}
    23444    { (exit 1); exit 1; }; }
    23445            fi
    23446          fi
    23447 
    23448 
    23449 # If we make it this far, we've verified the file and linked the function. Add
    23450 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23451 # COIN_HAS_LBRY.
    23452 
    23453     ADDLIBS="$OSLLIB $ADDLIBS"
    23454 
    23455 cat >>confdefs.h <<\_ACEOF
    23456 #define COIN_HAS_OSL 1
    23457 _ACEOF
    23458 
    23459   fi
    23460 
    23461 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23462 # automake conditional. These actions must occur unconditionally.
    23463 
    23464 
    23465 
    23466 
    23467 
    23468 if test $coin_has_osl = true; then
    23469   COIN_HAS_OSL_TRUE=
    23470   COIN_HAS_OSL_FALSE='#'
    23471 else
    23472   COIN_HAS_OSL_TRUE='#'
    23473   COIN_HAS_OSL_FALSE=
    23474 fi
    23475 
    23476       # OSL
    23477 
    23478   echo "$as_me:$LINENO: checking if user provides library for Soplex" >&5
    23479 echo $ECHO_N "checking if user provides library for Soplex... $ECHO_C" >&6
    23480 
    23481 # Check for header file directory
    23482 
    23483 
    23484 # Check whether --with-soplex-incdir or --without-soplex-incdir was given.
    23485 if test "${with_soplex_incdir+set}" = set; then
    23486   withval="$with_soplex_incdir"
    23487   SPXINCDIR=`cd $withval; pwd`
    23488 fi;
    23489 
    23490 # Check for library directory
    23491 
    23492 
    23493 # Check whether --with-soplex-lib or --without-soplex-lib was given.
    23494 if test "${with_soplex_lib+set}" = set; then
    23495   withval="$with_soplex_lib"
    23496   SPXLIB=$withval
    23497 fi;
    23498 
    23499 # Switch to disable library check if requested
    23500 
    23501   # Check whether --enable-soplex-libcheck or --disable-soplex-libcheck was given.
    23502 if test "${enable_soplex_libcheck+set}" = set; then
    23503   enableval="$enable_soplex_libcheck"
    23504   soplex_libcheck=$enableval
    23505 else
    23506   soplex_libcheck=yes
    23507 fi;
    23508 
    23509 # At this point, if we're going to use the library, both LBRYINCDIR and
    23510 # LBRYLIB must be defined and not empty.
    23511 
    23512   if test x"$SPXINCDIR" != x || test x"$SPXLIB" != x; then
    23513     if test x"$SPXINCDIR" = x || test x"$SPXLIB" = x; then
    23514       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Soplex. Use --with-soplex-incdir of environment variable $SPXINCDIR to specify the include directory. Use --with-soplex-lib or environment variable $SPXLIB to specify link flags." >&5
    23515 echo "$as_me: error: You need to specify both an include directory and link flags to use library Soplex. Use --with-soplex-incdir of environment variable $SPXINCDIR to specify the include directory. Use --with-soplex-lib or environment variable $SPXLIB to specify link flags." >&2;}
    23516    { (exit 1); exit 1; }; }
    23517     fi
    23518     coin_has_spx=true
    23519     echo "$as_me:$LINENO: result: yes" >&5
    23520 echo "${ECHO_T}yes" >&6
    23521   else
    23522     coin_has_spx=false
    23523     echo "$as_me:$LINENO: result: no" >&5
    23524 echo "${ECHO_T}no" >&6
    23525   fi
    23526 
    23527 # If we have instructions for use, consider header and link checks.
    23528 
    23529   if test $coin_has_spx = true; then
    23530 
    23531 # If argument 3 (file) is given, check for the file. Typically this will be a
    23532 # header file, but that's not assumed.
    23533 
    23534     if test -r $SPXINCDIR/spxsolver.h; then
    23535 
    23536   :
    23537 else
    23538   { { echo "$as_me:$LINENO: error: Cannot find file spxsolver.h in $SPXINCDIR" >&5
    23539 echo "$as_me: error: Cannot find file spxsolver.h in $SPXINCDIR" >&2;}
    23540    { (exit 1); exit 1; }; }
    23541   :
    23542 fi
    23543 
    23544 
    23545 # Now see if we can link the function. There are arguments for and against
    23546 # assuming argument 3 is a header file declaring the function. A correct
    23547 # function declaration is the main argument in favour. Having to cope with
    23548 # possible dependencies or other oddities are the main arguments against.
    23549 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23550 # Obviously, this has limits.
    23551 
    23552 
    23553 
    23554 # If we make it this far, we've verified the file and linked the function. Add
    23555 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23556 # COIN_HAS_LBRY.
    23557 
    23558     ADDLIBS="$SPXLIB $ADDLIBS"
    2355925024
    2356025025cat >>confdefs.h <<\_ACEOF
     
    2356225027_ACEOF
    2356325028
     25029
     25030  # adjust linker flags for (i)cl compiler
     25031  # 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),
     25032  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25033  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25034  #    everything of the form "-lname" by "libname.lib"
     25035  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25036  then
     25037    SPX_LIBS=`echo " $SPX_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25038    SPX_LIBS_INSTALLED=`echo " $SPX_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2356425039  fi
    2356525040
    23566 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23567 # automake conditional. These actions must occur unconditionally.
    23568 
    23569 
    23570 
    23571 
    23572 
    23573 if test $coin_has_spx = true; then
     25041
     25042    COUENNELIB_PCREQUIRES="osi-soplex $COUENNELIB_PCREQUIRES"
     25043    COUENNELIB_CFLAGS="$SPX_CFLAGS $COUENNELIB_CFLAGS"
     25044    COUENNELIB_LIBS="$SPX_LIBS $COUENNELIB_LIBS"
     25045    COUENNELIB_CFLAGS_INSTALLED="$SPX_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     25046    COUENNELIB_LIBS_INSTALLED="$SPX_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     25047
     25048
     25049fi
     25050
     25051
     25052
     25053if test $coin_has_spx != notGiven &&
     25054                test $coin_has_spx != skipping; then
    2357425055  COIN_HAS_SPX_TRUE=
    2357525056  COIN_HAS_SPX_FALSE='#'
     
    2357925060fi
    2358025061
    23581                  # Soplex library
    23582 
    23583   echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
    23584 echo $ECHO_N "checking if user provides library for Xpress... $ECHO_C" >&6
    23585 
    23586 # Check for header file directory
    23587 
    23588 
    23589 # Check whether --with-xpress-incdir or --without-xpress-incdir was given.
    23590 if test "${with_xpress_incdir+set}" = set; then
    23591   withval="$with_xpress_incdir"
    23592   XPRINCDIR=`cd $withval; pwd`
     25062
     25063
     25064  fi
     25065
     25066else
     25067  echo "$as_me:$LINENO: result: $coin_has_spx" >&5
     25068echo "${ECHO_T}$coin_has_spx" >&6
     25069fi
     25070
     25071if test $coin_has_spx != skipping &&
     25072   test $coin_has_spx != notGiven ; then
     25073
     25074cat >>confdefs.h <<\_ACEOF
     25075#define COIN_HAS_SPX 1
     25076_ACEOF
     25077
     25078
     25079  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     25080if test "${enable_interpackage_dependencies+set}" = set; then
     25081  enableval="$enable_interpackage_dependencies"
     25082
     25083else
     25084  enable_interpackage_dependencies=yes
    2359325085fi;
    2359425086
    23595 # Check for library directory
    23596 
    23597 
    23598 # Check whether --with-xpress-lib or --without-xpress-lib was given.
    23599 if test "${with_xpress_lib+set}" = set; then
    23600   withval="$with_xpress_lib"
    23601   XPRLIB=$withval
     25087  if test $enable_interpackage_dependencies = yes ; then
     25088     # construct dependencies variables from LIBS variables
     25089     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25090     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     25091     # then remove everything of the form -xxx
     25092     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25093     SPX_DEPENDENCIES=`echo " $SPX_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25094
     25095       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25096
     25097  fi
     25098
     25099  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     25100    if test -n "$SPX_CFLAGS" ; then
     25101      { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     25102echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
     25103    fi
     25104    if test -n "$SPX_LIBS" ; then
     25105      { echo "$as_me:$LINENO: Spx LIBS   are $SPX_LIBS" >&5
     25106echo "$as_me: Spx LIBS   are $SPX_LIBS" >&6;}
     25107    fi
     25108    if test -n "$SPX_DEPENDENCIES" ; then
     25109      { echo "$as_me:$LINENO: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&5
     25110echo "$as_me: Spx DEPENDENCIES are $SPX_DEPENDENCIES" >&6;}
     25111    fi
     25112    if test -n "$SPX_DATA" ; then
     25113      { echo "$as_me:$LINENO: Spx DATA   is  $SPX_DATA" >&5
     25114echo "$as_me: Spx DATA   is  $SPX_DATA" >&6;}
     25115    fi
     25116    if test -n "$SPX_CFLAGS" ; then
     25117      { echo "$as_me:$LINENO: Spx CFLAGS are $SPX_CFLAGS" >&5
     25118echo "$as_me: Spx CFLAGS are $SPX_CFLAGS" >&6;}
     25119    fi
     25120
     25121      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     25122echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     25123      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     25124echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     25125      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     25126echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     25127
     25128  fi
     25129fi
     25130
     25131# Define the Makefile conditional
     25132
     25133
     25134if test $coin_has_spx != notGiven &&
     25135                test $coin_has_spx != skipping; then
     25136  COIN_HAS_SPX_TRUE=
     25137  COIN_HAS_SPX_FALSE='#'
     25138else
     25139  COIN_HAS_SPX_TRUE='#'
     25140  COIN_HAS_SPX_FALSE=
     25141fi
     25142
     25143
     25144  # Osi/Soplex
     25145
     25146echo "$as_me:$LINENO: checking for COIN-OR package Xpr" >&5
     25147echo $ECHO_N "checking for COIN-OR package Xpr... $ECHO_C" >&6
     25148
     25149coin_has_xpr=notGiven
     25150
     25151# check if user wants to skip package in any case
     25152if test x"$COIN_SKIP_PROJECTS" != x; then
     25153  for dir in $COIN_SKIP_PROJECTS; do
     25154    if test $dir = "Xpr"; then
     25155      coin_has_xpr=skipping
     25156    fi
     25157  done
     25158fi
     25159
     25160XPR_LIBS=
     25161XPR_CFLAGS=
     25162XPR_DATA=
     25163
     25164
     25165
     25166
     25167
     25168
     25169
     25170
     25171
     25172
     25173
     25174
     25175
     25176
     25177
     25178
     25179
     25180#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     25181if test $coin_has_xpr != skipping; then
     25182
     25183# Check whether --with-m4_tolower(Xpr)-lib or --without-m4_tolower(Xpr)-lib was given.
     25184if test "${with_xpr_lib+set}" = set; then
     25185  withval="$with_xpr_lib"
     25186  if test "$withval" = no ; then
     25187       coin_has_xpr=skipping
     25188     else
     25189       coin_has_xpr=yes
     25190       XPR_LIBS="$withval"
     25191
     25192         COUENNELIB_PCLIBS="$withval $COUENNELIB_PCLIBS"
     25193         COUENNELIB_LIBS="$withval $COUENNELIB_LIBS"
     25194
     25195     fi
     25196
    2360225197fi;
    23603 
    23604 # Switch to disable library check if requested
    23605 
    23606   # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
    23607 if test "${enable_xpress_libcheck+set}" = set; then
    23608   enableval="$enable_xpress_libcheck"
    23609   xpress_libcheck=$enableval
    23610 else
    23611   xpress_libcheck=yes
     25198fi
     25199
     25200if test $coin_has_xpr != skipping; then
     25201
     25202# Check whether --with-m4_tolower(Xpr)-incdir or --without-m4_tolower(Xpr)-incdir was given.
     25203if test "${with_xpr_incdir+set}" = set; then
     25204  withval="$with_xpr_incdir"
     25205  if test "$withval" = no ; then
     25206       coin_has_xpr=skipping
     25207     else
     25208       coin_has_xpr=yes
     25209       XPR_CFLAGS="-I`${CYGPATH_W} $withval`"
     25210       COUENNELIB_CFLAGS="$withval $COUENNELIB_CFLAGS"
     25211     fi
     25212
    2361225213fi;
    23613 
    23614 # At this point, if we're going to use the library, both LBRYINCDIR and
    23615 # LBRYLIB must be defined and not empty.
    23616 
    23617   if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
    23618     if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
    23619       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&5
    23620 echo "$as_me: error: You need to specify both an include directory and link flags to use library Xpress. Use --with-xpress-incdir of environment variable $XPRINCDIR to specify the include directory. Use --with-xpress-lib or environment variable $XPRLIB to specify link flags." >&2;}
     25214fi
     25215
     25216if test $coin_has_xpr != skipping; then
     25217
     25218# Check whether --with-m4_tolower(Xpr)-datadir or --without-m4_tolower(Xpr)-datadir was given.
     25219if test "${with_xpr_datadir+set}" = set; then
     25220  withval="$with_xpr_datadir"
     25221  if test "$withval" = no ; then
     25222       coin_has_xpr=skipping
     25223     else
     25224       coin_has_xpr=yes
     25225       XPR_DATA="$withval"
     25226     fi
     25227
     25228fi;
     25229fi
     25230
     25231if test $coin_has_xpr = notGiven; then
     25232  if test -n "$PKG_CONFIG" ; then
     25233    # set search path for pkg-config
     25234    # need to export variable to be sure that the following pkg-config gets these values
     25235    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     25236    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     25237    export PKG_CONFIG_PATH
     25238
     25239    # let pkg-config do it's magic
     25240
     25241
     25242
     25243if test -n "$PKG_CONFIG" ; then
     25244  if $PKG_CONFIG --exists "osi-xpress"; then
     25245    XPR_VERSIONS="`$PKG_CONFIG --modversion "osi-xpress" 2>/dev/null | tr '\n' ' '`"
     25246     cflags=`$PKG_CONFIG --cflags "osi-xpress" 2>/dev/null`
     25247    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     25248        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     25249        # but only do this if is not trivial
     25250    if test "$CYGPATH_W" != "echo" ; then
     25251      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     25252      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25253    fi
     25254    XPR_CFLAGS="$cflags"
     25255    XPR_LIBS=`$PKG_CONFIG --libs "osi-xpress" 2>/dev/null`
     25256    XPR_DATA=`$PKG_CONFIG --variable=datadir "osi-xpress" 2>/dev/null`
     25257     coin_has_xpr=yes
     25258        echo "$as_me:$LINENO: result: yes: $XPR_VERSIONS" >&5
     25259echo "${ECHO_T}yes: $XPR_VERSIONS" >&6
     25260
     25261        # adjust linker flags for (i)cl compiler
     25262        # 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)
     25263        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25264        then
     25265          XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25266        fi
     25267
     25268        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CouenneLib
     25269
     25270          COUENNELIB_PCREQUIRES="osi-xpress $COUENNELIB_PCREQUIRES"
     25271          COUENNELIB_CFLAGS="$XPR_CFLAGS $COUENNELIB_CFLAGS"
     25272          COUENNELIB_LIBS="$XPR_LIBS $COUENNELIB_LIBS"
     25273
     25274
     25275
     25276  else
     25277    XPR_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-xpress"`
     25278      coin_has_xpr=notGiven
     25279        echo "$as_me:$LINENO: result: not given: $XPR_PKG_ERRORS" >&5
     25280echo "${ECHO_T}not given: $XPR_PKG_ERRORS" >&6
     25281
     25282  fi
     25283else
     25284  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&5
     25285echo "$as_me: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&2;}
    2362125286   { (exit 1); exit 1; }; }
     25287fi
     25288
     25289
     25290
     25291
     25292    # reset PKG_CONFIG_PATH variable
     25293    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     25294    export PKG_CONFIG_PATH
     25295
     25296  else
     25297    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     25298echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     25299
     25300echo "$as_me:$LINENO: checking for COIN-OR package Xpr (fallback)" >&5
     25301echo $ECHO_N "checking for COIN-OR package Xpr (fallback)... $ECHO_C" >&6
     25302
     25303coin_has_xpr=notGiven
     25304XPR_LIBS=
     25305XPR_LIBS_INSTALLED=
     25306XPR_CFLAGS=
     25307XPR_CFLAGS_INSTALLED=
     25308XPR_DATA=
     25309XPR_DATA_INSTALLED=
     25310
     25311# initial list of dependencies is "osi-xpress", but we need to filter out version number specifications (= x, <= x, >= x)
     25312projtoprocess="osi-xpress"
     25313
     25314# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     25315# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     25316# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     25317# also, we setup the DATA variable
     25318allproj=""
     25319allpcfiles=""
     25320allpcifiles=""
     25321while test "x$projtoprocess" != x ; do
     25322
     25323  for proj in $projtoprocess ; do
     25324    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     25325    pcfile=""
     25326    save_IFS="$IFS"
     25327    IFS=":"
     25328    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     25329      # 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
     25330      if test -r "$dir/${proj}-uninstalled.pc" ; then
     25331        pcfile="$dir/$proj-uninstalled.pc"
     25332        if test -r "$dir/${proj}.pc" ; then
     25333          pcifile="$dir/${proj}.pc"
     25334        else
     25335          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     25336echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     25337          pcifile=
     25338        fi
     25339        break
     25340      fi
     25341    done
     25342    IFS="$save_IFS"
     25343
     25344    if test "x$pcfile" != x ; then
     25345      # read dependencies from $pcfile and filter it
     25346      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     25347
     25348      # add projrequires to the front of the list of projects that have to be processed next
     25349      # at the same time, remove $proj from this list
     25350      projtoprocess=${projtoprocess/$proj/$projrequires}
     25351
     25352      # read DATA from $pcfile, if _DATA is still empty
     25353      if test "x$XPR_DATA" = x ; then
     25354        projdatadir=
     25355        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     25356        eval `sh -c "$pcfilemod"`
     25357        XPR_DATA="$projdatadir"
     25358      fi
     25359
     25360      allproj="$allproj $proj"
     25361      allpcfiles="$pcfile:$allpcfiles"
     25362
     25363    else
     25364      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     25365echo "${ECHO_T}no, dependency $proj not available" >&6
     25366      allproj=fail
     25367      break 2
    2362225368    fi
    23623     coin_has_xpr=true
    23624     echo "$as_me:$LINENO: result: yes" >&5
    23625 echo "${ECHO_T}yes" >&6
    23626   else
    23627     coin_has_xpr=false
    23628     echo "$as_me:$LINENO: result: no" >&5
    23629 echo "${ECHO_T}no" >&6
    23630   fi
    23631 
    23632 # If we have instructions for use, consider header and link checks.
    23633 
    23634   if test $coin_has_xpr = true; then
    23635 
    23636 # If argument 3 (file) is given, check for the file. Typically this will be a
    23637 # header file, but that's not assumed.
    23638 
    23639     if test -r $XPRINCDIR/xprs.h; then
    23640 
    23641   :
    23642 else
    23643   { { echo "$as_me:$LINENO: error: Cannot find file xprs.h in $XPRINCDIR" >&5
    23644 echo "$as_me: error: Cannot find file xprs.h in $XPRINCDIR" >&2;}
    23645    { (exit 1); exit 1; }; }
    23646   :
    23647 fi
    23648 
    23649 
    23650 # Now see if we can link the function. There are arguments for and against
    23651 # assuming argument 3 is a header file declaring the function. A correct
    23652 # function declaration is the main argument in favour. Having to cope with
    23653 # possible dependencies or other oddities are the main arguments against.
    23654 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23655 # Obviously, this has limits.
    23656 
    23657     if test x"$xpress_libcheck" != xno; then
    23658            coin_save_LIBS="$LIBS"
    23659            LIBS="$XPRLIB $ADDLIBS"
    23660            coin_XPR_link=no
    23661            ac_ext=c
    23662 ac_cpp='$CPP $CPPFLAGS'
    23663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23666 
    23667            for fnm in XPRSsetintcontrol ; do
    23668              echo "$as_me:$LINENO: checking whether symbol $fnm is available with XPR" >&5
    23669 echo $ECHO_N "checking whether symbol $fnm is available with XPR... $ECHO_C" >&6
    23670              cat >conftest.$ac_ext <<_ACEOF
    23671 /* confdefs.h.  */
    23672 _ACEOF
    23673 cat confdefs.h >>conftest.$ac_ext
    23674 cat >>conftest.$ac_ext <<_ACEOF
    23675 /* end confdefs.h.  */
    23676 
    23677 int
    23678 main ()
    23679 {
    23680 $fnm()
    23681   ;
    23682   return 0;
    23683 }
    23684 _ACEOF
    23685 rm -f conftest.$ac_objext conftest$ac_exeext
    23686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23687   (eval $ac_link) 2>conftest.er1
    23688   ac_status=$?
    23689   grep -v '^ *+' conftest.er1 >conftest.err
    23690   rm -f conftest.er1
    23691   cat conftest.err >&5
    23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23693   (exit $ac_status); } &&
    23694          { ac_try='test -z "$ac_c_werror_flag"
    23695                          || test ! -s conftest.err'
    23696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23697   (eval $ac_try) 2>&5
    23698   ac_status=$?
    23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23700   (exit $ac_status); }; } &&
    23701          { ac_try='test -s conftest$ac_exeext'
    23702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23703   (eval $ac_try) 2>&5
    23704   ac_status=$?
    23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23706   (exit $ac_status); }; }; then
     25369
     25370    if test "x$pcifile" != x ; then
     25371      allpcifiles="$pcifile:$allpcifiles"
     25372
     25373      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     25374      if test "x$XPR_DATA_INSTALLED" = x ; then
     25375        projdatadir=
     25376        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     25377        eval `sh -c "$pcifilemod"`
     25378        if test "${CYGPATH_W}" != "echo"; then
     25379          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     25380        fi
     25381        XPR_DATA_INSTALLED="$projdatadir"
     25382      fi
     25383
     25384    fi
     25385
     25386    break
     25387  done
     25388
     25389  # remove spaces on begin of $projtoprocess
     25390  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     25391
     25392done
     25393
     25394if test "$allproj" != fail ; then
     25395
     25396  # now go through the list of .pc files and assemble compiler and linker flags
     25397  # important is here to obey the reverse order that has been setup before,
     25398  # since then libraries that are required by several others should be after these other libraries
     25399  pcfilesprocessed=""
     25400
     25401  save_IFS="$IFS"
     25402  IFS=":"
     25403  for pcfile in $allpcfiles ; do
     25404
     25405    # if $pcfile has been processed already, skip this round
     25406    if test "x$pcfilesprocessed" != x ; then
     25407      for pcfiledone in $pcfilesprocessed ; do
     25408        if test "$pcfiledone" = "$pcfile" ; then
     25409          continue 2
     25410        fi
     25411      done
     25412    fi
     25413
     25414    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25415    #   replace "Libs:" by "echo projlibs="
     25416    #   replace "Cflags:" by "echo projcflags="
     25417    #   remove every line starting with <some word>:
     25418    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25419
     25420    # set projcflags and projlibs variables by running $pcfilemod
     25421    projcflags=
     25422    projlibs=
     25423    eval `sh -c "$pcfilemod"`
     25424
     25425    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25426    if test "${CYGPATH_W}" != "echo"; then
     25427      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25428    fi
     25429    XPR_CFLAGS="$projcflags $XPR_CFLAGS"
     25430
     25431    # set LIBS variable
     25432    XPR_LIBS="$projlibs $XPR_LIBS"
     25433
     25434    # remember that we have processed $pcfile
     25435    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25436
     25437  done
     25438  IFS="$save_IFS"
     25439
     25440
     25441  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     25442  # important is here again to obey the reverse order that has been setup before,
     25443  # since then libraries that are required by several others should be after these other libraries
     25444  pcfilesprocessed=""
     25445
     25446  save_IFS="$IFS"
     25447  IFS=":"
     25448  for pcfile in $allpcifiles ; do
     25449
     25450    # if $pcfile has been processed already, skip this round
     25451    if test "x$pcfilesprocessed" != x ; then
     25452      for pcfiledone in $pcfilesprocessed ; do
     25453        if test "$pcfiledone" = "$pcfile" ; then
     25454          continue 2
     25455        fi
     25456      done
     25457    fi
     25458
     25459    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     25460    #   replace "Libs:" by "echo projlibs="
     25461    #   replace "Cflags:" by "echo projcflags="
     25462    #   remove every line starting with <some word>:
     25463    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     25464
     25465    # set projcflags and projlibs variables by running $pcfilemod
     25466    projcflags=
     25467    projlibs=
     25468    eval `sh -c "$pcfilemod"`
     25469
     25470    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     25471    if test "${CYGPATH_W}" != "echo"; then
     25472      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     25473    fi
     25474    XPR_CFLAGS_INSTALLED="$projcflags $XPR_CFLAGS_INSTALLED"
     25475
     25476    # set LIBS variable
     25477    XPR_LIBS_INSTALLED="$projlibs $XPR_LIBS_INSTALLED"
     25478
     25479    # remember that we have processed $pcfile
     25480    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     25481
     25482  done
     25483  IFS="$save_IFS"
     25484
     25485
     25486  # finish up
     25487  coin_has_xpr=yes
    2370725488  echo "$as_me:$LINENO: result: yes" >&5
    2370825489echo "${ECHO_T}yes" >&6
    23709                   coin_XPR_link=yes
    23710                   break
    23711 else
    23712   echo "$as_me: failed program was:" >&5
    23713 sed 's/^/| /' conftest.$ac_ext >&5
    23714 
    23715 echo "$as_me:$LINENO: result: no" >&5
    23716 echo "${ECHO_T}no" >&6
    23717 fi
    23718 rm -f conftest.err conftest.$ac_objext \
    23719       conftest$ac_exeext conftest.$ac_ext
    23720            done
    23721            ac_ext=c
    23722 ac_cpp='$CPP $CPPFLAGS'
    23723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23726 
    23727            if test x"$coin_XPR_link" = xyes ; then
    23728              LIBS="$coin_save_LIBS"
    23729            else
    23730              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) XPRSsetintcontrol with XPR" >&5
    23731 echo "$as_me: error: Cannot find symbol(s) XPRSsetintcontrol with XPR" >&2;}
    23732    { (exit 1); exit 1; }; }
    23733            fi
    23734          fi
    23735 
    23736 
    23737 # If we make it this far, we've verified the file and linked the function. Add
    23738 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23739 # COIN_HAS_LBRY.
    23740 
    23741     ADDLIBS="$XPRLIB $ADDLIBS"
    2374225490
    2374325491cat >>confdefs.h <<\_ACEOF
     
    2374525493_ACEOF
    2374625494
     25495
     25496  # adjust linker flags for (i)cl compiler
     25497  # 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),
     25498  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     25499  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     25500  #    everything of the form "-lname" by "libname.lib"
     25501  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     25502  then
     25503    XPR_LIBS=`echo " $XPR_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     25504    XPR_LIBS_INSTALLED=`echo " $XPR_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
    2374725505  fi
    2374825506
    23749 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23750 # automake conditional. These actions must occur unconditionally.
    23751 
    23752 
    23753 
    23754 
    23755 
    23756 if test $coin_has_xpr = true; then
     25507
     25508    COUENNELIB_PCREQUIRES="osi-xpress $COUENNELIB_PCREQUIRES"
     25509    COUENNELIB_CFLAGS="$XPR_CFLAGS $COUENNELIB_CFLAGS"
     25510    COUENNELIB_LIBS="$XPR_LIBS $COUENNELIB_LIBS"
     25511    COUENNELIB_CFLAGS_INSTALLED="$XPR_CFLAGS_INSTALLED $COUENNELIB_CFLAGS_INSTALLED"
     25512    COUENNELIB_LIBS_INSTALLED="$XPR_LIBS_INSTALLED $COUENNELIB_LIBS_INSTALLED"
     25513
     25514
     25515fi
     25516
     25517
     25518
     25519if test $coin_has_xpr != notGiven &&
     25520                test $coin_has_xpr != skipping; then
    2375725521  COIN_HAS_XPR_TRUE=
    2375825522  COIN_HAS_XPR_FALSE='#'
     
    2376225526fi
    2376325527
    23764   # XpressMP
    23765 
    23766 ##############################################################################
    23767 #                   VPATH links for example input files                      #
    23768 ##############################################################################
    23769 
    23770 # In case this is a VPATH configuration we need to make sure that the
    23771 # input files for the examples are available in the VPATH directory.
    23772 
    23773 #AC_COIN_VPATH_LINK(examples/hello.mps)
    23774 #AC_COIN_VPATH_LINK(examples/input.130)
     25528
     25529
     25530  fi
     25531
     25532else
     25533  echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
     25534echo "${ECHO_T}$coin_has_xpr" >&6
     25535fi
     25536
     25537if test $coin_has_xpr != skipping &&
     25538   test $coin_has_xpr != notGiven ; then
     25539
     25540cat >>confdefs.h <<\_ACEOF
     25541#define COIN_HAS_XPR 1
     25542_ACEOF
     25543
     25544
     25545  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     25546if test "${enable_interpackage_dependencies+set}" = set; then
     25547  enableval="$enable_interpackage_dependencies"
     25548
     25549else
     25550  enable_interpackage_dependencies=yes
     25551fi;
     25552
     25553  if test $enable_interpackage_dependencies = yes ; then
     25554     # construct dependencies variables from LIBS variables
     25555     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     25556     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     25557     # then remove everything of the form -xxx
     25558     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     25559     XPR_DEPENDENCIES=`echo " $XPR_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25560
     25561       COUENNELIB_DEPENDENCIES=`echo " $COUENNELIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     25562
     25563  fi
     25564
     25565  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     25566    if test -n "$XPR_CFLAGS" ; then
     25567      { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
     25568echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
     25569    fi
     25570    if test -n "$XPR_LIBS" ; then
     25571      { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
     25572echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
     25573    fi
     25574    if test -n "$XPR_DEPENDENCIES" ; then
     25575      { echo "$as_me:$LINENO: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&5
     25576echo "$as_me: Xpr DEPENDENCIES are $XPR_DEPENDENCIES" >&6;}
     25577    fi
     25578    if test -n "$XPR_DATA" ; then
     25579      { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
     25580echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
     25581    fi
     25582    if test -n "$XPR_CFLAGS" ; then
     25583      { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
     25584echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
     25585    fi
     25586
     25587      { echo "$as_me:$LINENO: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&5
     25588echo "$as_me: CouenneLib CFLAGS are $COUENNELIB_CFLAGS" >&6;}
     25589      { echo "$as_me:$LINENO: CouenneLib LIBS   are $COUENNELIB_LIBS" >&5
     25590echo "$as_me: CouenneLib LIBS   are $COUENNELIB_LIBS" >&6;}
     25591      { echo "$as_me:$LINENO: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&5
     25592echo "$as_me: CouenneLib DEPENDENCIES are $COUENNELIB_DEPENDENCIES" >&6;}
     25593
     25594  fi
     25595fi
     25596
     25597# Define the Makefile conditional
     25598
     25599
     25600if test $coin_has_xpr != notGiven &&
     25601                test $coin_has_xpr != skipping; then
     25602  COIN_HAS_XPR_TRUE=
     25603  COIN_HAS_XPR_FALSE='#'
     25604else
     25605  COIN_HAS_XPR_TRUE='#'
     25606  COIN_HAS_XPR_FALSE=
     25607fi
     25608
     25609
     25610  # Osi/XpressMP
    2377525611
    2377625612##############################################################################
     
    2378025616# Here list all the files that configure should create (except for the
    2378125617# configuration header file)
    23782                                                                                                                                                                                                                   ac_config_files="$ac_config_files Makefile test/Makefile src/main/Makefile src/bound_tightening/Makefile src/branch/Makefile src/convex/Makefile src/interfaces/Makefile src/heuristics/Makefile src/disjunctive/Makefile src/sdpcuts/Makefile src/ellipcuts/Makefile src/expression/Makefile src/problem/Makefile src/standardize/Makefile src/readnl/Makefile src/util/Makefile src/crossconv/Makefile src/two_implied_bt/Makefile src/Makefile test/grandTest.sh couenne_addlibs.txt"
     25618                                                                                                                                                                                                                            ac_config_files="$ac_config_files Makefile test/Makefile src/main/Makefile src/bound_tightening/Makefile src/branch/Makefile src/convex/Makefile src/interfaces/Makefile src/heuristics/Makefile src/disjunctive/Makefile src/sdpcuts/Makefile src/ellipcuts/Makefile src/expression/Makefile src/problem/Makefile src/standardize/Makefile src/readnl/Makefile src/util/Makefile src/crossconv/Makefile src/two_implied_bt/Makefile src/Makefile test/grandTest.sh couenne.pc couenne-uninstalled.pc"
    2378325619
    2378425620
     
    2380825644
    2380925645if test x$coin_skip_ac_output != xyes; then
    23810 
    23811   FADDLIBS="$ADDLIBS"
    23812   if test x"$coin_need_flibs" = xyes; then
    23813     ADDLIBS="$ADDLIBS $FLIBS"
    23814   fi
    2381525646
    2381625647  # library extension
     
    2384525676  fi
    2384625677
     25678  # need to come before AC_OUTPUT
     25679  if test x$coin_projectdir != xyes; then
     25680    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     25681    echo $coin_subdirs > coin_subdirs.txt
     25682  else
     25683    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     25684    ABSBUILDDIR="`pwd`"
     25685
     25686  fi
     25687
    2384725688  cat >confcache <<\_ACEOF
    2384825689# This file is a shell script that caches the results of configure
     
    2394325784   { (exit 1); exit 1; }; }
    2394425785fi
     25786if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
     25787  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
     25788Usually this means the macro was only invoked conditionally." >&5
     25789echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
     25790Usually this means the macro was only invoked conditionally." >&2;}
     25791   { (exit 1); exit 1; }; }
     25792fi
     25793if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
     25794  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
     25795Usually this means the macro was only invoked conditionally." >&5
     25796echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
     25797Usually this means the macro was only invoked conditionally." >&2;}
     25798   { (exit 1); exit 1; }; }
     25799fi
     25800if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
     25801  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
     25802Usually this means the macro was only invoked conditionally." >&5
     25803echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
     25804Usually this means the macro was only invoked conditionally." >&2;}
     25805   { (exit 1); exit 1; }; }
     25806fi
    2394525807if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    2394625808  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
     
    2397825840   { (exit 1); exit 1; }; }
    2397925841fi
    23980 if test -z "${COIN_HAS_THIRDPARTY_TRUE}" && test -z "${COIN_HAS_THIRDPARTY_FALSE}"; then
    23981   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_THIRDPARTY\" was never defined.
     25842if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     25843  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
    2398225844Usually this means the macro was only invoked conditionally." >&5
    23983 echo "$as_me: error: conditional \"COIN_HAS_THIRDPARTY\" was never defined.
    23984 Usually this means the macro was only invoked conditionally." >&2;}
    23985    { (exit 1); exit 1; }; }
    23986 fi
    23987 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
    23988   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
    23989 Usually this means the macro was only invoked conditionally." >&5
    23990 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
    23991 Usually this means the macro was only invoked conditionally." >&2;}
    23992    { (exit 1); exit 1; }; }
    23993 fi
    23994 if test -z "${COIN_HAS_CLP_TRUE}" && test -z "${COIN_HAS_CLP_FALSE}"; then
    23995   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CLP\" was never defined.
    23996 Usually this means the macro was only invoked conditionally." >&5
    23997 echo "$as_me: error: conditional \"COIN_HAS_CLP\" was never defined.
     25845echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
    2399825846Usually this means the macro was only invoked conditionally." >&2;}
    2399925847   { (exit 1); exit 1; }; }
     
    2400625854   { (exit 1); exit 1; }; }
    2400725855fi
    24008 if test -z "${COIN_HAS_IPOPT_TRUE}" && test -z "${COIN_HAS_IPOPT_FALSE}"; then
    24009   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_IPOPT\" was never defined.
     25856if test -z "${COIN_HAS_BONMIN_TRUE}" && test -z "${COIN_HAS_BONMIN_FALSE}"; then
     25857  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BONMIN\" was never defined.
    2401025858Usually this means the macro was only invoked conditionally." >&5
    24011 echo "$as_me: error: conditional \"COIN_HAS_IPOPT\" was never defined.
    24012 Usually this means the macro was only invoked conditionally." >&2;}
    24013    { (exit 1); exit 1; }; }
    24014 fi
    24015 if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then
    24016   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined.
    24017 Usually this means the macro was only invoked conditionally." >&5
    24018 echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined.
    24019 Usually this means the macro was only invoked conditionally." >&2;}
    24020    { (exit 1); exit 1; }; }
    24021 fi
    24022 if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
    24023   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
    24024 Usually this means the macro was only invoked conditionally." >&5
    24025 echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
    24026 Usually this means the macro was only invoked conditionally." >&2;}
    24027    { (exit 1); exit 1; }; }
    24028 fi
    24029 if test -z "${COIN_HAS_CGL_TRUE}" && test -z "${COIN_HAS_CGL_FALSE}"; then
    24030   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CGL\" was never defined.
    24031 Usually this means the macro was only invoked conditionally." >&5
    24032 echo "$as_me: error: conditional \"COIN_HAS_CGL\" was never defined.
    24033 Usually this means the macro was only invoked conditionally." >&2;}
    24034    { (exit 1); exit 1; }; }
    24035 fi
    24036 if test -z "${COIN_HAS_COUENNE_TRUE}" && test -z "${COIN_HAS_COUENNE_FALSE}"; then
    24037   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COUENNE\" was never defined.
    24038 Usually this means the macro was only invoked conditionally." >&5
    24039 echo "$as_me: error: conditional \"COIN_HAS_COUENNE\" was never defined.
     25859echo "$as_me: error: conditional \"COIN_HAS_BONMIN\" was never defined.
    2404025860Usually this means the macro was only invoked conditionally." >&2;}
    2404125861   { (exit 1); exit 1; }; }
     
    2404825868   { (exit 1); exit 1; }; }
    2404925869fi
     25870if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
     25871  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
     25872Usually this means the macro was only invoked conditionally." >&5
     25873echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
     25874Usually this means the macro was only invoked conditionally." >&2;}
     25875   { (exit 1); exit 1; }; }
     25876fi
    2405025877if test -z "${COIN_HAS_NTY_TRUE}" && test -z "${COIN_HAS_NTY_FALSE}"; then
    2405125878  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NTY\" was never defined.
     
    2406225889   { (exit 1); exit 1; }; }
    2406325890fi
     25891if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
     25892  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
     25893Usually this means the macro was only invoked conditionally." >&5
     25894echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
     25895Usually this means the macro was only invoked conditionally." >&2;}
     25896   { (exit 1); exit 1; }; }
     25897fi
    2406425898if test -z "${COIN_HAS_GRB_TRUE}" && test -z "${COIN_HAS_GRB_FALSE}"; then
    2406525899  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined.
     
    2406925903   { (exit 1); exit 1; }; }
    2407025904fi
     25905if test -z "${COIN_HAS_GRB_TRUE}" && test -z "${COIN_HAS_GRB_FALSE}"; then
     25906  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GRB\" was never defined.
     25907Usually this means the macro was only invoked conditionally." >&5
     25908echo "$as_me: error: conditional \"COIN_HAS_GRB\" was never defined.
     25909Usually this means the macro was only invoked conditionally." >&2;}
     25910   { (exit 1); exit 1; }; }
     25911fi
    2407125912if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then
    2407225913  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined.
     
    2407625917   { (exit 1); exit 1; }; }
    2407725918fi
    24078 if test -z "${COIN_HAS_OSL_TRUE}" && test -z "${COIN_HAS_OSL_FALSE}"; then
    24079   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSL\" was never defined.
     25919if test -z "${COIN_HAS_MSK_TRUE}" && test -z "${COIN_HAS_MSK_FALSE}"; then
     25920  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MSK\" was never defined.
    2408025921Usually this means the macro was only invoked conditionally." >&5
    24081 echo "$as_me: error: conditional \"COIN_HAS_OSL\" was never defined.
     25922echo "$as_me: error: conditional \"COIN_HAS_MSK\" was never defined.
    2408225923Usually this means the macro was only invoked conditionally." >&2;}
    2408325924   { (exit 1); exit 1; }; }
     
    2408725928Usually this means the macro was only invoked conditionally." >&5
    2408825929echo "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined.
     25930Usually this means the macro was only invoked conditionally." >&2;}
     25931   { (exit 1); exit 1; }; }
     25932fi
     25933if test -z "${COIN_HAS_SPX_TRUE}" && test -z "${COIN_HAS_SPX_FALSE}"; then
     25934  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SPX\" was never defined.
     25935Usually this means the macro was only invoked conditionally." >&5
     25936echo "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined.
     25937Usually this means the macro was only invoked conditionally." >&2;}
     25938   { (exit 1); exit 1; }; }