Changeset 1437 for branches


Ignore:
Timestamp:
Mar 7, 2010 2:51:39 PM (9 years ago)
Author:
stefan
Message:

use pkg-config to find dependencies

Location:
branches/split
Files:
2 added
16 edited

Legend:

Unmodified
Added
Removed
  • branches/split

    • Property svn:externals
      •  

        old new  
        1 BuildTools        https://projects.coin-or.org/svn/BuildTools/stable/0.5
        2 ThirdParty/ASL    https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/stable/1.0
        3 ThirdParty/Blas   https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/stable/1.0
        4 ThirdParty/Lapack https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/stable/1.0
        5 ThirdParty/Glpk   https://projects.coin-or.org/svn/BuildTools/ThirdParty/Glpk/stable/1.5
        6 Data/Sample       https://projects.coin-or.org/svn/Data/stable/1.0/Sample
        7 Data/miplib3       https://projects.coin-or.org/svn/Data/stable/1.0/miplib3
        8 CoinUtils         https://projects.coin-or.org/svn/CoinUtils/stable/2.6/CoinUtils
        9 Cgl               https://projects.coin-or.org/svn/Cgl/trunk/Cgl
        10 Clp               https://projects.coin-or.org/svn/Clp/trunk/Clp
        11 Osi               https://projects.coin-or.org/svn/Osi/stable/0.101/Osi
        12 Vol               https://projects.coin-or.org/svn/Vol/stable/1.1/Vol
         1BuildTools        https://projects.coin-or.org/svn/BuildTools/branches/split
         2#Data/miplib3       https://projects.coin-or.org/svn/Data/stable/1.0/miplib3
  • branches/split/Cbc/Makefile.am

    r876 r1437  
    107107        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    108108
     109install-exec-local: install-doc
     110
     111uninstall-local: uninstall-doc
     112
    109113.PHONY: test unitTest
    110114
     
    113117########################################################################
    114118
    115 addlibsfile = cbc_addlibs.txt
    116 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     119addlibsdir = $(datadir)/coin/doc/Cbc
     120addlibs_DATA = cbc_addlibs.txt
    117121
    118 install-exec-local: install-doc
    119         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    120 
    121 uninstall-local: uninstall-doc
    122         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
     122pkgconfiglibdir = $(libdir)/pkgconfig
     123pkgconfiglib_DATA = cbc.pc
    123124
    124125########################################################################
  • branches/split/Cbc/Makefile.in

    r1204 r1437  
    3030#                    Documentation installation                        #
    3131########################################################################
     32
    3233srcdir = @srcdir@
    3334top_srcdir = @top_srcdir@
     
    6263        $(srcdir)/../ltmain.sh $(srcdir)/../missing \
    6364        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
     65        $(srcdir)/cbc-uninstalled.pc.in $(srcdir)/cbc.pc.in \
    6466        $(srcdir)/cbc_addlibs.txt.in $(top_srcdir)/configure \
    6567        $(top_srcdir)/examples/Makefile.in \
     
    7779mkinstalldirs = $(install_sh) -d
    7880CONFIG_HEADER = $(top_builddir)/inc/config_cbc.h
    79 CONFIG_CLEAN_FILES = examples/Makefile cbc_addlibs.txt
     81CONFIG_CLEAN_FILES = examples/Makefile cbc_addlibs.txt cbc.pc \
     82        cbc-uninstalled.pc
    8083SOURCES =
    8184DIST_SOURCES =
     
    8689        pdf-recursive ps-recursive uninstall-info-recursive \
    8790        uninstall-recursive
     91am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     92am__vpath_adj = case $$p in \
     93    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     94    *) f=$$p;; \
     95  esac;
     96am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     97am__installdirs = "$(DESTDIR)$(addlibsdir)" \
     98        "$(DESTDIR)$(pkgconfiglibdir)"
     99addlibsDATA_INSTALL = $(INSTALL_DATA)
     100pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     101DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
    88102ETAGS = etags
    89103CTAGS = ctags
     
    100114distuninstallcheck_listfiles = find . -type f -print
    101115distcleancheck_listfiles = find . -type f -print
     116ABSBUILDDIR = @ABSBUILDDIR@
    102117ACLOCAL = @ACLOCAL@
    103118ADDLIBS = @ADDLIBS@
     
    110125AMTAR = @AMTAR@
    111126AR = @AR@
    112 ASLLIB = @ASLLIB@
    113 ASL_CPPFLAGS = @ASL_CPPFLAGS@
     127ASL_CFLAGS = @ASL_CFLAGS@
     128ASL_DATA = @ASL_DATA@
     129ASL_LIBS = @ASL_LIBS@
    114130AUTOCONF = @AUTOCONF@
    115131AUTOHEADER = @AUTOHEADER@
     
    118134AWK = @AWK@
    119135BUILDTOOLSDIR = @BUILDTOOLSDIR@
    120 CBCDOCDIR = @CBCDOCDIR@
    121 CBCOBJDIR = @CBCOBJDIR@
    122 CBCSRCDIR = @CBCSRCDIR@
    123136CBC_BUILD_CBC_GENERIC_FALSE = @CBC_BUILD_CBC_GENERIC_FALSE@
    124137CBC_BUILD_CBC_GENERIC_TRUE = @CBC_BUILD_CBC_GENERIC_TRUE@
     
    127140CDEFS = @CDEFS@
    128141CFLAGS = @CFLAGS@
    129 CGLDOCDIR = @CGLDOCDIR@
    130 CGLOBJDIR = @CGLOBJDIR@
    131 CGLSRCDIR = @CGLSRCDIR@
    132 CLPDOCDIR = @CLPDOCDIR@
    133 CLPOBJDIR = @CLPOBJDIR@
    134 CLPSRCDIR = @CLPSRCDIR@
    135 COINUTILSDOCDIR = @COINUTILSDOCDIR@
    136 COINUTILSOBJDIR = @COINUTILSOBJDIR@
    137 COINUTILSSRCDIR = @COINUTILSSRCDIR@
    138 COIN_BUILD_GLPK_FALSE = @COIN_BUILD_GLPK_FALSE@
    139 COIN_BUILD_GLPK_TRUE = @COIN_BUILD_GLPK_TRUE@
     142CLP_CFLAGS = @CLP_CFLAGS@
     143CLP_DATA = @CLP_DATA@
     144CLP_LIBS = @CLP_LIBS@
     145COINDEPEND_CFLAGS = @COINDEPEND_CFLAGS@
     146COINDEPEND_DATA = @COINDEPEND_DATA@
     147COINDEPEND_LIBS = @COINDEPEND_LIBS@
    140148COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    141149COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
    142 COIN_HAS_CBC_FALSE = @COIN_HAS_CBC_FALSE@
    143 COIN_HAS_CBC_TRUE = @COIN_HAS_CBC_TRUE@
    144 COIN_HAS_CGL_FALSE = @COIN_HAS_CGL_FALSE@
    145 COIN_HAS_CGL_TRUE = @COIN_HAS_CGL_TRUE@
    146150COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    147151COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    148 COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    149 COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     152COIN_HAS_COINDEPEND_FALSE = @COIN_HAS_COINDEPEND_FALSE@
     153COIN_HAS_COINDEPEND_TRUE = @COIN_HAS_COINDEPEND_TRUE@
    150154COIN_HAS_CPX_FALSE = @COIN_HAS_CPX_FALSE@
    151155COIN_HAS_CPX_TRUE = @COIN_HAS_CPX_TRUE@
    152156COIN_HAS_DYLP_FALSE = @COIN_HAS_DYLP_FALSE@
    153157COIN_HAS_DYLP_TRUE = @COIN_HAS_DYLP_TRUE@
    154 COIN_HAS_FMP_FALSE = @COIN_HAS_FMP_FALSE@
    155 COIN_HAS_FMP_TRUE = @COIN_HAS_FMP_TRUE@
    156158COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
    157159COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
     160COIN_HAS_MIPLIB3_FALSE = @COIN_HAS_MIPLIB3_FALSE@
     161COIN_HAS_MIPLIB3_TRUE = @COIN_HAS_MIPLIB3_TRUE@
    158162COIN_HAS_MSK_FALSE = @COIN_HAS_MSK_FALSE@
    159163COIN_HAS_MSK_TRUE = @COIN_HAS_MSK_TRUE@
    160 COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    161 COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
    162 COIN_HAS_OSL_FALSE = @COIN_HAS_OSL_FALSE@
    163 COIN_HAS_OSL_TRUE = @COIN_HAS_OSL_TRUE@
    164 COIN_HAS_SPX_FALSE = @COIN_HAS_SPX_FALSE@
    165 COIN_HAS_SPX_TRUE = @COIN_HAS_SPX_TRUE@
    166 COIN_HAS_SYMPHONY_FALSE = @COIN_HAS_SYMPHONY_FALSE@
    167 COIN_HAS_SYMPHONY_TRUE = @COIN_HAS_SYMPHONY_TRUE@
     164COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
     165COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     166COIN_HAS_OSITESTS_FALSE = @COIN_HAS_OSITESTS_FALSE@
     167COIN_HAS_OSITESTS_TRUE = @COIN_HAS_OSITESTS_TRUE@
     168COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
     169COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
    168170COIN_HAS_VOL_FALSE = @COIN_HAS_VOL_FALSE@
    169171COIN_HAS_VOL_TRUE = @COIN_HAS_VOL_TRUE@
     
    172174CPP = @CPP@
    173175CPPFLAGS = @CPPFLAGS@
    174 CPXDOCDIR = @CPXDOCDIR@
    175 CPXINCDIR = @CPXINCDIR@
    176 CPXLIB = @CPXLIB@
    177 CPXOBJDIR = @CPXOBJDIR@
    178 CPXSRCDIR = @CPXSRCDIR@
     176CPX_CFLAGS = @CPX_CFLAGS@
     177CPX_DATA = @CPX_DATA@
     178CPX_LIBS = @CPX_LIBS@
    179179CXX = @CXX@
    180180CXXCPP = @CXXCPP@
     
    187187DEFS = @DEFS@
    188188DEPDIR = @DEPDIR@
    189 DYLPDOCDIR = @DYLPDOCDIR@
    190 DYLPOBJDIR = @DYLPOBJDIR@
    191 DYLPSRCDIR = @DYLPSRCDIR@
     189DYLP_CFLAGS = @DYLP_CFLAGS@
     190DYLP_DATA = @DYLP_DATA@
     191DYLP_LIBS = @DYLP_LIBS@
    192192ECHO = @ECHO@
    193193ECHO_C = @ECHO_C@
     
    199199FADDLIBS = @FADDLIBS@
    200200FFLAGS = @FFLAGS@
    201 FMPINCDIR = @FMPINCDIR@
    202 FMPLIB = @FMPLIB@
    203 GLPKINCDIR = @GLPKINCDIR@
    204 GLPKLIB = @GLPKLIB@
    205 GLPKOBJDIR = @GLPKOBJDIR@
     201GLPK_CFLAGS = @GLPK_CFLAGS@
     202GLPK_DATA = @GLPK_DATA@
     203GLPK_LIBS = @GLPK_LIBS@
    206204HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    207205HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    223221MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    224222MAKEINFO = @MAKEINFO@
     223MIPLIB3_CFLAGS = @MIPLIB3_CFLAGS@
     224MIPLIB3_DATA = @MIPLIB3_DATA@
     225MIPLIB3_LIBS = @MIPLIB3_LIBS@
    225226MPICC = @MPICC@
    226227MPICXX = @MPICXX@
    227 MSKINCDIR = @MSKINCDIR@
    228 MSKLIB = @MSKLIB@
     228MSK_CFLAGS = @MSK_CFLAGS@
     229MSK_DATA = @MSK_DATA@
     230MSK_LIBS = @MSK_LIBS@
     231NETLIB_CFLAGS = @NETLIB_CFLAGS@
     232NETLIB_DATA = @NETLIB_DATA@
     233NETLIB_LIBS = @NETLIB_LIBS@
    229234OBJEXT = @OBJEXT@
    230235OPT_CFLAGS = @OPT_CFLAGS@
    231236OPT_CXXFLAGS = @OPT_CXXFLAGS@
    232 OSIDOCDIR = @OSIDOCDIR@
    233 OSIOBJDIR = @OSIOBJDIR@
    234 OSISRCDIR = @OSISRCDIR@
    235 OSLINCDIR = @OSLINCDIR@
    236 OSLLIB = @OSLLIB@
     237OSITESTS_CFLAGS = @OSITESTS_CFLAGS@
     238OSITESTS_DATA = @OSITESTS_DATA@
     239OSITESTS_LIBS = @OSITESTS_LIBS@
    237240PACKAGE = @PACKAGE@
    238241PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    242245PACKAGE_VERSION = @PACKAGE_VERSION@
    243246PATH_SEPARATOR = @PATH_SEPARATOR@
     247PKG_CONFIG = @PKG_CONFIG@
    244248RANLIB = @RANLIB@
     249REQUIREDPACKAGES = @REQUIREDPACKAGES@
    245250RPATH_FLAGS = @RPATH_FLAGS@
     251SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     252SAMPLE_DATA = @SAMPLE_DATA@
     253SAMPLE_LIBS = @SAMPLE_LIBS@
    246254SET_MAKE = @SET_MAKE@
    247255SHELL = @SHELL@
    248 SPXINCDIR = @SPXINCDIR@
    249 SPXLIB = @SPXLIB@
    250256STRIP = @STRIP@
    251 SYMPHONYDOCDIR = @SYMPHONYDOCDIR@
    252 SYMPHONYOBJDIR = @SYMPHONYOBJDIR@
    253 SYMPHONYSRCDIR = @SYMPHONYSRCDIR@
    254257VERSION = @VERSION@
    255 VOLDOCDIR = @VOLDOCDIR@
    256 VOLOBJDIR = @VOLOBJDIR@
    257 VOLSRCDIR = @VOLSRCDIR@
     258VOL_CFLAGS = @VOL_CFLAGS@
     259VOL_DATA = @VOL_DATA@
     260VOL_LIBS = @VOL_LIBS@
    258261VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
    259 XPRINCDIR = @XPRINCDIR@
    260 XPRLIB = @XPRLIB@
     262XPR_CFLAGS = @XPR_CFLAGS@
     263XPR_DATA = @XPR_DATA@
     264XPR_LIBS = @XPR_LIBS@
    261265abs_bin_dir = @abs_bin_dir@
    262266abs_include_dir = @abs_include_dir@
     
    271275ac_ct_STRIP = @ac_ct_STRIP@
    272276ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     277ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    273278am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    274279am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    353358#                  Installation of the addlibs file                    #
    354359########################################################################
    355 addlibsfile = cbc_addlibs.txt
    356 addlibsdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/
     360addlibsdir = $(datadir)/coin/doc/Cbc
     361addlibs_DATA = cbc_addlibs.txt
     362pkgconfiglibdir = $(libdir)/pkgconfig
     363pkgconfiglib_DATA = cbc.pc
    357364
    358365########################################################################
     
    363370DISTCLEANFILES = $(am__append_3) $(VPATH_DISTCLEANFILES)
    364371DocFiles = README AUTHORS LICENSE
    365 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     372DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    366373all: all-recursive
    367374
     
    421428cbc_addlibs.txt: $(top_builddir)/config.status $(srcdir)/cbc_addlibs.txt.in
    422429        cd $(top_builddir) && $(SHELL) ./config.status $@
     430cbc.pc: $(top_builddir)/config.status $(srcdir)/cbc.pc.in
     431        cd $(top_builddir) && $(SHELL) ./config.status $@
     432cbc-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/cbc-uninstalled.pc.in
     433        cd $(top_builddir) && $(SHELL) ./config.status $@
    423434
    424435mostlyclean-libtool:
     
    431442        -rm -f libtool
    432443uninstall-info-am:
     444install-addlibsDATA: $(addlibs_DATA)
     445        @$(NORMAL_INSTALL)
     446        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     447        @list='$(addlibs_DATA)'; for p in $$list; do \
     448          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     449          f=$(am__strip_dir) \
     450          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     451          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     452        done
     453
     454uninstall-addlibsDATA:
     455        @$(NORMAL_UNINSTALL)
     456        @list='$(addlibs_DATA)'; for p in $$list; do \
     457          f=$(am__strip_dir) \
     458          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     459          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     460        done
     461install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     462        @$(NORMAL_INSTALL)
     463        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     464        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     465          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     466          f=$(am__strip_dir) \
     467          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     468          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     469        done
     470
     471uninstall-pkgconfiglibDATA:
     472        @$(NORMAL_UNINSTALL)
     473        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     474          f=$(am__strip_dir) \
     475          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     476          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     477        done
    433478
    434479# This directory's subdirectories are mostly independent; you can cd
     
    708753check-am: all-am
    709754check: check-recursive
    710 all-am: Makefile
     755all-am: Makefile $(DATA)
    711756installdirs: installdirs-recursive
    712757installdirs-am:
     758        for dir in "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)"; do \
     759          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     760        done
    713761install: install-recursive
    714762install-exec: install-exec-recursive
     
    756804info-am:
    757805
    758 install-data-am:
     806install-data-am: install-addlibsDATA install-pkgconfiglibDATA
    759807
    760808install-exec-am: install-exec-local
     
    784832ps-am:
    785833
    786 uninstall-am: uninstall-info-am uninstall-local
     834uninstall-am: uninstall-addlibsDATA uninstall-info-am uninstall-local \
     835        uninstall-pkgconfiglibDATA
    787836
    788837uninstall-info: uninstall-info-recursive
     
    795844        distclean-local distclean-recursive distclean-tags \
    796845        distcleancheck distdir distuninstallcheck dvi dvi-am html \
    797         html-am info info-am install install-am install-data \
    798         install-data-am install-exec install-exec-am \
     846        html-am info info-am install install-addlibsDATA install-am \
     847        install-data install-data-am install-exec install-exec-am \
    799848        install-exec-local install-info install-info-am install-man \
    800         install-strip installcheck installcheck-am installdirs \
    801         installdirs-am maintainer-clean maintainer-clean-generic \
    802         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    803         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    804         tags tags-recursive uninstall uninstall-am uninstall-info-am \
    805         uninstall-local
     849        install-pkgconfiglibDATA install-strip installcheck \
     850        installcheck-am installdirs installdirs-am maintainer-clean \
     851        maintainer-clean-generic maintainer-clean-recursive \
     852        mostlyclean mostlyclean-generic mostlyclean-libtool \
     853        mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
     854        uninstall uninstall-addlibsDATA uninstall-am uninstall-info-am \
     855        uninstall-local uninstall-pkgconfiglibDATA
    806856
    807857
     
    821871        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    822872
     873install-exec-local: install-doc
     874
     875uninstall-local: uninstall-doc
     876
    823877.PHONY: test unitTest
    824 
    825 install-exec-local: install-doc
    826         $(install_sh_DATA) $(addlibsfile) $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    827 
    828 uninstall-local: uninstall-doc
    829         rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
    830878
    831879install-doc: $(DocFiles)
  • branches/split/Cbc/configure

    r1433 r1437  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for Cbc 2.5devel.
     3# Generated by GNU Autoconf 2.59 for Cbc split.
    44#
    5 # Report bugs to <coin-cbc@list.coin-or.org>.
     5# Report bugs to <cbc@list.coin-or.org>.
    66#
    77# Copyright (C) 2003 Free Software Foundation, Inc.
     
    430430PACKAGE_NAME='Cbc'
    431431PACKAGE_TARNAME='cbc'
    432 PACKAGE_VERSION='2.5devel'
    433 PACKAGE_STRING='Cbc 2.5devel'
    434 PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
     432PACKAGE_VERSION='split'
     433PACKAGE_STRING='Cbc split'
     434PACKAGE_BUGREPORT='cbc@list.coin-or.org'
    435435
    436436ac_unique_file="src/CbcTree.hpp"
     
    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 CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE CPXSRCDIR CPXOBJDIR CPXDOCDIR COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE CPXINCDIR CPXLIB FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_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 GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GLPKOBJDIR COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_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 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 PKG_CONFIG ac_pt_PKG_CONFIG COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA REQUIREDPACKAGES COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE 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#
     
    10021006  # This message is too long to be a string in the A/UX 3.1 sh.
    10031007  cat <<_ACEOF
    1004 \`configure' configures Cbc 2.5devel to adapt to many kinds of systems.
     1008\`configure' configures Cbc split to adapt to many kinds of systems.
    10051009
    10061010Usage: $0 [OPTION]... [VAR=VALUE]...
     
    10681072if test -n "$ac_init_help"; then
    10691073  case $ac_init_help in
    1070      short | recursive ) echo "Configuration of Cbc 2.5devel:";;
     1074     short | recursive ) echo "Configuration of Cbc split:";;
    10711075   esac
    10721076  cat <<\_ACEOF
     
    10931097                          optimize for fast installation [default=yes]
    10941098  --disable-libtool-lock  avoid locking (might break parallel builds)
    1095   --enable-cplex-libcheck use disable-cplex-libcheck to skip the
    1096                           link check at configuration time
    1097   --enable-fortmp-libcheck
    1098                           use disable-fortmp-libcheck to skip the
    1099                           link check at configuration time
    1100   --enable-mosek-libcheck use disable-mosek-libcheck to skip the
    1101                           link check at configuration time
    1102   --enable-osl-libcheck use disable-osl-libcheck to skip the link
    1103                           check at configuration time
    1104   --enable-soplex-libcheck
    1105                           use disable-soplex-libcheck to skip the
    1106                           link check at configuration time
    1107   --enable-xpress-libcheck
    1108                           use disable-xpress-libcheck to skip the
    1109                           link check at configuration time
    1110   --enable-glpk-libcheck use disable-glpk-libcheck to skip the
    1111                           link check at configuration time
     1099  --enable-pkg-config     use pkg-config if available (default is yes)
    11121100  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
    11131101
     
    11221110  --with-tags[=TAGS]
    11231111                          include additional configurations [automatic]
    1124   --with-cplex-incdir specify the header file directory for library Cplex
    1125   --with-cplex-lib specify the flags used to link with the library Cplex
    1126   --with-fortmp-incdir specify the header file directory for library FortMP
    1127   --with-fortmp-lib specify the flags used to link with the library FortMP
    1128   --with-mosek-incdir specify the header file directory for library Mosek
    1129   --with-mosek-lib specify the flags used to link with the library Mosek
    1130   --with-osl-incdir specify the header file directory for library Osl
    1131   --with-osl-lib specify the flags used to link with the library Osl
    1132   --with-soplex-incdir specify the header file directory for library Soplex
    1133   --with-soplex-lib specify the flags used to link with the library Soplex
    1134   --with-xpress-incdir specify the header file directory for library Xpress
    1135   --with-xpress-lib specify the flags used to link with the library Xpress
    1136   --with-glpk-incdir specify the header file directory for library Glpk
    1137   --with-glpk-lib specify the flags used to link with the library Glpk
    1138   --with-asldir           specify path to AMPL solver directory (or BUILD for
    1139                           compilation, or "no" for disabling AMPL)
     1112  --with-coindepend-lib linker flags for using module CoinDepend
     1113  --with-coindepend-incdir
     1114                          directory with header files for using module
     1115                          CoinDepend
     1116  --with-coindepend-datadir
     1117                          directory with data files for using module
     1118                          CoinDepend
     1119  --with-coin-instdir     prefix of installation directory for precompiled
     1120                          COIN packages
     1121  --with-clp-lib linker flags for using module Clp
     1122  --with-clp-incdir directory with header files for using module Clp
     1123  --with-clp-datadir directory with data files for using module Clp
     1124  --with-dylp-lib linker flags for using module DyLP
     1125  --with-dylp-incdir directory with header files for using module DyLP
     1126  --with-dylp-datadir directory with data files for using module DyLP
     1127  --with-vol-lib linker flags for using module Vol
     1128  --with-vol-incdir directory with header files for using module Vol
     1129  --with-vol-datadir directory with data files for using module Vol
     1130  --with-ositests-lib linker flags for using module OsiTests
     1131  --with-ositests-incdir directory with header files for using module OsiTests
     1132  --with-ositests-datadir directory with data files for using module OsiTests
     1133  --with-sample-lib linker flags for using module Sample
     1134  --with-sample-incdir directory with header files for using module Sample
     1135  --with-sample-datadir directory with data files for using module Sample
     1136  --with-netlib-lib linker flags for using module Netlib
     1137  --with-netlib-incdir directory with header files for using module Netlib
     1138  --with-netlib-datadir directory with data files for using module Netlib
     1139  --with-miplib3-lib linker flags for using module Miplib3
     1140  --with-miplib3-incdir directory with header files for using module Miplib3
     1141  --with-miplib3-datadir directory with data files for using module Miplib3
     1142  --with-cpx-lib linker flags for using module Cpx
     1143  --with-cpx-incdir directory with header files for using module Cpx
     1144  --with-cpx-datadir directory with data files for using module Cpx
     1145  --with-glpk-lib linker flags for using module Glpk
     1146  --with-glpk-incdir directory with header files for using module Glpk
     1147  --with-glpk-datadir directory with data files for using module Glpk
     1148  --with-msk-lib linker flags for using module Msk
     1149  --with-msk-incdir directory with header files for using module Msk
     1150  --with-msk-datadir directory with data files for using module Msk
     1151  --with-xpr-lib linker flags for using module Xpr
     1152  --with-xpr-incdir directory with header files for using module Xpr
     1153  --with-xpr-datadir directory with data files for using module Xpr
     1154  --with-asl-lib linker flags for using module ASL
     1155  --with-asl-incdir directory with header files for using module ASL
     1156  --with-asl-datadir directory with data files for using module ASL
    11401157  --with-cbc-generic      specify whether to build cbc-generic (default: no)
    11411158  --with-cbc-generic-solver
     
    11691186  F77         Fortran 77 compiler command
    11701187  FFLAGS      Fortran 77 compiler flags
     1188  PKG_CONFIG  path to pkg-config utility
    11711189
    11721190Use these variables to override the choices made by `configure' or to help
    11731191it to find libraries and programs with nonstandard names/locations.
    11741192
    1175 Report bugs to <coin-cbc@list.coin-or.org>.
     1193Report bugs to <cbc@list.coin-or.org>.
    11761194_ACEOF
    11771195fi
     
    12691287if $ac_init_version; then
    12701288  cat <<\_ACEOF
    1271 Cbc configure 2.5devel
     1289Cbc configure split
    12721290generated by GNU Autoconf 2.59
    12731291
     
    12891307running configure, to aid debugging if configure makes a mistake.
    12901308
    1291 It was created by Cbc $as_me 2.5devel, which was
     1309It was created by Cbc $as_me split, which was
    12921310generated by GNU Autoconf 2.59.  Invocation command line was
    12931311
     
    17331751# that we are in a project main directory
    17341752coin_projectdir=yes
     1753
     1754# Check if a library version is set for libtool
     1755
    17351756
    17361757
     
    45174538# Define the identity of the package.
    45184539 PACKAGE='cbc'
    4519  VERSION='2.5devel'
     4540 VERSION='split'
    45204541
    45214542
     
    58195840*-*-irix6*)
    58205841  # Find out which ABI we are using.
    5821   echo '#line 5821 "configure"' > conftest.$ac_ext
     5842  echo '#line 5842 "configure"' > conftest.$ac_ext
    58225843  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    58235844  (eval $ac_compile) 2>&5
     
    65966617    (
    65976618      cat <<\_ASBOX
    6598 ## ---------------------------------------- ##
    6599 ## Report this to coin-cbc@list.coin-or.org ##
    6600 ## ---------------------------------------- ##
     6619## ----------------------------------- ##
     6620## Report this to cbc@list.coin-or.org ##
     6621## ----------------------------------- ##
    66016622_ASBOX
    66026623    ) |
     
    69536974
    69546975# Provide some information about the compiler.
    6955 echo "$as_me:6955:" \
     6976echo "$as_me:6976:" \
    69566977     "checking for Fortran 77 compiler version" >&5
    69576978ac_compiler=`set X $ac_compile; echo $2`
     
    80208041   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    80218042   -e 's:$: $lt_compiler_flag:'`
    8022    (eval echo "\"\$as_me:8022: $lt_compile\"" >&5)
     8043   (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
    80238044   (eval "$lt_compile" 2>conftest.err)
    80248045   ac_status=$?
    80258046   cat conftest.err >&5
    8026    echo "$as_me:8026: \$? = $ac_status" >&5
     8047   echo "$as_me:8047: \$? = $ac_status" >&5
    80278048   if (exit $ac_status) && test -s "$ac_outfile"; then
    80288049     # The compiler can only warn and ignore the option if not recognized
     
    82888309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82898310   -e 's:$: $lt_compiler_flag:'`
    8290    (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
     8311   (eval echo "\"\$as_me:8311: $lt_compile\"" >&5)
    82918312   (eval "$lt_compile" 2>conftest.err)
    82928313   ac_status=$?
    82938314   cat conftest.err >&5
    8294    echo "$as_me:8294: \$? = $ac_status" >&5
     8315   echo "$as_me:8315: \$? = $ac_status" >&5
    82958316   if (exit $ac_status) && test -s "$ac_outfile"; then
    82968317     # The compiler can only warn and ignore the option if not recognized
     
    83928413   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    83938414   -e 's:$: $lt_compiler_flag:'`
    8394    (eval echo "\"\$as_me:8394: $lt_compile\"" >&5)
     8415   (eval echo "\"\$as_me:8415: $lt_compile\"" >&5)
    83958416   (eval "$lt_compile" 2>out/conftest.err)
    83968417   ac_status=$?
    83978418   cat out/conftest.err >&5
    8398    echo "$as_me:8398: \$? = $ac_status" >&5
     8419   echo "$as_me:8419: \$? = $ac_status" >&5
    83998420   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    84008421   then
     
    1073710758  lt_status=$lt_dlunknown
    1073810759  cat > conftest.$ac_ext <<EOF
    10739 #line 10739 "configure"
     10760#line 10760 "configure"
    1074010761#include "confdefs.h"
    1074110762
     
    1083710858  lt_status=$lt_dlunknown
    1083810859  cat > conftest.$ac_ext <<EOF
    10839 #line 10839 "configure"
     10860#line 10860 "configure"
    1084010861#include "confdefs.h"
    1084110862
     
    1318113202   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1318213203   -e 's:$: $lt_compiler_flag:'`
    13183    (eval echo "\"\$as_me:13183: $lt_compile\"" >&5)
     13204   (eval echo "\"\$as_me:13204: $lt_compile\"" >&5)
    1318413205   (eval "$lt_compile" 2>conftest.err)
    1318513206   ac_status=$?
    1318613207   cat conftest.err >&5
    13187    echo "$as_me:13187: \$? = $ac_status" >&5
     13208   echo "$as_me:13208: \$? = $ac_status" >&5
    1318813209   if (exit $ac_status) && test -s "$ac_outfile"; then
    1318913210     # The compiler can only warn and ignore the option if not recognized
     
    1328513306   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1328613307   -e 's:$: $lt_compiler_flag:'`
    13287    (eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
     13308   (eval echo "\"\$as_me:13308: $lt_compile\"" >&5)
    1328813309   (eval "$lt_compile" 2>out/conftest.err)
    1328913310   ac_status=$?
    1329013311   cat out/conftest.err >&5
    13291    echo "$as_me:13291: \$? = $ac_status" >&5
     13312   echo "$as_me:13312: \$? = $ac_status" >&5
    1329213313   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1329313314   then
     
    1485514876   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1485614877   -e 's:$: $lt_compiler_flag:'`
    14857    (eval echo "\"\$as_me:14857: $lt_compile\"" >&5)
     14878   (eval echo "\"\$as_me:14878: $lt_compile\"" >&5)
    1485814879   (eval "$lt_compile" 2>conftest.err)
    1485914880   ac_status=$?
    1486014881   cat conftest.err >&5
    14861    echo "$as_me:14861: \$? = $ac_status" >&5
     14882   echo "$as_me:14882: \$? = $ac_status" >&5
    1486214883   if (exit $ac_status) && test -s "$ac_outfile"; then
    1486314884     # The compiler can only warn and ignore the option if not recognized
     
    1495914980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1496014981   -e 's:$: $lt_compiler_flag:'`
    14961    (eval echo "\"\$as_me:14961: $lt_compile\"" >&5)
     14982   (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
    1496214983   (eval "$lt_compile" 2>out/conftest.err)
    1496314984   ac_status=$?
    1496414985   cat out/conftest.err >&5
    14965    echo "$as_me:14965: \$? = $ac_status" >&5
     14986   echo "$as_me:14986: \$? = $ac_status" >&5
    1496614987   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1496714988   then
     
    1716617187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1716717188   -e 's:$: $lt_compiler_flag:'`
    17168    (eval echo "\"\$as_me:17168: $lt_compile\"" >&5)
     17189   (eval echo "\"\$as_me:17189: $lt_compile\"" >&5)
    1716917190   (eval "$lt_compile" 2>conftest.err)
    1717017191   ac_status=$?
    1717117192   cat conftest.err >&5
    17172    echo "$as_me:17172: \$? = $ac_status" >&5
     17193   echo "$as_me:17193: \$? = $ac_status" >&5
    1717317194   if (exit $ac_status) && test -s "$ac_outfile"; then
    1717417195     # The compiler can only warn and ignore the option if not recognized
     
    1743417455   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1743517456   -e 's:$: $lt_compiler_flag:'`
    17436    (eval echo "\"\$as_me:17436: $lt_compile\"" >&5)
     17457   (eval echo "\"\$as_me:17457: $lt_compile\"" >&5)
    1743717458   (eval "$lt_compile" 2>conftest.err)
    1743817459   ac_status=$?
    1743917460   cat conftest.err >&5
    17440    echo "$as_me:17440: \$? = $ac_status" >&5
     17461   echo "$as_me:17461: \$? = $ac_status" >&5
    1744117462   if (exit $ac_status) && test -s "$ac_outfile"; then
    1744217463     # The compiler can only warn and ignore the option if not recognized
     
    1753817559   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1753917560   -e 's:$: $lt_compiler_flag:'`
    17540    (eval echo "\"\$as_me:17540: $lt_compile\"" >&5)
     17561   (eval echo "\"\$as_me:17561: $lt_compile\"" >&5)
    1754117562   (eval "$lt_compile" 2>out/conftest.err)
    1754217563   ac_status=$?
    1754317564   cat out/conftest.err >&5
    17544    echo "$as_me:17544: \$? = $ac_status" >&5
     17565   echo "$as_me:17565: \$? = $ac_status" >&5
    1754517566   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1754617567   then
     
    2042320444LT_LDFLAGS=
    2042420445
     20446# Check if we want to set the library version
     20447echo "$as_me:$LINENO: checking if library version is set" >&5
     20448echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
     20449if test x"$coin_libversion" != x; then
     20450  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
     20451  echo "$as_me:$LINENO: result: $coin_libversion" >&5
     20452echo "${ECHO_T}$coin_libversion" >&6
     20453else
     20454  echo "$as_me:$LINENO: result: no" >&5
     20455echo "${ECHO_T}no" >&6
     20456fi
     20457
     20458
    2042520459
    2042620460#END
     
    2043120465#############################################################################
    2043220466
    20433 echo "$as_me:$LINENO: checking for COIN project Cbc" >&5
    20434 echo $ECHO_N "checking for COIN project Cbc... $ECHO_C" >&6
    20435 
    20436 # First check, if the sub-project is actually available (ToDo: allow
    20437 # other locations)
    20438 
    20439 coin_has_cbc=unavailable
     20467
     20468
     20469# Check whether --enable-pkg-config or --disable-pkg-config was given.
     20470if test "${enable_pkg_config+set}" = set; then
     20471  enableval="$enable_pkg_config"
     20472  use_pkgconfig="$enableval"
     20473else
     20474  use_pkgconfig=yes
     20475fi;
     20476
     20477if test $use_pkgconfig = yes ; then
     20478  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     20479    if test -n "$ac_tool_prefix"; then
     20480  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     20481set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     20482echo "$as_me:$LINENO: checking for $ac_word" >&5
     20483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20484if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     20485  echo $ECHO_N "(cached) $ECHO_C" >&6
     20486else
     20487  case $PKG_CONFIG in
     20488  [\\/]* | ?:[\\/]*)
     20489  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     20490  ;;
     20491  *)
     20492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20493for as_dir in $PATH
     20494do
     20495  IFS=$as_save_IFS
     20496  test -z "$as_dir" && as_dir=.
     20497  for ac_exec_ext in '' $ac_executable_extensions; do
     20498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20499    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20501    break 2
     20502  fi
     20503done
     20504done
     20505
     20506  ;;
     20507esac
     20508fi
     20509PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     20510
     20511if test -n "$PKG_CONFIG"; then
     20512  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     20513echo "${ECHO_T}$PKG_CONFIG" >&6
     20514else
     20515  echo "$as_me:$LINENO: result: no" >&5
     20516echo "${ECHO_T}no" >&6
     20517fi
     20518
     20519fi
     20520if test -z "$ac_cv_path_PKG_CONFIG"; then
     20521  ac_pt_PKG_CONFIG=$PKG_CONFIG
     20522  # Extract the first word of "pkg-config", so it can be a program name with args.
     20523set dummy pkg-config; ac_word=$2
     20524echo "$as_me:$LINENO: checking for $ac_word" >&5
     20525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     20526if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     20527  echo $ECHO_N "(cached) $ECHO_C" >&6
     20528else
     20529  case $ac_pt_PKG_CONFIG in
     20530  [\\/]* | ?:[\\/]*)
     20531  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     20532  ;;
     20533  *)
     20534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     20535for as_dir in $PATH
     20536do
     20537  IFS=$as_save_IFS
     20538  test -z "$as_dir" && as_dir=.
     20539  for ac_exec_ext in '' $ac_executable_extensions; do
     20540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     20541    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     20542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     20543    break 2
     20544  fi
     20545done
     20546done
     20547
     20548  ;;
     20549esac
     20550fi
     20551ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     20552
     20553if test -n "$ac_pt_PKG_CONFIG"; then
     20554  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     20555echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     20556else
     20557  echo "$as_me:$LINENO: result: no" >&5
     20558echo "${ECHO_T}no" >&6
     20559fi
     20560
     20561  PKG_CONFIG=$ac_pt_PKG_CONFIG
     20562else
     20563  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     20564fi
     20565
     20566  fi
     20567  if test -n "$PKG_CONFIG"; then
     20568    _pkg_min_version=0.9.0
     20569    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     20570echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     20571    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     20572      echo "$as_me:$LINENO: result: yes" >&5
     20573echo "${ECHO_T}yes" >&6
     20574    else
     20575      echo "$as_me:$LINENO: result: no" >&5
     20576echo "${ECHO_T}no" >&6
     20577      PKG_CONFIG=""
     20578    fi
     20579  fi
     20580
     20581  # check if pkg-config supports the short-errors flag
     20582  if test -n "$PKG_CONFIG" && \
     20583    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     20584    pkg_short_errors=" --short-errors "
     20585  else
     20586    pkg_short_errors=""
     20587  fi
     20588fi
     20589
     20590
     20591echo "$as_me:$LINENO: checking for COIN module CoinDepend" >&5
     20592echo $ECHO_N "checking for COIN module CoinDepend... $ECHO_C" >&6
     20593
     20594coin_has_coindepend=notGiven
     20595
     20596# check if user wants to skip module in any case
    2044020597if test x"$COIN_SKIP_PROJECTS" != x; then
    2044120598  for dir in $COIN_SKIP_PROJECTS; do
    20442     if test $dir = Cbc; then
    20443       coin_has_cbc=skipping
     20599    if test $dir = "CoinDepend"; then
     20600      coin_has_coindepend=skipping
    2044420601    fi
    2044520602  done
    2044620603fi
    2044720604
    20448 if test $coin_has_cbc != skipping; then
    20449   if test $PACKAGE_TARNAME = cbc; then
    20450     coin_has_cbc=.
     20605COINDEPEND_LIBS=
     20606COINDEPEND_CFLAGS=
     20607COINDEPEND_DATA=
     20608
     20609
     20610
     20611
     20612
     20613required=1
     20614
     20615# execute third argument that can be used to overwrite flags like 'required'
     20616
     20617
     20618#check if user provided LIBS, CFLAGS, and DATA for module
     20619if test $coin_has_coindepend != skipping; then
     20620
     20621
     20622# Check whether --with-m4_tolower(CoinDepend)-lib or --without-m4_tolower(CoinDepend)-lib was given.
     20623if test "${with_coindepend_lib+set}" = set; then
     20624  withval="$with_coindepend_lib"
     20625  coin_has_coindepend=yes
     20626       COINDEPEND_LIBS="$withval"
     20627       if test $required = 1; then
     20628         ADDLIBS="$ADDLIBS $withval"
     20629       fi
     20630
     20631fi;
     20632
     20633
     20634# Check whether --with-m4_tolower(CoinDepend)-incdir or --without-m4_tolower(CoinDepend)-incdir was given.
     20635if test "${with_coindepend_incdir+set}" = set; then
     20636  withval="$with_coindepend_incdir"
     20637  coin_has_coindepend=yes
     20638     COINDEPEND_CFLAGS="-I`${CYGPATH_W} $withval`"
     20639fi;
     20640
     20641
     20642# Check whether --with-m4_tolower(CoinDepend)-datadir or --without-m4_tolower(CoinDepend)-datadir was given.
     20643if test "${with_coindepend_datadir+set}" = set; then
     20644  withval="$with_coindepend_datadir"
     20645  coin_has_coindepend=yes
     20646     COINDEPEND_DATA="$withval"
     20647fi;
     20648fi
     20649
     20650if test $coin_has_coindepend = notGiven; then
     20651  if test -n "$PKG_CONFIG" ; then
     20652    # assemble search path for pkg-config
     20653    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20654
     20655    # 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
     20656    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20657    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20658    if test -d "${prefix}"; then
     20659      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     20660    fi
     20661
     20662
     20663# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20664if test "${with_coin_instdir+set}" = set; then
     20665  withval="$with_coin_instdir"
     20666  if test -d "$withval"; then : ; else
     20667         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20668echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20669   { (exit 1); exit 1; }; }
     20670       fi
     20671       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     20672
     20673fi;
     20674
     20675    # in a classic setup, we want to find uninstalled projects
     20676    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20677    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20678    # 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)
     20679    if test -e ../coin_subdirs.txt ; then
     20680      for i in `cat ../coin_subdirs.txt` ; do
     20681        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     20682      done
     20683    fi
     20684
     20685    if test -e ../../coin_subdirs.txt ; then
     20686      for i in `cat ../../coin_subdirs.txt` ; do
     20687        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     20688      done
     20689    fi
     20690
     20691    # let pkg-config do it's magic
     20692    # need to export variable to be sure that the following pkg-config gets these values
     20693    export PKG_CONFIG_PATH
     20694
     20695
     20696
     20697if test -n "$PKG_CONFIG" ; then
     20698  if $PKG_CONFIG --exists "coinutils = split osi cgl"; then
     20699    COINDEPEND_VERSIONS="`$PKG_CONFIG --modversion coinutils = split osi cgl 2>/dev/null`"
     20700     cflags=`$PKG_CONFIG --cflags "coinutils = split osi cgl" 2>/dev/null`
     20701    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     20702        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     20703        # but only do this if is not trivial
     20704    if test "$CYGPATH_W" != "echo" ; then
     20705      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     20706          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20707        fi
     20708    COINDEPEND_CFLAGS="$cflags"
     20709    COINDEPEND_LIBS=`$PKG_CONFIG --libs "coinutils = split osi cgl" 2>/dev/null`
     20710    COINDEPEND_DATA=`$PKG_CONFIG --variable=datadir "coinutils = split osi cgl" 2>/dev/null`
     20711     coin_has_coindepend=yes
     20712        echo "$as_me:$LINENO: result: yes: $COINDEPEND_VERSIONS" >&5
     20713echo "${ECHO_T}yes: $COINDEPEND_VERSIONS" >&6
     20714        if test $required = 1; then
     20715          REQUIREDPACKAGES="$REQUIREDPACKAGES coinutils = split osi cgl"
     20716        fi
     20717
     20718
    2045120719  else
    20452     if test -d $srcdir/../Cbc; then
    20453       coin_has_cbc=../Cbc
    20454     fi
    20455   fi
    20456 fi
    20457 
    20458 if test $coin_has_cbc != unavailable &&
    20459    test $coin_has_cbc != skipping; then
    20460   # Set the #define if the component is available
     20720    COINDEPEND_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinutils = split osi cgl`
     20721      coin_has_coindepend=notGiven
     20722        echo "$as_me:$LINENO: result: not given: $COINDEPEND_PKG_ERRORS" >&5
     20723echo "${ECHO_T}not given: $COINDEPEND_PKG_ERRORS" >&6
     20724
     20725  fi
     20726else
     20727  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&5
     20728echo "$as_me: error: \"Cannot check for existance of module CoinDepend without pkg-config\"" >&2;}
     20729   { (exit 1); exit 1; }; }
     20730fi
     20731
     20732
     20733
     20734
     20735    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     20736  else
     20737    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     20738echo "${ECHO_T}skipped check via pkg-config" >&6
     20739  fi
     20740
     20741else
     20742  echo "$as_me:$LINENO: result: $coin_has_coindepend" >&5
     20743echo "${ECHO_T}$coin_has_coindepend" >&6
     20744fi
     20745
     20746if test $coin_has_coindepend != skipping &&
     20747   test $coin_has_coindepend != notGiven ; then
     20748  if test -n "$COINDEPEND_CFLAGS" ; then
     20749    { echo "$as_me:$LINENO: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&5
     20750echo "$as_me: CoinDepend CFLAGS are $COINDEPEND_CFLAGS" >&6;}
     20751  fi
     20752  if test -n "$COINDEPEND_LIBS" ; then
     20753    { echo "$as_me:$LINENO: CoinDepend LIBS   are $COINDEPEND_LIBS" >&5
     20754echo "$as_me: CoinDepend LIBS   are $COINDEPEND_LIBS" >&6;}
     20755  fi
     20756  if test -n "$COINDEPEND_DATA" ; then
     20757    { echo "$as_me:$LINENO: CoinDepend DATA   is  $COINDEPEND_DATA" >&5
     20758echo "$as_me: CoinDepend DATA   is  $COINDEPEND_DATA" >&6;}
     20759  fi
    2046120760
    2046220761cat >>confdefs.h <<\_ACEOF
    20463 #define COIN_HAS_CBC 1
     20762#define COIN_HAS_COINDEPEND 1
    2046420763_ACEOF
    2046520764
    20466 
    20467   # Set the variables for source and object code location
    20468 
    20469   CBCSRCDIR=`cd $srcdir/$coin_has_cbc; pwd`
    20470 
    20471   CBCOBJDIR=`pwd`/$coin_has_cbc
    20472 
    20473   CBCDOCDIR=$abs_lib_dir/../share/doc/coin/Cbc
    20474 fi
    20475 
    20476   # Define the Makefile conditional
    20477 
    20478 
    20479 if test $coin_has_cbc != unavailable &&
    20480                 test $coin_has_cbc != skipping; then
    20481   COIN_HAS_CBC_TRUE=
    20482   COIN_HAS_CBC_FALSE='#'
    20483 else
    20484   COIN_HAS_CBC_TRUE='#'
    20485   COIN_HAS_CBC_FALSE=
    20486 fi
    20487 
    20488 echo "$as_me:$LINENO: result: $coin_has_cbc" >&5
    20489 echo "${ECHO_T}$coin_has_cbc" >&6
    20490 
    20491 echo "$as_me:$LINENO: checking for COIN project Cgl" >&5
    20492 echo $ECHO_N "checking for COIN project Cgl... $ECHO_C" >&6
    20493 
    20494 # First check, if the sub-project is actually available (ToDo: allow
    20495 # other locations)
    20496 
    20497 coin_has_cgl=unavailable
     20765fi
     20766
     20767# Define the Makefile conditional
     20768
     20769
     20770if test $coin_has_coindepend != notGiven &&
     20771                test $coin_has_coindepend != skipping; then
     20772  COIN_HAS_COINDEPEND_TRUE=
     20773  COIN_HAS_COINDEPEND_FALSE='#'
     20774else
     20775  COIN_HAS_COINDEPEND_TRUE='#'
     20776  COIN_HAS_COINDEPEND_FALSE=
     20777fi
     20778
     20779
     20780
     20781
     20782echo "$as_me:$LINENO: checking for COIN module Clp" >&5
     20783echo $ECHO_N "checking for COIN module Clp... $ECHO_C" >&6
     20784
     20785coin_has_clp=notGiven
     20786
     20787# check if user wants to skip module in any case
    2049820788if test x"$COIN_SKIP_PROJECTS" != x; then
    2049920789  for dir in $COIN_SKIP_PROJECTS; do
    20500     if test $dir = Cgl; then
    20501       coin_has_cgl=skipping
    20502     fi
    20503   done
    20504 fi
    20505 
    20506 if test $coin_has_cgl != skipping; then
    20507   if test $PACKAGE_TARNAME = cgl; then
    20508     coin_has_cgl=.
    20509   else
    20510     if test -d $srcdir/../Cgl; then
    20511       coin_has_cgl=../Cgl
    20512     fi
    20513   fi
    20514 fi
    20515 
    20516 if test $coin_has_cgl != unavailable &&
    20517    test $coin_has_cgl != skipping; then
    20518   # Set the #define if the component is available
    20519 
    20520 cat >>confdefs.h <<\_ACEOF
    20521 #define COIN_HAS_CGL 1
    20522 _ACEOF
    20523 
    20524 
    20525   # Set the variables for source and object code location
    20526 
    20527   CGLSRCDIR=`cd $srcdir/$coin_has_cgl; pwd`
    20528 
    20529   CGLOBJDIR=`pwd`/$coin_has_cgl
    20530 
    20531   CGLDOCDIR=$abs_lib_dir/../share/doc/coin/Cgl
    20532 fi
    20533 
    20534   # Define the Makefile conditional
    20535 
    20536 
    20537 if test $coin_has_cgl != unavailable &&
    20538                 test $coin_has_cgl != skipping; then
    20539   COIN_HAS_CGL_TRUE=
    20540   COIN_HAS_CGL_FALSE='#'
    20541 else
    20542   COIN_HAS_CGL_TRUE='#'
    20543   COIN_HAS_CGL_FALSE=
    20544 fi
    20545 
    20546 echo "$as_me:$LINENO: result: $coin_has_cgl" >&5
    20547 echo "${ECHO_T}$coin_has_cgl" >&6
    20548 
    20549 echo "$as_me:$LINENO: checking for COIN project Clp" >&5
    20550 echo $ECHO_N "checking for COIN project Clp... $ECHO_C" >&6
    20551 
    20552 # First check, if the sub-project is actually available (ToDo: allow
    20553 # other locations)
    20554 
    20555 coin_has_clp=unavailable
    20556 if test x"$COIN_SKIP_PROJECTS" != x; then
    20557   for dir in $COIN_SKIP_PROJECTS; do
    20558     if test $dir = Clp; then
     20790    if test $dir = "Clp"; then
    2055920791      coin_has_clp=skipping
    2056020792    fi
     
    2056220794fi
    2056320795
     20796CLP_LIBS=
     20797CLP_CFLAGS=
     20798CLP_DATA=
     20799
     20800
     20801
     20802
     20803
     20804required=1
     20805
     20806# execute third argument that can be used to overwrite flags like 'required'
     20807
     20808
     20809#check if user provided LIBS, CFLAGS, and DATA for module
    2056420810if test $coin_has_clp != skipping; then
    20565   if test $PACKAGE_TARNAME = clp; then
    20566     coin_has_clp=.
     20811
     20812
     20813# Check whether --with-m4_tolower(Clp)-lib or --without-m4_tolower(Clp)-lib was given.
     20814if test "${with_clp_lib+set}" = set; then
     20815  withval="$with_clp_lib"
     20816  coin_has_clp=yes
     20817       CLP_LIBS="$withval"
     20818       if test $required = 1; then
     20819         ADDLIBS="$ADDLIBS $withval"
     20820       fi
     20821
     20822fi;
     20823
     20824
     20825# Check whether --with-m4_tolower(Clp)-incdir or --without-m4_tolower(Clp)-incdir was given.
     20826if test "${with_clp_incdir+set}" = set; then
     20827  withval="$with_clp_incdir"
     20828  coin_has_clp=yes
     20829     CLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     20830fi;
     20831
     20832
     20833# Check whether --with-m4_tolower(Clp)-datadir or --without-m4_tolower(Clp)-datadir was given.
     20834if test "${with_clp_datadir+set}" = set; then
     20835  withval="$with_clp_datadir"
     20836  coin_has_clp=yes
     20837     CLP_DATA="$withval"
     20838fi;
     20839fi
     20840
     20841if test $coin_has_clp = notGiven; then
     20842  if test -n "$PKG_CONFIG" ; then
     20843    # assemble search path for pkg-config
     20844    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     20845
     20846    # 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
     20847    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     20848    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     20849    if test -d "${prefix}"; then
     20850      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     20851    fi
     20852
     20853
     20854# Check whether --with-coin-instdir or --without-coin-instdir was given.
     20855if test "${with_coin_instdir+set}" = set; then
     20856  withval="$with_coin_instdir"
     20857  if test -d "$withval"; then : ; else
     20858         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     20859echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     20860   { (exit 1); exit 1; }; }
     20861       fi
     20862       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     20863
     20864fi;
     20865
     20866    # in a classic setup, we want to find uninstalled projects
     20867    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     20868    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     20869    # 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)
     20870    if test -e ../coin_subdirs.txt ; then
     20871      for i in `cat ../coin_subdirs.txt` ; do
     20872        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     20873      done
     20874    fi
     20875
     20876    if test -e ../../coin_subdirs.txt ; then
     20877      for i in `cat ../../coin_subdirs.txt` ; do
     20878        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     20879      done
     20880    fi
     20881
     20882    # let pkg-config do it's magic
     20883    # need to export variable to be sure that the following pkg-config gets these values
     20884    export PKG_CONFIG_PATH
     20885
     20886
     20887
     20888if test -n "$PKG_CONFIG" ; then
     20889  if $PKG_CONFIG --exists "osi-clp"; then
     20890    CLP_VERSIONS="`$PKG_CONFIG --modversion osi-clp 2>/dev/null`"
     20891     cflags=`$PKG_CONFIG --cflags "osi-clp" 2>/dev/null`
     20892    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     20893        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     20894        # but only do this if is not trivial
     20895    if test "$CYGPATH_W" != "echo" ; then
     20896      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     20897          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     20898        fi
     20899    CLP_CFLAGS="$cflags"
     20900    CLP_LIBS=`$PKG_CONFIG --libs "osi-clp" 2>/dev/null`
     20901    CLP_DATA=`$PKG_CONFIG --variable=datadir "osi-clp" 2>/dev/null`
     20902     coin_has_clp=yes
     20903        echo "$as_me:$LINENO: result: yes: $CLP_VERSIONS" >&5
     20904echo "${ECHO_T}yes: $CLP_VERSIONS" >&6
     20905        if test $required = 1; then
     20906          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-clp"
     20907        fi
     20908
     20909
    2056720910  else
    20568     if test -d $srcdir/../Clp; then
    20569       coin_has_clp=../Clp
    20570     fi
    20571   fi
    20572 fi
    20573 
    20574 if test $coin_has_clp != unavailable &&
    20575    test $coin_has_clp != skipping; then
    20576   # Set the #define if the component is available
     20911    CLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-clp`
     20912      coin_has_clp=notGiven
     20913        echo "$as_me:$LINENO: result: not given: $CLP_PKG_ERRORS" >&5
     20914echo "${ECHO_T}not given: $CLP_PKG_ERRORS" >&6
     20915
     20916  fi
     20917else
     20918  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Clp without pkg-config\"" >&5
     20919echo "$as_me: error: \"Cannot check for existance of module Clp without pkg-config\"" >&2;}
     20920   { (exit 1); exit 1; }; }
     20921fi
     20922
     20923
     20924
     20925
     20926    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     20927  else
     20928    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     20929echo "${ECHO_T}skipped check via pkg-config" >&6
     20930  fi
     20931
     20932else
     20933  echo "$as_me:$LINENO: result: $coin_has_clp" >&5
     20934echo "${ECHO_T}$coin_has_clp" >&6
     20935fi
     20936
     20937if test $coin_has_clp != skipping &&
     20938   test $coin_has_clp != notGiven ; then
     20939  if test -n "$CLP_CFLAGS" ; then
     20940    { echo "$as_me:$LINENO: Clp CFLAGS are $CLP_CFLAGS" >&5
     20941echo "$as_me: Clp CFLAGS are $CLP_CFLAGS" >&6;}
     20942  fi
     20943  if test -n "$CLP_LIBS" ; then
     20944    { echo "$as_me:$LINENO: Clp LIBS   are $CLP_LIBS" >&5
     20945echo "$as_me: Clp LIBS   are $CLP_LIBS" >&6;}
     20946  fi
     20947  if test -n "$CLP_DATA" ; then
     20948    { echo "$as_me:$LINENO: Clp DATA   is  $CLP_DATA" >&5
     20949echo "$as_me: Clp DATA   is  $CLP_DATA" >&6;}
     20950  fi
    2057720951
    2057820952cat >>confdefs.h <<\_ACEOF
     
    2058020954_ACEOF
    2058120955
    20582 
    20583   # Set the variables for source and object code location
    20584 
    20585   CLPSRCDIR=`cd $srcdir/$coin_has_clp; pwd`
    20586 
    20587   CLPOBJDIR=`pwd`/$coin_has_clp
    20588 
    20589   CLPDOCDIR=$abs_lib_dir/../share/doc/coin/Clp
    20590 fi
    20591 
    20592   # Define the Makefile conditional
    20593 
    20594 
    20595 if test $coin_has_clp != unavailable &&
     20956fi
     20957
     20958# Define the Makefile conditional
     20959
     20960
     20961if test $coin_has_clp != notGiven &&
    2059620962                test $coin_has_clp != skipping; then
    2059720963  COIN_HAS_CLP_TRUE=
     
    2060220968fi
    2060320969
    20604 echo "$as_me:$LINENO: result: $coin_has_clp" >&5
    20605 echo "${ECHO_T}$coin_has_clp" >&6
    20606 
    20607 echo "$as_me:$LINENO: checking for COIN project CoinUtils" >&5
    20608 echo $ECHO_N "checking for COIN project CoinUtils... $ECHO_C" >&6
    20609 
    20610 # First check, if the sub-project is actually available (ToDo: allow
    20611 # other locations)
    20612 
    20613 coin_has_coinutils=unavailable
     20970
     20971
     20972
     20973echo "$as_me:$LINENO: checking for COIN module DyLP" >&5
     20974echo $ECHO_N "checking for COIN module DyLP... $ECHO_C" >&6
     20975
     20976coin_has_dylp=notGiven
     20977
     20978# check if user wants to skip module in any case
    2061420979if test x"$COIN_SKIP_PROJECTS" != x; then
    2061520980  for dir in $COIN_SKIP_PROJECTS; do
    20616     if test $dir = CoinUtils; then
    20617       coin_has_coinutils=skipping
    20618     fi
    20619   done
    20620 fi
    20621 
    20622 if test $coin_has_coinutils != skipping; then
    20623   if test $PACKAGE_TARNAME = coinutils; then
    20624     coin_has_coinutils=.
    20625   else
    20626     if test -d $srcdir/../CoinUtils; then
    20627       coin_has_coinutils=../CoinUtils
    20628     fi
    20629   fi
    20630 fi
    20631 
    20632 if test $coin_has_coinutils != unavailable &&
    20633    test $coin_has_coinutils != skipping; then
    20634   # Set the #define if the component is available
    20635 
    20636 cat >>confdefs.h <<\_ACEOF
    20637 #define COIN_HAS_COINUTILS 1
    20638 _ACEOF
    20639 
    20640 
    20641   # Set the variables for source and object code location
    20642 
    20643   COINUTILSSRCDIR=`cd $srcdir/$coin_has_coinutils; pwd`
    20644 
    20645   COINUTILSOBJDIR=`pwd`/$coin_has_coinutils
    20646 
    20647   COINUTILSDOCDIR=$abs_lib_dir/../share/doc/coin/CoinUtils
    20648 fi
    20649 
    20650   # Define the Makefile conditional
    20651 
    20652 
    20653 if test $coin_has_coinutils != unavailable &&
    20654                 test $coin_has_coinutils != skipping; then
    20655   COIN_HAS_COINUTILS_TRUE=
    20656   COIN_HAS_COINUTILS_FALSE='#'
    20657 else
    20658   COIN_HAS_COINUTILS_TRUE='#'
    20659   COIN_HAS_COINUTILS_FALSE=
    20660 fi
    20661 
    20662 echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
    20663 echo "${ECHO_T}$coin_has_coinutils" >&6
    20664 
    20665 echo "$as_me:$LINENO: checking for COIN project DyLP" >&5
    20666 echo $ECHO_N "checking for COIN project DyLP... $ECHO_C" >&6
    20667 
    20668 # First check, if the sub-project is actually available (ToDo: allow
    20669 # other locations)
    20670 
    20671 coin_has_dylp=unavailable
    20672 if test x"$COIN_SKIP_PROJECTS" != x; then
    20673   for dir in $COIN_SKIP_PROJECTS; do
    20674     if test $dir = DyLP; then
     20981    if test $dir = "DyLP"; then
    2067520982      coin_has_dylp=skipping
    2067620983    fi
     
    2067820985fi
    2067920986
     20987DYLP_LIBS=
     20988DYLP_CFLAGS=
     20989DYLP_DATA=
     20990
     20991
     20992
     20993
     20994
     20995required=1
     20996
     20997# execute third argument that can be used to overwrite flags like 'required'
     20998
     20999
     21000#check if user provided LIBS, CFLAGS, and DATA for module
    2068021001if test $coin_has_dylp != skipping; then
    20681   if test $PACKAGE_TARNAME = dylp; then
    20682     coin_has_dylp=.
     21002
     21003
     21004# Check whether --with-m4_tolower(DyLP)-lib or --without-m4_tolower(DyLP)-lib was given.
     21005if test "${with_dylp_lib+set}" = set; then
     21006  withval="$with_dylp_lib"
     21007  coin_has_dylp=yes
     21008       DYLP_LIBS="$withval"
     21009       if test $required = 1; then
     21010         ADDLIBS="$ADDLIBS $withval"
     21011       fi
     21012
     21013fi;
     21014
     21015
     21016# Check whether --with-m4_tolower(DyLP)-incdir or --without-m4_tolower(DyLP)-incdir was given.
     21017if test "${with_dylp_incdir+set}" = set; then
     21018  withval="$with_dylp_incdir"
     21019  coin_has_dylp=yes
     21020     DYLP_CFLAGS="-I`${CYGPATH_W} $withval`"
     21021fi;
     21022
     21023
     21024# Check whether --with-m4_tolower(DyLP)-datadir or --without-m4_tolower(DyLP)-datadir was given.
     21025if test "${with_dylp_datadir+set}" = set; then
     21026  withval="$with_dylp_datadir"
     21027  coin_has_dylp=yes
     21028     DYLP_DATA="$withval"
     21029fi;
     21030fi
     21031
     21032if test $coin_has_dylp = notGiven; then
     21033  if test -n "$PKG_CONFIG" ; then
     21034    # assemble search path for pkg-config
     21035    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21036
     21037    # 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
     21038    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21039    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21040    if test -d "${prefix}"; then
     21041      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21042    fi
     21043
     21044
     21045# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21046if test "${with_coin_instdir+set}" = set; then
     21047  withval="$with_coin_instdir"
     21048  if test -d "$withval"; then : ; else
     21049         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21050echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21051   { (exit 1); exit 1; }; }
     21052       fi
     21053       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21054
     21055fi;
     21056
     21057    # in a classic setup, we want to find uninstalled projects
     21058    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21059    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21060    # 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)
     21061    if test -e ../coin_subdirs.txt ; then
     21062      for i in `cat ../coin_subdirs.txt` ; do
     21063        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     21064      done
     21065    fi
     21066
     21067    if test -e ../../coin_subdirs.txt ; then
     21068      for i in `cat ../../coin_subdirs.txt` ; do
     21069        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     21070      done
     21071    fi
     21072
     21073    # let pkg-config do it's magic
     21074    # need to export variable to be sure that the following pkg-config gets these values
     21075    export PKG_CONFIG_PATH
     21076
     21077
     21078
     21079if test -n "$PKG_CONFIG" ; then
     21080  if $PKG_CONFIG --exists "osi-dylp"; then
     21081    DYLP_VERSIONS="`$PKG_CONFIG --modversion osi-dylp 2>/dev/null`"
     21082     cflags=`$PKG_CONFIG --cflags "osi-dylp" 2>/dev/null`
     21083    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21084        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21085        # but only do this if is not trivial
     21086    if test "$CYGPATH_W" != "echo" ; then
     21087      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21088          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21089        fi
     21090    DYLP_CFLAGS="$cflags"
     21091    DYLP_LIBS=`$PKG_CONFIG --libs "osi-dylp" 2>/dev/null`
     21092    DYLP_DATA=`$PKG_CONFIG --variable=datadir "osi-dylp" 2>/dev/null`
     21093     coin_has_dylp=yes
     21094        echo "$as_me:$LINENO: result: yes: $DYLP_VERSIONS" >&5
     21095echo "${ECHO_T}yes: $DYLP_VERSIONS" >&6
     21096        if test $required = 1; then
     21097          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-dylp"
     21098        fi
     21099
     21100
    2068321101  else
    20684     if test -d $srcdir/../DyLP; then
    20685       coin_has_dylp=../DyLP
    20686     fi
    20687   fi
    20688 fi
    20689 
    20690 if test $coin_has_dylp != unavailable &&
    20691    test $coin_has_dylp != skipping; then
    20692   # Set the #define if the component is available
     21102    DYLP_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-dylp`
     21103      coin_has_dylp=notGiven
     21104        echo "$as_me:$LINENO: result: not given: $DYLP_PKG_ERRORS" >&5
     21105echo "${ECHO_T}not given: $DYLP_PKG_ERRORS" >&6
     21106
     21107  fi
     21108else
     21109  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&5
     21110echo "$as_me: error: \"Cannot check for existance of module DyLP without pkg-config\"" >&2;}
     21111   { (exit 1); exit 1; }; }
     21112fi
     21113
     21114
     21115
     21116
     21117    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21118  else
     21119    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21120echo "${ECHO_T}skipped check via pkg-config" >&6
     21121  fi
     21122
     21123else
     21124  echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
     21125echo "${ECHO_T}$coin_has_dylp" >&6
     21126fi
     21127
     21128if test $coin_has_dylp != skipping &&
     21129   test $coin_has_dylp != notGiven ; then
     21130  if test -n "$DYLP_CFLAGS" ; then
     21131    { echo "$as_me:$LINENO: DyLP CFLAGS are $DYLP_CFLAGS" >&5
     21132echo "$as_me: DyLP CFLAGS are $DYLP_CFLAGS" >&6;}
     21133  fi
     21134  if test -n "$DYLP_LIBS" ; then
     21135    { echo "$as_me:$LINENO: DyLP LIBS   are $DYLP_LIBS" >&5
     21136echo "$as_me: DyLP LIBS   are $DYLP_LIBS" >&6;}
     21137  fi
     21138  if test -n "$DYLP_DATA" ; then
     21139    { echo "$as_me:$LINENO: DyLP DATA   is  $DYLP_DATA" >&5
     21140echo "$as_me: DyLP DATA   is  $DYLP_DATA" >&6;}
     21141  fi
    2069321142
    2069421143cat >>confdefs.h <<\_ACEOF
     
    2069621145_ACEOF
    2069721146
    20698 
    20699   # Set the variables for source and object code location
    20700 
    20701   DYLPSRCDIR=`cd $srcdir/$coin_has_dylp; pwd`
    20702 
    20703   DYLPOBJDIR=`pwd`/$coin_has_dylp
    20704 
    20705   DYLPDOCDIR=$abs_lib_dir/../share/doc/coin/DyLP
    20706 fi
    20707 
    20708   # Define the Makefile conditional
    20709 
    20710 
    20711 if test $coin_has_dylp != unavailable &&
     21147fi
     21148
     21149# Define the Makefile conditional
     21150
     21151
     21152if test $coin_has_dylp != notGiven &&
    2071221153                test $coin_has_dylp != skipping; then
    2071321154  COIN_HAS_DYLP_TRUE=
     
    2071821159fi
    2071921160
    20720 echo "$as_me:$LINENO: result: $coin_has_dylp" >&5
    20721 echo "${ECHO_T}$coin_has_dylp" >&6
    20722 
    20723 echo "$as_me:$LINENO: checking for COIN project Osi" >&5
    20724 echo $ECHO_N "checking for COIN project Osi... $ECHO_C" >&6
    20725 
    20726 # First check, if the sub-project is actually available (ToDo: allow
    20727 # other locations)
    20728 
    20729 coin_has_osi=unavailable
     21161
     21162
     21163
     21164echo "$as_me:$LINENO: checking for COIN module Vol" >&5
     21165echo $ECHO_N "checking for COIN module Vol... $ECHO_C" >&6
     21166
     21167coin_has_vol=notGiven
     21168
     21169# check if user wants to skip module in any case
    2073021170if test x"$COIN_SKIP_PROJECTS" != x; then
    2073121171  for dir in $COIN_SKIP_PROJECTS; do
    20732     if test $dir = Osi; then
    20733       coin_has_osi=skipping
    20734     fi
    20735   done
    20736 fi
    20737 
    20738 if test $coin_has_osi != skipping; then
    20739   if test $PACKAGE_TARNAME = osi; then
    20740     coin_has_osi=.
    20741   else
    20742     if test -d $srcdir/../Osi; then
    20743       coin_has_osi=../Osi
    20744     fi
    20745   fi
    20746 fi
    20747 
    20748 if test $coin_has_osi != unavailable &&
    20749    test $coin_has_osi != skipping; then
    20750   # Set the #define if the component is available
    20751 
    20752 cat >>confdefs.h <<\_ACEOF
    20753 #define COIN_HAS_OSI 1
    20754 _ACEOF
    20755 
    20756 
    20757   # Set the variables for source and object code location
    20758 
    20759   OSISRCDIR=`cd $srcdir/$coin_has_osi; pwd`
    20760 
    20761   OSIOBJDIR=`pwd`/$coin_has_osi
    20762 
    20763   OSIDOCDIR=$abs_lib_dir/../share/doc/coin/Osi
    20764 fi
    20765 
    20766   # Define the Makefile conditional
    20767 
    20768 
    20769 if test $coin_has_osi != unavailable &&
    20770                 test $coin_has_osi != skipping; then
    20771   COIN_HAS_OSI_TRUE=
    20772   COIN_HAS_OSI_FALSE='#'
    20773 else
    20774   COIN_HAS_OSI_TRUE='#'
    20775   COIN_HAS_OSI_FALSE=
    20776 fi
    20777 
    20778 echo "$as_me:$LINENO: result: $coin_has_osi" >&5
    20779 echo "${ECHO_T}$coin_has_osi" >&6
    20780 
    20781 echo "$as_me:$LINENO: checking for COIN project Vol" >&5
    20782 echo $ECHO_N "checking for COIN project Vol... $ECHO_C" >&6
    20783 
    20784 # First check, if the sub-project is actually available (ToDo: allow
    20785 # other locations)
    20786 
    20787 coin_has_vol=unavailable
    20788 if test x"$COIN_SKIP_PROJECTS" != x; then
    20789   for dir in $COIN_SKIP_PROJECTS; do
    20790     if test $dir = Vol; then
     21172    if test $dir = "Vol"; then
    2079121173      coin_has_vol=skipping
    2079221174    fi
     
    2079421176fi
    2079521177
     21178VOL_LIBS=
     21179VOL_CFLAGS=
     21180VOL_DATA=
     21181
     21182
     21183
     21184
     21185
     21186required=1
     21187
     21188# execute third argument that can be used to overwrite flags like 'required'
     21189
     21190
     21191#check if user provided LIBS, CFLAGS, and DATA for module
    2079621192if test $coin_has_vol != skipping; then
    20797   if test $PACKAGE_TARNAME = vol; then
    20798     coin_has_vol=.
     21193
     21194
     21195# Check whether --with-m4_tolower(Vol)-lib or --without-m4_tolower(Vol)-lib was given.
     21196if test "${with_vol_lib+set}" = set; then
     21197  withval="$with_vol_lib"
     21198  coin_has_vol=yes
     21199       VOL_LIBS="$withval"
     21200       if test $required = 1; then
     21201         ADDLIBS="$ADDLIBS $withval"
     21202       fi
     21203
     21204fi;
     21205
     21206
     21207# Check whether --with-m4_tolower(Vol)-incdir or --without-m4_tolower(Vol)-incdir was given.
     21208if test "${with_vol_incdir+set}" = set; then
     21209  withval="$with_vol_incdir"
     21210  coin_has_vol=yes
     21211     VOL_CFLAGS="-I`${CYGPATH_W} $withval`"
     21212fi;
     21213
     21214
     21215# Check whether --with-m4_tolower(Vol)-datadir or --without-m4_tolower(Vol)-datadir was given.
     21216if test "${with_vol_datadir+set}" = set; then
     21217  withval="$with_vol_datadir"
     21218  coin_has_vol=yes
     21219     VOL_DATA="$withval"
     21220fi;
     21221fi
     21222
     21223if test $coin_has_vol = notGiven; then
     21224  if test -n "$PKG_CONFIG" ; then
     21225    # assemble search path for pkg-config
     21226    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21227
     21228    # 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
     21229    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21230    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21231    if test -d "${prefix}"; then
     21232      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21233    fi
     21234
     21235
     21236# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21237if test "${with_coin_instdir+set}" = set; then
     21238  withval="$with_coin_instdir"
     21239  if test -d "$withval"; then : ; else
     21240         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21241echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21242   { (exit 1); exit 1; }; }
     21243       fi
     21244       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21245
     21246fi;
     21247
     21248    # in a classic setup, we want to find uninstalled projects
     21249    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21250    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21251    # 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)
     21252    if test -e ../coin_subdirs.txt ; then
     21253      for i in `cat ../coin_subdirs.txt` ; do
     21254        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     21255      done
     21256    fi
     21257
     21258    if test -e ../../coin_subdirs.txt ; then
     21259      for i in `cat ../../coin_subdirs.txt` ; do
     21260        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     21261      done
     21262    fi
     21263
     21264    # let pkg-config do it's magic
     21265    # need to export variable to be sure that the following pkg-config gets these values
     21266    export PKG_CONFIG_PATH
     21267
     21268
     21269
     21270if test -n "$PKG_CONFIG" ; then
     21271  if $PKG_CONFIG --exists "osi-vol"; then
     21272    VOL_VERSIONS="`$PKG_CONFIG --modversion osi-vol 2>/dev/null`"
     21273     cflags=`$PKG_CONFIG --cflags "osi-vol" 2>/dev/null`
     21274    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21275        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21276        # but only do this if is not trivial
     21277    if test "$CYGPATH_W" != "echo" ; then
     21278      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21279          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21280        fi
     21281    VOL_CFLAGS="$cflags"
     21282    VOL_LIBS=`$PKG_CONFIG --libs "osi-vol" 2>/dev/null`
     21283    VOL_DATA=`$PKG_CONFIG --variable=datadir "osi-vol" 2>/dev/null`
     21284     coin_has_vol=yes
     21285        echo "$as_me:$LINENO: result: yes: $VOL_VERSIONS" >&5
     21286echo "${ECHO_T}yes: $VOL_VERSIONS" >&6
     21287        if test $required = 1; then
     21288          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-vol"
     21289        fi
     21290
     21291
    2079921292  else
    20800     if test -d $srcdir/../Vol; then
    20801       coin_has_vol=../Vol
    20802     fi
    20803   fi
    20804 fi
    20805 
    20806 if test $coin_has_vol != unavailable &&
    20807    test $coin_has_vol != skipping; then
    20808   # Set the #define if the component is available
     21293    VOL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-vol`
     21294      coin_has_vol=notGiven
     21295        echo "$as_me:$LINENO: result: not given: $VOL_PKG_ERRORS" >&5
     21296echo "${ECHO_T}not given: $VOL_PKG_ERRORS" >&6
     21297
     21298  fi
     21299else
     21300  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Vol without pkg-config\"" >&5
     21301echo "$as_me: error: \"Cannot check for existance of module Vol without pkg-config\"" >&2;}
     21302   { (exit 1); exit 1; }; }
     21303fi
     21304
     21305
     21306
     21307
     21308    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21309  else
     21310    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21311echo "${ECHO_T}skipped check via pkg-config" >&6
     21312  fi
     21313
     21314else
     21315  echo "$as_me:$LINENO: result: $coin_has_vol" >&5
     21316echo "${ECHO_T}$coin_has_vol" >&6
     21317fi
     21318
     21319if test $coin_has_vol != skipping &&
     21320   test $coin_has_vol != notGiven ; then
     21321  if test -n "$VOL_CFLAGS" ; then
     21322    { echo "$as_me:$LINENO: Vol CFLAGS are $VOL_CFLAGS" >&5
     21323echo "$as_me: Vol CFLAGS are $VOL_CFLAGS" >&6;}
     21324  fi
     21325  if test -n "$VOL_LIBS" ; then
     21326    { echo "$as_me:$LINENO: Vol LIBS   are $VOL_LIBS" >&5
     21327echo "$as_me: Vol LIBS   are $VOL_LIBS" >&6;}
     21328  fi
     21329  if test -n "$VOL_DATA" ; then
     21330    { echo "$as_me:$LINENO: Vol DATA   is  $VOL_DATA" >&5
     21331echo "$as_me: Vol DATA   is  $VOL_DATA" >&6;}
     21332  fi
    2080921333
    2081021334cat >>confdefs.h <<\_ACEOF
     
    2081221336_ACEOF
    2081321337
    20814 
    20815   # Set the variables for source and object code location
    20816 
    20817   VOLSRCDIR=`cd $srcdir/$coin_has_vol; pwd`
    20818 
    20819   VOLOBJDIR=`pwd`/$coin_has_vol
    20820 
    20821   VOLDOCDIR=$abs_lib_dir/../share/doc/coin/Vol
    20822 fi
    20823 
    20824   # Define the Makefile conditional
    20825 
    20826 
    20827 if test $coin_has_vol != unavailable &&
     21338fi
     21339
     21340# Define the Makefile conditional
     21341
     21342
     21343if test $coin_has_vol != notGiven &&
    2082821344                test $coin_has_vol != skipping; then
    2082921345  COIN_HAS_VOL_TRUE=
     
    2083421350fi
    2083521351
    20836 echo "$as_me:$LINENO: result: $coin_has_vol" >&5
    20837 echo "${ECHO_T}$coin_has_vol" >&6
    20838 
    20839 echo "$as_me:$LINENO: checking for COIN project SYMPHONY" >&5
    20840 echo $ECHO_N "checking for COIN project SYMPHONY... $ECHO_C" >&6
    20841 
    20842 # First check, if the sub-project is actually available (ToDo: allow
    20843 # other locations)
    20844 
    20845 coin_has_symphony=unavailable
     21352
     21353
     21354
     21355echo "$as_me:$LINENO: checking for COIN module OsiTests" >&5
     21356echo $ECHO_N "checking for COIN module OsiTests... $ECHO_C" >&6
     21357
     21358coin_has_ositests=notGiven
     21359
     21360# check if user wants to skip module in any case
    2084621361if test x"$COIN_SKIP_PROJECTS" != x; then
    2084721362  for dir in $COIN_SKIP_PROJECTS; do
    20848     if test $dir = SYMPHONY; then
    20849       coin_has_symphony=skipping
     21363    if test $dir = "OsiTests"; then
     21364      coin_has_ositests=skipping
    2085021365    fi
    2085121366  done
    2085221367fi
    2085321368
    20854 if test $coin_has_symphony != skipping; then
    20855   if test $PACKAGE_TARNAME = symphony; then
    20856     coin_has_symphony=.
     21369OSITESTS_LIBS=
     21370OSITESTS_CFLAGS=
     21371OSITESTS_DATA=
     21372
     21373
     21374
     21375
     21376
     21377required=1
     21378
     21379# execute third argument that can be used to overwrite flags like 'required'
     21380required=0
     21381
     21382#check if user provided LIBS, CFLAGS, and DATA for module
     21383if test $coin_has_ositests != skipping; then
     21384
     21385
     21386# Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
     21387if test "${with_ositests_lib+set}" = set; then
     21388  withval="$with_ositests_lib"
     21389  coin_has_ositests=yes
     21390       OSITESTS_LIBS="$withval"
     21391       if test $required = 1; then
     21392         ADDLIBS="$ADDLIBS $withval"
     21393       fi
     21394
     21395fi;
     21396
     21397
     21398# Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
     21399if test "${with_ositests_incdir+set}" = set; then
     21400  withval="$with_ositests_incdir"
     21401  coin_has_ositests=yes
     21402     OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
     21403fi;
     21404
     21405
     21406# Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
     21407if test "${with_ositests_datadir+set}" = set; then
     21408  withval="$with_ositests_datadir"
     21409  coin_has_ositests=yes
     21410     OSITESTS_DATA="$withval"
     21411fi;
     21412fi
     21413
     21414if test $coin_has_ositests = notGiven; then
     21415  if test -n "$PKG_CONFIG" ; then
     21416    # assemble search path for pkg-config
     21417    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21418
     21419    # 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
     21420    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21421    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21422    if test -d "${prefix}"; then
     21423      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21424    fi
     21425
     21426
     21427# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21428if test "${with_coin_instdir+set}" = set; then
     21429  withval="$with_coin_instdir"
     21430  if test -d "$withval"; then : ; else
     21431         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21432echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21433   { (exit 1); exit 1; }; }
     21434       fi
     21435       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21436
     21437fi;
     21438
     21439    # in a classic setup, we want to find uninstalled projects
     21440    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21441    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21442    # 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)
     21443    if test -e ../coin_subdirs.txt ; then
     21444      for i in `cat ../coin_subdirs.txt` ; do
     21445        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     21446      done
     21447    fi
     21448
     21449    if test -e ../../coin_subdirs.txt ; then
     21450      for i in `cat ../../coin_subdirs.txt` ; do
     21451        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     21452      done
     21453    fi
     21454
     21455    # let pkg-config do it's magic
     21456    # need to export variable to be sure that the following pkg-config gets these values
     21457    export PKG_CONFIG_PATH
     21458
     21459
     21460
     21461if test -n "$PKG_CONFIG" ; then
     21462  if $PKG_CONFIG --exists "osi-unittests"; then
     21463    OSITESTS_VERSIONS="`$PKG_CONFIG --modversion osi-unittests 2>/dev/null`"
     21464     cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
     21465    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21466        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21467        # but only do this if is not trivial
     21468    if test "$CYGPATH_W" != "echo" ; then
     21469      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21470          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21471        fi
     21472    OSITESTS_CFLAGS="$cflags"
     21473    OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
     21474    OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
     21475     coin_has_ositests=yes
     21476        echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
     21477echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
     21478        if test $required = 1; then
     21479          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-unittests"
     21480        fi
     21481
     21482
    2085721483  else
    20858     if test -d $srcdir/../SYMPHONY; then
    20859       coin_has_symphony=../SYMPHONY
    20860     fi
    20861   fi
    20862 fi
    20863 
    20864 if test $coin_has_symphony != unavailable &&
    20865    test $coin_has_symphony != skipping; then
    20866   # Set the #define if the component is available
     21484    OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-unittests`
     21485      coin_has_ositests=notGiven
     21486        echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
     21487echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
     21488
     21489  fi
     21490else
     21491  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
     21492echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
     21493   { (exit 1); exit 1; }; }
     21494fi
     21495
     21496
     21497
     21498
     21499    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21500  else
     21501    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21502echo "${ECHO_T}skipped check via pkg-config" >&6
     21503  fi
     21504
     21505else
     21506  echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
     21507echo "${ECHO_T}$coin_has_ositests" >&6
     21508fi
     21509
     21510if test $coin_has_ositests != skipping &&
     21511   test $coin_has_ositests != notGiven ; then
     21512  if test -n "$OSITESTS_CFLAGS" ; then
     21513    { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
     21514echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
     21515  fi
     21516  if test -n "$OSITESTS_LIBS" ; then
     21517    { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
     21518echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
     21519  fi
     21520  if test -n "$OSITESTS_DATA" ; then
     21521    { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
     21522echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
     21523  fi
    2086721524
    2086821525cat >>confdefs.h <<\_ACEOF
    20869 #define COIN_HAS_SYMPHONY 1
     21526#define COIN_HAS_OSITESTS 1
    2087021527_ACEOF
    2087121528
    20872 
    20873   # Set the variables for source and object code location
    20874 
    20875   SYMPHONYSRCDIR=`cd $srcdir/$coin_has_symphony; pwd`
    20876 
    20877   SYMPHONYOBJDIR=`pwd`/$coin_has_symphony
    20878 
    20879   SYMPHONYDOCDIR=$abs_lib_dir/../share/doc/coin/SYMPHONY
    20880 fi
    20881 
    20882   # Define the Makefile conditional
    20883 
    20884 
    20885 if test $coin_has_symphony != unavailable &&
    20886                 test $coin_has_symphony != skipping; then
    20887   COIN_HAS_SYMPHONY_TRUE=
    20888   COIN_HAS_SYMPHONY_FALSE='#'
    20889 else
    20890   COIN_HAS_SYMPHONY_TRUE='#'
    20891   COIN_HAS_SYMPHONY_FALSE=
    20892 fi
    20893 
    20894 echo "$as_me:$LINENO: result: $coin_has_symphony" >&5
    20895 echo "${ECHO_T}$coin_has_symphony" >&6
    20896 
    20897 echo "$as_me:$LINENO: checking for COIN project Cpx" >&5
    20898 echo $ECHO_N "checking for COIN project Cpx... $ECHO_C" >&6
    20899 
    20900 # First check, if the sub-project is actually available (ToDo: allow
    20901 # other locations)
    20902 
    20903 coin_has_cpx=unavailable
     21529fi
     21530
     21531# Define the Makefile conditional
     21532
     21533
     21534if test $coin_has_ositests != notGiven &&
     21535                test $coin_has_ositests != skipping; then
     21536  COIN_HAS_OSITESTS_TRUE=
     21537  COIN_HAS_OSITESTS_FALSE='#'
     21538else
     21539  COIN_HAS_OSITESTS_TRUE='#'
     21540  COIN_HAS_OSITESTS_FALSE=
     21541fi
     21542
     21543
     21544
     21545
     21546echo "$as_me:$LINENO: checking for COIN module Sample" >&5
     21547echo $ECHO_N "checking for COIN module Sample... $ECHO_C" >&6
     21548
     21549coin_has_sample=notGiven
     21550
     21551# check if user wants to skip module in any case
    2090421552if test x"$COIN_SKIP_PROJECTS" != x; then
    2090521553  for dir in $COIN_SKIP_PROJECTS; do
    20906     if test $dir = Cpx; then
     21554    if test $dir = "Sample"; then
     21555      coin_has_sample=skipping
     21556    fi
     21557  done
     21558fi
     21559
     21560SAMPLE_LIBS=
     21561SAMPLE_CFLAGS=
     21562SAMPLE_DATA=
     21563
     21564
     21565
     21566
     21567
     21568required=1
     21569
     21570# execute third argument that can be used to overwrite flags like 'required'
     21571required=0
     21572
     21573#check if user provided LIBS, CFLAGS, and DATA for module
     21574if test $coin_has_sample != skipping; then
     21575
     21576
     21577# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
     21578if test "${with_sample_lib+set}" = set; then
     21579  withval="$with_sample_lib"
     21580  coin_has_sample=yes
     21581       SAMPLE_LIBS="$withval"
     21582       if test $required = 1; then
     21583         ADDLIBS="$ADDLIBS $withval"
     21584       fi
     21585
     21586fi;
     21587
     21588
     21589# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
     21590if test "${with_sample_incdir+set}" = set; then
     21591  withval="$with_sample_incdir"
     21592  coin_has_sample=yes
     21593     SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
     21594fi;
     21595
     21596
     21597# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
     21598if test "${with_sample_datadir+set}" = set; then
     21599  withval="$with_sample_datadir"
     21600  coin_has_sample=yes
     21601     SAMPLE_DATA="$withval"
     21602fi;
     21603fi
     21604
     21605if test $coin_has_sample = notGiven; then
     21606  if test -n "$PKG_CONFIG" ; then
     21607    # assemble search path for pkg-config
     21608    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21609
     21610    # 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
     21611    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21612    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21613    if test -d "${prefix}"; then
     21614      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21615    fi
     21616
     21617
     21618# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21619if test "${with_coin_instdir+set}" = set; then
     21620  withval="$with_coin_instdir"
     21621  if test -d "$withval"; then : ; else
     21622         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21623echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21624   { (exit 1); exit 1; }; }
     21625       fi
     21626       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21627
     21628fi;
     21629
     21630    # in a classic setup, we want to find uninstalled projects
     21631    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21632    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21633    # 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)
     21634    if test -e ../coin_subdirs.txt ; then
     21635      for i in `cat ../coin_subdirs.txt` ; do
     21636        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     21637      done
     21638    fi
     21639
     21640    if test -e ../../coin_subdirs.txt ; then
     21641      for i in `cat ../../coin_subdirs.txt` ; do
     21642        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     21643      done
     21644    fi
     21645
     21646    # let pkg-config do it's magic
     21647    # need to export variable to be sure that the following pkg-config gets these values
     21648    export PKG_CONFIG_PATH
     21649
     21650
     21651
     21652if test -n "$PKG_CONFIG" ; then
     21653  if $PKG_CONFIG --exists "coindatasample"; then
     21654    SAMPLE_VERSIONS="`$PKG_CONFIG --modversion coindatasample 2>/dev/null`"
     21655     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
     21656    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21657        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21658        # but only do this if is not trivial
     21659    if test "$CYGPATH_W" != "echo" ; then
     21660      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21661          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21662        fi
     21663    SAMPLE_CFLAGS="$cflags"
     21664    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
     21665    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
     21666     coin_has_sample=yes
     21667        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
     21668echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
     21669        if test $required = 1; then
     21670          REQUIREDPACKAGES="$REQUIREDPACKAGES coindatasample"
     21671        fi
     21672
     21673
     21674  else
     21675    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatasample`
     21676      coin_has_sample=notGiven
     21677        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
     21678echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
     21679
     21680  fi
     21681else
     21682  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
     21683echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
     21684   { (exit 1); exit 1; }; }
     21685fi
     21686
     21687
     21688
     21689
     21690    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21691  else
     21692    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21693echo "${ECHO_T}skipped check via pkg-config" >&6
     21694  fi
     21695
     21696else
     21697  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
     21698echo "${ECHO_T}$coin_has_sample" >&6
     21699fi
     21700
     21701if test $coin_has_sample != skipping &&
     21702   test $coin_has_sample != notGiven ; then
     21703  if test -n "$SAMPLE_CFLAGS" ; then
     21704    { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
     21705echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
     21706  fi
     21707  if test -n "$SAMPLE_LIBS" ; then
     21708    { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
     21709echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
     21710  fi
     21711  if test -n "$SAMPLE_DATA" ; then
     21712    { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
     21713echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
     21714  fi
     21715
     21716cat >>confdefs.h <<\_ACEOF
     21717#define COIN_HAS_SAMPLE 1
     21718_ACEOF
     21719
     21720fi
     21721
     21722# Define the Makefile conditional
     21723
     21724
     21725if test $coin_has_sample != notGiven &&
     21726                test $coin_has_sample != skipping; then
     21727  COIN_HAS_SAMPLE_TRUE=
     21728  COIN_HAS_SAMPLE_FALSE='#'
     21729else
     21730  COIN_HAS_SAMPLE_TRUE='#'
     21731  COIN_HAS_SAMPLE_FALSE=
     21732fi
     21733
     21734
     21735
     21736
     21737echo "$as_me:$LINENO: checking for COIN module Netlib" >&5
     21738echo $ECHO_N "checking for COIN module Netlib... $ECHO_C" >&6
     21739
     21740coin_has_netlib=notGiven
     21741
     21742# check if user wants to skip module in any case
     21743if test x"$COIN_SKIP_PROJECTS" != x; then
     21744  for dir in $COIN_SKIP_PROJECTS; do
     21745    if test $dir = "Netlib"; then
     21746      coin_has_netlib=skipping
     21747    fi
     21748  done
     21749fi
     21750
     21751NETLIB_LIBS=
     21752NETLIB_CFLAGS=
     21753NETLIB_DATA=
     21754
     21755
     21756
     21757
     21758
     21759required=1
     21760
     21761# execute third argument that can be used to overwrite flags like 'required'
     21762required=0
     21763
     21764#check if user provided LIBS, CFLAGS, and DATA for module
     21765if test $coin_has_netlib != skipping; then
     21766
     21767
     21768# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
     21769if test "${with_netlib_lib+set}" = set; then
     21770  withval="$with_netlib_lib"
     21771  coin_has_netlib=yes
     21772       NETLIB_LIBS="$withval"
     21773       if test $required = 1; then
     21774         ADDLIBS="$ADDLIBS $withval"
     21775       fi
     21776
     21777fi;
     21778
     21779
     21780# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
     21781if test "${with_netlib_incdir+set}" = set; then
     21782  withval="$with_netlib_incdir"
     21783  coin_has_netlib=yes
     21784     NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
     21785fi;
     21786
     21787
     21788# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
     21789if test "${with_netlib_datadir+set}" = set; then
     21790  withval="$with_netlib_datadir"
     21791  coin_has_netlib=yes
     21792     NETLIB_DATA="$withval"
     21793fi;
     21794fi
     21795
     21796if test $coin_has_netlib = notGiven; then
     21797  if test -n "$PKG_CONFIG" ; then
     21798    # assemble search path for pkg-config
     21799    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21800
     21801    # 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
     21802    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21803    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21804    if test -d "${prefix}"; then
     21805      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21806    fi
     21807
     21808
     21809# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21810if test "${with_coin_instdir+set}" = set; then
     21811  withval="$with_coin_instdir"
     21812  if test -d "$withval"; then : ; else
     21813         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21814echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21815   { (exit 1); exit 1; }; }
     21816       fi
     21817       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     21818
     21819fi;
     21820
     21821    # in a classic setup, we want to find uninstalled projects
     21822    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21823    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21824    # 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)
     21825    if test -e ../coin_subdirs.txt ; then
     21826      for i in `cat ../coin_subdirs.txt` ; do
     21827        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     21828      done
     21829    fi
     21830
     21831    if test -e ../../coin_subdirs.txt ; then
     21832      for i in `cat ../../coin_subdirs.txt` ; do
     21833        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     21834      done
     21835    fi
     21836
     21837    # let pkg-config do it's magic
     21838    # need to export variable to be sure that the following pkg-config gets these values
     21839    export PKG_CONFIG_PATH
     21840
     21841
     21842
     21843if test -n "$PKG_CONFIG" ; then
     21844  if $PKG_CONFIG --exists "coindatanetlib"; then
     21845    NETLIB_VERSIONS="`$PKG_CONFIG --modversion coindatanetlib 2>/dev/null`"
     21846     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
     21847    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     21848        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     21849        # but only do this if is not trivial
     21850    if test "$CYGPATH_W" != "echo" ; then
     21851      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     21852          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     21853        fi
     21854    NETLIB_CFLAGS="$cflags"
     21855    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
     21856    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
     21857     coin_has_netlib=yes
     21858        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
     21859echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
     21860        if test $required = 1; then
     21861          REQUIREDPACKAGES="$REQUIREDPACKAGES coindatanetlib"
     21862        fi
     21863
     21864
     21865  else
     21866    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatanetlib`
     21867      coin_has_netlib=notGiven
     21868        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
     21869echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
     21870
     21871  fi
     21872else
     21873  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
     21874echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
     21875   { (exit 1); exit 1; }; }
     21876fi
     21877
     21878
     21879
     21880
     21881    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     21882  else
     21883    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     21884echo "${ECHO_T}skipped check via pkg-config" >&6
     21885  fi
     21886
     21887else
     21888  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
     21889echo "${ECHO_T}$coin_has_netlib" >&6
     21890fi
     21891
     21892if test $coin_has_netlib != skipping &&
     21893   test $coin_has_netlib != notGiven ; then
     21894  if test -n "$NETLIB_CFLAGS" ; then
     21895    { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
     21896echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
     21897  fi
     21898  if test -n "$NETLIB_LIBS" ; then
     21899    { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
     21900echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
     21901  fi
     21902  if test -n "$NETLIB_DATA" ; then
     21903    { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
     21904echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
     21905  fi
     21906
     21907cat >>confdefs.h <<\_ACEOF
     21908#define COIN_HAS_NETLIB 1
     21909_ACEOF
     21910
     21911fi
     21912
     21913# Define the Makefile conditional
     21914
     21915
     21916if test $coin_has_netlib != notGiven &&
     21917                test $coin_has_netlib != skipping; then
     21918  COIN_HAS_NETLIB_TRUE=
     21919  COIN_HAS_NETLIB_FALSE='#'
     21920else
     21921  COIN_HAS_NETLIB_TRUE='#'
     21922  COIN_HAS_NETLIB_FALSE=
     21923fi
     21924
     21925
     21926
     21927
     21928echo "$as_me:$LINENO: checking for COIN module Miplib3" >&5
     21929echo $ECHO_N "checking for COIN module Miplib3... $ECHO_C" >&6
     21930
     21931coin_has_miplib3=notGiven
     21932
     21933# check if user wants to skip module in any case
     21934if test x"$COIN_SKIP_PROJECTS" != x; then
     21935  for dir in $COIN_SKIP_PROJECTS; do
     21936    if test $dir = "Miplib3"; then
     21937      coin_has_miplib3=skipping
     21938    fi
     21939  done
     21940fi
     21941
     21942MIPLIB3_LIBS=
     21943MIPLIB3_CFLAGS=
     21944MIPLIB3_DATA=
     21945
     21946
     21947
     21948
     21949
     21950required=1
     21951
     21952# execute third argument that can be used to overwrite flags like 'required'
     21953required=0
     21954
     21955#check if user provided LIBS, CFLAGS, and DATA for module
     21956if test $coin_has_miplib3 != skipping; then
     21957
     21958
     21959# Check whether --with-m4_tolower(Miplib3)-lib or --without-m4_tolower(Miplib3)-lib was given.
     21960if test "${with_miplib3_lib+set}" = set; then
     21961  withval="$with_miplib3_lib"
     21962  coin_has_miplib3=yes
     21963       MIPLIB3_LIBS="$withval"
     21964       if test $required = 1; then
     21965         ADDLIBS="$ADDLIBS $withval"
     21966       fi
     21967
     21968fi;
     21969
     21970
     21971# Check whether --with-m4_tolower(Miplib3)-incdir or --without-m4_tolower(Miplib3)-incdir was given.
     21972if test "${with_miplib3_incdir+set}" = set; then
     21973  withval="$with_miplib3_incdir"
     21974  coin_has_miplib3=yes
     21975     MIPLIB3_CFLAGS="-I`${CYGPATH_W} $withval`"
     21976fi;
     21977
     21978
     21979# Check whether --with-m4_tolower(Miplib3)-datadir or --without-m4_tolower(Miplib3)-datadir was given.
     21980if test "${with_miplib3_datadir+set}" = set; then
     21981  withval="$with_miplib3_datadir"
     21982  coin_has_miplib3=yes
     21983     MIPLIB3_DATA="$withval"
     21984fi;
     21985fi
     21986
     21987if test $coin_has_miplib3 = notGiven; then
     21988  if test -n "$PKG_CONFIG" ; then
     21989    # assemble search path for pkg-config
     21990    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21991
     21992    # 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
     21993    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21994    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21995    if test -d "${prefix}"; then
     21996      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     21997    fi
     21998
     21999
     22000# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22001if test "${with_coin_instdir+set}" = set; then
     22002  withval="$with_coin_instdir"
     22003  if test -d "$withval"; then : ; else
     22004         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22005echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     22006   { (exit 1); exit 1; }; }
     22007       fi
     22008       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     22009
     22010fi;
     22011
     22012    # in a classic setup, we want to find uninstalled projects
     22013    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22014    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22015    # 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)
     22016    if test -e ../coin_subdirs.txt ; then
     22017      for i in `cat ../coin_subdirs.txt` ; do
     22018        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     22019      done
     22020    fi
     22021
     22022    if test -e ../../coin_subdirs.txt ; then
     22023      for i in `cat ../../coin_subdirs.txt` ; do
     22024        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     22025      done
     22026    fi
     22027
     22028    # let pkg-config do it's magic
     22029    # need to export variable to be sure that the following pkg-config gets these values
     22030    export PKG_CONFIG_PATH
     22031
     22032
     22033
     22034if test -n "$PKG_CONFIG" ; then
     22035  if $PKG_CONFIG --exists "coindatamiplib3"; then
     22036    MIPLIB3_VERSIONS="`$PKG_CONFIG --modversion coindatamiplib3 2>/dev/null`"
     22037     cflags=`$PKG_CONFIG --cflags "coindatamiplib3" 2>/dev/null`
     22038    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22039        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22040        # but only do this if is not trivial
     22041    if test "$CYGPATH_W" != "echo" ; then
     22042      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22043          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22044        fi
     22045    MIPLIB3_CFLAGS="$cflags"
     22046    MIPLIB3_LIBS=`$PKG_CONFIG --libs "coindatamiplib3" 2>/dev/null`
     22047    MIPLIB3_DATA=`$PKG_CONFIG --variable=datadir "coindatamiplib3" 2>/dev/null`
     22048     coin_has_miplib3=yes
     22049        echo "$as_me:$LINENO: result: yes: $MIPLIB3_VERSIONS" >&5
     22050echo "${ECHO_T}yes: $MIPLIB3_VERSIONS" >&6
     22051        if test $required = 1; then
     22052          REQUIREDPACKAGES="$REQUIREDPACKAGES coindatamiplib3"
     22053        fi
     22054
     22055
     22056  else
     22057    MIPLIB3_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coindatamiplib3`
     22058      coin_has_miplib3=notGiven
     22059        echo "$as_me:$LINENO: result: not given: $MIPLIB3_PKG_ERRORS" >&5
     22060echo "${ECHO_T}not given: $MIPLIB3_PKG_ERRORS" >&6
     22061
     22062  fi
     22063else
     22064  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&5
     22065echo "$as_me: error: \"Cannot check for existance of module Miplib3 without pkg-config\"" >&2;}
     22066   { (exit 1); exit 1; }; }
     22067fi
     22068
     22069
     22070
     22071
     22072    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22073  else
     22074    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     22075echo "${ECHO_T}skipped check via pkg-config" >&6
     22076  fi
     22077
     22078else
     22079  echo "$as_me:$LINENO: result: $coin_has_miplib3" >&5
     22080echo "${ECHO_T}$coin_has_miplib3" >&6
     22081fi
     22082
     22083if test $coin_has_miplib3 != skipping &&
     22084   test $coin_has_miplib3 != notGiven ; then
     22085  if test -n "$MIPLIB3_CFLAGS" ; then
     22086    { echo "$as_me:$LINENO: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&5
     22087echo "$as_me: Miplib3 CFLAGS are $MIPLIB3_CFLAGS" >&6;}
     22088  fi
     22089  if test -n "$MIPLIB3_LIBS" ; then
     22090    { echo "$as_me:$LINENO: Miplib3 LIBS   are $MIPLIB3_LIBS" >&5
     22091echo "$as_me: Miplib3 LIBS   are $MIPLIB3_LIBS" >&6;}
     22092  fi
     22093  if test -n "$MIPLIB3_DATA" ; then
     22094    { echo "$as_me:$LINENO: Miplib3 DATA   is  $MIPLIB3_DATA" >&5
     22095echo "$as_me: Miplib3 DATA   is  $MIPLIB3_DATA" >&6;}
     22096  fi
     22097
     22098cat >>confdefs.h <<\_ACEOF
     22099#define COIN_HAS_MIPLIB3 1
     22100_ACEOF
     22101
     22102fi
     22103
     22104# Define the Makefile conditional
     22105
     22106
     22107if test $coin_has_miplib3 != notGiven &&
     22108                test $coin_has_miplib3 != skipping; then
     22109  COIN_HAS_MIPLIB3_TRUE=
     22110  COIN_HAS_MIPLIB3_FALSE='#'
     22111else
     22112  COIN_HAS_MIPLIB3_TRUE='#'
     22113  COIN_HAS_MIPLIB3_FALSE=
     22114fi
     22115
     22116
     22117
     22118
     22119#TODO! fallbacks!
     22120
     22121#############################################################################
     22122#                            Third party solvers                            #
     22123#############################################################################
     22124
     22125# Check which third party solvers are available
     22126
     22127echo "$as_me:$LINENO: checking for COIN module Cpx" >&5
     22128echo $ECHO_N "checking for COIN module Cpx... $ECHO_C" >&6
     22129
     22130coin_has_cpx=notGiven
     22131
     22132# check if user wants to skip module in any case
     22133if test x"$COIN_SKIP_PROJECTS" != x; then
     22134  for dir in $COIN_SKIP_PROJECTS; do
     22135    if test $dir = "Cpx"; then
    2090722136      coin_has_cpx=skipping
    2090822137    fi
     
    2091022139fi
    2091122140
     22141CPX_LIBS=
     22142CPX_CFLAGS=
     22143CPX_DATA=
     22144
     22145
     22146
     22147
     22148
     22149required=1
     22150
     22151# execute third argument that can be used to overwrite flags like 'required'
     22152
     22153
     22154#check if user provided LIBS, CFLAGS, and DATA for module
    2091222155if test $coin_has_cpx != skipping; then
    20913   if test $PACKAGE_TARNAME = cpx; then
    20914     coin_has_cpx=.
     22156
     22157
     22158# Check whether --with-m4_tolower(Cpx)-lib or --without-m4_tolower(Cpx)-lib was given.
     22159if test "${with_cpx_lib+set}" = set; then
     22160  withval="$with_cpx_lib"
     22161  coin_has_cpx=yes
     22162       CPX_LIBS="$withval"
     22163       if test $required = 1; then
     22164         ADDLIBS="$ADDLIBS $withval"
     22165       fi
     22166
     22167fi;
     22168
     22169
     22170# Check whether --with-m4_tolower(Cpx)-incdir or --without-m4_tolower(Cpx)-incdir was given.
     22171if test "${with_cpx_incdir+set}" = set; then
     22172  withval="$with_cpx_incdir"
     22173  coin_has_cpx=yes
     22174     CPX_CFLAGS="-I`${CYGPATH_W} $withval`"
     22175fi;
     22176
     22177
     22178# Check whether --with-m4_tolower(Cpx)-datadir or --without-m4_tolower(Cpx)-datadir was given.
     22179if test "${with_cpx_datadir+set}" = set; then
     22180  withval="$with_cpx_datadir"
     22181  coin_has_cpx=yes
     22182     CPX_DATA="$withval"
     22183fi;
     22184fi
     22185
     22186if test $coin_has_cpx = notGiven; then
     22187  if test -n "$PKG_CONFIG" ; then
     22188    # assemble search path for pkg-config
     22189    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22190
     22191    # 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
     22192    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22193    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22194    if test -d "${prefix}"; then
     22195      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     22196    fi
     22197
     22198
     22199# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22200if test "${with_coin_instdir+set}" = set; then
     22201  withval="$with_coin_instdir"
     22202  if test -d "$withval"; then : ; else
     22203         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22204echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     22205   { (exit 1); exit 1; }; }
     22206       fi
     22207       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     22208
     22209fi;
     22210
     22211    # in a classic setup, we want to find uninstalled projects
     22212    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22213    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22214    # 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)
     22215    if test -e ../coin_subdirs.txt ; then
     22216      for i in `cat ../coin_subdirs.txt` ; do
     22217        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     22218      done
     22219    fi
     22220
     22221    if test -e ../../coin_subdirs.txt ; then
     22222      for i in `cat ../../coin_subdirs.txt` ; do
     22223        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     22224      done
     22225    fi
     22226
     22227    # let pkg-config do it's magic
     22228    # need to export variable to be sure that the following pkg-config gets these values
     22229    export PKG_CONFIG_PATH
     22230
     22231
     22232
     22233if test -n "$PKG_CONFIG" ; then
     22234  if $PKG_CONFIG --exists "osi-cplex"; then
     22235    CPX_VERSIONS="`$PKG_CONFIG --modversion osi-cplex 2>/dev/null`"
     22236     cflags=`$PKG_CONFIG --cflags "osi-cplex" 2>/dev/null`
     22237    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22238        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22239        # but only do this if is not trivial
     22240    if test "$CYGPATH_W" != "echo" ; then
     22241      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22242          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22243        fi
     22244    CPX_CFLAGS="$cflags"
     22245    CPX_LIBS=`$PKG_CONFIG --libs "osi-cplex" 2>/dev/null`
     22246    CPX_DATA=`$PKG_CONFIG --variable=datadir "osi-cplex" 2>/dev/null`
     22247     coin_has_cpx=yes
     22248        echo "$as_me:$LINENO: result: yes: $CPX_VERSIONS" >&5
     22249echo "${ECHO_T}yes: $CPX_VERSIONS" >&6
     22250        if test $required = 1; then
     22251          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-cplex"
     22252        fi
     22253
     22254
    2091522255  else
    20916     if test -d $srcdir/../Cpx; then
    20917       coin_has_cpx=../Cpx
    20918     fi
    20919   fi
    20920 fi
    20921 
    20922 if test $coin_has_cpx != unavailable &&
    20923    test $coin_has_cpx != skipping; then
    20924   # Set the #define if the component is available
     22256    CPX_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-cplex`
     22257      coin_has_cpx=notGiven
     22258        echo "$as_me:$LINENO: result: not given: $CPX_PKG_ERRORS" >&5
     22259echo "${ECHO_T}not given: $CPX_PKG_ERRORS" >&6
     22260
     22261  fi
     22262else
     22263  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&5
     22264echo "$as_me: error: \"Cannot check for existance of module Cpx without pkg-config\"" >&2;}
     22265   { (exit 1); exit 1; }; }
     22266fi
     22267
     22268
     22269
     22270
     22271    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22272  else
     22273    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     22274echo "${ECHO_T}skipped check via pkg-config" >&6
     22275  fi
     22276
     22277else
     22278  echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
     22279echo "${ECHO_T}$coin_has_cpx" >&6
     22280fi
     22281
     22282if test $coin_has_cpx != skipping &&
     22283   test $coin_has_cpx != notGiven ; then
     22284  if test -n "$CPX_CFLAGS" ; then
     22285    { echo "$as_me:$LINENO: Cpx CFLAGS are $CPX_CFLAGS" >&5
     22286echo "$as_me: Cpx CFLAGS are $CPX_CFLAGS" >&6;}
     22287  fi
     22288  if test -n "$CPX_LIBS" ; then
     22289    { echo "$as_me:$LINENO: Cpx LIBS   are $CPX_LIBS" >&5
     22290echo "$as_me: Cpx LIBS   are $CPX_LIBS" >&6;}
     22291  fi
     22292  if test -n "$CPX_DATA" ; then
     22293    { echo "$as_me:$LINENO: Cpx DATA   is  $CPX_DATA" >&5
     22294echo "$as_me: Cpx DATA   is  $CPX_DATA" >&6;}
     22295  fi
    2092522296
    2092622297cat >>confdefs.h <<\_ACEOF
     
    2092822299_ACEOF
    2092922300
    20930 
    20931   # Set the variables for source and object code location
    20932 
    20933   CPXSRCDIR=`cd $srcdir/$coin_has_cpx; pwd`
    20934 
    20935   CPXOBJDIR=`pwd`/$coin_has_cpx
    20936 
    20937   CPXDOCDIR=$abs_lib_dir/../share/doc/coin/Cpx
    20938 fi
    20939 
    20940   # Define the Makefile conditional
    20941 
    20942 
    20943 if test $coin_has_cpx != unavailable &&
     22301fi
     22302
     22303# Define the Makefile conditional
     22304
     22305
     22306if test $coin_has_cpx != notGiven &&
    2094422307                test $coin_has_cpx != skipping; then
    2094522308  COIN_HAS_CPX_TRUE=
     
    2095022313fi
    2095122314
    20952 echo "$as_me:$LINENO: result: $coin_has_cpx" >&5
    20953 echo "${ECHO_T}$coin_has_cpx" >&6
    20954 
    20955 
    20956 #############################################################################
    20957 #                            Third party solvers                            #
    20958 #############################################################################
    20959 
    20960 # Check which third party solvers are available ToDo!
    20961 
    20962   echo "$as_me:$LINENO: checking if user provides library for Cplex" >&5
    20963 echo $ECHO_N "checking if user provides library for Cplex... $ECHO_C" >&6
    20964 
    20965 # Check for header file directory
    20966 
    20967 
    20968 # Check whether --with-cplex-incdir or --without-cplex-incdir was given.
    20969 if test "${with_cplex_incdir+set}" = set; then
    20970   withval="$with_cplex_incdir"
    20971   CPXINCDIR=`cd $withval; pwd`
     22315
     22316
     22317
     22318echo "$as_me:$LINENO: checking for COIN module Glpk" >&5
     22319echo $ECHO_N "checking for COIN module Glpk... $ECHO_C" >&6
     22320
     22321coin_has_glpk=notGiven
     22322
     22323# check if user wants to skip module in any case
     22324if test x"$COIN_SKIP_PROJECTS" != x; then
     22325  for dir in $COIN_SKIP_PROJECTS; do
     22326    if test $dir = "Glpk"; then
     22327      coin_has_glpk=skipping
     22328    fi
     22329  done
     22330fi
     22331
     22332GLPK_LIBS=
     22333GLPK_CFLAGS=
     22334GLPK_DATA=
     22335
     22336
     22337
     22338
     22339
     22340required=1
     22341
     22342# execute third argument that can be used to overwrite flags like 'required'
     22343
     22344
     22345#check if user provided LIBS, CFLAGS, and DATA for module
     22346if test $coin_has_glpk != skipping; then
     22347
     22348
     22349# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
     22350if test "${with_glpk_lib+set}" = set; then
     22351  withval="$with_glpk_lib"
     22352  coin_has_glpk=yes
     22353       GLPK_LIBS="$withval"
     22354       if test $required = 1; then
     22355         ADDLIBS="$ADDLIBS $withval"
     22356       fi
     22357
    2097222358fi;
    2097322359
    20974 # Check for library directory
    20975 
    20976 
    20977 # Check whether --with-cplex-lib or --without-cplex-lib was given.
    20978 if test "${with_cplex_lib+set}" = set; then
    20979   withval="$with_cplex_lib"
    20980   CPXLIB=$withval
     22360
     22361# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
     22362if test "${with_glpk_incdir+set}" = set; then
     22363  withval="$with_glpk_incdir"
     22364  coin_has_glpk=yes
     22365     GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
    2098122366fi;
    2098222367
    20983 # Switch to disable library check if requested
    20984 
    20985   # Check whether --enable-cplex-libcheck or --disable-cplex-libcheck was given.
    20986 if test "${enable_cplex_libcheck+set}" = set; then
    20987   enableval="$enable_cplex_libcheck"
    20988   cplex_libcheck=$enableval
    20989 else
    20990   cplex_libcheck=yes
     22368
     22369# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
     22370if test "${with_glpk_datadir+set}" = set; then
     22371  withval="$with_glpk_datadir"
     22372  coin_has_glpk=yes
     22373     GLPK_DATA="$withval"
    2099122374fi;
    20992 
    20993 # At this point, if we're going to use the library, both LBRYINCDIR and
    20994 # LBRYLIB must be defined and not empty.
    20995 
    20996   if test x"$CPXINCDIR" != x || test x"$CPXLIB" != x; then
    20997     if test x"$CPXINCDIR" = x || test x"$CPXLIB" = x; then
    20998       { { 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
    20999 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;}
     22375fi
     22376
     22377if test $coin_has_glpk = notGiven; then
     22378  if test -n "$PKG_CONFIG" ; then
     22379    # assemble search path for pkg-config
     22380    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22381
     22382    # 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
     22383    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22384    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22385    if test -d "${prefix}"; then
     22386      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     22387    fi
     22388
     22389
     22390# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22391if test "${with_coin_instdir+set}" = set; then
     22392  withval="$with_coin_instdir"
     22393  if test -d "$withval"; then : ; else
     22394         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22395echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    2100022396   { (exit 1); exit 1; }; }
     22397       fi
     22398       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     22399
     22400fi;
     22401
     22402    # in a classic setup, we want to find uninstalled projects
     22403    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22404    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22405    # 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)
     22406    if test -e ../coin_subdirs.txt ; then
     22407      for i in `cat ../coin_subdirs.txt` ; do
     22408        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     22409      done
    2100122410    fi
    21002     coin_has_cpx=true
    21003     echo "$as_me:$LINENO: result: yes" >&5
    21004 echo "${ECHO_T}yes" >&6
     22411
     22412    if test -e ../../coin_subdirs.txt ; then
     22413      for i in `cat ../../coin_subdirs.txt` ; do
     22414        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     22415      done
     22416    fi
     22417
     22418    # let pkg-config do it's magic
     22419    # need to export variable to be sure that the following pkg-config gets these values
     22420    export PKG_CONFIG_PATH
     22421
     22422
     22423
     22424if test -n "$PKG_CONFIG" ; then
     22425  if $PKG_CONFIG --exists "osi-glpk"; then
     22426    GLPK_VERSIONS="`$PKG_CONFIG --modversion osi-glpk 2>/dev/null`"
     22427     cflags=`$PKG_CONFIG --cflags "osi-glpk" 2>/dev/null`
     22428    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22429        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22430        # but only do this if is not trivial
     22431    if test "$CYGPATH_W" != "echo" ; then
     22432      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22433          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22434        fi
     22435    GLPK_CFLAGS="$cflags"
     22436    GLPK_LIBS=`$PKG_CONFIG --libs "osi-glpk" 2>/dev/null`
     22437    GLPK_DATA=`$PKG_CONFIG --variable=datadir "osi-glpk" 2>/dev/null`
     22438     coin_has_glpk=yes
     22439        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
     22440echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
     22441        if test $required = 1; then
     22442          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-glpk"
     22443        fi
     22444
     22445
    2100522446  else
    21006     coin_has_cpx=false
    21007     echo "$as_me:$LINENO: result: no" >&5
    21008 echo "${ECHO_T}no" >&6
    21009   fi
    21010 
    21011 # If we have instructions for use, consider header and link checks.
    21012 
    21013   if test $coin_has_cpx = true; then
    21014 
    21015 # If argument 3 (file) is given, check for the file. Typically this will be a
    21016 # header file, but that's not assumed.
    21017 
    21018     if test -r $CPXINCDIR/cplex.h; then
    21019 
    21020   :
    21021 else
    21022   { { echo "$as_me:$LINENO: error: Cannot find file cplex.h in $CPXINCDIR" >&5
    21023 echo "$as_me: error: Cannot find file cplex.h in $CPXINCDIR" >&2;}
     22447    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-glpk`
     22448      coin_has_glpk=notGiven
     22449        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
     22450echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
     22451
     22452  fi
     22453else
     22454  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
     22455echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
    2102422456   { (exit 1); exit 1; }; }
    21025   :
    21026 fi
    21027 
    21028 
    21029 # Now see if we can link the function. There are arguments for and against
    21030 # assuming argument 3 is a header file declaring the function. A correct
    21031 # function declaration is the main argument in favour. Having to cope with
    21032 # possible dependencies or other oddities are the main arguments against.
    21033 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21034 # Obviously, this has limits.
    21035 
    21036     if test x"$cplex_libcheck" != xno; then
    21037            coin_save_LIBS="$LIBS"
    21038            LIBS="$CPXLIB $ADDLIBS"
    21039            coin_CPX_link=no
    21040            ac_ext=c
    21041 ac_cpp='$CPP $CPPFLAGS'
    21042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21045 
    21046            for fnm in CPXgetstat ; do
    21047              echo "$as_me:$LINENO: checking whether symbol $fnm is available with CPX" >&5
    21048 echo $ECHO_N "checking whether symbol $fnm is available with CPX... $ECHO_C" >&6
    21049              cat >conftest.$ac_ext <<_ACEOF
    21050 /* confdefs.h.  */
     22457fi
     22458
     22459
     22460
     22461
     22462    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     22463  else
     22464    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     22465echo "${ECHO_T}skipped check via pkg-config" >&6
     22466  fi
     22467
     22468else
     22469  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
     22470echo "${ECHO_T}$coin_has_glpk" >&6
     22471fi
     22472
     22473if test $coin_has_glpk != skipping &&
     22474   test $coin_has_glpk != notGiven ; then
     22475  if test -n "$GLPK_CFLAGS" ; then
     22476    { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
     22477echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
     22478  fi
     22479  if test -n "$GLPK_LIBS" ; then
     22480    { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
     22481echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
     22482  fi
     22483  if test -n "$GLPK_DATA" ; then
     22484    { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
     22485echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
     22486  fi
     22487
     22488cat >>confdefs.h <<\_ACEOF
     22489#define COIN_HAS_GLPK 1
    2105122490_ACEOF
    21052 cat confdefs.h >>conftest.$ac_ext
    21053 cat >>conftest.$ac_ext <<_ACEOF
    21054 /* end confdefs.h.  */
    21055 
    21056 int
    21057 main ()
    21058 {
    21059 $fnm()
    21060   ;
    21061   return 0;
    21062 }
    21063 _ACEOF
    21064 rm -f conftest.$ac_objext conftest$ac_exeext
    21065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21066   (eval $ac_link) 2>conftest.er1
    21067   ac_status=$?
    21068   grep -v '^ *+' conftest.er1 >conftest.err
    21069   rm -f conftest.er1
    21070   cat conftest.err >&5
    21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21072   (exit $ac_status); } &&
    21073          { ac_try='test -z "$ac_c_werror_flag"
    21074                          || test ! -s conftest.err'
    21075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21076   (eval $ac_try) 2>&5
    21077   ac_status=$?
    21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21079   (exit $ac_status); }; } &&
    21080          { ac_try='test -s conftest$ac_exeext'
    21081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21082   (eval $ac_try) 2>&5
    21083   ac_status=$?
    21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21085   (exit $ac_status); }; }; then
    21086   echo "$as_me:$LINENO: result: yes" >&5
    21087 echo "${ECHO_T}yes" >&6
    21088                   coin_CPX_link=yes
    21089                   break
    21090 else
    21091   echo "$as_me: failed program was:" >&5
    21092 sed 's/^/| /' conftest.$ac_ext >&5
    21093 
    21094 echo "$as_me:$LINENO: result: no" >&5
    21095 echo "${ECHO_T}no" >&6
    21096 fi
    21097 rm -f conftest.err conftest.$ac_objext \
    21098       conftest$ac_exeext conftest.$ac_ext
    21099            done
    21100            ac_ext=c
    21101 ac_cpp='$CPP $CPPFLAGS'
    21102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21105 
    21106            if test x"$coin_CPX_link" = xyes ; then
    21107              LIBS="$coin_save_LIBS"
    21108            else
    21109              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) CPXgetstat with CPX" >&5
    21110 echo "$as_me: error: Cannot find symbol(s) CPXgetstat with CPX" >&2;}
     22491
     22492fi
     22493
     22494# Define the Makefile conditional
     22495
     22496
     22497if test $coin_has_glpk != notGiven &&
     22498                test $coin_has_glpk != skipping; then
     22499  COIN_HAS_GLPK_TRUE=
     22500  COIN_HAS_GLPK_FALSE='#'
     22501else
     22502  COIN_HAS_GLPK_TRUE='#'
     22503  COIN_HAS_GLPK_FALSE=
     22504fi
     22505
     22506
     22507
     22508#AC_COIN_HAS_MODULE(Grb,     [osi-gurobi])
     22509
     22510echo "$as_me:$LINENO: checking for COIN module Msk" >&5
     22511echo $ECHO_N "checking for COIN module Msk... $ECHO_C" >&6
     22512
     22513coin_has_msk=notGiven
     22514
     22515# check if user wants to skip module in any case
     22516if test x"$COIN_SKIP_PROJECTS" != x; then
     22517  for dir in $COIN_SKIP_PROJECTS; do
     22518    if test $dir = "Msk"; then
     22519      coin_has_msk=skipping
     22520    fi
     22521  done
     22522fi
     22523
     22524MSK_LIBS=
     22525MSK_CFLAGS=
     22526MSK_DATA=
     22527
     22528
     22529
     22530
     22531
     22532required=1
     22533
     22534# execute third argument that can be used to overwrite flags like 'required'
     22535
     22536
     22537#check if user provided LIBS, CFLAGS, and DATA for module
     22538if test $coin_has_msk != skipping; then
     22539
     22540
     22541# Check whether --with-m4_tolower(Msk)-lib or --without-m4_tolower(Msk)-lib was given.
     22542if test "${with_msk_lib+set}" = set; then
     22543  withval="$with_msk_lib"
     22544  coin_has_msk=yes
     22545       MSK_LIBS="$withval"
     22546       if test $required = 1; then
     22547         ADDLIBS="$ADDLIBS $withval"
     22548       fi
     22549
     22550fi;
     22551
     22552
     22553# Check whether --with-m4_tolower(Msk)-incdir or --without-m4_tolower(Msk)-incdir was given.
     22554if test "${with_msk_incdir+set}" = set; then
     22555  withval="$with_msk_incdir"
     22556  coin_has_msk=yes
     22557     MSK_CFLAGS="-I`${CYGPATH_W} $withval`"
     22558fi;
     22559
     22560
     22561# Check whether --with-m4_tolower(Msk)-datadir or --without-m4_tolower(Msk)-datadir was given.
     22562if test "${with_msk_datadir+set}" = set; then
     22563  withval="$with_msk_datadir"
     22564  coin_has_msk=yes
     22565     MSK_DATA="$withval"
     22566fi;
     22567fi
     22568
     22569if test $coin_has_msk = notGiven; then
     22570  if test -n "$PKG_CONFIG" ; then
     22571    # assemble search path for pkg-config
     22572    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22573
     22574    # 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
     22575    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22576    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22577    if test -d "${prefix}"; then
     22578      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     22579    fi
     22580
     22581
     22582# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22583if test "${with_coin_instdir+set}" = set; then
     22584  withval="$with_coin_instdir"
     22585  if test -d "$withval"; then : ; else
     22586         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22587echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    2111122588   { (exit 1); exit 1; }; }
    21112            fi
    21113          fi
    21114 
    21115 
    21116 # If we make it this far, we've verified the file and linked the function. Add
    21117 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    21118 # COIN_HAS_LBRY.
    21119 
    21120     ADDLIBS="$CPXLIB $ADDLIBS"
    21121 
    21122 cat >>confdefs.h <<\_ACEOF
    21123 #define COIN_HAS_CPX 1
    21124 _ACEOF
    21125 
    21126   fi
    21127 
    21128 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21129 # automake conditional. These actions must occur unconditionally.
    21130 
    21131 
    21132 
    21133 
    21134 
    21135 if test $coin_has_cpx = true; then
    21136   COIN_HAS_CPX_TRUE=
    21137   COIN_HAS_CPX_FALSE='#'
    21138 else
    21139   COIN_HAS_CPX_TRUE='#'
    21140   COIN_HAS_CPX_FALSE=
    21141 fi
    21142 
    21143 
    21144 
    21145   echo "$as_me:$LINENO: checking if user provides library for FortMP" >&5
    21146 echo $ECHO_N "checking if user provides library for FortMP... $ECHO_C" >&6
    21147 
    21148 # Check for header file directory
    21149 
    21150 
    21151 # Check whether --with-fortmp-incdir or --without-fortmp-incdir was given.
    21152 if test "${with_fortmp_incdir+set}" = set; then
    21153   withval="$with_fortmp_incdir"
    21154   FMPINCDIR=`cd $withval; pwd`
     22589       fi
     22590       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     22591
    2115522592fi;
    2115622593
    21157 # Check for library directory
    21158 
    21159 
    21160 # Check whether --with-fortmp-lib or --without-fortmp-lib was given.
    21161 if test "${with_fortmp_lib+set}" = set; then
    21162   withval="$with_fortmp_lib"
    21163   FMPLIB=$withval
    21164 fi;
    21165 
    21166 # Switch to disable library check if requested
    21167 
    21168   # Check whether --enable-fortmp-libcheck or --disable-fortmp-libcheck was given.
    21169 if test "${enable_fortmp_libcheck+set}" = set; then
    21170   enableval="$enable_fortmp_libcheck"
    21171   fortmp_libcheck=$enableval
    21172 else
    21173   fortmp_libcheck=yes
    21174 fi;
    21175 
    21176 # At this point, if we're going to use the library, both LBRYINCDIR and
    21177 # LBRYLIB must be defined and not empty.
    21178 
    21179   if test x"$FMPINCDIR" != x || test x"$FMPLIB" != x; then
    21180     if test x"$FMPINCDIR" = x || test x"$FMPLIB" = x; then
    21181       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library FortMP. Use --with-fortmp-incdir of environment variable $FMPINCDIR to specify the include directory. Use --with-fortmp-lib or environment variable $FMPLIB to specify link flags." >&5
    21182 echo "$as_me: error: You need to specify both an include directory and link flags to use library FortMP. Use --with-fortmp-incdir of environment variable $FMPINCDIR to specify the include directory. Use --with-fortmp-lib or environment variable $FMPLIB to specify link flags." >&2;}
     22594    # in a classic setup, we want to find uninstalled projects
     22595    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22596    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22597    # 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)
     22598    if test -e ../coin_subdirs.txt ; then
     22599      for i in `cat ../coin_subdirs.txt` ; do
     22600        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     22601      done
     22602    fi
     22603
     22604    if test -e ../../coin_subdirs.txt ; then
     22605      for i in `cat ../../coin_subdirs.txt` ; do
     22606        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     22607      done
     22608    fi
     22609
     22610    # let pkg-config do it's magic
     22611    # need to export variable to be sure that the following pkg-config gets these values
     22612    export PKG_CONFIG_PATH
     22613
     22614
     22615
     22616if test -n "$PKG_CONFIG" ; then
     22617  if $PKG_CONFIG --exists "osi-mosek"; then
     22618    MSK_VERSIONS="`$PKG_CONFIG --modversion osi-mosek 2>/dev/null`"
     22619     cflags=`$PKG_CONFIG --cflags "osi-mosek" 2>/dev/null`
     22620    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22621        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22622        # but only do this if is not trivial
     22623    if test "$CYGPATH_W" != "echo" ; then
     22624      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22625          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22626        fi
     22627    MSK_CFLAGS="$cflags"
     22628    MSK_LIBS=`$PKG_CONFIG --libs "osi-mosek" 2>/dev/null`
     22629    MSK_DATA=`$PKG_CONFIG --variable=datadir "osi-mosek" 2>/dev/null`
     22630     coin_has_msk=yes
     22631        echo "$as_me:$LINENO: result: yes: $MSK_VERSIONS" >&5
     22632echo "${ECHO_T}yes: $MSK_VERSIONS" >&6
     22633        if test $required = 1; then
     22634          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-mosek"
     22635        fi
     22636
     22637
     22638  else
     22639    MSK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-mosek`
     22640      coin_has_msk=notGiven
     22641        echo "$as_me:$LINENO: result: not given: $MSK_PKG_ERRORS" >&5
     22642echo "${ECHO_T}not given: $MSK_PKG_ERRORS" >&6
     22643
     22644  fi
     22645else
     22646  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Msk without pkg-config\"" >&5
     22647echo "$as_me: error: \"Cannot check for existance of module Msk without pkg-config\"" >&2;}
    2118322648   { (exit 1); exit 1; }; }
    21184     fi
    21185     coin_has_fmp=true
    21186     echo "$as_me:$LINENO: result: yes" >&5
    21187 echo "${ECHO_T}yes" >&6
     22649fi
     22650
     22651
     22652
     22653
     22654    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2118822655  else
    21189     coin_has_fmp=false
    21190     echo "$as_me:$LINENO: result: no" >&5
    21191 echo "${ECHO_T}no" >&6
    21192   fi
    21193 
    21194 # If we have instructions for use, consider header and link checks.
    21195 
    21196   if test $coin_has_fmp = true; then
    21197 
    21198 # If argument 3 (file) is given, check for the file. Typically this will be a
    21199 # header file, but that's not assumed.
    21200 
    21201 
    21202 
    21203 # Now see if we can link the function. There are arguments for and against
    21204 # assuming argument 3 is a header file declaring the function. A correct
    21205 # function declaration is the main argument in favour. Having to cope with
    21206 # possible dependencies or other oddities are the main arguments against.
    21207 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21208 # Obviously, this has limits.
    21209 
    21210 
    21211 
    21212 # If we make it this far, we've verified the file and linked the function. Add
    21213 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    21214 # COIN_HAS_LBRY.
    21215 
    21216     ADDLIBS="$FMPLIB $ADDLIBS"
    21217 
    21218 cat >>confdefs.h <<\_ACEOF
    21219 #define COIN_HAS_FMP 1
    21220 _ACEOF
    21221 
    21222   fi
    21223 
    21224 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21225 # automake conditional. These actions must occur unconditionally.
    21226 
    21227 
    21228 
    21229 
    21230 
    21231 if test $coin_has_fmp = true; then
    21232   COIN_HAS_FMP_TRUE=
    21233   COIN_HAS_FMP_FALSE='#'
    21234 else
    21235   COIN_HAS_FMP_TRUE='#'
    21236   COIN_HAS_FMP_FALSE=
    21237 fi
    21238 
    21239   #ToDo! is Fortran?
    21240 
    21241   echo "$as_me:$LINENO: checking if user provides library for Mosek" >&5
    21242 echo $ECHO_N "checking if user provides library for Mosek... $ECHO_C" >&6
    21243 
    21244 # Check for header file directory
    21245 
    21246 
    21247 # Check whether --with-mosek-incdir or --without-mosek-incdir was given.
    21248 if test "${with_mosek_incdir+set}" = set; then
    21249   withval="$with_mosek_incdir"
    21250   MSKINCDIR=`cd $withval; pwd`
    21251 fi;
    21252 
    21253 # Check for library directory
    21254 
    21255 
    21256 # Check whether --with-mosek-lib or --without-mosek-lib was given.
    21257 if test "${with_mosek_lib+set}" = set; then
    21258   withval="$with_mosek_lib"
    21259   MSKLIB=$withval
    21260 fi;
    21261 
    21262 # Switch to disable library check if requested
    21263 
    21264   # Check whether --enable-mosek-libcheck or --disable-mosek-libcheck was given.
    21265 if test "${enable_mosek_libcheck+set}" = set; then
    21266   enableval="$enable_mosek_libcheck"
    21267   mosek_libcheck=$enableval
    21268 else
    21269   mosek_libcheck=yes
    21270 fi;
    21271 
    21272 # At this point, if we're going to use the library, both LBRYINCDIR and
    21273 # LBRYLIB must be defined and not empty.
    21274 
    21275   if test x"$MSKINCDIR" != x || test x"$MSKLIB" != x; then
    21276     if test x"$MSKINCDIR" = x || test x"$MSKLIB" = x; then
    21277       { { 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
    21278 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;}
    21279    { (exit 1); exit 1; }; }
    21280     fi
    21281     coin_has_msk=true
    21282     echo "$as_me:$LINENO: result: yes" >&5
    21283 echo "${ECHO_T}yes" >&6
    21284   else
    21285     coin_has_msk=false
    21286     echo "$as_me:$LINENO: result: no" >&5
    21287 echo "${ECHO_T}no" >&6
    21288   fi
    21289 
    21290 # If we have instructions for use, consider header and link checks.
    21291 
    21292   if test $coin_has_msk = true; then
    21293 
    21294 # If argument 3 (file) is given, check for the file. Typically this will be a
    21295 # header file, but that's not assumed.
    21296 
    21297     if test -r $MSKINCDIR/mosek.h; then
    21298 
    21299   :
    21300 else
    21301   { { echo "$as_me:$LINENO: error: Cannot find file mosek.h in $MSKINCDIR" >&5
    21302 echo "$as_me: error: Cannot find file mosek.h in $MSKINCDIR" >&2;}
    21303    { (exit 1); exit 1; }; }
    21304   :
    21305 fi
    21306 
    21307 
    21308 # Now see if we can link the function. There are arguments for and against
    21309 # assuming argument 3 is a header file declaring the function. A correct
    21310 # function declaration is the main argument in favour. Having to cope with
    21311 # possible dependencies or other oddities are the main arguments against.
    21312 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21313 # Obviously, this has limits.
    21314 
    21315     if test x"$mosek_libcheck" != xno; then
    21316            coin_save_LIBS="$LIBS"
    21317            LIBS="$MSKLIB $ADDLIBS"
    21318            coin_MSK_link=no
    21319            ac_ext=c
    21320 ac_cpp='$CPP $CPPFLAGS'
    21321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21324 
    21325            for fnm in MSK_openmosek ; do
    21326              echo "$as_me:$LINENO: checking whether symbol $fnm is available with MSK" >&5
    21327 echo $ECHO_N "checking whether symbol $fnm is available with MSK... $ECHO_C" >&6
    21328              cat >conftest.$ac_ext <<_ACEOF
    21329 /* confdefs.h.  */
    21330 _ACEOF
    21331 cat confdefs.h >>conftest.$ac_ext
    21332 cat >>conftest.$ac_ext <<_ACEOF
    21333 /* end confdefs.h.  */
    21334 
    21335 int
    21336 main ()
    21337 {
    21338 $fnm()
    21339   ;
    21340   return 0;
    21341 }
    21342 _ACEOF
    21343 rm -f conftest.$ac_objext conftest$ac_exeext
    21344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21345   (eval $ac_link) 2>conftest.er1
    21346   ac_status=$?
    21347   grep -v '^ *+' conftest.er1 >conftest.err
    21348   rm -f conftest.er1
    21349   cat conftest.err >&5
    21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21351   (exit $ac_status); } &&
    21352          { ac_try='test -z "$ac_c_werror_flag"
    21353                          || test ! -s conftest.err'
    21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21355   (eval $ac_try) 2>&5
    21356   ac_status=$?
    21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21358   (exit $ac_status); }; } &&
    21359          { ac_try='test -s conftest$ac_exeext'
    21360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21361   (eval $ac_try) 2>&5
    21362   ac_status=$?
    21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21364   (exit $ac_status); }; }; then
    21365   echo "$as_me:$LINENO: result: yes" >&5
    21366 echo "${ECHO_T}yes" >&6
    21367                   coin_MSK_link=yes
    21368                   break
    21369 else
    21370   echo "$as_me: failed program was:" >&5
    21371 sed 's/^/| /' conftest.$ac_ext >&5
    21372 
    21373 echo "$as_me:$LINENO: result: no" >&5
    21374 echo "${ECHO_T}no" >&6
    21375 fi
    21376 rm -f conftest.err conftest.$ac_objext \
    21377       conftest$ac_exeext conftest.$ac_ext
    21378            done
    21379            ac_ext=c
    21380 ac_cpp='$CPP $CPPFLAGS'
    21381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21384 
    21385            if test x"$coin_MSK_link" = xyes ; then
    21386              LIBS="$coin_save_LIBS"
    21387            else
    21388              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) MSK_openmosek with MSK" >&5
    21389 echo "$as_me: error: Cannot find symbol(s) MSK_openmosek with MSK" >&2;}
    21390    { (exit 1); exit 1; }; }
    21391            fi
    21392          fi
    21393 
    21394 
    21395 # If we make it this far, we've verified the file and linked the function. Add
    21396 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    21397 # COIN_HAS_LBRY.
    21398 
    21399     ADDLIBS="$MSKLIB $ADDLIBS"
     22656    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     22657echo "${ECHO_T}skipped check via pkg-config" >&6
     22658  fi
     22659
     22660else
     22661  echo "$as_me:$LINENO: result: $coin_has_msk" >&5
     22662echo "${ECHO_T}$coin_has_msk" >&6
     22663fi
     22664
     22665if test $coin_has_msk != skipping &&
     22666   test $coin_has_msk != notGiven ; then
     22667  if test -n "$MSK_CFLAGS" ; then
     22668    { echo "$as_me:$LINENO: Msk CFLAGS are $MSK_CFLAGS" >&5
     22669echo "$as_me: Msk CFLAGS are $MSK_CFLAGS" >&6;}
     22670  fi
     22671  if test -n "$MSK_LIBS" ; then
     22672    { echo "$as_me:$LINENO: Msk LIBS   are $MSK_LIBS" >&5
     22673echo "$as_me: Msk LIBS   are $MSK_LIBS" >&6;}
     22674  fi
     22675  if test -n "$MSK_DATA" ; then
     22676    { echo "$as_me:$LINENO: Msk DATA   is  $MSK_DATA" >&5
     22677echo "$as_me: Msk DATA   is  $MSK_DATA" >&6;}
     22678  fi
    2140022679
    2140122680cat >>confdefs.h <<\_ACEOF
     
    2140322682_ACEOF
    2140422683
    21405   fi
    21406 
    21407 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21408 # automake conditional. These actions must occur unconditionally.
    21409 
    21410 
    21411 
    21412 
    21413 
    21414 if test $coin_has_msk = true; then
     22684fi
     22685
     22686# Define the Makefile conditional
     22687
     22688
     22689if test $coin_has_msk != notGiven &&
     22690                test $coin_has_msk != skipping; then
    2141522691  COIN_HAS_MSK_TRUE=
    2141622692  COIN_HAS_MSK_FALSE='#'
     
    2142222698
    2142322699
    21424   echo "$as_me:$LINENO: checking if user provides library for Osl" >&5
    21425 echo $ECHO_N "checking if user provides library for Osl... $ECHO_C" >&6
    21426 
    21427 # Check for header file directory
    21428 
    21429 
    21430 # Check whether --with-osl-incdir or --without-osl-incdir was given.
    21431 if test "${with_osl_incdir+set}" = set; then
    21432   withval="$with_osl_incdir"
    21433   OSLINCDIR=`cd $withval; pwd`
     22700#AC_COIN_HAS_MODULE(Spx,     [osi-soplex])
     22701
     22702echo "$as_me:$LINENO: checking for COIN module Xpr" >&5
     22703echo $ECHO_N "checking for COIN module Xpr... $ECHO_C" >&6
     22704
     22705coin_has_xpr=notGiven
     22706
     22707# check if user wants to skip module in any case
     22708if test x"$COIN_SKIP_PROJECTS" != x; then
     22709  for dir in $COIN_SKIP_PROJECTS; do
     22710    if test $dir = "Xpr"; then
     22711      coin_has_xpr=skipping
     22712    fi
     22713  done
     22714fi
     22715
     22716XPR_LIBS=
     22717XPR_CFLAGS=
     22718XPR_DATA=
     22719
     22720
     22721
     22722
     22723
     22724required=1
     22725
     22726# execute third argument that can be used to overwrite flags like 'required'
     22727
     22728
     22729#check if user provided LIBS, CFLAGS, and DATA for module
     22730if test $coin_has_xpr != skipping; then
     22731
     22732
     22733# Check whether --with-m4_tolower(Xpr)-lib or --without-m4_tolower(Xpr)-lib was given.
     22734if test "${with_xpr_lib+set}" = set; then
     22735  withval="$with_xpr_lib"
     22736  coin_has_xpr=yes
     22737       XPR_LIBS="$withval"
     22738       if test $required = 1; then
     22739         ADDLIBS="$ADDLIBS $withval"
     22740       fi
     22741
    2143422742fi;
    2143522743
    21436 # Check for library directory
    21437 
    21438 
    21439 # Check whether --with-osl-lib or --without-osl-lib was given.
    21440 if test "${with_osl_lib+set}" = set; then
    21441   withval="$with_osl_lib"
    21442   OSLLIB=$withval
     22744
     22745# Check whether --with-m4_tolower(Xpr)-incdir or --without-m4_tolower(Xpr)-incdir was given.
     22746if test "${with_xpr_incdir+set}" = set; then
     22747  withval="$with_xpr_incdir"
     22748  coin_has_xpr=yes
     22749     XPR_CFLAGS="-I`${CYGPATH_W} $withval`"
    2144322750fi;
    2144422751
    21445 # Switch to disable library check if requested
    21446 
    21447   # Check whether --enable-osl-libcheck or --disable-osl-libcheck was given.
    21448 if test "${enable_osl_libcheck+set}" = set; then
    21449   enableval="$enable_osl_libcheck"
    21450   osl_libcheck=$enableval
    21451 else
    21452   osl_libcheck=yes
     22752
     22753# Check whether --with-m4_tolower(Xpr)-datadir or --without-m4_tolower(Xpr)-datadir was given.
     22754if test "${with_xpr_datadir+set}" = set; then
     22755  withval="$with_xpr_datadir"
     22756  coin_has_xpr=yes
     22757     XPR_DATA="$withval"
    2145322758fi;
    21454 
    21455 # At this point, if we're going to use the library, both LBRYINCDIR and
    21456 # LBRYLIB must be defined and not empty.
    21457 
    21458   if test x"$OSLINCDIR" != x || test x"$OSLLIB" != x; then
    21459     if test x"$OSLINCDIR" = x || test x"$OSLLIB" = x; then
    21460       { { 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
    21461 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;}
     22759fi
     22760
     22761if test $coin_has_xpr = notGiven; then
     22762  if test -n "$PKG_CONFIG" ; then
     22763    # assemble search path for pkg-config
     22764    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22765
     22766    # 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
     22767    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22768    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22769    if test -d "${prefix}"; then
     22770      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     22771    fi
     22772
     22773
     22774# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22775if test "${with_coin_instdir+set}" = set; then
     22776  withval="$with_coin_instdir"
     22777  if test -d "$withval"; then : ; else
     22778         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22779echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    2146222780   { (exit 1); exit 1; }; }
     22781       fi
     22782       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     22783
     22784fi;
     22785
     22786    # in a classic setup, we want to find uninstalled projects
     22787    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22788    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22789    # 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)
     22790    if test -e ../coin_subdirs.txt ; then
     22791      for i in `cat ../coin_subdirs.txt` ; do
     22792        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     22793      done
    2146322794    fi
    21464     coin_has_osl=true
    21465     echo "$as_me:$LINENO: result: yes" >&5
    21466 echo "${ECHO_T}yes" >&6
     22795
     22796    if test -e ../../coin_subdirs.txt ; then
     22797      for i in `cat ../../coin_subdirs.txt` ; do
     22798        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     22799      done
     22800    fi
     22801
     22802    # let pkg-config do it's magic
     22803    # need to export variable to be sure that the following pkg-config gets these values
     22804    export PKG_CONFIG_PATH
     22805
     22806
     22807
     22808if test -n "$PKG_CONFIG" ; then
     22809  if $PKG_CONFIG --exists "osi-xpress"; then
     22810    XPR_VERSIONS="`$PKG_CONFIG --modversion osi-xpress 2>/dev/null`"
     22811     cflags=`$PKG_CONFIG --cflags "osi-xpress" 2>/dev/null`
     22812    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     22813        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     22814        # but only do this if is not trivial
     22815    if test "$CYGPATH_W" != "echo" ; then
     22816      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     22817          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     22818        fi
     22819    XPR_CFLAGS="$cflags"
     22820    XPR_LIBS=`$PKG_CONFIG --libs "osi-xpress" 2>/dev/null`
     22821    XPR_DATA=`$PKG_CONFIG --variable=datadir "osi-xpress" 2>/dev/null`
     22822     coin_has_xpr=yes
     22823        echo "$as_me:$LINENO: result: yes: $XPR_VERSIONS" >&5
     22824echo "${ECHO_T}yes: $XPR_VERSIONS" >&6
     22825        if test $required = 1; then
     22826          REQUIREDPACKAGES="$REQUIREDPACKAGES osi-xpress"
     22827        fi
     22828
     22829
    2146722830  else
    21468     coin_has_osl=false
    21469     echo "$as_me:$LINENO: result: no" >&5
    21470 echo "${ECHO_T}no" >&6
    21471   fi
    21472 
    21473 # If we have instructions for use, consider header and link checks.
    21474 
    21475   if test $coin_has_osl = true; then
    21476 
    21477 # If argument 3 (file) is given, check for the file. Typically this will be a
    21478 # header file, but that's not assumed.
    21479 
    21480     if test -r $OSLINCDIR/ekk_c_api.h; then
    21481 
    21482   :
    21483 else
    21484   { { echo "$as_me:$LINENO: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&5
    21485 echo "$as_me: error: Cannot find file ekk_c_api.h in $OSLINCDIR" >&2;}
     22831    XPR_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors osi-xpress`
     22832      coin_has_xpr=notGiven
     22833        echo "$as_me:$LINENO: result: not given: $XPR_PKG_ERRORS" >&5
     22834echo "${ECHO_T}not given: $XPR_PKG_ERRORS" >&6
     22835
     22836  fi
     22837else
     22838  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&5
     22839echo "$as_me: error: \"Cannot check for existance of module Xpr without pkg-config\"" >&2;}
    2148622840   { (exit 1); exit 1; }; }
    21487   :
    21488 fi
    21489 
    21490 
    21491 # Now see if we can link the function. There are arguments for and against
    21492 # assuming argument 3 is a header file declaring the function. A correct
    21493 # function declaration is the main argument in favour. Having to cope with
    21494 # possible dependencies or other oddities are the main arguments against.
    21495 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21496 # Obviously, this has limits.
    21497 
    21498     if test x"$osl_libcheck" != xno; then
    21499            coin_save_LIBS="$LIBS"
    21500            LIBS="$OSLLIB $ADDLIBS"
    21501            coin_OSL_link=no
    21502            ac_ext=c
    21503 ac_cpp='$CPP $CPPFLAGS'
    21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21507 
    21508            for fnm in ekk_simplex ; do
    21509              echo "$as_me:$LINENO: checking whether symbol $fnm is available with OSL" >&5
    21510 echo $ECHO_N "checking whether symbol $fnm is available with OSL... $ECHO_C" >&6
    21511              cat >conftest.$ac_ext <<_ACEOF
    21512 /* confdefs.h.  */
    21513 _ACEOF
    21514 cat confdefs.h >>conftest.$ac_ext
    21515 cat >>conftest.$ac_ext <<_ACEOF
    21516 /* end confdefs.h.  */
    21517 
    21518 int
    21519 main ()
    21520 {
    21521 $fnm()
    21522   ;
    21523   return 0;
    21524 }
    21525 _ACEOF
    21526 rm -f conftest.$ac_objext conftest$ac_exeext
    21527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21528   (eval $ac_link) 2>conftest.er1
    21529   ac_status=$?
    21530   grep -v '^ *+' conftest.er1 >conftest.err
    21531   rm -f conftest.er1
    21532   cat conftest.err >&5
    21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21534   (exit $ac_status); } &&
    21535          { ac_try='test -z "$ac_c_werror_flag"
    21536                          || test ! -s conftest.err'
    21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21538   (eval $ac_try) 2>&5
    21539   ac_status=$?
    21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21541   (exit $ac_status); }; } &&
    21542          { ac_try='test -s conftest$ac_exeext'
    21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21544   (eval $ac_try) 2>&5
    21545   ac_status=$?
    21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21547   (exit $ac_status); }; }; then
    21548   echo "$as_me:$LINENO: result: yes" >&5
    21549 echo "${ECHO_T}yes" >&6
    21550                   coin_OSL_link=yes
    21551                   break
    21552 else
    21553   echo "$as_me: failed program was:" >&5
    21554 sed 's/^/| /' conftest.$ac_ext >&5
    21555 
    21556 echo "$as_me:$LINENO: result: no" >&5
    21557 echo "${ECHO_T}no" >&6
    21558 fi
    21559 rm -f conftest.err conftest.$ac_objext \
    21560       conftest$ac_exeext conftest.$ac_ext
    21561            done
    21562            ac_ext=c
    21563 ac_cpp='$CPP $CPPFLAGS'
    21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21567 
    21568            if test x"$coin_OSL_link" = xyes ; then
    21569              LIBS="$coin_save_LIBS"
    21570            else
    21571              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) ekk_simplex with OSL" >&5
    21572 echo "$as_me: error: Cannot find symbol(s) ekk_simplex with OSL" >&2;}
    21573    { (exit 1); exit 1; }; }
    21574            fi
    21575          fi
    21576 
    21577 
    21578 # If we make it this far, we've verified the file and linked the function. Add
    21579 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    21580 # COIN_HAS_LBRY.
    21581 
    21582     ADDLIBS="$OSLLIB $ADDLIBS"
    21583 
    21584 cat >>confdefs.h <<\_ACEOF
    21585 #define COIN_HAS_OSL 1
    21586 _ACEOF
    21587 
    21588   fi
    21589 
    21590 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21591 # automake conditional. These actions must occur unconditionally.
    21592 
    21593 
    21594 
    21595 
    21596 
    21597 if test $coin_has_osl = true; then
    21598   COIN_HAS_OSL_TRUE=
    21599   COIN_HAS_OSL_FALSE='#'
    21600 else
    21601   COIN_HAS_OSL_TRUE='#'
    21602   COIN_HAS_OSL_FALSE=
    21603 fi
    21604 
    21605 
    21606 
    21607   echo "$as_me:$LINENO: checking if user provides library for Soplex" >&5
    21608 echo $ECHO_N "checking if user provides library for Soplex... $ECHO_C" >&6
    21609 
    21610 # Check for header file directory
    21611 
    21612 
    21613 # Check whether --with-soplex-incdir or --without-soplex-incdir was given.
    21614 if test "${with_soplex_incdir+set}" = set; then
    21615   withval="$with_soplex_incdir"
    21616   SPXINCDIR=`cd $withval; pwd`
    21617 fi;
    21618 
    21619 # Check for library directory
    21620 
    21621 
    21622 # Check whether --with-soplex-lib or --without-soplex-lib was given.
    21623 if test "${with_soplex_lib+set}" = set; then
    21624   withval="$with_soplex_lib"
    21625   SPXLIB=$withval
    21626 fi;
    21627 
    21628 # Switch to disable library check if requested
    21629 
    21630   # Check whether --enable-soplex-libcheck or --disable-soplex-libcheck was given.
    21631 if test "${enable_soplex_libcheck+set}" = set; then
    21632   enableval="$enable_soplex_libcheck"
    21633   soplex_libcheck=$enableval
    21634 else
    21635   soplex_libcheck=yes
    21636 fi;
    21637 
    21638 # At this point, if we're going to use the library, both LBRYINCDIR and
    21639 # LBRYLIB must be defined and not empty.
    21640 
    21641   if test x"$SPXINCDIR" != x || test x"$SPXLIB" != x; then
    21642     if test x"$SPXINCDIR" = x || test x"$SPXLIB" = x; then
    21643       { { 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
    21644 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;}
    21645    { (exit 1); exit 1; }; }
    21646     fi
    21647     coin_has_spx=true
    21648     echo "$as_me:$LINENO: result: yes" >&5
    21649 echo "${ECHO_T}yes" >&6
     22841fi
     22842
     22843
     22844
     22845
     22846    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
    2165022847  else
    21651     coin_has_spx=false
    21652     echo "$as_me:$LINENO: result: no" >&5
    21653 echo "${ECHO_T}no" >&6
    21654   fi
    21655 
    21656 # If we have instructions for use, consider header and link checks.
    21657 
    21658   if test $coin_has_spx = true; then
    21659 
    21660 # If argument 3 (file) is given, check for the file. Typically this will be a
    21661 # header file, but that's not assumed.
    21662 
    21663     if test -r $SPXINCDIR/spxsolver.h; then
    21664 
    21665   :
    21666 else
    21667   { { echo "$as_me:$LINENO: error: Cannot find file spxsolver.h in $SPXINCDIR" >&5
    21668 echo "$as_me: error: Cannot find file spxsolver.h in $SPXINCDIR" >&2;}
    21669    { (exit 1); exit 1; }; }
    21670   :
    21671 fi
    21672 
    21673 
    21674 # Now see if we can link the function. There are arguments for and against
    21675 # assuming argument 3 is a header file declaring the function. A correct
    21676 # function declaration is the main argument in favour. Having to cope with
    21677 # possible dependencies or other oddities are the main arguments against.
    21678 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21679 # Obviously, this has limits.
    21680 
    21681 
    21682 
    21683 # If we make it this far, we've verified the file and linked the function. Add
    21684 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    21685 # COIN_HAS_LBRY.
    21686 
    21687     ADDLIBS="$SPXLIB $ADDLIBS"
    21688 
    21689 cat >>confdefs.h <<\_ACEOF
    21690 #define COIN_HAS_SPX 1
    21691 _ACEOF
    21692 
    21693   fi
    21694 
    21695 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21696 # automake conditional. These actions must occur unconditionally.
    21697 
    21698 
    21699 
    21700 
    21701 
    21702 if test $coin_has_spx = true; then
    21703   COIN_HAS_SPX_TRUE=
    21704   COIN_HAS_SPX_FALSE='#'
    21705 else
    21706   COIN_HAS_SPX_TRUE='#'
    21707   COIN_HAS_SPX_FALSE=
    21708 fi
    21709 
    21710  # ToDo
    21711 
    21712   echo "$as_me:$LINENO: checking if user provides library for Xpress" >&5
    21713 echo $ECHO_N "checking if user provides library for Xpress... $ECHO_C" >&6
    21714 
    21715 # Check for header file directory
    21716 
    21717 
    21718 # Check whether --with-xpress-incdir or --without-xpress-incdir was given.
    21719 if test "${with_xpress_incdir+set}" = set; then
    21720   withval="$with_xpress_incdir"
    21721   XPRINCDIR=`cd $withval; pwd`
    21722 fi;
    21723 
    21724 # Check for library directory
    21725 
    21726 
    21727 # Check whether --with-xpress-lib or --without-xpress-lib was given.
    21728 if test "${with_xpress_lib+set}" = set; then
    21729   withval="$with_xpress_lib"
    21730   XPRLIB=$withval
    21731 fi;
    21732 
    21733 # Switch to disable library check if requested
    21734 
    21735   # Check whether --enable-xpress-libcheck or --disable-xpress-libcheck was given.
    21736 if test "${enable_xpress_libcheck+set}" = set; then
    21737   enableval="$enable_xpress_libcheck"
    21738   xpress_libcheck=$enableval
    21739 else
    21740   xpress_libcheck=yes
    21741 fi;
    21742 
    21743 # At this point, if we're going to use the library, both LBRYINCDIR and
    21744 # LBRYLIB must be defined and not empty.
    21745 
    21746   if test x"$XPRINCDIR" != x || test x"$XPRLIB" != x; then
    21747     if test x"$XPRINCDIR" = x || test x"$XPRLIB" = x; then
    21748       { { 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
    21749 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;}
    21750    { (exit 1); exit 1; }; }
    21751     fi
    21752     coin_has_xpr=true
    21753     echo "$as_me:$LINENO: result: yes" >&5
    21754 echo "${ECHO_T}yes" >&6
    21755   else
    21756     coin_has_xpr=false
    21757     echo "$as_me:$LINENO: result: no" >&5
    21758 echo "${ECHO_T}no" >&6
    21759   fi
    21760 
    21761 # If we have instructions for use, consider header and link checks.
    21762 
    21763   if test $coin_has_xpr = true; then
    21764 
    21765 # If argument 3 (file) is given, check for the file. Typically this will be a
    21766 # header file, but that's not assumed.
    21767 
    21768     if test -r $XPRINCDIR/xprs.h; then
    21769 
    21770   :
    21771 else
    21772   { { echo "$as_me:$LINENO: error: Cannot find file xprs.h in $XPRINCDIR" >&5
    21773 echo "$as_me: error: Cannot find file xprs.h in $XPRINCDIR" >&2;}
    21774    { (exit 1); exit 1; }; }
    21775   :
    21776 fi
    21777 
    21778 
    21779 # Now see if we can link the function. There are arguments for and against
    21780 # assuming argument 3 is a header file declaring the function. A correct
    21781 # function declaration is the main argument in favour. Having to cope with
    21782 # possible dependencies or other oddities are the main arguments against.
    21783 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21784 # Obviously, this has limits.
    21785 
    21786     if test x"$xpress_libcheck" != xno; then
    21787            coin_save_LIBS="$LIBS"
    21788            LIBS="$XPRLIB $ADDLIBS"
    21789            coin_XPR_link=no
    21790            ac_ext=c
    21791 ac_cpp='$CPP $CPPFLAGS'
    21792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21795 
    21796            for fnm in XPRSsetintcontrol ; do
    21797              echo "$as_me:$LINENO: checking whether symbol $fnm is available with XPR" >&5
    21798 echo $ECHO_N "checking whether symbol $fnm is available with XPR... $ECHO_C" >&6
    21799              cat >conftest.$ac_ext <<_ACEOF
    21800 /* confdefs.h.  */
    21801 _ACEOF
    21802 cat confdefs.h >>conftest.$ac_ext
    21803 cat >>conftest.$ac_ext <<_ACEOF
    21804 /* end confdefs.h.  */
    21805 
    21806 int
    21807 main ()
    21808 {
    21809 $fnm()
    21810   ;
    21811   return 0;
    21812 }
    21813 _ACEOF
    21814 rm -f conftest.$ac_objext conftest$ac_exeext
    21815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21816   (eval $ac_link) 2>conftest.er1
    21817   ac_status=$?
    21818   grep -v '^ *+' conftest.er1 >conftest.err
    21819   rm -f conftest.er1
    21820   cat conftest.err >&5
    21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21822   (exit $ac_status); } &&
    21823          { ac_try='test -z "$ac_c_werror_flag"
    21824                          || test ! -s conftest.err'
    21825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21826   (eval $ac_try) 2>&5
    21827   ac_status=$?
    21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21829   (exit $ac_status); }; } &&
    21830          { ac_try='test -s conftest$ac_exeext'
    21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21832   (eval $ac_try) 2>&5
    21833   ac_status=$?
    21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21835   (exit $ac_status); }; }; then
    21836   echo "$as_me:$LINENO: result: yes" >&5
    21837 echo "${ECHO_T}yes" >&6
    21838                   coin_XPR_link=yes
    21839                   break
    21840 else
    21841   echo "$as_me: failed program was:" >&5
    21842 sed 's/^/| /' conftest.$ac_ext >&5
    21843 
    21844 echo "$as_me:$LINENO: result: no" >&5
    21845 echo "${ECHO_T}no" >&6
    21846 fi
    21847 rm -f conftest.err conftest.$ac_objext \
    21848       conftest$ac_exeext conftest.$ac_ext
    21849            done
    21850            ac_ext=c
    21851 ac_cpp='$CPP $CPPFLAGS'
    21852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21855 
    21856            if test x"$coin_XPR_link" = xyes ; then
    21857              LIBS="$coin_save_LIBS"
    21858            else
    21859              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) XPRSsetintcontrol with XPR" >&5
    21860 echo "$as_me: error: Cannot find symbol(s) XPRSsetintcontrol with XPR" >&2;}
    21861    { (exit 1); exit 1; }; }
    21862            fi
    21863          fi
    21864 
    21865 
    21866 # If we make it this far, we've verified the file and linked the function. Add
    21867 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    21868 # COIN_HAS_LBRY.
    21869 
    21870     ADDLIBS="$XPRLIB $ADDLIBS"
     22848    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     22849echo "${ECHO_T}skipped check via pkg-config" >&6
     22850  fi
     22851
     22852else
     22853  echo "$as_me:$LINENO: result: $coin_has_xpr" >&5
     22854echo "${ECHO_T}$coin_has_xpr" >&6
     22855fi
     22856
     22857if test $coin_has_xpr != skipping &&
     22858   test $coin_has_xpr != notGiven ; then
     22859  if test -n "$XPR_CFLAGS" ; then
     22860    { echo "$as_me:$LINENO: Xpr CFLAGS are $XPR_CFLAGS" >&5
     22861echo "$as_me: Xpr CFLAGS are $XPR_CFLAGS" >&6;}
     22862  fi
     22863  if test -n "$XPR_LIBS" ; then
     22864    { echo "$as_me:$LINENO: Xpr LIBS   are $XPR_LIBS" >&5
     22865echo "$as_me: Xpr LIBS   are $XPR_LIBS" >&6;}
     22866  fi
     22867  if test -n "$XPR_DATA" ; then
     22868    { echo "$as_me:$LINENO: Xpr DATA   is  $XPR_DATA" >&5
     22869echo "$as_me: Xpr DATA   is  $XPR_DATA" >&6;}
     22870  fi
    2187122871
    2187222872cat >>confdefs.h <<\_ACEOF
     
    2187422874_ACEOF
    2187522875
    21876   fi
    21877 
    21878 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    21879 # automake conditional. These actions must occur unconditionally.
    21880 
    21881 
    21882 
    21883 
    21884 
    21885 if test $coin_has_xpr = true; then
     22876fi
     22877
     22878# Define the Makefile conditional
     22879
     22880
     22881if test $coin_has_xpr != notGiven &&
     22882                test $coin_has_xpr != skipping; then
    2188622883  COIN_HAS_XPR_TRUE=
    2188722884  COIN_HAS_XPR_FALSE='#'
     
    2188922886  COIN_HAS_XPR_TRUE='#'
    2189022887  COIN_HAS_XPR_FALSE=
    21891 fi
    21892 
    21893 
    21894 
    21895 
    21896 if test "$PACKAGE_NAME" = ThirdPartyGlpk; then
    21897   coin_glpkobjdir=../Glpk
    21898 else
    21899   coin_glpkobjdir=../ThirdParty/Glpk
    21900 fi
    21901 coin_glpksrcdir=$abs_source_dir/$coin_glpkobjdir
    21902 
    21903 use_thirdpartyglpk=no
    21904 
    21905 # Check for the requested component. If the user specified an external glpk
    21906 # library don't force a ThirdParty build, let the error propagate.
    21907 
    21908 
    21909   echo "$as_me:$LINENO: checking if user provides library for Glpk" >&5
    21910 echo $ECHO_N "checking if user provides library for Glpk... $ECHO_C" >&6
    21911 
    21912 # Check for header file directory
    21913 
    21914 
    21915 # Check whether --with-glpk-incdir or --without-glpk-incdir was given.
    21916 if test "${with_glpk_incdir+set}" = set; then
    21917   withval="$with_glpk_incdir"
    21918   GLPKINCDIR=`cd $withval; pwd`
    21919 fi;
    21920 
    21921 # Check for library directory
    21922 
    21923 
    21924 # Check whether --with-glpk-lib or --without-glpk-lib was given.
    21925 if test "${with_glpk_lib+set}" = set; then
    21926   withval="$with_glpk_lib"
    21927   GLPKLIB=$withval
    21928 fi;
    21929 
    21930 # Switch to disable library check if requested
    21931 
    21932   # Check whether --enable-glpk-libcheck or --disable-glpk-libcheck was given.
    21933 if test "${enable_glpk_libcheck+set}" = set; then
    21934   enableval="$enable_glpk_libcheck"
    21935   glpk_libcheck=$enableval
    21936 else
    21937   glpk_libcheck=yes
    21938 fi;
    21939 
    21940 # At this point, if we're going to use the library, both LBRYINCDIR and
    21941 # LBRYLIB must be defined and not empty.
    21942 
    21943   if test x"$GLPKINCDIR" != x || test x"$GLPKLIB" != x; then
    21944     if test x"$GLPKINCDIR" = x || test x"$GLPKLIB" = x; then
    21945       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&5
    21946 echo "$as_me: error: You need to specify both an include directory and link flags to use library Glpk. Use --with-glpk-incdir of environment variable $GLPKINCDIR to specify the include directory. Use --with-glpk-lib or environment variable $GLPKLIB to specify link flags." >&2;}
    21947    { (exit 1); exit 1; }; }
    21948     fi
    21949     coin_has_glpk=true
    21950     echo "$as_me:$LINENO: result: yes" >&5
    21951 echo "${ECHO_T}yes" >&6
    21952   else
    21953     coin_has_glpk=false
    21954     echo "$as_me:$LINENO: result: no" >&5
    21955 echo "${ECHO_T}no" >&6
    21956   fi
    21957 
    21958 # If we have instructions for use, consider header and link checks.
    21959 
    21960   if test $coin_has_glpk = true; then
    21961 
    21962 # If argument 3 (file) is given, check for the file. Typically this will be a
    21963 # header file, but that's not assumed.
    21964 
    21965     if test -r $GLPKINCDIR/glpk.h; then
    21966 
    21967   :
    21968 else
    21969   { { echo "$as_me:$LINENO: error: Cannot find file glpk.h in $GLPKINCDIR" >&5
    21970 echo "$as_me: error: Cannot find file glpk.h in $GLPKINCDIR" >&2;}
    21971    { (exit 1); exit 1; }; }
    21972   :
    21973 fi
    21974 
    21975 
    21976 # Now see if we can link the function. There are arguments for and against
    21977 # assuming argument 3 is a header file declaring the function. A correct
    21978 # function declaration is the main argument in favour. Having to cope with
    21979 # possible dependencies or other oddities are the main arguments against.
    21980 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    21981 # Obviously, this has limits.
    21982 
    21983     if test x"$glpk_libcheck" != xno; then
    21984            coin_save_LIBS="$LIBS"
    21985            LIBS="$GLPKLIB $ADDLIBS"
    21986            coin_GLPK_link=no
    21987            ac_ext=c
    21988 ac_cpp='$CPP $CPPFLAGS'
    21989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21992 
    21993            for fnm in _glp_lpx_simplex glp_lpx_simplex ; do
    21994              echo "$as_me:$LINENO: checking whether symbol $fnm is available with GLPK" >&5
    21995 echo $ECHO_N "checking whether symbol $fnm is available with GLPK... $ECHO_C" >&6
    21996              cat >conftest.$ac_ext <<_ACEOF
    21997 /* confdefs.h.  */
    21998 _ACEOF
    21999 cat confdefs.h >>conftest.$ac_ext
    22000 cat >>conftest.$ac_ext <<_ACEOF
    22001 /* end confdefs.h.  */
    22002 
    22003 int
    22004 main ()
    22005 {
    22006 $fnm()
    22007   ;
    22008   return 0;
    22009 }
    22010 _ACEOF
    22011 rm -f conftest.$ac_objext conftest$ac_exeext
    22012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22013   (eval $ac_link) 2>conftest.er1
    22014   ac_status=$?
    22015   grep -v '^ *+' conftest.er1 >conftest.err
    22016   rm -f conftest.er1
    22017   cat conftest.err >&5
    22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22019   (exit $ac_status); } &&
    22020          { ac_try='test -z "$ac_c_werror_flag"
    22021                          || test ! -s conftest.err'
    22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22023   (eval $ac_try) 2>&5
    22024   ac_status=$?
    22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22026   (exit $ac_status); }; } &&
    22027          { ac_try='test -s conftest$ac_exeext'
    22028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22029   (eval $ac_try) 2>&5
    22030   ac_status=$?
    22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22032   (exit $ac_status); }; }; then
    22033   echo "$as_me:$LINENO: result: yes" >&5
    22034 echo "${ECHO_T}yes" >&6
    22035                   coin_GLPK_link=yes
    22036                   break
    22037 else
    22038   echo "$as_me: failed program was:" >&5
    22039 sed 's/^/| /' conftest.$ac_ext >&5
    22040 
    22041 echo "$as_me:$LINENO: result: no" >&5
    22042 echo "${ECHO_T}no" >&6
    22043 fi
    22044 rm -f conftest.err conftest.$ac_objext \
    22045       conftest$ac_exeext conftest.$ac_ext
    22046            done
    22047            ac_ext=c
    22048 ac_cpp='$CPP $CPPFLAGS'
    22049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22052 
    22053            if test x"$coin_GLPK_link" = xyes ; then
    22054              LIBS="$coin_save_LIBS"
    22055            else
    22056              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) _glp_lpx_simplex glp_lpx_simplex with GLPK" >&5
    22057 echo "$as_me: error: Cannot find symbol(s) _glp_lpx_simplex glp_lpx_simplex with GLPK" >&2;}
    22058    { (exit 1); exit 1; }; }
    22059            fi
    22060          fi
    22061 
    22062 
    22063 # If we make it this far, we've verified the file and linked the function. Add
    22064 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    22065 # COIN_HAS_LBRY.
    22066 
    22067     ADDLIBS="$GLPKLIB $ADDLIBS"
    22068 
    22069 cat >>confdefs.h <<\_ACEOF
    22070 #define COIN_HAS_GLPK 1
    22071 _ACEOF
    22072 
    22073   fi
    22074 
    22075 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    22076 # automake conditional. These actions must occur unconditionally.
    22077 
    22078 
    22079 
    22080 
    22081 
    22082 if test $coin_has_glpk = true; then
    22083   COIN_HAS_GLPK_TRUE=
    22084   COIN_HAS_GLPK_FALSE='#'
    22085 else
    22086   COIN_HAS_GLPK_TRUE='#'
    22087   COIN_HAS_GLPK_FALSE=
    22088 fi
    22089 
    22090 
    22091  if test x"$coin_has_glpk" = xfalse && test x"$GLPKLIB" = x ; then
    22092    use_thirdpartyglpk=try
    22093  fi
    22094 
    22095 
    22096 # If the user has supplied an external library, use it. Otherwise, consider
    22097 # a build in ThirdParty/Glpk. If we build, assume we get both glpk and gmpl.
    22098 
    22099 if test x"$use_thirdpartyglpk" = xtry ; then
    22100   MAKEOKFILE=.MakeOk
    22101   # Check if the Glpk's ThirdParty project has been configured
    22102   if test "$PACKAGE_NAME" != ThirdPartyGlpk; then
    22103     if test -r $coin_glpkobjdir/.MakeOk; then
    22104       use_thirdpartyglpk=build
    22105     else
    22106       use_thirdpartyglpk=no
    22107     fi
    22108   else
    22109     use_thirdpartyglpk=build
    22110   fi
    22111 
    22112 # If we're building, set the library and include directory variables, create a
    22113 # preprocessor symbol, define a variable that says we're using glpk/gmpl, and
    22114 # another to indicate a link check is a bad idea (hard to do before the library
    22115 # exists).
    22116 
    22117   if test x"$use_thirdpartyglpk" = xbuild ; then
    22118     GLPKINCDIR="$coin_glpksrcdir/glpk/include"
    22119 
    22120 
    22121 cat >>confdefs.h <<\_ACEOF
    22122 #define COIN_HAS_GLPK 1
    22123 _ACEOF
    22124 
    22125     coin_has_glpk=true
    22126     glpk_libcheck=no
    22127     GLPKOBJDIR=`cd $coin_glpkobjdir; pwd`
    22128 
    22129     { echo "$as_me:$LINENO: Using Glpk in ThirdParty/Glpk" >&5
    22130 echo "$as_me: Using Glpk in ThirdParty/Glpk" >&6;}
    22131   fi
    22132 fi
    22133 
    22134 # Define the necessary automake conditionals.
    22135 
    22136 
    22137 
    22138 if test x"$coin_has_glpk" = xtrue; then
    22139   COIN_HAS_GLPK_TRUE=
    22140   COIN_HAS_GLPK_FALSE='#'
    22141 else
    22142   COIN_HAS_GLPK_TRUE='#'
    22143   COIN_HAS_GLPK_FALSE=
    22144 fi
    22145 
    22146 
    22147 
    22148 if test x"$use_thirdpartyglpk" = xbuild; then
    22149   COIN_BUILD_GLPK_TRUE=
    22150   COIN_BUILD_GLPK_FALSE='#'
    22151 else
    22152   COIN_BUILD_GLPK_TRUE='#'
    22153   COIN_BUILD_GLPK_FALSE=
    2215422888fi
    2215522889
     
    2216222896
    2216322897# Ampl Solver library
    22164 coin_aslobjdir=../ThirdParty/ASL
    22165 coin_aslsrcdir=$srcdir/$coin_aslobjdir
    22166 
    22167 # Determine the name of the ASL library
    22168 case "$CC" in
    22169   cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    22170     ampllib=amplsolv.lib ;;
    22171   *)
    22172     ampllib=amplsolver.a ;;
    22173 esac
    22174 
    22175 
    22176 # Check whether --with-asldir or --without-asldir was given.
    22177 if test "${with_asldir+set}" = set; then
    22178   withval="$with_asldir"
    22179   use_asldir=$withval
    22180 else
    22181   use_asldir=
     22898
     22899echo "$as_me:$LINENO: checking for COIN module ASL" >&5
     22900echo $ECHO_N "checking for COIN module ASL... $ECHO_C" >&6
     22901
     22902coin_has_asl=notGiven
     22903
     22904# check if user wants to skip module in any case
     22905if test x"$COIN_SKIP_PROJECTS" != x; then
     22906  for dir in $COIN_SKIP_PROJECTS; do
     22907    if test $dir = "ASL"; then
     22908      coin_has_asl=skipping
     22909    fi
     22910  done
     22911fi
     22912
     22913ASL_LIBS=
     22914ASL_CFLAGS=
     22915ASL_DATA=
     22916
     22917
     22918
     22919
     22920
     22921required=1
     22922
     22923# execute third argument that can be used to overwrite flags like 'required'
     22924required=0
     22925
     22926#check if user provided LIBS, CFLAGS, and DATA for module
     22927if test $coin_has_asl != skipping; then
     22928
     22929
     22930# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
     22931if test "${with_asl_lib+set}" = set; then
     22932  withval="$with_asl_lib"
     22933  coin_has_asl=yes
     22934       ASL_LIBS="$withval"
     22935       if test $required = 1; then
     22936         ADDLIBS="$ADDLIBS $withval"
     22937       fi
     22938
    2218222939fi;
    2218322940
    22184 if test "$use_asldir" = BUILD; then
    22185   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    22186     # If we are configuring ThirdParty/ASL, don't check
    22187     if test -r $coin_aslobjdir/.MakeOk; then :; else
    22188       { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&5
    22189 echo "$as_me: error: option \"BUILD\" specified for asldir, but directory is not configure (sources missing?)" >&2;}
     22941
     22942# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
     22943if test "${with_asl_incdir+set}" = set; then
     22944  withval="$with_asl_incdir"
     22945  coin_has_asl=yes
     22946     ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
     22947fi;
     22948
     22949
     22950# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
     22951if test "${with_asl_datadir+set}" = set; then
     22952  withval="$with_asl_datadir"
     22953  coin_has_asl=yes
     22954     ASL_DATA="$withval"
     22955fi;
     22956fi
     22957
     22958if test $coin_has_asl = notGiven; then
     22959  if test -n "$PKG_CONFIG" ; then
     22960    # assemble search path for pkg-config
     22961    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     22962
     22963    # 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
     22964    # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     22965    # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     22966    if test -d "${prefix}"; then
     22967      PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:$PKG_CONFIG_PATH"
     22968    fi
     22969
     22970
     22971# Check whether --with-coin-instdir or --without-coin-instdir was given.
     22972if test "${with_coin_instdir+set}" = set; then
     22973  withval="$with_coin_instdir"
     22974  if test -d "$withval"; then : ; else
     22975         { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     22976echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
    2219022977   { (exit 1); exit 1; }; }
     22978       fi
     22979       PKG_CONFIG_PATH="$withval/lib/pkgconfig:$PKG_CONFIG_PATH"
     22980
     22981fi;
     22982
     22983    # in a classic setup, we want to find uninstalled projects
     22984    # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     22985    # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     22986    # 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)
     22987    if test -e ../coin_subdirs.txt ; then
     22988      for i in `cat ../coin_subdirs.txt` ; do
     22989        PKG_CONFIG_PATH="../$i:$PKG_CONFIG_PATH"
     22990      done
    2219122991    fi
    22192   fi
    22193 elif test -z "$use_asldir"; then
    22194  # try to find sources - if not given don't compile
    22195   if test "$PACKAGE_NAME" != ThirdPartyASL; then
    22196     if test -r $coin_aslobjdir/.MakeOk; then
    22197       use_asldir=BUILD
    22198     else
    22199       use_asldir=no
     22992
     22993    if test -e ../../coin_subdirs.txt ; then
     22994      for i in `cat ../../coin_subdirs.txt` ; do
     22995        PKG_CONFIG_PATH="../../$i:$PKG_CONFIG_PATH"
     22996      done
    2220022997    fi
     22998
     22999    # let pkg-config do it's magic
     23000    # need to export variable to be sure that the following pkg-config gets these values
     23001    export PKG_CONFIG_PATH
     23002
     23003
     23004
     23005if test -n "$PKG_CONFIG" ; then
     23006  if $PKG_CONFIG --exists "coinasl"; then
     23007    ASL_VERSIONS="`$PKG_CONFIG --modversion coinasl 2>/dev/null`"
     23008     cflags=`$PKG_CONFIG --cflags "coinasl" 2>/dev/null`
     23009    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23010        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23011        # but only do this if is not trivial
     23012    if test "$CYGPATH_W" != "echo" ; then
     23013      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23014          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23015        fi
     23016    ASL_CFLAGS="$cflags"
     23017    ASL_LIBS=`$PKG_CONFIG --libs "coinasl" 2>/dev/null`
     23018    ASL_DATA=`$PKG_CONFIG --variable=datadir "coinasl" 2>/dev/null`
     23019     coin_has_asl=yes
     23020        echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
     23021echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
     23022        if test $required = 1; then
     23023          REQUIREDPACKAGES="$REQUIREDPACKAGES coinasl"
     23024        fi
     23025
     23026
    2220123027  else
    22202     use_asldir=no
    22203   fi
    22204 elif test "$use_asldir" != "no"; then
    22205   if test -r $use_asldir/$ampllib; then
    22206 
    22207   :
    22208 else
    22209   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but library missing" >&5
    22210 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but library missing" >&2;}
     23028    ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinasl`
     23029      coin_has_asl=notGiven
     23030        echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
     23031echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
     23032
     23033  fi
     23034else
     23035  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
     23036echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
    2221123037   { (exit 1); exit 1; }; }
    22212   :
    22213 fi
    22214 
    22215   if test -r $use_asldir/asl.h; then
    22216 
    22217   :
    22218 else
    22219   { { echo "$as_me:$LINENO: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&5
    22220 echo "$as_me: error: ASL directory \"$use_asldir\" specified, but header files are missing" >&2;}
    22221    { (exit 1); exit 1; }; }
    22222   :
    22223 fi
    22224 
    22225   use_asldir=`cd $use_asldir; pwd`
    22226   case $build in
    22227     *-cygwin*) use_asldir=`cygpath -w $use_asldir | sed -e sX\\\\\\\\X/Xg` ;;
    22228   esac
    22229 fi
    22230 
    22231 # Variable containing ASL library (including full path)
    22232 
    22233 # Variable containing flags for including ASL header files
    22234 
    22235 
    22236 if test "$use_asldir" = BUILD; then
    22237   coin_aslobjdir=`cd $coin_aslobjdir; pwd`
    22238   ASLLIB=`$CYGPATH_W $coin_aslobjdir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    22239   coin_aslsrcdir=`cd $coin_aslsrcdir; pwd`
    22240   ASL_CPPFLAGS="-I"`$CYGPATH_W $coin_aslobjdir | sed -e sX\\\\\\\\X/Xg`" -I"`$CYGPATH_W $coin_aslsrcdir/solvers | sed -e sX\\\\\\\\X/Xg`
    22241 elif test "$use_asldir" != no; then
    22242   ASLLIB=`$CYGPATH_W $use_asldir/$ampllib | sed -e sX\\\\\\\\X/Xg`
    22243   ASL_CPPFLAGS="-I"`$CYGPATH_W $use_asldir | sed -e sX\\\\\\\\X/Xg`
    22244 fi
    22245 
    22246 if test "$use_asldir" != no; then
    22247   ac_ext=c
    22248 ac_cpp='$CPP $CPPFLAGS'
    22249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22252 
    22253   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    22254 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    22255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    22256   echo $ECHO_N "(cached) $ECHO_C" >&6
    22257 else
    22258   ac_check_lib_save_LIBS=$LIBS
    22259 LIBS="-ldl  $LIBS"
    22260 cat >conftest.$ac_ext <<_ACEOF
    22261 /* confdefs.h.  */
    22262 _ACEOF
    22263 cat confdefs.h >>conftest.$ac_ext
    22264 cat >>conftest.$ac_ext <<_ACEOF
    22265 /* end confdefs.h.  */
    22266 
    22267 /* Override any gcc2 internal prototype to avoid an error.  */
    22268 #ifdef __cplusplus
    22269 extern "C"
    22270 #endif
    22271 /* We use char because int might match the return type of a gcc2
    22272    builtin and then its argument prototype would still apply.  */
    22273 char dlopen ();
    22274 int
    22275 main ()
    22276 {
    22277 dlopen ();
    22278   ;
    22279   return 0;
    22280 }
    22281 _ACEOF
    22282 rm -f conftest.$ac_objext conftest$ac_exeext
    22283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22284   (eval $ac_link) 2>conftest.er1
    22285   ac_status=$?
    22286   grep -v '^ *+' conftest.er1 >conftest.err
    22287   rm -f conftest.er1
    22288   cat conftest.err >&5
    22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22290   (exit $ac_status); } &&
    22291          { ac_try='test -z "$ac_c_werror_flag"
    22292                          || test ! -s conftest.err'
    22293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22294   (eval $ac_try) 2>&5
    22295   ac_status=$?
    22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22297   (exit $ac_status); }; } &&
    22298          { ac_try='test -s conftest$ac_exeext'
    22299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22300   (eval $ac_try) 2>&5
    22301   ac_status=$?
    22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22303   (exit $ac_status); }; }; then
    22304   ac_cv_lib_dl_dlopen=yes
    22305 else
    22306   echo "$as_me: failed program was:" >&5
    22307 sed 's/^/| /' conftest.$ac_ext >&5
    22308 
    22309 ac_cv_lib_dl_dlopen=no
    22310 fi
    22311 rm -f conftest.err conftest.$ac_objext \
    22312       conftest$ac_exeext conftest.$ac_ext
    22313 LIBS=$ac_check_lib_save_LIBS
    22314 fi
    22315 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    22316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    22317 if test $ac_cv_lib_dl_dlopen = yes; then
    22318   ASLLIB="$ASLLIB -ldl"
    22319 fi
    22320 
    22321   coin_has_asl=yes
     23038fi
     23039
     23040
     23041
     23042
     23043    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23044  else
     23045    echo "$as_me:$LINENO: result: skipped check via pkg-config" >&5
     23046echo "${ECHO_T}skipped check via pkg-config" >&6
     23047  fi
     23048
     23049else
     23050  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
     23051echo "${ECHO_T}$coin_has_asl" >&6
     23052fi
     23053
     23054if test $coin_has_asl != skipping &&
     23055   test $coin_has_asl != notGiven ; then
     23056  if test -n "$ASL_CFLAGS" ; then
     23057    { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
     23058echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
     23059  fi
     23060  if test -n "$ASL_LIBS" ; then
     23061    { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
     23062echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
     23063  fi
     23064  if test -n "$ASL_DATA" ; then
     23065    { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
     23066echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
     23067  fi
    2232223068
    2232323069cat >>confdefs.h <<\_ACEOF
     
    2232523071_ACEOF
    2232623072
    22327   ac_ext=c
    22328 ac_cpp='$CPP $CPPFLAGS'
    22329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22332 
    22333 else
    22334   coin_has_asl=no
    22335 fi
    22336 
    22337 
    22338 if test $coin_has_asl = yes; then
     23073fi
     23074
     23075# Define the Makefile conditional
     23076
     23077
     23078if test $coin_has_asl != notGiven &&
     23079                test $coin_has_asl != skipping; then
    2233923080  COIN_HAS_ASL_TRUE=
    2234023081  COIN_HAS_ASL_FALSE='#'
     
    2234323084  COIN_HAS_ASL_FALSE=
    2234423085fi
     23086
    2234523087
    2234623088
     
    2262623368# Here list all the files that configure should create (except for the
    2262723369# configuration header file)
    22628                                                   ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile test/Makefile cbc_addlibs.txt"
     23370                                                                      ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile test/Makefile cbc_addlibs.txt cbc.pc cbc-uninstalled.pc"
    2262923371
    2263023372
     
    2269123433  fi
    2269223434
     23435  # need to come before AC_OUTPUT
     23436  if test x$coin_projectdir != xyes; then
     23437    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     23438    echo $coin_subdirs > coin_subdirs.txt
     23439  else
     23440    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     23441    ABSBUILDDIR="`pwd`"
     23442
     23443  fi
     23444
    2269323445  cat >confcache <<\_ACEOF
    2269423446# This file is a shell script that caches the results of configure
     
    2282423576   { (exit 1); exit 1; }; }
    2282523577fi
    22826 if test -z "${COIN_HAS_CBC_TRUE}" && test -z "${COIN_HAS_CBC_FALSE}"; then
    22827   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CBC\" was never defined.
     23578if test -z "${COIN_HAS_COINDEPEND_TRUE}" && test -z "${COIN_HAS_COINDEPEND_FALSE}"; then
     23579  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
    2282823580Usually this means the macro was only invoked conditionally." >&5
    22829 echo "$as_me: error: conditional \"COIN_HAS_CBC\" was never defined.
    22830 Usually this means the macro was only invoked conditionally." >&2;}
    22831    { (exit 1); exit 1; }; }
    22832 fi
    22833 if test -z "${COIN_HAS_CGL_TRUE}" && test -z "${COIN_HAS_CGL_FALSE}"; then
    22834   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CGL\" was never defined.
    22835 Usually this means the macro was only invoked conditionally." >&5
    22836 echo "$as_me: error: conditional \"COIN_HAS_CGL\" was never defined.
     23581echo "$as_me: error: conditional \"COIN_HAS_COINDEPEND\" was never defined.
    2283723582Usually this means the macro was only invoked conditionally." >&2;}
    2283823583   { (exit 1); exit 1; }; }
     
    2284523590   { (exit 1); exit 1; }; }
    2284623591fi
    22847 if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
    22848   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
    22849 Usually this means the macro was only invoked conditionally." >&5
    22850 echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
    22851 Usually this means the macro was only invoked conditionally." >&2;}
    22852    { (exit 1); exit 1; }; }
    22853 fi
    2285423592if test -z "${COIN_HAS_DYLP_TRUE}" && test -z "${COIN_HAS_DYLP_FALSE}"; then
    2285523593  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DYLP\" was never defined.
     
    2285923597   { (exit 1); exit 1; }; }
    2286023598fi
    22861 if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
    22862   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
    22863 Usually this means the macro was only invoked conditionally." >&5
    22864 echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
    22865 Usually this means the macro was only invoked conditionally." >&2;}
    22866    { (exit 1); exit 1; }; }
    22867 fi
    2286823599if test -z "${COIN_HAS_VOL_TRUE}" && test -z "${COIN_HAS_VOL_FALSE}"; then
    2286923600  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_VOL\" was never defined.
     
    2287323604   { (exit 1); exit 1; }; }
    2287423605fi
    22875 if test -z "${COIN_HAS_SYMPHONY_TRUE}" && test -z "${COIN_HAS_SYMPHONY_FALSE}"; then
    22876   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SYMPHONY\" was never defined.
     23606if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
     23607  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
    2287723608Usually this means the macro was only invoked conditionally." >&5
    22878 echo "$as_me: error: conditional \"COIN_HAS_SYMPHONY\" was never defined.
     23609echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
     23610Usually this means the macro was only invoked conditionally." >&2;}
     23611   { (exit 1); exit 1; }; }
     23612fi
     23613if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
     23614  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
     23615Usually this means the macro was only invoked conditionally." >&5
     23616echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
     23617Usually this means the macro was only invoked conditionally." >&2;}
     23618   { (exit 1); exit 1; }; }
     23619fi
     23620if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
     23621  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
     23622Usually this means the macro was only invoked conditionally." >&5
     23623echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
     23624Usually this means the macro was only invoked conditionally." >&2;}
     23625   { (exit 1); exit 1; }; }
     23626fi
     23627if test -z "${COIN_HAS_MIPLIB3_TRUE}" && test -z "${COIN_HAS_MIPLIB3_FALSE}"; then
     23628  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MIPLIB3\" was never defined.
     23629Usually this means the macro was only invoked conditionally." >&5
     23630echo "$as_me: error: conditional \"COIN_HAS_MIPLIB3\" was never defined.
    2287923631Usually this means the macro was only invoked conditionally." >&2;}
    2288023632   { (exit 1); exit 1; }; }
     
    2288723639   { (exit 1); exit 1; }; }
    2288823640fi
    22889 if test -z "${COIN_HAS_CPX_TRUE}" && test -z "${COIN_HAS_CPX_FALSE}"; then
    22890   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CPX\" was never defined.
     23641if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
     23642  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
    2289123643Usually this means the macro was only invoked conditionally." >&5
    22892 echo "$as_me: error: conditional \"COIN_HAS_CPX\" was never defined.
    22893 Usually this means the macro was only invoked conditionally." >&2;}
    22894    { (exit 1); exit 1; }; }
    22895 fi
    22896 if test -z "${COIN_HAS_FMP_TRUE}" && test -z "${COIN_HAS_FMP_FALSE}"; then
    22897   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_FMP\" was never defined.
    22898 Usually this means the macro was only invoked conditionally." >&5
    22899 echo "$as_me: error: conditional \"COIN_HAS_FMP\" was never defined.
     23644echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
    2290023645Usually this means the macro was only invoked conditionally." >&2;}
    2290123646   { (exit 1); exit 1; }; }
     
    2290823653   { (exit 1); exit 1; }; }
    2290923654fi
    22910 if test -z "${COIN_HAS_OSL_TRUE}" && test -z "${COIN_HAS_OSL_FALSE}"; then
    22911   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSL\" was never defined.
    22912 Usually this means the macro was only invoked conditionally." >&5
    22913 echo "$as_me: error: conditional \"COIN_HAS_OSL\" was never defined.
    22914 Usually this means the macro was only invoked conditionally." >&2;}
    22915    { (exit 1); exit 1; }; }
    22916 fi
    22917 if test -z "${COIN_HAS_SPX_TRUE}" && test -z "${COIN_HAS_SPX_FALSE}"; then
    22918   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SPX\" was never defined.
    22919 Usually this means the macro was only invoked conditionally." >&5
    22920 echo "$as_me: error: conditional \"COIN_HAS_SPX\" was never defined.
    22921 Usually this means the macro was only invoked conditionally." >&2;}
    22922    { (exit 1); exit 1; }; }
    22923 fi
    2292423655if test -z "${COIN_HAS_XPR_TRUE}" && test -z "${COIN_HAS_XPR_FALSE}"; then
    2292523656  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_XPR\" was never defined.
    2292623657Usually this means the macro was only invoked conditionally." >&5
    2292723658echo "$as_me: error: conditional \"COIN_HAS_XPR\" was never defined.
    22928 Usually this means the macro was only invoked conditionally." >&2;}
    22929    { (exit 1); exit 1; }; }
    22930 fi
    22931 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
    22932   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22933 Usually this means the macro was only invoked conditionally." >&5
    22934 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22935 Usually this means the macro was only invoked conditionally." >&2;}
    22936    { (exit 1); exit 1; }; }
    22937 fi
    22938 if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
    22939   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22940 Usually this means the macro was only invoked conditionally." >&5
    22941 echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
    22942 Usually this means the macro was only invoked conditionally." >&2;}
    22943    { (exit 1); exit 1; }; }
    22944 fi
    22945 if test -z "${COIN_BUILD_GLPK_TRUE}" && test -z "${COIN_BUILD_GLPK_FALSE}"; then
    22946   { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_GLPK\" was never defined.
    22947 Usually this means the macro was only invoked conditionally." >&5
    22948 echo "$as_me: error: conditional \"COIN_BUILD_GLPK\" was never defined.
    2294923659Usually this means the macro was only invoked conditionally." >&2;}
    2295023660   { (exit 1); exit 1; }; }
     
    2323523945cat >&5 <<_CSEOF
    2323623946
    23237 This file was extended by Cbc $as_me 2.5devel, which was
     23947This file was extended by Cbc $as_me split, which was
    2323823948generated by GNU Autoconf 2.59.  Invocation command line was
    2323923949
     
    2329824008cat >>$CONFIG_STATUS <<_ACEOF
    2329924009ac_cs_version="\\
    23300 Cbc config.status 2.5devel
     24010Cbc config.status split
    2330124011configured by $0, generated by GNU Autoconf 2.59,
    2330224012  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     
    2341324123  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
    2341424124  "cbc_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES cbc_addlibs.txt" ;;
     24125  "cbc.pc" ) CONFIG_FILES="$CONFIG_FILES cbc.pc" ;;
     24126  "cbc-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES cbc-uninstalled.pc" ;;
    2341524127  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2341624128  "inc/config_cbc.h" ) CONFIG_HEADERS="$CONFIG_HEADERS inc/config_cbc.h" ;;
     
    2359924311s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2360024312s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    23601 s,@CBCSRCDIR@,$CBCSRCDIR,;t t
    23602 s,@CBCOBJDIR@,$CBCOBJDIR,;t t
    23603 s,@CBCDOCDIR@,$CBCDOCDIR,;t t
    23604 s,@COIN_HAS_CBC_TRUE@,$COIN_HAS_CBC_TRUE,;t t
    23605 s,@COIN_HAS_CBC_FALSE@,$COIN_HAS_CBC_FALSE,;t t
    23606 s,@CGLSRCDIR@,$CGLSRCDIR,;t t
    23607 s,@CGLOBJDIR@,$CGLOBJDIR,;t t
    23608 s,@CGLDOCDIR@,$CGLDOCDIR,;t t
    23609 s,@COIN_HAS_CGL_TRUE@,$COIN_HAS_CGL_TRUE,;t t
    23610 s,@COIN_HAS_CGL_FALSE@,$COIN_HAS_CGL_FALSE,;t t
    23611 s,@CLPSRCDIR@,$CLPSRCDIR,;t t
    23612 s,@CLPOBJDIR@,$CLPOBJDIR,;t t
    23613 s,@CLPDOCDIR@,$CLPDOCDIR,;t t
     24313s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     24314s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     24315s,@COINDEPEND_LIBS@,$COINDEPEND_LIBS,;t t
     24316s,@COINDEPEND_CFLAGS@,$COINDEPEND_CFLAGS,;t t
     24317s,@COINDEPEND_DATA@,$COINDEPEND_DATA,;t t
     24318s,@REQUIREDPACKAGES@,$REQUIREDPACKAGES,;t t
     24319s,@COIN_HAS_COINDEPEND_TRUE@,$COIN_HAS_COINDEPEND_TRUE,;t t
     24320s,@COIN_HAS_COINDEPEND_FALSE@,$COIN_HAS_COINDEPEND_FALSE,;t t
     24321s,@CLP_LIBS@,$CLP_LIBS,;t t
     24322s,@CLP_CFLAGS@,$CLP_CFLAGS,;t t
     24323s,@CLP_DATA@,$CLP_DATA,;t t
    2361424324s,@COIN_HAS_CLP_TRUE@,$COIN_HAS_CLP_TRUE,;t t
    2361524325s,@COIN_HAS_CLP_FALSE@,$COIN_HAS_CLP_FALSE,;t t
    23616 s,@COINUTILSSRCDIR@,$COINUTILSSRCDIR,;t t
    23617 s,@COINUTILSOBJDIR@,$COINUTILSOBJDIR,;t t
    23618 s,@COINUTILSDOCDIR@,$COINUTILSDOCDIR,;t t
    23619 s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
    23620 s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
    23621 s,@DYLPSRCDIR@,$DYLPSRCDIR,;t t
    23622 s,@DYLPOBJDIR@,$DYLPOBJDIR,;t t
    23623 s,@DYLPDOCDIR@,$DYLPDOCDIR,;t t
     24326s,@DYLP_LIBS@,$DYLP_LIBS,;t t
     24327s,@DYLP_CFLAGS@,$DYLP_CFLAGS,;t t
     24328s,@DYLP_DATA@,$DYLP_DATA,;t t
    2362424329s,@COIN_HAS_DYLP_TRUE@,$COIN_HAS_DYLP_TRUE,;t t
    2362524330s,@COIN_HAS_DYLP_FALSE@,$COIN_HAS_DYLP_FALSE,;t t
    23626 s,@OSISRCDIR@,$OSISRCDIR,;t t
    23627 s,@OSIOBJDIR@,$OSIOBJDIR,;t t
    23628 s,@OSIDOCDIR@,$OSIDOCDIR,;t t
    23629 s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t
    23630 s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t
    23631 s,@VOLSRCDIR@,$VOLSRCDIR,;t t
    23632 s,@VOLOBJDIR@,$VOLOBJDIR,;t t
    23633 s,@VOLDOCDIR@,$VOLDOCDIR,;t t
     24331s,@VOL_LIBS@,$VOL_LIBS,;t t
     24332s,@VOL_CFLAGS@,$VOL_CFLAGS,;t t
     24333s,@VOL_DATA@,$VOL_DATA,;t t
    2363424334s,@COIN_HAS_VOL_TRUE@,$COIN_HAS_VOL_TRUE,;t t
    2363524335s,@COIN_HAS_VOL_FALSE@,$COIN_HAS_VOL_FALSE,;t t
    23636 s,@SYMPHONYSRCDIR@,$SYMPHONYSRCDIR,;t t
    23637 s,@SYMPHONYOBJDIR@,$SYMPHONYOBJDIR,;t t
    23638 s,@SYMPHONYDOCDIR@,$SYMPHONYDOCDIR,;t t
    23639 s,@COIN_HAS_SYMPHONY_TRUE@,$COIN_HAS_SYMPHONY_TRUE,;t t
    23640 s,@COIN_HAS_SYMPHONY_FALSE@,$COIN_HAS_SYMPHONY_FALSE,;t t
    23641 s,@CPXSRCDIR@,$CPXSRCDIR,;t t
    23642 s,@CPXOBJDIR@,$CPXOBJDIR,;t t
    23643 s,@CPXDOCDIR@,$CPXDOCDIR,;t t
     24336s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t
     24337s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
     24338s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t
     24339s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t
     24340s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t
     24341s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
     24342s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
     24343s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
     24344s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
     24345s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
     24346s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
     24347s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
     24348s,@NETLIB_DATA@,$NETLIB_DATA,;t t
     24349s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
     24350s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
     24351s,@MIPLIB3_LIBS@,$MIPLIB3_LIBS,;t t
     24352s,@MIPLIB3_CFLAGS@,$MIPLIB3_CFLAGS,;t t
     24353s,@MIPLIB3_DATA@,$MIPLIB3_DATA,;t t
     24354s,@COIN_HAS_MIPLIB3_TRUE@,$COIN_HAS_MIPLIB3_TRUE,;t t
     24355s,@COIN_HAS_MIPLIB3_FALSE@,$COIN_HAS_MIPLIB3_FALSE,;t t
     24356s,@CPX_LIBS@,$CPX_LIBS,;t t
     24357s,@CPX_CFLAGS@,$CPX_CFLAGS,;t t
     24358s,@CPX_DATA@,$CPX_DATA,;t t
    2364424359s,@COIN_HAS_CPX_TRUE@,$COIN_HAS_CPX_TRUE,;t t
    2364524360s,@COIN_HAS_CPX_FALSE@,$COIN_HAS_CPX_FALSE,;t t
    23646 s,@CPXINCDIR@,$CPXINCDIR,;t t
    23647 s,@CPXLIB@,$CPXLIB,;t t
    23648 s,@FMPINCDIR@,$FMPINCDIR,;t t
    23649 s,@FMPLIB@,$FMPLIB,;t t
    23650 s,@COIN_HAS_FMP_TRUE@,$COIN_HAS_FMP_TRUE,;t t
    23651 s,@COIN_HAS_FMP_FALSE@,$COIN_HAS_FMP_FALSE,;t t
    23652 s,@MSKINCDIR@,$MSKINCDIR,;t t
    23653 s,@MSKLIB@,$MSKLIB,;t t
     24361s,@GLPK_LIBS@,$GLPK_LIBS,;t t
     24362s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
     24363s,@GLPK_DATA@,$GLPK_DATA,;t t
     24364s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
     24365s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
     24366s,@MSK_LIBS@,$MSK_LIBS,;t t
     24367s,@MSK_CFLAGS@,$MSK_CFLAGS,;t t
     24368s,@MSK_DATA@,$MSK_DATA,;t t
    2365424369s,@COIN_HAS_MSK_TRUE@,$COIN_HAS_MSK_TRUE,;t t
    2365524370s,@COIN_HAS_MSK_FALSE@,$COIN_HAS_MSK_FALSE,;t t
    23656 s,@OSLINCDIR@,$OSLINCDIR,;t t
    23657 s,@OSLLIB@,$OSLLIB,;t t
    23658 s,@COIN_HAS_OSL_TRUE@,$COIN_HAS_OSL_TRUE,;t t
    23659 s,@COIN_HAS_OSL_FALSE@,$COIN_HAS_OSL_FALSE,;t t
    23660 s,@SPXINCDIR@,$SPXINCDIR,;t t
    23661 s,@SPXLIB@,$SPXLIB,;t t
    23662 s,@COIN_HAS_SPX_TRUE@,$COIN_HAS_SPX_TRUE,;t t
    23663 s,@COIN_HAS_SPX_FALSE@,$COIN_HAS_SPX_FALSE,;t t
    23664 s,@XPRINCDIR@,$XPRINCDIR,;t t
    23665 s,@XPRLIB@,$XPRLIB,;t t
     24371s,@XPR_LIBS@,$XPR_LIBS,;t t
     24372s,@XPR_CFLAGS@,$XPR_CFLAGS,;t t
     24373s,@XPR_DATA@,$XPR_DATA,;t t
    2366624374s,@COIN_HAS_XPR_TRUE@,$COIN_HAS_XPR_TRUE,;t t
    2366724375s,@COIN_HAS_XPR_FALSE@,$COIN_HAS_XPR_FALSE,;t t
    23668 s,@GLPKINCDIR@,$GLPKINCDIR,;t t
    23669 s,@GLPKLIB@,$GLPKLIB,;t t
    23670 s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
    23671 s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
    23672 s,@GLPKOBJDIR@,$GLPKOBJDIR,;t t
    23673 s,@COIN_BUILD_GLPK_TRUE@,$COIN_BUILD_GLPK_TRUE,;t t
    23674 s,@COIN_BUILD_GLPK_FALSE@,$COIN_BUILD_GLPK_FALSE,;t t
    23675 s,@ASLLIB@,$ASLLIB,;t t
    23676 s,@ASL_CPPFLAGS@,$ASL_CPPFLAGS,;t t
     24376s,@ASL_LIBS@,$ASL_LIBS,;t t
     24377s,@ASL_CFLAGS@,$ASL_CFLAGS,;t t
     24378s,@ASL_DATA@,$ASL_DATA,;t t
    2367724379s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
    2367824380s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
     
    2368124383s,@LIBEXT@,$LIBEXT,;t t
    2368224384s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     24385s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2368324386s,@LIBOBJS@,$LIBOBJS,;t t
    2368424387s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • branches/split/Cbc/configure.ac

    r1433 r1437  
    1313AC_PREREQ(2.59)
    1414
    15 AC_INIT([Cbc],[2.5devel],[coin-cbc@list.coin-or.org])
     15AC_INIT([Cbc],[split],[cbc@list.coin-or.org])
    1616
    1717AC_COPYRIGHT([
     
    5757#############################################################################
    5858
    59 AC_COIN_HAS_PROJECT(Cbc)
    60 AC_COIN_HAS_PROJECT(Cgl)
    61 AC_COIN_HAS_PROJECT(Clp)
    62 AC_COIN_HAS_PROJECT(CoinUtils)
    63 AC_COIN_HAS_PROJECT(DyLP)
    64 AC_COIN_HAS_PROJECT(Osi)
    65 AC_COIN_HAS_PROJECT(Vol)
    66 AC_COIN_HAS_PROJECT(SYMPHONY)
    67 AC_COIN_HAS_PROJECT(Cpx)
     59AC_COIN_HAS_MODULE(CoinDepend, [coinutils = split osi cgl])
     60AC_COIN_HAS_MODULE(Clp,        [osi-clp])
     61AC_COIN_HAS_MODULE(DyLP,       [osi-dylp])
     62AC_COIN_HAS_MODULE(Vol,        [osi-vol])
     63AC_COIN_HAS_MODULE(OsiTests,   [osi-unittests],   [required=0])
     64AC_COIN_HAS_MODULE(Sample,     [coindatasample],  [required=0])
     65AC_COIN_HAS_MODULE(Netlib,     [coindatanetlib],  [required=0])
     66AC_COIN_HAS_MODULE(Miplib3,    [coindatamiplib3], [required=0])
     67
     68#TODO! fallbacks!
    6869
    6970#############################################################################
     
    7172#############################################################################
    7273
    73 # Check which third party solvers are available ToDo!
    74 AC_COIN_HAS_USER_LIBRARY([Cplex],[CPX],[cplex.h],[CPXgetstat])
    75 AC_COIN_HAS_USER_LIBRARY([FortMP],[FMP])  #ToDo! is Fortran?
    76 AC_COIN_HAS_USER_LIBRARY([Mosek],[MSK],[mosek.h],[MSK_openmosek])
    77 AC_COIN_HAS_USER_LIBRARY([Osl],[OSL],[ekk_c_api.h],[ekk_simplex])
    78 AC_COIN_HAS_USER_LIBRARY([Soplex],[SPX],[spxsolver.h]) # ToDo
    79 AC_COIN_HAS_USER_LIBRARY([Xpress],[XPR],[xprs.h],[XPRSsetintcontrol])
    80 
    81 AC_COIN_HAS_GLPK(Glpk)
     74# Check which third party solvers are available
     75AC_COIN_HAS_MODULE(Cpx,      [osi-cplex])
     76AC_COIN_HAS_MODULE(Glpk,     [osi-glpk])
     77#AC_COIN_HAS_MODULE(Grb,     [osi-gurobi])
     78AC_COIN_HAS_MODULE(Msk,      [osi-mosek])
     79#AC_COIN_HAS_MODULE(Spx,     [osi-soplex])
     80AC_COIN_HAS_MODULE(Xpr,      [osi-xpress])
    8281
    8382#############################################################################
     
    8685
    8786# Ampl Solver library
    88 AC_COIN_HAS_ASL
     87AC_COIN_HAS_MODULE(ASL, [coinasl], [required=0])
    8988
    9089#############################################################################
     
    179178                 src/Makefile
    180179                 test/Makefile
    181                  cbc_addlibs.txt])
     180                 cbc_addlibs.txt
     181                 cbc.pc cbc-uninstalled.pc])
    182182
    183183# Here put the location and name of the configuration header file
  • branches/split/Cbc/inc/config_cbc.h.in

    r1131 r1437  
    1717#undef COIN_CBC_VERBOSITY
    1818
    19 /* If defined, the Ampl Solver Library is available. */
     19/* Define to 1 if the ASL module is available */
    2020#undef COIN_HAS_ASL
    2121
    22 /* Define to 1 if the Cbc package is used */
    23 #undef COIN_HAS_CBC
    24 
    25 /* Define to 1 if the Cgl package is used */
    26 #undef COIN_HAS_CGL
    27 
    28 /* Define to 1 if the Clp package is used */
     22/* Define to 1 if the Clp module is available */
    2923#undef COIN_HAS_CLP
    3024
    31 /* Define to 1 if the CoinUtils package is used */
    32 #undef COIN_HAS_COINUTILS
     25/* Define to 1 if the CoinDepend module is available */
     26#undef COIN_HAS_COINDEPEND
    3327
    34 /* Define to 1 if the Cplex package is available */
     28/* Define to 1 if the Cpx module is available */
    3529#undef COIN_HAS_CPX
    3630
    37 /* Define to 1 if the DyLP package is used */
     31/* Define to 1 if the DyLP module is available */
    3832#undef COIN_HAS_DYLP
    3933
    40 /* Define to 1 if the FortMP package is available */
    41 #undef COIN_HAS_FMP
    42 
    43 /* Define to 1 if Glpk package is available */
     34/* Define to 1 if the Glpk module is available */
    4435#undef COIN_HAS_GLPK
    4536
    46 /* Define to 1 if the Mosek package is available */
     37/* Define to 1 if the Miplib3 module is available */
     38#undef COIN_HAS_MIPLIB3
     39
     40/* Define to 1 if the Msk module is available */
    4741#undef COIN_HAS_MSK
    4842
    49 /* Define to 1 if the Osi package is used */
    50 #undef COIN_HAS_OSI
     43/* Define to 1 if the Netlib module is available */
     44#undef COIN_HAS_NETLIB
    5145
    52 /* Define to 1 if the Osl package is available */
    53 #undef COIN_HAS_OSL
     46/* Define to 1 if the OsiTests module is available */
     47#undef COIN_HAS_OSITESTS
    5448
    55 /* Define to 1 if the Soplex package is available */
    56 #undef COIN_HAS_SPX
     49/* Define to 1 if the Sample module is available */
     50#undef COIN_HAS_SAMPLE
    5751
    58 /* Define to 1 if the SYMPHONY package is used */
    59 #undef COIN_HAS_SYMPHONY
    60 
    61 /* Define to 1 if the Vol package is used */
     52/* Define to 1 if the Vol module is available */
    6253#undef COIN_HAS_VOL
    6354
    64 /* Define to 1 if the Xpress package is available */
     55/* Define to 1 if the Xpr module is available */
    6556#undef COIN_HAS_XPR
    6657
  • branches/split/Cbc/src/CbcCbcParam.cpp

    r1271 r1437  
    11/* $Id: CbcCbcParam.cpp 1173 2009-06-04 09:44:10Z forrest $ */
    2 #  include "../../Clp/src/CbcOrClpParam.cpp"
     2#define COIN_HAS_CBC
     3#  include "CbcOrClpParam.cpp"
    34
  • branches/split/Cbc/src/CbcConfig.h

    r1433 r1437  
    9696
    9797#endif /* HAVE_CONFIG_H */
    98 // Always make version 2.4
    99 #undef CBCVERSION
    100 #define CBCVERSION "2.5devel"
     98#ifndef CBCVERSION
     99#define CBCVERSION "unknown version"
     100#endif
    101101
    102102#endif /*__HAVE_COINUTILS_CONFIG_H__*/
  • branches/split/Cbc/src/Makefile.am

    r1404 r1437  
    1515# Name of the library compiled in this directory.  We want it to be installed
    1616# in the 'lib' directory
    17 lib_LTLIBRARIES = libCbc.la libCbcSolver.la
     17coinlibdir = ${libdir}/coin
     18coinlib_LTLIBRARIES = libCbc.la libCbcSolver.la
    1819
    1920# List all source files for this library, including headers
     
    103104        CbcSolverExpandKnapsack.cpp CbcSolverExpandKnapsack.hpp
    104105
    105 #Stefan: added unitTestClp.cpp because CbcSolver defines reference to it
    106 
    107 ## If we have the Ampl solver library, we need to add additional things
    108 ## also see lower down
    109 ## new idea is to add in source code anyway
    110 ##libCbc_la_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
    111 
    112 
    113106# This is for libtool (on Windows)
    114107
     
    119112
    120113bin_PROGRAMS =
    121 AM_CPPFLAGS =
    122 
    123 LIBS += `cat $(CGLOBJDIR)/cgl_addlibs.txt` \
    124         `cat $(OSIOBJDIR)/osi_addlibs.txt` \
    125         `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt` $(ADDLIBS)
    126 
     114AM_CPPFLAGS = $(COINDEPEND_CFLAGS)
    127115
    128116########################################################################
     
    137125
    138126# List all source files for this executable, including headers
    139 cbc_SOURCES = \
    140         CoinSolve.cpp
     127cbc_SOURCES = CoinSolve.cpp
    141128
    142129# Additional COIN libraries
    143 cbc_LDADD = libCbcSolver.la \
    144         libCbc.la \
    145         $(CGLOBJDIR)/src/libCgl.la \
    146         $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    147         $(OSIOBJDIR)/src/libOsi.la \
    148         $(CLPOBJDIR)/src/libClp.la \
    149         $(COINUTILSOBJDIR)/src/libCoinUtils.la
     130cbc_LDADD = libCbcSolver.la libCbc.la $(COINDEPEND_LIBS) $(ADDLIBS)
    150131
    151132# Finally, the -rpath flag is used by libtool to make sure that the shared
     
    156137# Add locations of include files.
    157138
    158 AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    159         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
    160         -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
    161 LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
     139if COIN_HAS_CLP
     140  AM_CPPFLAGS += $(CLP_CFLAGS)
     141  cbc_LDADD += $(CLP_LIBS)
     142endif
    162143
    163144if COIN_HAS_CPX
    164   AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
    165         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
    166   cbc_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
    167 endif
    168 
    169 # If we have the Ampl solver library, we need to add additional things
     145  AM_CPPFLAGS += $(CPX_CFLAGS)
     146  cbc_LDADD += $(CPX_LIBS)
     147endif
     148
    170149if COIN_HAS_ASL
    171 #cbc_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
    172 cbc_LDADD += $(ASLLIB)
    173 AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
     150  AM_CPPFLAGS += $(ASL_CFLAGS)
     151  cbc_LDADD += $(ASL_LIBS)
    174152endif
    175153
     
    201179        CbcGenSolvers.cpp
    202180
    203 cbc_generic_LDADD = libCbcSolver.la \
    204         libCbc.la \
    205         $(CGLOBJDIR)/src/libCgl.la
     181cbc_generic_LDADD = libCbcSolver.la libCbc.la $(COINDEPEND_LIBS) $(ADDLIBS)
    206182
    207183# List all additionally required solver and Osi libraries
    208184
    209185if COIN_HAS_CLP
    210   AM_CPPFLAGS += -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    211         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
    212         -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
    213   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    214         $(CLPOBJDIR)/src/libClp.la
    215   LIBS  += `cat $(CLPOBJDIR)/clp_addlibs.txt`
     186  AM_CPPFLAGS += $(CLP_CFLAGS)
     187  cbc_generic_LDADD += $(CLP_LIBS)
    216188endif
    217189
    218190if COIN_HAS_CPX
    219   AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` \
    220         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
    221   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
     191  AM_CPPFLAGS += $(CPX_CFLAGS)
     192  cbc_generic_LDADD += $(CPX_LIBS)
    222193endif
    223194
    224195if COIN_HAS_DYLP
    225   AM_CPPFLAGS += -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
    226         -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
    227         -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
    228         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
    229   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
    230         $(DYLPOBJDIR)/src/Dylp/libDylp.la
    231   LIBS += `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
    232 endif
    233 
    234 if COIN_HAS_FMP
    235   AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
    236   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
     196  AM_CPPFLAGS += $(DYLP_CFLAGS)
     197  cbc_generic_LDADD += $(DYLP_LIBS)
    237198endif
    238199
    239200if COIN_HAS_GLPK
    240   AM_CPPFLAGS += -I`$(CYGPATH_W) $(GLPKINCDIR)` \
    241         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
    242   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
     201  AM_CPPFLAGS += $(GLPK_CFLAGS)
     202  cbc_generic_LDADD += $(GLPK_LIBS)
    243203endif
    244204
    245205if COIN_HAS_MSK
    246   AM_CPPFLAGS += -I`$(CYGPATH_W) $(MSKINCDIR)` \
    247         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
    248   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
    249 endif
    250 
    251 if COIN_HAS_OSL
    252   AM_CPPFLAGS += -I`$(CYGPATH_W) $(OSLINCDIR)` \
    253         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
    254   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
    255 endif
    256 
    257 if COIN_HAS_SPX
    258   AM_CPPFLAGS += -I`$(CYGPATH_W) $(SPXINCDIR)` \
    259         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
    260   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
    261 endif
    262 
    263 if COIN_HAS_SYMPHONY
    264   AM_CPPFLAGS += -I`$(CYGPATH_W) $(SYMPHONYSRCDIR)/src` \
    265         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
    266   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
    267         $(SYMPHONYOBJDIR)/src/libSym.la
    268   LIBS += `cat $(SYMPHONYOBJDIR)/sym_addlibs.txt`
    269 endif
     206  AM_CPPFLAGS += $(MSK_CFLAGS)
     207  cbc_generic_LDADD += $(MSK_LIBS)
     208endif
     209
     210# if COIN_HAS_SPX
     211#   AM_CPPFLAGS += $(SPX_CFLAGS)
     212#   cbc_generic_LDADD += $(SPX_LIBS)
     213# endif
    270214
    271215if COIN_HAS_VOL
    272   AM_CPPFLAGS += -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
    273         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
    274   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
    275         $(VOLOBJDIR)/src/libVol.la
    276   LIBS += `cat $(VOLOBJDIR)/vol_addlibs.txt`
     216  AM_CPPFLAGS += $(VOL_CFLAGS)
     217  cbc_generic_LDADD += $(VOL_LIBS)
    277218endif
    278219
    279220if COIN_HAS_XPR
    280   AM_CPPFLAGS += -I`$(CYGPATH_W) $(XPRINCDIR)` \
    281         -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
    282   cbc_generic_LDADD += $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
     221  AM_CPPFLAGS += $(XPR_CFLAGS)
     222  cbc_generic_LDADD += $(XPR_LIBS)
    283223endif
    284224
    285225if COIN_HAS_ASL
    286   cbc_generic_LDADD += $(ASLLIB)
    287   AM_CPPFLAGS += $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
    288 endif
    289 
    290 # Finally the Osi Coin library (many of the above need it)
    291 cbc_generic_LDADD += $(OSIOBJDIR)/src/libOsi.la \
    292         $(COINUTILSOBJDIR)/src/libCoinUtils.la
     226  AM_CPPFLAGS += $(ASL_CFLAGS)
     227  cbc_generic_LDADD += $(ASL_LIBS)
     228endif
    293229
    294230# Finally, the -rpath flag is used by libtool to make sure that the shared
     
    303239#                            Additional flags                          #
    304240########################################################################
    305 
    306 # Here list all include flags, relative to this "srcdir" directory.  This
    307 # "cygpath" stuff is necessary to compile with native compilers on Windows.
    308 # "top_srcdir" refers to the basic directory for the main package that is
    309 # being compiled.
    310 AM_CPPFLAGS += \
    311         -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
    312         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
    313         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglDuplicateRow` \
    314         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
    315         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
    316         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
    317         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
    318         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
    319         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
    320         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
    321         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
    322         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
    323         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
    324         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
    325         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglResidualCapacity` \
    326         -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglZeroHalf` \
    327         -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
    328         -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
    329         -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
    330         -I`$(CYGPATH_W) $(OSIOBJDIR)/inc`
    331241
    332242# List additional defines
  • branches/split/Cbc/src/Makefile.in

    r1404 r1437  
    5656
    5757# Add locations of include files.
    58 @COIN_HAS_CLP_TRUE@am__append_2 = -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    59 @COIN_HAS_CLP_TRUE@     -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
    60 @COIN_HAS_CLP_TRUE@     -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
    61 
    62 @COIN_HAS_CLP_TRUE@am__append_3 = `cat $(CLPOBJDIR)/clp_addlibs.txt`
    63 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__append_4 = -I`$(CYGPATH_W) $(CPXINCDIR)` \
    64 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@  -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
    65 
    66 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__append_5 = $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
    67 
    68 # If we have the Ampl solver library, we need to add additional things
    69 #cbc_SOURCES += Cbc_ampl.cpp Cbc_ampl.h
    70 @COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_6 = $(ASLLIB)
    71 @COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_7 = $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
     58@COIN_HAS_CLP_TRUE@am__append_2 = $(CLP_CFLAGS)
     59@COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__append_3 = $(CPX_CFLAGS)
     60@COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__append_4 = $(CPX_LIBS)
     61@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_5 = $(ASL_CFLAGS)
     62@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__append_6 = $(ASL_LIBS)
    7263
    7364########################################################################
     
    7768# Name of the executable compiled in this directory.  We want it to be
    7869# installed in the 'bin' directory
    79 @CBC_BUILD_CBC_GENERIC_TRUE@am__append_8 = cbc-generic
     70@CBC_BUILD_CBC_GENERIC_TRUE@am__append_7 = cbc-generic
    8071
    8172# List all additionally required solver and Osi libraries
    82 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_9 = -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    83 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
    84 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@ -I`$(CYGPATH_W) $(CLPOBJDIR)/inc`
    85 
    86 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_10 = $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    87 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@ $(CLPOBJDIR)/src/libClp.la
    88 
    89 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_11 = `cat $(CLPOBJDIR)/clp_addlibs.txt`
    90 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__append_12 = -I`$(CYGPATH_W) $(CPXINCDIR)` \
    91 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx`
    92 
    93 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__append_13 = $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
    94 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_14 = -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/DylpStdLib` \
    95 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@        -I`$(CYGPATH_W) $(DYLPSRCDIR)/src/Dylp` \
    96 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@        -I`$(CYGPATH_W) $(DYLPOBJDIR)/inc` \
    97 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiDylp`
    98 
    99 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_15 = $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
    100 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@        $(DYLPOBJDIR)/src/Dylp/libDylp.la
    101 
    102 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_16 = `cat $(DYLPOBJDIR)/dylp_addlibs.txt`
    103 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_FMP_TRUE@am__append_17 = -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiFmp`
    104 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_FMP_TRUE@am__append_18 = $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
    105 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__append_19 = -I`$(CYGPATH_W) $(GLPKINCDIR)` \
    106 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiGlpk`
    107 
    108 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__append_20 = $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
    109 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__append_21 = -I`$(CYGPATH_W) $(MSKINCDIR)` \
    110 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiMsk`
    111 
    112 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__append_22 = $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
    113 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_OSL_TRUE@am__append_23 = -I`$(CYGPATH_W) $(OSLINCDIR)` \
    114 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_OSL_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiOsl`
    115 
    116 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_OSL_TRUE@am__append_24 = $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
    117 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@am__append_25 = -I`$(CYGPATH_W) $(SPXINCDIR)` \
    118 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSpx`
    119 
    120 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@am__append_26 = $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
    121 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@am__append_27 = -I`$(CYGPATH_W) $(SYMPHONYSRCDIR)/src` \
    122 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@    -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiSym`
    123 
    124 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@am__append_28 = $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
    125 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@    $(SYMPHONYOBJDIR)/src/libSym.la
    126 
    127 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@am__append_29 = `cat $(SYMPHONYOBJDIR)/sym_addlibs.txt`
    128 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_30 = -I`$(CYGPATH_W) $(VOLSRCDIR)/src` \
    129 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiVol`
    130 
    131 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_31 = $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
    132 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@ $(VOLOBJDIR)/src/libVol.la
    133 
    134 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_32 = `cat $(VOLOBJDIR)/vol_addlibs.txt`
    135 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__append_33 = -I`$(CYGPATH_W) $(XPRINCDIR)` \
    136 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@ -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiXpr`
    137 
    138 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__append_34 = $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
    139 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_35 = $(ASLLIB)
    140 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_36 = $(ASL_CPPFLAGS) -DCOIN_HAS_ASL
     73@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_8 = $(CLP_CFLAGS)
     74@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__append_9 = $(CLP_LIBS)
     75@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__append_10 = $(CPX_CFLAGS)
     76@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__append_11 = $(CPX_LIBS)
     77@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_12 = $(DYLP_CFLAGS)
     78@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__append_13 = $(DYLP_LIBS)
     79@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__append_14 = $(GLPK_CFLAGS)
     80@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__append_15 = $(GLPK_LIBS)
     81@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__append_16 = $(MSK_CFLAGS)
     82@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__append_17 = $(MSK_LIBS)
     83
     84# if COIN_HAS_SPX
     85#   AM_CPPFLAGS += $(SPX_CFLAGS)
     86#   cbc_generic_LDADD += $(SPX_LIBS)
     87# endif
     88@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_18 = $(VOL_CFLAGS)
     89@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__append_19 = $(VOL_LIBS)
     90@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__append_20 = $(XPR_CFLAGS)
     91@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__append_21 = $(XPR_LIBS)
     92@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_22 = $(ASL_CFLAGS)
     93@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__append_23 = $(ASL_LIBS)
    14194subdir = src
    14295DIST_COMMON = $(includecoin_HEADERS) $(srcdir)/Makefile.am \
     
    156109  esac;
    157110am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
    158 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
     111am__installdirs = "$(DESTDIR)$(coinlibdir)" "$(DESTDIR)$(bindir)" \
    159112        "$(DESTDIR)$(includecoindir)"
    160 libLTLIBRARIES_INSTALL = $(INSTALL)
    161 LTLIBRARIES = $(lib_LTLIBRARIES)
     113coinlibLTLIBRARIES_INSTALL = $(INSTALL)
     114LTLIBRARIES = $(coinlib_LTLIBRARIES)
    162115libCbc_la_LIBADD =
    163116am_libCbc_la_OBJECTS = Cbc_C_Interface.lo CbcBranchAllDifferent.lo \
     
    200153@COIN_HAS_CLP_TRUE@am_cbc_OBJECTS = CoinSolve.$(OBJEXT)
    201154cbc_OBJECTS = $(am_cbc_OBJECTS)
    202 @COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_1 = $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
    203 am__DEPENDENCIES_2 =
     155am__DEPENDENCIES_1 =
     156@COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_2 =  \
     157@COIN_HAS_CLP_TRUE@@COIN_HAS_CPX_TRUE@  $(am__DEPENDENCIES_1)
    204158@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@am__DEPENDENCIES_3 =  \
    205 @COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@  $(am__DEPENDENCIES_2)
     159@COIN_HAS_ASL_TRUE@@COIN_HAS_CLP_TRUE@  $(am__DEPENDENCIES_1)
    206160@COIN_HAS_CLP_TRUE@cbc_DEPENDENCIES = libCbcSolver.la libCbc.la \
    207 @COIN_HAS_CLP_TRUE@     $(CGLOBJDIR)/src/libCgl.la \
    208 @COIN_HAS_CLP_TRUE@     $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    209 @COIN_HAS_CLP_TRUE@     $(OSIOBJDIR)/src/libOsi.la \
    210 @COIN_HAS_CLP_TRUE@     $(CLPOBJDIR)/src/libClp.la \
    211 @COIN_HAS_CLP_TRUE@     $(COINUTILSOBJDIR)/src/libCoinUtils.la \
    212 @COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_3)
     161@COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
     162@COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \
     163@COIN_HAS_CLP_TRUE@     $(am__DEPENDENCIES_3)
    213164am__cbc_generic_SOURCES_DIST = CbcGenBaB.cpp CbcGenCbcParam.cpp \
    214165        CbcGenCbcParam.hpp CbcGenCbcParamUtils.cpp CbcGenCtlBlk.cpp \
     
    231182@CBC_BUILD_CBC_GENERIC_TRUE@    CbcGenSolvers.$(OBJEXT)
    232183cbc_generic_OBJECTS = $(am_cbc_generic_OBJECTS)
    233 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__DEPENDENCIES_4 = $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    234 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@ $(CLPOBJDIR)/src/libClp.la
    235 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_5 = $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
    236 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__DEPENDENCIES_6 = $(OSIOBJDIR)/src/OsiDylp/libOsiDylp.la \
    237 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@        $(DYLPOBJDIR)/src/Dylp/libDylp.la
    238 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_FMP_TRUE@am__DEPENDENCIES_7 = $(OSIOBJDIR)/src/OsiFmp/libOsiFmp.la
    239 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__DEPENDENCIES_8 = $(OSIOBJDIR)/src/OsiGlpk/libOsiGlpk.la
    240 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__DEPENDENCIES_9 = $(OSIOBJDIR)/src/OsiMsk/libOsiMsk.la
    241 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_OSL_TRUE@am__DEPENDENCIES_10 = $(OSIOBJDIR)/src/OsiOsl/libOsiOsl.la
    242 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SPX_TRUE@am__DEPENDENCIES_11 = $(OSIOBJDIR)/src/OsiSpx/libOsiSpx.la
    243 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@am__DEPENDENCIES_12 = $(OSIOBJDIR)/src/OsiSym/libOsiSym.la \
    244 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_SYMPHONY_TRUE@    $(SYMPHONYOBJDIR)/src/libSym.la
    245 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__DEPENDENCIES_13 = $(OSIOBJDIR)/src/OsiVol/libOsiVol.la \
    246 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@ $(VOLOBJDIR)/src/libVol.la
    247 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__DEPENDENCIES_14 = $(OSIOBJDIR)/src/OsiXpr/libOsiXpr.la
    248 @CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__DEPENDENCIES_15 = $(am__DEPENDENCIES_2)
     184@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CLP_TRUE@am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1)
     185@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_5 = $(am__DEPENDENCIES_1)
     186@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_DYLP_TRUE@am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1)
     187@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_GLPK_TRUE@am__DEPENDENCIES_7 = $(am__DEPENDENCIES_1)
     188@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_MSK_TRUE@am__DEPENDENCIES_8 = $(am__DEPENDENCIES_1)
     189@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_VOL_TRUE@am__DEPENDENCIES_9 = $(am__DEPENDENCIES_1)
     190@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_XPR_TRUE@am__DEPENDENCIES_10 = $(am__DEPENDENCIES_1)
     191@CBC_BUILD_CBC_GENERIC_TRUE@@COIN_HAS_ASL_TRUE@am__DEPENDENCIES_11 = $(am__DEPENDENCIES_1)
    249192@CBC_BUILD_CBC_GENERIC_TRUE@cbc_generic_DEPENDENCIES =  \
    250193@CBC_BUILD_CBC_GENERIC_TRUE@    libCbcSolver.la libCbc.la \
    251 @CBC_BUILD_CBC_GENERIC_TRUE@    $(CGLOBJDIR)/src/libCgl.la \
     194@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_1) \
     195@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_1) \
    252196@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_4) \
    253197@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_5) \
     
    257201@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_9) \
    258202@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_10) \
    259 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_11) \
    260 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_12) \
    261 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_13) \
    262 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_14) \
    263 @CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_15) \
    264 @CBC_BUILD_CBC_GENERIC_TRUE@    $(OSIOBJDIR)/src/libOsi.la \
    265 @CBC_BUILD_CBC_GENERIC_TRUE@    $(COINUTILSOBJDIR)/src/libCoinUtils.la
     203@CBC_BUILD_CBC_GENERIC_TRUE@    $(am__DEPENDENCIES_11)
    266204depcomp = $(SHELL) $(top_srcdir)/../depcomp
    267205am__depfiles_maybe = depfiles
     
    291229CTAGS = ctags
    292230DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     231ABSBUILDDIR = @ABSBUILDDIR@
    293232ACLOCAL = @ACLOCAL@
    294233ADDLIBS = @ADDLIBS@
     
    301240AMTAR = @AMTAR@
    302241AR = @AR@
    303 ASLLIB = @ASLLIB@
    304 ASL_CPPFLAGS = @ASL_CPPFLAGS@
     242ASL_CFLAGS = @ASL_CFLAGS@
     243ASL_DATA = @ASL_DATA@
     244ASL_LIBS = @ASL_LIBS@
    305245AUTOCONF = @AUTOCONF@
    306246AUTOHEADER = @AUTOHEADER@
     
    309249AWK = @AWK@
    310250BUILDTOOLSDIR = @BUILDTOOLSDIR@
    311 CBCDOCDIR = @CBCDOCDIR@
    312 CBCOBJDIR = @CBCOBJDIR@
    313 CBCSRCDIR = @CBCSRCDIR@
    314251CBC_BUILD_CBC_GENERIC_FALSE = @CBC_BUILD_CBC_GENERIC_FALSE@
    315252CBC_BUILD_CBC_GENERIC_TRUE = @CBC_BUILD_CBC_GENERIC_TRUE@
     
    318255CDEFS = @CDEFS@
    319256CFLAGS = @CFLAGS@
    320 CGLDOCDIR = @CGLDOCDIR@
    321 CGLOBJDIR = @CGLOBJDIR@
    322 CGLSRCDIR = @CGLSRCDIR@
    323 CLPDOCDIR = @CLPDOCDIR@
    324 CLPOBJDIR = @CLPOBJDIR@
    325 CLPSRCDIR = @CLPSRCDIR@
    326 COINUTILSDOCDIR = @COINUTILSDOCDIR@
    327 COINUTILSOBJDIR = @COINUTILSOBJDIR@
    328 COINUTILSSRCDIR = @COINUTILSSRCDIR@
    329 COIN_BUILD_GLPK_FALSE = @COIN_BUILD_GLPK_FALSE@
    330 COIN_BUILD_GLPK_TRUE = @COIN_BUILD_GLPK_TRUE@
     257CLP_CFLAGS = @CLP_CFLAGS@
     258CLP_DATA = @CLP_DATA@
     259CLP_LIBS = @CLP_LIBS@
     260COINDEPEND_CFLAGS = @COINDEPEND_CFLAGS@
     261COINDEPEND_DATA = @COINDEPEND_DATA@
     262COINDEPEND_LIBS = @COINDEPEND_LIBS@
    331263COIN_HAS_ASL_FALSE = @COIN_HAS_ASL_FALSE@
    332264COIN_HAS_ASL_TRUE = @COIN_HAS_ASL_TRUE@
    333 COIN_HAS_CBC_FALSE = @COIN_HAS_CBC_FALSE@
    334 COIN_HAS_CBC_TRUE = @COIN_HAS_CBC_TRUE@
    335 COIN_HAS_CGL_FALSE = @COIN_HAS_CGL_FALSE@
    336 COIN_HAS_CGL_TRUE = @COIN_HAS_CGL_TRUE@
    337265COIN_HAS_CLP_FALSE = @COIN_HAS_CLP_FALSE@
    338266COIN_HAS_CLP_TRUE = @COIN_HAS_CLP_TRUE@
    339 COIN_HAS_COINUTILS_FALSE = @COIN_HAS_COINUTILS_FALSE@
    340 COIN_HAS_COINUTILS_TRUE = @COIN_HAS_COINUTILS_TRUE@
     267COIN_HAS_COINDEPEND_FALSE = @COIN_HAS_COINDEPEND_FALSE@
     268COIN_HAS_COINDEPEND_TRUE = @COIN_HAS_COINDEPEND_TRUE@
    341269COIN_HAS_CPX_FALSE = @COIN_HAS_CPX_FALSE@
    342270COIN_HAS_CPX_TRUE = @COIN_HAS_CPX_TRUE@
    343271COIN_HAS_DYLP_FALSE = @COIN_HAS_DYLP_FALSE@
    344272COIN_HAS_DYLP_TRUE = @COIN_HAS_DYLP_TRUE@
    345 COIN_HAS_FMP_FALSE = @COIN_HAS_FMP_FALSE@
    346 COIN_HAS_FMP_TRUE = @COIN_HAS_FMP_TRUE@
    347273COIN_HAS_GLPK_FALSE = @COIN_HAS_GLPK_FALSE@
    348274COIN_HAS_GLPK_TRUE = @COIN_HAS_GLPK_TRUE@
     275COIN_HAS_MIPLIB3_FALSE = @COIN_HAS_MIPLIB3_FALSE@
     276COIN_HAS_MIPLIB3_TRUE = @COIN_HAS_MIPLIB3_TRUE@
    349277COIN_HAS_MSK_FALSE = @COIN_HAS_MSK_FALSE@
    350278COIN_HAS_MSK_TRUE = @COIN_HAS_MSK_TRUE@
    351 COIN_HAS_OSI_FALSE = @COIN_HAS_OSI_FALSE@
    352 COIN_HAS_OSI_TRUE = @COIN_HAS_OSI_TRUE@
    353 COIN_HAS_OSL_FALSE = @COIN_HAS_OSL_FALSE@
    354 COIN_HAS_OSL_TRUE = @COIN_HAS_OSL_TRUE@
    355 COIN_HAS_SPX_FALSE = @COIN_HAS_SPX_FALSE@
    356 COIN_HAS_SPX_TRUE = @COIN_HAS_SPX_TRUE@
    357 COIN_HAS_SYMPHONY_FALSE = @COIN_HAS_SYMPHONY_FALSE@
    358 COIN_HAS_SYMPHONY_TRUE = @COIN_HAS_SYMPHONY_TRUE@
     279COIN_HAS_NETLIB_FALSE = @COIN_HAS_NETLIB_FALSE@
     280COIN_HAS_NETLIB_TRUE = @COIN_HAS_NETLIB_TRUE@
     281COIN_HAS_OSITESTS_FALSE = @COIN_HAS_OSITESTS_FALSE@
     282COIN_HAS_OSITESTS_TRUE = @COIN_HAS_OSITESTS_TRUE@
     283COIN_HAS_SAMPLE_FALSE = @COIN_HAS_SAMPLE_FALSE@
     284COIN_HAS_SAMPLE_TRUE = @COIN_HAS_SAMPLE_TRUE@
    359285COIN_HAS_VOL_FALSE = @COIN_HAS_VOL_FALSE@
    360286COIN_HAS_VOL_TRUE = @COIN_HAS_VOL_TRUE@
     
    363289CPP = @CPP@
    364290CPPFLAGS = @CPPFLAGS@
    365 CPXDOCDIR = @CPXDOCDIR@
    366 CPXINCDIR = @CPXINCDIR@
    367 CPXLIB = @CPXLIB@
    368 CPXOBJDIR = @CPXOBJDIR@
    369 CPXSRCDIR = @CPXSRCDIR@
     291CPX_CFLAGS = @CPX_CFLAGS@
     292CPX_DATA = @CPX_DATA@
     293CPX_LIBS = @CPX_LIBS@
    370294CXX = @CXX@
    371295CXXCPP = @CXXCPP@
     
    378302DEFS = @DEFS@
    379303DEPDIR = @DEPDIR@
    380 DYLPDOCDIR = @DYLPDOCDIR@
    381 DYLPOBJDIR = @DYLPOBJDIR@
    382 DYLPSRCDIR = @DYLPSRCDIR@
     304DYLP_CFLAGS = @DYLP_CFLAGS@
     305DYLP_DATA = @DYLP_DATA@
     306DYLP_LIBS = @DYLP_LIBS@
    383307ECHO = @ECHO@
    384308ECHO_C = @ECHO_C@
     
    390314FADDLIBS = @FADDLIBS@
    391315FFLAGS = @FFLAGS@
    392 FMPINCDIR = @FMPINCDIR@
    393 FMPLIB = @FMPLIB@
    394 GLPKINCDIR = @GLPKINCDIR@
    395 GLPKLIB = @GLPKLIB@
    396 GLPKOBJDIR = @GLPKOBJDIR@
     316GLPK_CFLAGS = @GLPK_CFLAGS@
     317GLPK_DATA = @GLPK_DATA@
     318GLPK_LIBS = @GLPK_LIBS@
    397319HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    398320HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    404326LIBEXT = @LIBEXT@
    405327LIBOBJS = @LIBOBJS@
    406 LIBS = @LIBS@ `cat $(CGLOBJDIR)/cgl_addlibs.txt` `cat \
    407         $(OSIOBJDIR)/osi_addlibs.txt` `cat \
    408         $(COINUTILSOBJDIR)/coinutils_addlibs.txt` $(ADDLIBS) \
    409         $(am__append_3) $(am__append_11) $(am__append_16) \
    410         $(am__append_29) $(am__append_32)
     328LIBS = @LIBS@
    411329LIBTOOL = @LIBTOOL@
    412330LIBTOOLM4 = @LIBTOOLM4@
     
    418336MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    419337MAKEINFO = @MAKEINFO@
     338MIPLIB3_CFLAGS = @MIPLIB3_CFLAGS@
     339MIPLIB3_DATA = @MIPLIB3_DATA@
     340MIPLIB3_LIBS = @MIPLIB3_LIBS@
    420341MPICC = @MPICC@
    421342MPICXX = @MPICXX@
    422 MSKINCDIR = @MSKINCDIR@
    423 MSKLIB = @MSKLIB@
     343MSK_CFLAGS = @MSK_CFLAGS@
     344MSK_DATA = @MSK_DATA@
     345MSK_LIBS = @MSK_LIBS@
     346NETLIB_CFLAGS = @NETLIB_CFLAGS@
     347NETLIB_DATA = @NETLIB_DATA@
     348NETLIB_LIBS = @NETLIB_LIBS@
    424349OBJEXT = @OBJEXT@
    425350OPT_CFLAGS = @OPT_CFLAGS@
    426351OPT_CXXFLAGS = @OPT_CXXFLAGS@
    427 OSIDOCDIR = @OSIDOCDIR@
    428 OSIOBJDIR = @OSIOBJDIR@
    429 OSISRCDIR = @OSISRCDIR@
    430 OSLINCDIR = @OSLINCDIR@
    431 OSLLIB = @OSLLIB@
     352OSITESTS_CFLAGS = @OSITESTS_CFLAGS@
     353OSITESTS_DATA = @OSITESTS_DATA@
     354OSITESTS_LIBS = @OSITESTS_LIBS@
    432355PACKAGE = @PACKAGE@
    433356PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    437360PACKAGE_VERSION = @PACKAGE_VERSION@
    438361PATH_SEPARATOR = @PATH_SEPARATOR@
     362PKG_CONFIG = @PKG_CONFIG@
    439363RANLIB = @RANLIB@
     364REQUIREDPACKAGES = @REQUIREDPACKAGES@
    440365RPATH_FLAGS = @RPATH_FLAGS@
     366SAMPLE_CFLAGS = @SAMPLE_CFLAGS@
     367SAMPLE_DATA = @SAMPLE_DATA@
     368SAMPLE_LIBS = @SAMPLE_LIBS@
    441369SET_MAKE = @SET_MAKE@
    442370SHELL = @SHELL@
    443 SPXINCDIR = @SPXINCDIR@
    444 SPXLIB = @SPXLIB@
    445371STRIP = @STRIP@
    446 SYMPHONYDOCDIR = @SYMPHONYDOCDIR@
    447 SYMPHONYOBJDIR = @SYMPHONYOBJDIR@
    448 SYMPHONYSRCDIR = @SYMPHONYSRCDIR@
    449372VERSION = @VERSION@
    450 VOLDOCDIR = @VOLDOCDIR@
    451 VOLOBJDIR = @VOLOBJDIR@
    452 VOLSRCDIR = @VOLSRCDIR@
     373VOL_CFLAGS = @VOL_CFLAGS@
     374VOL_DATA = @VOL_DATA@
     375VOL_LIBS = @VOL_LIBS@
    453376VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
    454 XPRINCDIR = @XPRINCDIR@
    455 XPRLIB = @XPRLIB@
     377XPR_CFLAGS = @XPR_CFLAGS@
     378XPR_DATA = @XPR_DATA@
     379XPR_LIBS = @XPR_LIBS@
    456380abs_bin_dir = @abs_bin_dir@
    457381abs_include_dir = @abs_include_dir@
     
    466390ac_ct_STRIP = @ac_ct_STRIP@
    467391ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     392ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    468393am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    469394am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    515440# Name of the library compiled in this directory.  We want it to be installed
    516441# in the 'lib' directory
    517 lib_LTLIBRARIES = libCbc.la libCbcSolver.la
     442coinlibdir = ${libdir}/coin
     443coinlib_LTLIBRARIES = libCbc.la libCbcSolver.la
    518444
    519445# List all source files for this library, including headers
     
    603529
    604530
    605 #Stefan: added unitTestClp.cpp because CbcSolver defines reference to it
    606 
    607531# This is for libtool (on Windows)
    608532libCbc_la_LDFLAGS = $(LT_LDFLAGS)
     
    613537########################################################################
    614538
    615 # Here list all include flags, relative to this "srcdir" directory.  This
    616 # "cygpath" stuff is necessary to compile with native compilers on Windows.
    617 # "top_srcdir" refers to the basic directory for the main package that is
    618 # being compiled.
    619 
    620539# List additional defines
    621 AM_CPPFLAGS = $(am__append_2) $(am__append_4) $(am__append_7) \
    622         $(am__append_9) $(a