Changeset 1548 for ThirdParty/Mumps


Ignore:
Timestamp:
May 8, 2010 9:54:35 AM (10 years ago)
Author:
stefan
Message:

copy over pkg-config setup and making thirdparty projects installable projects from split branch

Location:
ThirdParty/Mumps/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/trunk/Makefile.am

    r1530 r1548  
    1 # Copyright (C) 2007, 2010 International Business Machines and others.
     1# Copyright (C) 2007-2010 International Business Machines and others.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    99EXTRA_DIST = get.mumps INSTALL.MUMPS
    1010
    11 if SKIPMAKE
    12   noinst_LTLIBRARIES =
    13 else
    14   noinst_LTLIBRARIES = libcoinmumps.la
    15 endif
     11thirdpartylibdir = $(libdir)/coin/ThirdParty
     12thirdpartylib_LTLIBRARIES = libcoinmumps.la
    1613
    1714MUMPSDIR = @MUMPSDIR@
     
    8683# Module files that need to be deleted
    8784MODEXT = mod
    88 CLEANFILES = *.$(MODEXT)
     85CLEANFILES = *.$(MODEXT)  mumps_addlibs.txt
    8986
    9087# Reset DEFS to that they don't show up for the Fortran compiler
     
    9289CFLAGS += $(MY_DEFS)
    9390FFLAGS += $(MY_FDEFS)
     91
     92thirdpartyincludedir = $(includedir)/coin/ThirdParty
     93thirdpartyinclude_HEADERS = \
     94  $(MUMPSDIR)/include/dmumps_c.h \
     95  $(MUMPSDIR)/include/mumps_compat.h \
     96  $(MUMPSDIR)/include/mumps_c_types.h \
     97  $(MUMPSDIR)/libseq/mpi.h
     98
     99if COIN_HAS_PKGCONFIG
     100addlibsdir = $(datadir)/coin/doc/ThirdParty/Mumps
     101addlibs_DATA = mumps_addlibs.txt
     102
     103mumps_addlibs.txt : coinmumps.pc
     104        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinmumps > mumps_addlibs.txt
     105endif
     106
     107pkgconfiglibdir = $(libdir)/pkgconfig
     108pkgconfiglib_DATA = coinmumps.pc
    94109
    95110########################################################################
  • ThirdParty/Mumps/trunk/Makefile.in

    r1530 r1548  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2007, 2010 International Business Machines and others.
     17# Copyright (C) 2007-2010 International Business Machines and others.
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    2828#                    Documentation installation                        #
    2929########################################################################
     30
     31
    3032
    3133srcdir = @srcdir@
     
    5355DIST_COMMON = $(am__configure_deps) \
    5456        $(srcdir)/../../BuildTools/Makemain.inc $(srcdir)/Makefile.am \
    55         $(srcdir)/Makefile.in $(top_srcdir)/configure config.guess \
    56         config.sub depcomp install-sh ltmain.sh missing
     57        $(srcdir)/Makefile.in $(srcdir)/coinmumps-uninstalled.pc.in \
     58        $(srcdir)/coinmumps.pc.in $(thirdpartyinclude_HEADERS) \
     59        $(top_srcdir)/configure config.guess config.sub depcomp \
     60        install-sh ltmain.sh missing
    5761@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    5862@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    6670 configure.lineno configure.status.lineno
    6771mkinstalldirs = $(install_sh) -d
    68 CONFIG_CLEAN_FILES =
    69 LTLIBRARIES = $(noinst_LTLIBRARIES)
     72CONFIG_CLEAN_FILES = coinmumps.pc coinmumps-uninstalled.pc
     73am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     74am__vpath_adj = case $$p in \
     75    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     76    *) f=$$p;; \
     77  esac;
     78am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     79am__installdirs = "$(DESTDIR)$(thirdpartylibdir)" \
     80        "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" \
     81        "$(DESTDIR)$(thirdpartyincludedir)"
     82thirdpartylibLTLIBRARIES_INSTALL = $(INSTALL)
     83LTLIBRARIES = $(thirdpartylib_LTLIBRARIES)
    7084libcoinmumps_la_LIBADD =
    7185nodist_libcoinmumps_la_OBJECTS = tools_common_mod.lo \
     
    7993        mumps_size.lo mpi.lo mpic.lo elapse.lo
    8094libcoinmumps_la_OBJECTS = $(nodist_libcoinmumps_la_OBJECTS)
    81 @SKIPMAKE_FALSE@am_libcoinmumps_la_rpath =
    8295depcomp = $(SHELL) $(top_srcdir)/depcomp
    8396am__depfiles_maybe = depfiles
     
    103116SOURCES = $(nodist_libcoinmumps_la_SOURCES)
    104117DIST_SOURCES =
     118addlibsDATA_INSTALL = $(INSTALL_DATA)
     119pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     120DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
     121thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER)
     122HEADERS = $(thirdpartyinclude_HEADERS)
    105123ETAGS = etags
    106124CTAGS = ctags
     
    116134distuninstallcheck_listfiles = find . -type f -print
    117135distcleancheck_listfiles = find . -type f -print
     136ABSBUILDDIR = @ABSBUILDDIR@
    118137ACLOCAL = @ACLOCAL@
    119138ADDLIBS = @ADDLIBS@
     
    131150AUX_DIR = @AUX_DIR@
    132151AWK = @AWK@
     152BLAS_CFLAGS = @BLAS_CFLAGS@
     153BLAS_DATA = @BLAS_DATA@
     154BLAS_LIBS = @BLAS_LIBS@
    133155BUILDTOOLSDIR = @BUILDTOOLSDIR@
    134156CC = @CC@
     
    136158CDEFS = @CDEFS@
    137159CFLAGS = @CFLAGS@ $(MY_DEFS)
    138 COIN_BUILD_BLAS_FALSE = @COIN_BUILD_BLAS_FALSE@
    139 COIN_BUILD_BLAS_TRUE = @COIN_BUILD_BLAS_TRUE@
    140 COIN_BUILD_MUMPS_FALSE = @COIN_BUILD_MUMPS_FALSE@
    141 COIN_BUILD_MUMPS_TRUE = @COIN_BUILD_MUMPS_TRUE@
    142160COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@
    143161COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@
    144162COIN_HAS_METIS_FALSE = @COIN_HAS_METIS_FALSE@
    145163COIN_HAS_METIS_TRUE = @COIN_HAS_METIS_TRUE@
    146 COIN_HAS_MUMPS_FALSE = @COIN_HAS_MUMPS_FALSE@
    147 COIN_HAS_MUMPS_TRUE = @COIN_HAS_MUMPS_TRUE@
     164COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     165COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
     166COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    148167CPP = @CPP@
    149168CPPFLAGS = @CPPFLAGS@
     
    188207MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    189208MAKEINFO = @MAKEINFO@
    190 MAKEOKFILE = @MAKEOKFILE@
     209METIS_CFLAGS = @METIS_CFLAGS@
     210METIS_DATA = @METIS_DATA@
     211METIS_LIBS = @METIS_LIBS@
    191212MPICC = @MPICC@
    192213MPIF77 = @MPIF77@
    193214MUMPSDIR = @MUMPSDIR@
    194 MUMPSINCDIR = @MUMPSINCDIR@
    195 MUMPSLIB = @MUMPSLIB@
    196 MUMPS_INCFLAGS = @MUMPS_INCFLAGS@
     215MUMPSOBJDIR = @MUMPSOBJDIR@
     216MUMPSSRCDIR = @MUMPSSRCDIR@
    197217MY_DEFS = @MY_DEFS@
    198218MY_FDEFS = @MY_FDEFS@
     
    207227PACKAGE_VERSION = @PACKAGE_VERSION@
    208228PATH_SEPARATOR = @PATH_SEPARATOR@
     229PKG_CONFIG = @PKG_CONFIG@
    209230RANLIB = @RANLIB@
     231REQUIREDPACKAGES = @REQUIREDPACKAGES@
    210232RPATH_FLAGS = @RPATH_FLAGS@
    211233SET_MAKE = @SET_MAKE@
    212234SHELL = @SHELL@
    213 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
    214 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    215235STRIP = @STRIP@
    216236VERSION = @VERSION@
     
    229249ac_ct_STRIP = @ac_ct_STRIP@
    230250ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     251ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    231252am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    232253am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    273294AUTOMAKE_OPTIONS = foreign
    274295EXTRA_DIST = get.mumps INSTALL.MUMPS $(am__append_1)
    275 @SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinmumps.la
    276 @SKIPMAKE_TRUE@noinst_LTLIBRARIES =
     296thirdpartylibdir = $(libdir)/coin/ThirdParty
     297thirdpartylib_LTLIBRARIES = libcoinmumps.la
    277298nodist_libcoinmumps_la_SOURCES = \
    278299        $(MUMPSDIR)/src/tools_common_mod.F \
     
    315336# Module files that need to be deleted
    316337MODEXT = mod
    317 CLEANFILES = *.$(MODEXT)
     338CLEANFILES = *.$(MODEXT)  mumps_addlibs.txt
     339thirdpartyincludedir = $(includedir)/coin/ThirdParty
     340thirdpartyinclude_HEADERS = \
     341  $(MUMPSDIR)/include/dmumps_c.h \
     342  $(MUMPSDIR)/include/mumps_compat.h \
     343  $(MUMPSDIR)/include/mumps_c_types.h \
     344  $(MUMPSDIR)/libseq/mpi.h
     345
     346@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/ThirdParty/Mumps
     347@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = mumps_addlibs.txt
     348pkgconfiglibdir = $(libdir)/pkgconfig
     349pkgconfiglib_DATA = coinmumps.pc
    318350
    319351########################################################################
     
    324356DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES)
    325357DocFiles = README AUTHORS LICENSE
    326 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     358DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    327359all: all-am
    328360
     
    362394$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    363395        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    364 
    365 clean-noinstLTLIBRARIES:
    366         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
    367         @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
     396coinmumps.pc: $(top_builddir)/config.status $(srcdir)/coinmumps.pc.in
     397        cd $(top_builddir) && $(SHELL) ./config.status $@
     398coinmumps-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinmumps-uninstalled.pc.in
     399        cd $(top_builddir) && $(SHELL) ./config.status $@
     400install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES)
     401        @$(NORMAL_INSTALL)
     402        test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     403        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     404          if test -f $$p; then \
     405            f=$(am__strip_dir) \
     406            echo " $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     407            $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     408          else :; fi; \
     409        done
     410
     411uninstall-thirdpartylibLTLIBRARIES:
     412        @$(NORMAL_UNINSTALL)
     413        @set -x; list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     414          p=$(am__strip_dir) \
     415          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(thirdpartylibdir)/$$p'"; \
     416          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(thirdpartylibdir)/$$p"; \
     417        done
     418
     419clean-thirdpartylibLTLIBRARIES:
     420        -test -z "$(thirdpartylib_LTLIBRARIES)" || rm -f $(thirdpartylib_LTLIBRARIES)
     421        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
    368422          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
    369423          test "$$dir" != "$$p" || dir=.; \
     
    372426        done
    373427libcoinmumps.la: $(libcoinmumps_la_OBJECTS) $(libcoinmumps_la_DEPENDENCIES)
    374         $(F77LINK) $(am_libcoinmumps_la_rpath) $(libcoinmumps_la_LDFLAGS) $(libcoinmumps_la_OBJECTS) $(libcoinmumps_la_LIBADD) $(LIBS)
     428        $(F77LINK) -rpath $(thirdpartylibdir) $(libcoinmumps_la_LDFLAGS) $(libcoinmumps_la_OBJECTS) $(libcoinmumps_la_LIBADD) $(LIBS)
    375429
    376430mostlyclean-compile:
     
    565619        -rm -f libtool
    566620uninstall-info-am:
     621install-addlibsDATA: $(addlibs_DATA)
     622        @$(NORMAL_INSTALL)
     623        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     624        @list='$(addlibs_DATA)'; for p in $$list; do \
     625          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     626          f=$(am__strip_dir) \
     627          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     628          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     629        done
     630
     631uninstall-addlibsDATA:
     632        @$(NORMAL_UNINSTALL)
     633        @list='$(addlibs_DATA)'; for p in $$list; do \
     634          f=$(am__strip_dir) \
     635          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     636          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     637        done
     638install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     639        @$(NORMAL_INSTALL)
     640        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     641        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     642          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     643          f=$(am__strip_dir) \
     644          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     645          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     646        done
     647
     648uninstall-pkgconfiglibDATA:
     649        @$(NORMAL_UNINSTALL)
     650        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     651          f=$(am__strip_dir) \
     652          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     653          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     654        done
     655install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS)
     656        @$(NORMAL_INSTALL)
     657        test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)"
     658        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     659          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     660          f=$(am__strip_dir) \
     661          echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     662          $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     663        done
     664
     665uninstall-thirdpartyincludeHEADERS:
     666        @$(NORMAL_UNINSTALL)
     667        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     668          f=$(am__strip_dir) \
     669          echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     670          rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     671        done
    567672
    568673ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    617722        $(am__remove_distdir)
    618723        mkdir $(distdir)
    619         $(mkdir_p) $(distdir)/../../BuildTools
     724        $(mkdir_p) $(distdir)/$(MUMPSDIR)/include $(distdir)/$(MUMPSDIR)/libseq $(distdir)/. $(distdir)/../../BuildTools
    620725        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    621726        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    743848check-am: all-am
    744849check: check-am
    745 all-am: Makefile $(LTLIBRARIES)
     850all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
    746851installdirs:
     852        for dir in "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
     853          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     854        done
    747855install: install-am
    748856install-exec: install-exec-am
     
    773881clean: clean-am
    774882
    775 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
     883clean-am: clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
    776884        mostlyclean-am
    777885
     
    793901info-am:
    794902
    795 install-data-am:
     903install-data-am: install-addlibsDATA install-pkgconfiglibDATA \
     904        install-thirdpartyincludeHEADERS \
     905        install-thirdpartylibLTLIBRARIES
    796906
    797907install-exec-am:
     
    823933ps-am:
    824934
    825 uninstall-am: uninstall-info-am
     935uninstall-am: uninstall-addlibsDATA uninstall-info-am \
     936        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     937        uninstall-thirdpartylibLTLIBRARIES
    826938
    827939.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
    828         clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \
    829         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    830         distcheck distclean distclean-compile distclean-generic \
    831         distclean-libtool distclean-tags distcleancheck distdir \
    832         distuninstallcheck dvi dvi-am html html-am info info-am \
    833         install install-am install-data install-data-am install-exec \
    834         install-exec-am install-info install-info-am install-man \
    835         install-strip installcheck installcheck-am installdirs \
    836         maintainer-clean maintainer-clean-generic mostlyclean \
    837         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    838         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    839         uninstall-info-am
     940        clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
     941        ctags dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \
     942        dist-zip distcheck distclean distclean-compile \
     943        distclean-generic distclean-libtool distclean-tags \
     944        distcleancheck distdir distuninstallcheck dvi dvi-am html \
     945        html-am info info-am install install-addlibsDATA install-am \
     946        install-data install-data-am install-exec install-exec-am \
     947        install-info install-info-am install-man \
     948        install-pkgconfiglibDATA install-strip \
     949        install-thirdpartyincludeHEADERS \
     950        install-thirdpartylibLTLIBRARIES installcheck installcheck-am \
     951        installdirs maintainer-clean maintainer-clean-generic \
     952        mostlyclean mostlyclean-compile mostlyclean-generic \
     953        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     954        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     955        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     956        uninstall-thirdpartylibLTLIBRARIES
    840957
    841958
     
    865982
    866983dmumps_part2.lo dmumps_part5.lo dmumps_part8.lo: tools_common_mod.lo
     984
     985@COIN_HAS_PKGCONFIG_TRUE@mumps_addlibs.txt : coinmumps.pc
     986@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinmumps > mumps_addlibs.txt
    867987
    868988install-doc: $(DocFiles)
  • ThirdParty/Mumps/trunk/configure

    r1529 r1548  
    1010#
    1111#
    12 # Copyright 2007-2008 International Business Machines and others.
     12# Copyright 2007-2009 International Business Machines and others.
    1313# All Rights Reserved.
    1414# This file is part of the open source package Coin which is distributed
     
    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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion _SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS CPP EGREP MY_DEFS 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSINCDIR MUMPSLIB COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE MUMPS_INCFLAGS COIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR MY_FDEFS 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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion _SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS CPP EGREP MY_DEFS 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH BLAS_LIBS BLAS_CFLAGS BLAS_DATA REQUIREDPACKAGES COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    990990ac_cv_env_CXXCPP_set=${CXXCPP+set}
    991991ac_cv_env_CXXCPP_value=$CXXCPP
     992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     993ac_env_PKG_CONFIG_value=$PKG_CONFIG
     994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    992996
    993997#
     
    10891093                          optimize for fast installation [default=yes]
    10901094  --disable-libtool-lock  avoid locking (might break parallel builds)
    1091   --enable-mumps-libcheck use disable-mumps-libcheck to skip the
    1092                           link check at configuration time
     1095  --enable-pkg-config     use pkg-config if available (default is yes)
    10931096
    10941097Optional Packages:
     
    11031106                          include additional configurations [automatic]
    11041107  --with-blas             specify BLAS library (or BUILD for compilation)
    1105   --with-metis            specify flags to link with METIS library
    1106   --with-mumps-incdir specify the header file directory for library mumps
    1107   --with-mumps-lib specify the flags used to link with the library mumps
     1108
     1109  --with-coin-instdir     prefix of installation directory for precompiled
     1110                          COIN packages
     1111  --with-blas-lib linker flags for using module Blas
     1112  --with-blas-incdir directory with header files for using module Blas
     1113  --with-blas-datadir directory with data files for using module Blas
     1114  --with-metis-lib linker flags for using module Metis
     1115  --with-metis-incdir directory with header files for using module Metis
     1116  --with-metis-datadir directory with data files for using module Metis
    11081117
    11091118Some influential environment variables:
     
    11291138  CXXFLAGS    C++ compiler flags
    11301139  CXXCPP      C++ preprocessor
     1140  PKG_CONFIG  path to pkg-config utility
    11311141
    11321142Use these variables to override the choices made by `configure' or to help
     
    12371247
    12381248
    1239 Copyright 2007-2008 International Business Machines and others.
     1249Copyright 2007-2009 International Business Machines and others.
    12401250All Rights Reserved.
    12411251This file is part of the open source package Coin which is distributed
     
    33583368
    33593369# Provide some information about the compiler.
    3360 echo "$as_me:3360:" \
     3370echo "$as_me:3370:" \
    33613371     "checking for Fortran 77 compiler version" >&5
    33623372ac_compiler=`set X $ac_compile; echo $2`
     
    39263936ac_save_FFLAGS=$FFLAGS
    39273937FFLAGS="$FFLAGS $ac_verb"
    3928 (eval echo $as_me:3928: \"$ac_link\") >&5
     3938(eval echo $as_me:3938: \"$ac_link\") >&5
    39293939ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    39303940echo "$ac_f77_v_output" >&5
     
    40044014ac_save_FFLAGS=$FFLAGS
    40054015FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    4006 (eval echo $as_me:4006: \"$ac_link\") >&5
     4016(eval echo $as_me:4016: \"$ac_link\") >&5
    40074017ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    40084018echo "$ac_f77_v_output" >&5
     
    47524762
    47534763
     4764
     4765# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4766coin_need_flibs=yes
    47544767
    47554768# We need to translate the result from autoconf to what MUMPS wants
     
    70587071*-*-irix6*)
    70597072  # Find out which ABI we are using.
    7060   echo '#line 7060 "configure"' > conftest.$ac_ext
     7073  echo '#line 7073 "configure"' > conftest.$ac_ext
    70617074  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    70627075  (eval $ac_compile) 2>&5
     
    90549067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90559068   -e 's:$: $lt_compiler_flag:'`
    9056    (eval echo "\"\$as_me:9056: $lt_compile\"" >&5)
     9069   (eval echo "\"\$as_me:9069: $lt_compile\"" >&5)
    90579070   (eval "$lt_compile" 2>conftest.err)
    90589071   ac_status=$?
    90599072   cat conftest.err >&5
    9060    echo "$as_me:9060: \$? = $ac_status" >&5
     9073   echo "$as_me:9073: \$? = $ac_status" >&5
    90619074   if (exit $ac_status) && test -s "$ac_outfile"; then
    90629075     # The compiler can only warn and ignore the option if not recognized
     
    93229335   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    93239336   -e 's:$: $lt_compiler_flag:'`
    9324    (eval echo "\"\$as_me:9324: $lt_compile\"" >&5)
     9337   (eval echo "\"\$as_me:9337: $lt_compile\"" >&5)
    93259338   (eval "$lt_compile" 2>conftest.err)
    93269339   ac_status=$?
    93279340   cat conftest.err >&5
    9328    echo "$as_me:9328: \$? = $ac_status" >&5
     9341   echo "$as_me:9341: \$? = $ac_status" >&5
    93299342   if (exit $ac_status) && test -s "$ac_outfile"; then
    93309343     # The compiler can only warn and ignore the option if not recognized
     
    94269439   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    94279440   -e 's:$: $lt_compiler_flag:'`
    9428    (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
     9441   (eval echo "\"\$as_me:9441: $lt_compile\"" >&5)
    94299442   (eval "$lt_compile" 2>out/conftest.err)
    94309443   ac_status=$?
    94319444   cat out/conftest.err >&5
    9432    echo "$as_me:9432: \$? = $ac_status" >&5
     9445   echo "$as_me:9445: \$? = $ac_status" >&5
    94339446   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    94349447   then
     
    1184311856  lt_status=$lt_dlunknown
    1184411857  cat > conftest.$ac_ext <<EOF
    11845 #line 11845 "configure"
     11858#line 11858 "configure"
    1184611859#include "confdefs.h"
    1184711860
     
    1194311956  lt_status=$lt_dlunknown
    1194411957  cat > conftest.$ac_ext <<EOF
    11945 #line 11945 "configure"
     11958#line 11958 "configure"
    1194611959#include "confdefs.h"
    1194711960
     
    1430314316   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1430414317   -e 's:$: $lt_compiler_flag:'`
    14305    (eval echo "\"\$as_me:14305: $lt_compile\"" >&5)
     14318   (eval echo "\"\$as_me:14318: $lt_compile\"" >&5)
    1430614319   (eval "$lt_compile" 2>conftest.err)
    1430714320   ac_status=$?
    1430814321   cat conftest.err >&5
    14309    echo "$as_me:14309: \$? = $ac_status" >&5
     14322   echo "$as_me:14322: \$? = $ac_status" >&5
    1431014323   if (exit $ac_status) && test -s "$ac_outfile"; then
    1431114324     # The compiler can only warn and ignore the option if not recognized
     
    1440714420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1440814421   -e 's:$: $lt_compiler_flag:'`
    14409    (eval echo "\"\$as_me:14409: $lt_compile\"" >&5)
     14422   (eval echo "\"\$as_me:14422: $lt_compile\"" >&5)
    1441014423   (eval "$lt_compile" 2>out/conftest.err)
    1441114424   ac_status=$?
    1441214425   cat out/conftest.err >&5
    14413    echo "$as_me:14413: \$? = $ac_status" >&5
     14426   echo "$as_me:14426: \$? = $ac_status" >&5
    1441414427   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1441514428   then
     
    1597715990   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1597815991   -e 's:$: $lt_compiler_flag:'`
    15979    (eval echo "\"\$as_me:15979: $lt_compile\"" >&5)
     15992   (eval echo "\"\$as_me:15992: $lt_compile\"" >&5)
    1598015993   (eval "$lt_compile" 2>conftest.err)
    1598115994   ac_status=$?
    1598215995   cat conftest.err >&5
    15983    echo "$as_me:15983: \$? = $ac_status" >&5
     15996   echo "$as_me:15996: \$? = $ac_status" >&5
    1598415997   if (exit $ac_status) && test -s "$ac_outfile"; then
    1598515998     # The compiler can only warn and ignore the option if not recognized
     
    1608116094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1608216095   -e 's:$: $lt_compiler_flag:'`
    16083    (eval echo "\"\$as_me:16083: $lt_compile\"" >&5)
     16096   (eval echo "\"\$as_me:16096: $lt_compile\"" >&5)
    1608416097   (eval "$lt_compile" 2>out/conftest.err)
    1608516098   ac_status=$?
    1608616099   cat out/conftest.err >&5
    16087    echo "$as_me:16087: \$? = $ac_status" >&5
     16100   echo "$as_me:16100: \$? = $ac_status" >&5
    1608816101   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1608916102   then
     
    1828818301   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1828918302   -e 's:$: $lt_compiler_flag:'`
    18290    (eval echo "\"\$as_me:18290: $lt_compile\"" >&5)
     18303   (eval echo "\"\$as_me:18303: $lt_compile\"" >&5)
    1829118304   (eval "$lt_compile" 2>conftest.err)
    1829218305   ac_status=$?
    1829318306   cat conftest.err >&5
    18294    echo "$as_me:18294: \$? = $ac_status" >&5
     18307   echo "$as_me:18307: \$? = $ac_status" >&5
    1829518308   if (exit $ac_status) && test -s "$ac_outfile"; then
    1829618309     # The compiler can only warn and ignore the option if not recognized
     
    1855618569   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1855718570   -e 's:$: $lt_compiler_flag:'`
    18558    (eval echo "\"\$as_me:18558: $lt_compile\"" >&5)
     18571   (eval echo "\"\$as_me:18571: $lt_compile\"" >&5)
    1855918572   (eval "$lt_compile" 2>conftest.err)
    1856018573   ac_status=$?
    1856118574   cat conftest.err >&5
    18562    echo "$as_me:18562: \$? = $ac_status" >&5
     18575   echo "$as_me:18575: \$? = $ac_status" >&5
    1856318576   if (exit $ac_status) && test -s "$ac_outfile"; then
    1856418577     # The compiler can only warn and ignore the option if not recognized
     
    1866018673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1866118674   -e 's:$: $lt_compiler_flag:'`
    18662    (eval echo "\"\$as_me:18662: $lt_compile\"" >&5)
     18675   (eval echo "\"\$as_me:18675: $lt_compile\"" >&5)
    1866318676   (eval "$lt_compile" 2>out/conftest.err)
    1866418677   ac_status=$?
    1866518678   cat out/conftest.err >&5
    18666    echo "$as_me:18666: \$? = $ac_status" >&5
     18679   echo "$as_me:18679: \$? = $ac_status" >&5
    1866718680   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1866818681   then
     
    2157821591}
    2157921592
    21580 # Check for user-provided BLAS library, but make sure it is not added to libcoinmumps.a
    21581 save_LIBS="$LIBS"
    21582 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then
    21583   coin_blasobjdir=../Blas
    21584 else
    21585   coin_blasobjdir=../ThirdParty/Blas
    21586 fi
    21587 coin_blassrcdir=$srcdir/$coin_blasobjdir
     21593
     21594
     21595# Check whether --enable-pkg-config or --disable-pkg-config was given.
     21596if test "${enable_pkg_config+set}" = set; then
     21597  enableval="$enable_pkg_config"
     21598  use_pkgconfig="$enableval"
     21599else
     21600  use_pkgconfig=yes
     21601fi;
     21602
     21603if test $use_pkgconfig = yes ; then
     21604  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     21605    if test -n "$ac_tool_prefix"; then
     21606  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     21607set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     21608echo "$as_me:$LINENO: checking for $ac_word" >&5
     21609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     21610if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     21611  echo $ECHO_N "(cached) $ECHO_C" >&6
     21612else
     21613  case $PKG_CONFIG in
     21614  [\\/]* | ?:[\\/]*)
     21615  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     21616  ;;
     21617  *)
     21618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     21619for as_dir in $PATH
     21620do
     21621  IFS=$as_save_IFS
     21622  test -z "$as_dir" && as_dir=.
     21623  for ac_exec_ext in '' $ac_executable_extensions; do
     21624  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     21625    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     21626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     21627    break 2
     21628  fi
     21629done
     21630done
     21631
     21632  ;;
     21633esac
     21634fi
     21635PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     21636
     21637if test -n "$PKG_CONFIG"; then
     21638  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     21639echo "${ECHO_T}$PKG_CONFIG" >&6
     21640else
     21641  echo "$as_me:$LINENO: result: no" >&5
     21642echo "${ECHO_T}no" >&6
     21643fi
     21644
     21645fi
     21646if test -z "$ac_cv_path_PKG_CONFIG"; then
     21647  ac_pt_PKG_CONFIG=$PKG_CONFIG
     21648  # Extract the first word of "pkg-config", so it can be a program name with args.
     21649set dummy pkg-config; ac_word=$2
     21650echo "$as_me:$LINENO: checking for $ac_word" >&5
     21651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     21652if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     21653  echo $ECHO_N "(cached) $ECHO_C" >&6
     21654else
     21655  case $ac_pt_PKG_CONFIG in
     21656  [\\/]* | ?:[\\/]*)
     21657  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     21658  ;;
     21659  *)
     21660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     21661for as_dir in $PATH
     21662do
     21663  IFS=$as_save_IFS
     21664  test -z "$as_dir" && as_dir=.
     21665  for ac_exec_ext in '' $ac_executable_extensions; do
     21666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     21667    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     21668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     21669    break 2
     21670  fi
     21671done
     21672done
     21673
     21674  ;;
     21675esac
     21676fi
     21677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     21678
     21679if test -n "$ac_pt_PKG_CONFIG"; then
     21680  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     21681echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     21682else
     21683  echo "$as_me:$LINENO: result: no" >&5
     21684echo "${ECHO_T}no" >&6
     21685fi
     21686
     21687  PKG_CONFIG=$ac_pt_PKG_CONFIG
     21688else
     21689  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     21690fi
     21691
     21692  fi
     21693  if test -n "$PKG_CONFIG"; then
     21694    _pkg_min_version=0.9.0
     21695    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     21696echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     21697    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     21698      echo "$as_me:$LINENO: result: yes" >&5
     21699echo "${ECHO_T}yes" >&6
     21700    else
     21701      echo "$as_me:$LINENO: result: no" >&5
     21702echo "${ECHO_T}no" >&6
     21703      PKG_CONFIG=""
     21704    fi
     21705  fi
     21706
     21707  # check if pkg-config supports the short-errors flag
     21708  if test -n "$PKG_CONFIG" && \
     21709    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     21710    pkg_short_errors=" --short-errors "
     21711  else
     21712    pkg_short_errors=""
     21713  fi
     21714fi
     21715
     21716
     21717
     21718if test -n "$PKG_CONFIG"; then
     21719  COIN_HAS_PKGCONFIG_TRUE=
     21720  COIN_HAS_PKGCONFIG_FALSE='#'
     21721else
     21722  COIN_HAS_PKGCONFIG_TRUE='#'
     21723  COIN_HAS_PKGCONFIG_FALSE=
     21724fi
     21725
     21726
     21727
     21728# assemble search path for pkg-config, if we are in a project setup
     21729if test x$coin_projectdir = xyes ; then
     21730  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     21731
     21732  # 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
     21733  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     21734  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     21735  if test -d "${prefix}"; then
     21736    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     21737  fi
     21738
     21739
     21740# Check whether --with-coin-instdir or --without-coin-instdir was given.
     21741if test "${with_coin_instdir+set}" = set; then
     21742  withval="$with_coin_instdir"
     21743  if test -d "$withval"; then : ; else
     21744       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     21745echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     21746   { (exit 1); exit 1; }; }
     21747     fi
     21748     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     21749
     21750fi;
     21751
     21752  # in a classic setup, we want to find uninstalled projects
     21753  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     21754  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     21755  # 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)
     21756  if test -e ../coin_subdirs.txt ; then
     21757    for i in `cat ../coin_subdirs.txt` ; do
     21758      if test -d ../$i ; then
     21759        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     21760      fi
     21761    done
     21762  fi
     21763
     21764  if test -e ../../coin_subdirs.txt ; then
     21765    for i in `cat ../../coin_subdirs.txt` ; do
     21766      if test -d ../../$i ; then
     21767        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     21768      fi
     21769    done
     21770  fi
     21771
     21772
     21773fi
     21774
     21775
    2158821776
    2158921777
     
    2159121779if test "${with_blas+set}" = set; then
    2159221780  withval="$with_blas"
    21593   use_blas=$withval
     21781  use_blas="$withval"
    2159421782else
    2159521783  use_blas=
    2159621784fi;
    2159721785
    21598 MAKEOKFILE=.MakeOk
     21786#if user specified --with-blas-lib, then we should give COIN_HAS_MODULE preference
     21787
     21788# Check whether --with-blas-lib or --without-blas-lib was given.
     21789if test "${with_blas_lib+set}" = set; then
     21790  withval="$with_blas_lib"
     21791  use_blas=BUILD
     21792fi;
     21793
    2159921794# Check if user supplied option makes sense
    2160021795if test x"$use_blas" != x; then
    2160121796  if test "$use_blas" = "BUILD"; then
    21602     # Don't check for course code if this is executed in ThirdParty/Blas
    21603     if test "$PACKAGE_NAME" != ThirdPartyBlas; then
    21604       if test -r $coin_blasobjdir/.MakeOk; then :; else
    21605         { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5
    21606 echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;}
    21607    { (exit 1); exit 1; }; }
    21608       fi
    21609     fi
    21610   elif test "$use_blas" != no ; then
     21797    # we come to this later
     21798    :
     21799  elif test "$use_blas" != "no"; then
    2161121800    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
    2161221801echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
     21802    coin_save_LIBS="$LIBS"
    2161321803    LIBS="$use_blas $LIBS"
    21614     ADDLIBS="$use_blas $ADDLIBS"
    2161521804    case $ac_ext in
    2161621805  f)
     
    2166221851  echo "$as_me:$LINENO: result: yes" >&5
    2166321852echo "${ECHO_T}yes" >&6
     21853                       ADDLIBS="$use_blas $ADDLIBS"
    2166421854else
    2166521855  echo "$as_me: failed program was:" >&5
     
    2175621946      echo "$as_me:$LINENO: result: yes" >&5
    2175721947echo "${ECHO_T}yes" >&6
     21948                       ADDLIBS="$use_blas $ADDLIBS"
    2175821949    else
    2175921950      if test x"$FLIBS" != x; then
     
    2180821999                     echo "$as_me:$LINENO: result: yes" >&5
    2180922000echo "${ECHO_T}yes" >&6
     22001                       ADDLIBS="$use_blas $ADDLIBS"
    2181022002                     coin_need_flibs=yes
    2181122003else
     
    2191222104      echo "$as_me:$LINENO: result: yes" >&5
    2191322105echo "${ECHO_T}yes" >&6
     22106                       ADDLIBS="$use_blas $ADDLIBS"
    2191422107    else
    2191522108      if test x"$FLIBS" != x; then
     
    2196422157                     echo "$as_me:$LINENO: result: yes" >&5
    2196522158echo "${ECHO_T}yes" >&6
     22159                       ADDLIBS="$use_blas $ADDLIBS"
    2196622160                     coin_need_flibs=yes
    2196722161else
     
    2198922183esac
    2199022184
     22185    LIBS="$coin_save_LIBS"
    2199122186  fi
    2199222187else
     
    2199622191  case $build in
    2199722192    *-sgi-*)
    21998       SAVE_LIBS="$LIBS"
    2199922193      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
    2200022194echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
     22195      SAVE_LIBS="$LIBS"
    2200122196      LIBS="-lcomplib.sgimath $LIBS"
    2200222197      case $ac_ext in
     
    2354623741
    2354723742  fi
    23548 
    23549 # If we have no other ideas, consider building BLAS.
    23550   if test -z "$use_blas"; then
    23551     if test "$PACKAGE_NAME" != ThirdPartyBlas; then
    23552       if test -r $coin_blasobjdir/.MakeOk; then
    23553         use_blas=BUILD
     23743  LIBS="$SAVE_LIBS"
     23744
     23745  # If we have no other ideas, consider building BLAS.
     23746  if test -z "$use_blas" ; then
     23747    use_blas=BUILD
     23748  fi
     23749fi
     23750
     23751if test "x$use_blas" = xBUILD ; then
     23752  if test -d ../ThirdParty/Blas ; then
     23753    blasdir=../ThirdParty/Blas
     23754  else
     23755    blasdir=../Blas
     23756  fi
     23757
     23758echo "$as_me:$LINENO: checking for COIN-OR module Blas" >&5
     23759echo $ECHO_N "checking for COIN-OR module Blas... $ECHO_C" >&6
     23760
     23761coin_has_blas=notGiven
     23762
     23763# check if user wants to skip module in any case
     23764if test x"$COIN_SKIP_PROJECTS" != x; then
     23765  for dir in $COIN_SKIP_PROJECTS; do
     23766    if test $dir = "Blas"; then
     23767      coin_has_blas=skipping
     23768    fi
     23769  done
     23770fi
     23771
     23772BLAS_LIBS=
     23773BLAS_CFLAGS=
     23774BLAS_DATA=
     23775
     23776
     23777
     23778
     23779
     23780#check if user provided LIBS, CFLAGS, and DATA for module
     23781if test $coin_has_blas != skipping; then
     23782
     23783
     23784# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
     23785if test "${with_blas_lib+set}" = set; then
     23786  withval="$with_blas_lib"
     23787  coin_has_blas=yes
     23788       BLAS_LIBS="$withval"
     23789       ADDLIBS="$ADDLIBS $withval"
     23790
     23791fi;
     23792
     23793
     23794# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
     23795if test "${with_blas_incdir+set}" = set; then
     23796  withval="$with_blas_incdir"
     23797  coin_has_blas=yes
     23798     BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
     23799fi;
     23800
     23801
     23802# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
     23803if test "${with_blas_datadir+set}" = set; then
     23804  withval="$with_blas_datadir"
     23805  coin_has_blas=yes
     23806     BLAS_DATA="$withval"
     23807fi;
     23808fi
     23809
     23810if test $coin_has_blas = notGiven; then
     23811  if test -n "$PKG_CONFIG" ; then
     23812    # set search path for pkg-config
     23813    # need to export variable to be sure that the following pkg-config gets these values
     23814    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     23815    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     23816    export PKG_CONFIG_PATH
     23817
     23818    # let pkg-config do it's magic
     23819
     23820
     23821
     23822if test -n "$PKG_CONFIG" ; then
     23823  if $PKG_CONFIG --exists "coinblas"; then
     23824    BLAS_VERSIONS="`$PKG_CONFIG --modversion coinblas 2>/dev/null`"
     23825     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
     23826    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     23827        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     23828        # but only do this if is not trivial
     23829    if test "$CYGPATH_W" != "echo" ; then
     23830      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     23831          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     23832        fi
     23833    BLAS_CFLAGS="$cflags"
     23834    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
     23835    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
     23836     coin_has_blas=yes
     23837        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
     23838echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
     23839        REQUIREDPACKAGES="$REQUIREDPACKAGES coinblas"
     23840
     23841
     23842  else
     23843    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinblas`
     23844      coin_has_blas=notGiven
     23845        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
     23846echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
     23847
     23848  fi
     23849else
     23850  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
     23851echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
     23852   { (exit 1); exit 1; }; }
     23853fi
     23854
     23855
     23856
     23857
     23858    # reset PKG_CONFIG_PATH variable
     23859    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     23860  else
     23861    #if 4th argument is given, try fallback - whereby we take the first word from coinblas as basename for the .pc file
     23862
     23863if test x$coin_has_blas != "xyes" ; then
     23864
     23865
     23866
     23867coin_has_blas=notGiven
     23868
     23869# check if user wants to skip module in any case
     23870if test x"$COIN_SKIP_PROJECTS" != x; then
     23871  for dir in $COIN_SKIP_PROJECTS; do
     23872    if test $dir = "Blas"; then
     23873      coin_has_blas=skipping
     23874    fi
     23875  done
     23876fi
     23877
     23878BLAS_LIBS=
     23879BLAS_CFLAGS=
     23880BLAS_DATA=
     23881
     23882
     23883if test $coin_has_blas != "skipping" ; then
     23884  # if the project is available and configured, then a project-uninstalled.pc file should have been created
     23885  if test -r $blasdir/coinblas-uninstalled.pc ; then
     23886    # read CFLAGS and LIBS from m4_bpatsubst(coinblas, [ .*], [])-uninstalled.pc file
     23887    # add CYGPATH_W cludge into include flags
     23888    # replace -L${libdir} by absolute path to build directory in linker flags
     23889    # we assume that the build directory is $blasdir/src if this directory exists, otherwise we assume that it is $blasdir
     23890    BLAS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' $blasdir/coinblas-uninstalled.pc`
     23891    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' $blasdir/coinblas-uninstalled.pc`
     23892    if test "x$projectlibs" != x ; then
     23893      if test -d $blasdir/src ; then
     23894        BLAS_LIBS="-L`cd $blasdir/src; pwd` $projectlibs"
     23895      else
     23896        BLAS_LIBS="-L`cd $blasdir; pwd` $projectlibs"
    2355423897      fi
     23898    else
     23899      BLAS_LIBS=`sed -n -e 's/Libs://p' $blasdir/coinblas-uninstalled.pc`
    2355523900    fi
    23556   fi
    23557 fi
    23558 
    23559 if test "$use_blas" = BUILD; then
    23560   coin_need_flibs=yes
    23561 fi
    23562 
    23563 
    23564 
    23565 if test x"$use_blas" != x; then
    23566   COIN_HAS_BLAS_TRUE=
    23567   COIN_HAS_BLAS_FALSE='#'
    23568 else
    23569   COIN_HAS_BLAS_TRUE='#'
    23570   COIN_HAS_BLAS_FALSE=
    23571 fi
    23572 
    23573 
    23574 
    23575 if test "$use_blas" = BUILD; then
    23576   COIN_BUILD_BLAS_TRUE=
    23577   COIN_BUILD_BLAS_FALSE='#'
    23578 else
    23579   COIN_BUILD_BLAS_TRUE='#'
    23580   COIN_BUILD_BLAS_FALSE=
    23581 fi
    23582 
    23583 
    23584 if test x"$use_blas" = x || test "$use_blas" = no; then
    23585   coin_has_blas=no
    23586 else
    23587   coin_has_blas=yes
     23901    BLAS_DATA=`sed -n -e 's/datadir=//gp' $blasdir/coinblas-uninstalled.pc`
     23902
     23903    ADDLIBS="$ADDLIBS $BLAS_LIBS"
     23904       REQUIREDPACKAGES="$REQUIREDPACKAGES coinblas"
     23905
     23906
    2358823907
    2358923908cat >>confdefs.h <<\_ACEOF
     
    2359123910_ACEOF
    2359223911
    23593 fi
    23594 
    23595 LIBS="$save_LIBS"
    23596 
    23597 # Check if Metis is available
    23598 
    23599 case "$PACKAGE_NAME" in
    23600   ThirdParty*)
    23601     coin_metisobjdir=../Metis
    23602     ;;
    23603   *)
    23604     coin_metisobjdir=../ThirdParty/Metis
    23605     ;;
    23606 esac
    23607 
    23608 MAKEOKFILE=.MakeOk
    23609 
    23610 #check if user provides a METIS library (that works)
    23611 ac_ext=c
    23612 ac_cpp='$CPP $CPPFLAGS'
    23613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23616 
    23617 
    23618 # Check whether --with-metis or --without-metis was given.
    23619 if test "${with_metis+set}" = set; then
    23620   withval="$with_metis"
    23621   METISLIB="$withval"; coin_has_metis=true
    23622 else
    23623   coin_has_metis=no
     23912
     23913
     23914    coin_has_blas=yes
     23915    echo "$as_me:$LINENO: result: $blasdir" >&5
     23916echo "${ECHO_T}$blasdir" >&6
     23917  else
     23918    echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     23919echo "${ECHO_T}$coin_has_blas" >&6
     23920  fi
     23921else
     23922  echo "$as_me:$LINENO: result: skipping" >&5
     23923echo "${ECHO_T}skipping" >&6
     23924fi
     23925
     23926#if user did not disable setting of makefile conditional, do it
     23927
     23928
     23929if test $coin_has_blas != notGiven &&
     23930                test $coin_has_blas != skipping; then
     23931  COIN_HAS_BLAS_TRUE=
     23932  COIN_HAS_BLAS_FALSE='#'
     23933else
     23934  COIN_HAS_BLAS_TRUE='#'
     23935  COIN_HAS_BLAS_FALSE=
     23936fi
     23937
     23938
     23939fi
     23940
     23941
     23942  fi
     23943
     23944else
     23945  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     23946echo "${ECHO_T}$coin_has_blas" >&6
     23947fi
     23948
     23949if test $coin_has_blas != skipping &&
     23950   test $coin_has_blas != notGiven ; then
     23951  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     23952  if test -n "$BLAS_CFLAGS" ; then
     23953    { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     23954echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
     23955  fi
     23956  if test -n "$BLAS_LIBS" ; then
     23957    { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
     23958echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
     23959  fi
     23960  if test -n "$BLAS_DATA" ; then
     23961    { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
     23962echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
     23963  fi
     23964  fi
     23965
     23966cat >>confdefs.h <<\_ACEOF
     23967#define COIN_HAS_BLAS 1
     23968_ACEOF
     23969
     23970fi
     23971
     23972# Define the Makefile conditional
     23973
     23974
     23975if test $coin_has_blas != notGiven &&
     23976                test $coin_has_blas != skipping; then
     23977  COIN_HAS_BLAS_TRUE=
     23978  COIN_HAS_BLAS_FALSE='#'
     23979else
     23980  COIN_HAS_BLAS_TRUE='#'
     23981  COIN_HAS_BLAS_FALSE=
     23982fi
     23983
     23984
     23985
     23986
     23987elif test "x$use_blas" != x && test "$use_blas" != no; then
     23988  coin_has_blas=yes
     23989
     23990
     23991if test 0 = 0; then
     23992  COIN_HAS_BLAS_TRUE=
     23993  COIN_HAS_BLAS_FALSE='#'
     23994else
     23995  COIN_HAS_BLAS_TRUE='#'
     23996  COIN_HAS_BLAS_FALSE=
     23997fi
     23998
     23999
     24000cat >>confdefs.h <<\_ACEOF
     24001#define COIN_HAS_BLAS 1
     24002_ACEOF
     24003
     24004  BLAS_LIBS="$use_blas"
     24005  BLAS_CFLAGS=
     24006  BLAS_DATA=
     24007
     24008
     24009
     24010
     24011else
     24012  coin_has_blas=no
     24013
     24014
     24015if test 0 = 1; then
     24016  COIN_HAS_BLAS_TRUE=
     24017  COIN_HAS_BLAS_FALSE='#'
     24018else
     24019  COIN_HAS_BLAS_TRUE='#'
     24020  COIN_HAS_BLAS_FALSE=
     24021fi
     24022
     24023fi
     24024
     24025
     24026
     24027echo "$as_me:$LINENO: checking for COIN-OR module Metis" >&5
     24028echo $ECHO_N "checking for COIN-OR module Metis... $ECHO_C" >&6
     24029
     24030coin_has_metis=notGiven
     24031
     24032# check if user wants to skip module in any case
     24033if test x"$COIN_SKIP_PROJECTS" != x; then
     24034  for dir in $COIN_SKIP_PROJECTS; do
     24035    if test $dir = "Metis"; then
     24036      coin_has_metis=skipping
     24037    fi
     24038  done
     24039fi
     24040
     24041METIS_LIBS=
     24042METIS_CFLAGS=
     24043METIS_DATA=
     24044
     24045
     24046
     24047
     24048
     24049#check if user provided LIBS, CFLAGS, and DATA for module
     24050if test $coin_has_metis != skipping; then
     24051
     24052
     24053# Check whether --with-m4_tolower(Metis)-lib or --without-m4_tolower(Metis)-lib was given.
     24054if test "${with_metis_lib+set}" = set; then
     24055  withval="$with_metis_lib"
     24056  coin_has_metis=yes
     24057       METIS_LIBS="$withval"
     24058       ADDLIBS="$ADDLIBS $withval"
     24059
    2362424060fi;
    2362524061
    23626 if test $coin_has_metis = true; then
    23627   coin_save_LIBS="$LIBS"
    23628   LIBS="$METISLIB $ADDLIBS"
    23629   echo "$as_me:$LINENO: checking whether symbol metis_nodend is available with " >&5
    23630 echo $ECHO_N "checking whether symbol metis_nodend is available with ... $ECHO_C" >&6
    23631   cat >conftest.$ac_ext <<_ACEOF
    23632 /* confdefs.h.  */
    23633 _ACEOF
    23634 cat confdefs.h >>conftest.$ac_ext
    23635 cat >>conftest.$ac_ext <<_ACEOF
    23636 /* end confdefs.h.  */
    23637 
    23638 #ifdef F77_DUMMY_MAIN
    23639 
    23640 #  ifdef __cplusplus
    23641      extern "C"
    23642 #  endif
    23643    int F77_DUMMY_MAIN() { return 1; }
    23644 
    23645 #endif
    23646 int
    23647 main ()
    23648 {
    23649 metis_nodend()
    23650   ;
    23651   return 0;
    23652 }
    23653 _ACEOF
    23654 rm -f conftest.$ac_objext conftest$ac_exeext
    23655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23656   (eval $ac_link) 2>conftest.er1
    23657   ac_status=$?
    23658   grep -v '^ *+' conftest.er1 >conftest.err
    23659   rm -f conftest.er1
    23660   cat conftest.err >&5
    23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23662   (exit $ac_status); } &&
    23663          { ac_try='test -z "$ac_c_werror_flag"
    23664                          || test ! -s conftest.err'
    23665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23666   (eval $ac_try) 2>&5
    23667   ac_status=$?
    23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23669   (exit $ac_status); }; } &&
    23670          { ac_try='test -s conftest$ac_exeext'
    23671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23672   (eval $ac_try) 2>&5
    23673   ac_status=$?
    23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23675   (exit $ac_status); }; }; then
    23676   echo "$as_me:$LINENO: result: yes" >&5
    23677 echo "${ECHO_T}yes" >&6
    23678 else
    23679   echo "$as_me: failed program was:" >&5
    23680 sed 's/^/| /' conftest.$ac_ext >&5
    23681 
    23682 echo "$as_me:$LINENO: result: no" >&5
    23683 echo "${ECHO_T}no" >&6
    23684       { { echo "$as_me:$LINENO: error: User-supplied METIS library does not work" >&5
    23685 echo "$as_me: error: User-supplied METIS library does not work" >&2;}
     24062
     24063# Check whether --with-m4_tolower(Metis)-incdir or --without-m4_tolower(Metis)-incdir was given.
     24064if test "${with_metis_incdir+set}" = set; then
     24065  withval="$with_metis_incdir"
     24066  coin_has_metis=yes
     24067     METIS_CFLAGS="-I`${CYGPATH_W} $withval`"
     24068fi;
     24069
     24070
     24071# Check whether --with-m4_tolower(Metis)-datadir or --without-m4_tolower(Metis)-datadir was given.
     24072if test "${with_metis_datadir+set}" = set; then
     24073  withval="$with_metis_datadir"
     24074  coin_has_metis=yes
     24075     METIS_DATA="$withval"
     24076fi;
     24077fi
     24078
     24079if test $coin_has_metis = notGiven; then
     24080  if test -n "$PKG_CONFIG" ; then
     24081    # set search path for pkg-config
     24082    # need to export variable to be sure that the following pkg-config gets these values
     24083    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     24084    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH"
     24085    export PKG_CONFIG_PATH
     24086
     24087    # let pkg-config do it's magic
     24088
     24089
     24090
     24091if test -n "$PKG_CONFIG" ; then
     24092  if $PKG_CONFIG --exists "coinmetis >= 4.0"; then
     24093    METIS_VERSIONS="`$PKG_CONFIG --modversion coinmetis >= 4.0 2>/dev/null`"
     24094     cflags=`$PKG_CONFIG --cflags "coinmetis >= 4.0" 2>/dev/null`
     24095    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     24096        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     24097        # but only do this if is not trivial
     24098    if test "$CYGPATH_W" != "echo" ; then
     24099      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     24100          cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     24101        fi
     24102    METIS_CFLAGS="$cflags"
     24103    METIS_LIBS=`$PKG_CONFIG --libs "coinmetis >= 4.0" 2>/dev/null`
     24104    METIS_DATA=`$PKG_CONFIG --variable=datadir "coinmetis >= 4.0" 2>/dev/null`
     24105     coin_has_metis=yes
     24106        echo "$as_me:$LINENO: result: yes: $METIS_VERSIONS" >&5
     24107echo "${ECHO_T}yes: $METIS_VERSIONS" >&6
     24108        REQUIREDPACKAGES="$REQUIREDPACKAGES coinmetis >= 4.0"
     24109
     24110
     24111  else
     24112    METIS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors coinmetis >= 4.0`
     24113      coin_has_metis=notGiven
     24114        echo "$as_me:$LINENO: result: not given: $METIS_PKG_ERRORS" >&5
     24115echo "${ECHO_T}not given: $METIS_PKG_ERRORS" >&6
     24116
     24117  fi
     24118else
     24119  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Metis without pkg-config\"" >&5
     24120echo "$as_me: error: \"Cannot check for existance of module Metis without pkg-config\"" >&2;}
    2368624121   { (exit 1); exit 1; }; }
    2368724122fi
    23688 rm -f conftest.err conftest.$ac_objext \
    23689       conftest$ac_exeext conftest.$ac_ext
    23690   LIBS="$coin_save_LIBS"
    23691 fi
    23692 ac_ext=c
    23693 ac_cpp='$CPP $CPPFLAGS'
    23694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23697 
    23698 
    23699 if test "$coin_has_metis" = "true"; then  # user provided metis library
    23700   use_metis=yes
    23701   coin_has_metis=yes
    23702 
    23703   ADDLIBS="$METISLIB $ADDLIBS"
    23704 
    23705 else # no user provided library, so we try to build our own
    23706   use_metis=BUILD
    23707 
    23708   # Check if the METIS' ThirdParty project has been configured
    23709   if test "$PACKAGE_NAME" != ThirdPartyMetis; then
    23710     if test -r $coin_metisobjdir/.MakeOk; then
    23711       use_metis=BUILD
     24123
     24124
     24125
     24126
     24127    # reset PKG_CONFIG_PATH variable
     24128    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     24129  else
     24130    #if 4th argument is given, try fallback - whereby we take the first word from coinmetis >= 4.0 as basename for the .pc file
     24131
     24132if test x$coin_has_metis != "xyes" ; then
     24133
     24134
     24135
     24136coin_has_metis=notGiven
     24137
     24138# check if user wants to skip module in any case
     24139if test x"$COIN_SKIP_PROJECTS" != x; then
     24140  for dir in $COIN_SKIP_PROJECTS; do
     24141    if test $dir = "Metis"; then
     24142      coin_has_metis=skipping
     24143    fi
     24144  done
     24145fi
     24146
     24147METIS_LIBS=
     24148METIS_CFLAGS=
     24149METIS_DATA=
     24150
     24151
     24152if test $coin_has_metis != "skipping" ; then
     24153  # if the project is available and configured, then a project-uninstalled.pc file should have been created
     24154  if test -r ../Metis/coinmetis-uninstalled.pc ; then
     24155    # read CFLAGS and LIBS from m4_bpatsubst(coinmetis >= 4.0, [ .*], [])-uninstalled.pc file
     24156    # add CYGPATH_W cludge into include flags
     24157    # replace -L${libdir} by absolute path to build directory in linker flags
     24158    # we assume that the build directory is ../Metis/src if this directory exists, otherwise we assume that it is ../Metis
     24159    METIS_CFLAGS=`sed -n -e 's/Cflags://' -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/gp' ../Metis/coinmetis-uninstalled.pc`
     24160    projectlibs=`sed -n -e 's/Libs://' -e 's/-L\${libdir}//p' ../Metis/coinmetis-uninstalled.pc`
     24161    if test "x$projectlibs" != x ; then
     24162      if test -d ../Metis/src ; then
     24163        METIS_LIBS="-L`cd ../Metis/src; pwd` $projectlibs"
     24164      else
     24165        METIS_LIBS="-L`cd ../Metis; pwd` $projectlibs"
     24166      fi
    2371224167    else
    23713       use_metis=
     24168      METIS_LIBS=`sed -n -e 's/Libs://p' ../Metis/coinmetis-uninstalled.pc`
    2371424169    fi
    23715   fi
    23716 
    23717   if test x"$use_metis" != x; then
    23718     coin_has_metis=yes
    23719   else
    23720     coin_has_metis=no
    23721   fi
    23722   echo "$as_me:$LINENO: checking whether METIS is available" >&5
    23723 echo $ECHO_N "checking whether METIS is available... $ECHO_C" >&6
    23724   echo "$as_me:$LINENO: result: $coin_has_metis" >&5
    23725 echo "${ECHO_T}$coin_has_metis" >&6
    23726 fi
    23727 
    23728 
    23729 
    23730 if test $coin_has_metis = yes; then
    23731   COIN_HAS_METIS_TRUE=
    23732   COIN_HAS_METIS_FALSE='#'
    23733 else
    23734   COIN_HAS_METIS_TRUE='#'
    23735   COIN_HAS_METIS_FALSE=
    23736 fi
    23737 
    23738 if test $coin_has_metis = yes; then
     24170    METIS_DATA=`sed -n -e 's/datadir=//gp' ../Metis/coinmetis-uninstalled.pc`
     24171
     24172    ADDLIBS="$ADDLIBS $METIS_LIBS"
     24173       REQUIREDPACKAGES="$REQUIREDPACKAGES coinmetis"
     24174
     24175
    2373924176
    2374024177cat >>confdefs.h <<\_ACEOF
     
    2374224179_ACEOF
    2374324180
    23744 fi
     24181
     24182
     24183    coin_has_metis=yes
     24184    echo "$as_me:$LINENO: result: ../Metis" >&5
     24185echo "${ECHO_T}../Metis" >&6
     24186  else
     24187    echo "$as_me:$LINENO: result: $coin_has_metis" >&5
     24188echo "${ECHO_T}$coin_has_metis" >&6
     24189  fi
     24190else
     24191  echo "$as_me:$LINENO: result: skipping" >&5
     24192echo "${ECHO_T}skipping" >&6
     24193fi
     24194
     24195#if user did not disable setting of makefile conditional, do it
     24196
     24197
     24198if test $coin_has_metis != notGiven &&
     24199                test $coin_has_metis != skipping; then
     24200  COIN_HAS_METIS_TRUE=
     24201  COIN_HAS_METIS_FALSE='#'
     24202else
     24203  COIN_HAS_METIS_TRUE='#'
     24204  COIN_HAS_METIS_FALSE=
     24205fi
     24206
     24207
     24208fi
     24209
     24210
     24211  fi
     24212
     24213else
     24214  echo "$as_me:$LINENO: result: $coin_has_metis" >&5
     24215echo "${ECHO_T}$coin_has_metis" >&6
     24216fi
     24217
     24218if test $coin_has_metis != skipping &&
     24219   test $coin_has_metis != notGiven ; then
     24220  if test 0 = 1 ; then  #change this test to enable a bit of debugging output
     24221  if test -n "$METIS_CFLAGS" ; then
     24222    { echo "$as_me:$LINENO: Metis CFLAGS are $METIS_CFLAGS" >&5
     24223echo "$as_me: Metis CFLAGS are $METIS_CFLAGS" >&6;}
     24224  fi
     24225  if test -n "$METIS_LIBS" ; then
     24226    { echo "$as_me:$LINENO: Metis LIBS   are $METIS_LIBS" >&5
     24227echo "$as_me: Metis LIBS   are $METIS_LIBS" >&6;}
     24228  fi
     24229  if test -n "$METIS_DATA" ; then
     24230    { echo "$as_me:$LINENO: Metis DATA   is  $METIS_DATA" >&5
     24231echo "$as_me: Metis DATA   is  $METIS_DATA" >&6;}
     24232  fi
     24233  fi
     24234
     24235cat >>confdefs.h <<\_ACEOF
     24236#define COIN_HAS_METIS 1
     24237_ACEOF
     24238
     24239fi
     24240
     24241# Define the Makefile conditional
     24242
     24243
     24244if test $coin_has_metis != notGiven &&
     24245                test $coin_has_metis != skipping; then
     24246  COIN_HAS_METIS_TRUE=
     24247  COIN_HAS_METIS_FALSE='#'
     24248else
     24249  COIN_HAS_METIS_TRUE='#'
     24250  COIN_HAS_METIS_FALSE=
     24251fi
     24252
     24253
    2374524254
    2374624255
     
    2375024259fi
    2375124260
    23752 ## Check if Mumps is already provided by user
    23753 
    23754 if test "$PACKAGE_NAME" = ThirdPartyMumps; then
    23755   coin_mumpsobjdir=../Mumps
    23756 else
    23757   coin_mumpsobjdir=../ThirdParty/Mumps
    23758 fi
    23759 coin_mumpssrcdir=$abs_source_dir/$coin_mumpsobjdir/MUMPS
    23760 
    23761 MAKEOKFILE=.MakeOk
    23762 
    23763 #check if user provides a MUMPS library (that works)
    23764 ac_ext=c
    23765 ac_cpp='$CPP $CPPFLAGS'
    23766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23769 
    23770 SAVE_ADDLIBS="$ADDLIBS"
    23771 ADDLIBS="$ADDLIBS $FLIBS"
    23772 
    23773   echo "$as_me:$LINENO: checking if user provides library for mumps" >&5
    23774 echo $ECHO_N "checking if user provides library for mumps... $ECHO_C" >&6
    23775 
    23776 # Check for header file directory
    23777 
    23778 
    23779 # Check whether --with-mumps-incdir or --without-mumps-incdir was given.
    23780 if test "${with_mumps_incdir+set}" = set; then
    23781   withval="$with_mumps_incdir"
    23782   MUMPSINCDIR=`cd $withval; pwd`
    23783 fi;
    23784 
    23785 # Check for library directory
    23786 
    23787 
    23788 # Check whether --with-mumps-lib or --without-mumps-lib was given.
    23789 if test "${with_mumps_lib+set}" = set; then
    23790   withval="$with_mumps_lib"
    23791   MUMPSLIB=$withval
    23792 fi;
    23793 
    23794 # Switch to disable library check if requested
    23795 
    23796   # Check whether --enable-mumps-libcheck or --disable-mumps-libcheck was given.
    23797 if test "${enable_mumps_libcheck+set}" = set; then
    23798   enableval="$enable_mumps_libcheck"
    23799   mumps_libcheck=$enableval
    23800 else
    23801   mumps_libcheck=yes
    23802 fi;
    23803 
    23804 # At this point, if we're going to use the library, both LBRYINCDIR and
    23805 # LBRYLIB must be defined and not empty.
    23806 
    23807   if test x"$MUMPSINCDIR" != x || test x"$MUMPSLIB" != x; then
    23808     if test x"$MUMPSINCDIR" = x || test x"$MUMPSLIB" = x; then
    23809       { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library mumps. Use --with-mumps-incdir of environment variable $MUMPSINCDIR to specify the include directory. Use --with-mumps-lib or environment variable $MUMPSLIB to specify link flags." >&5
    23810 echo "$as_me: error: You need to specify both an include directory and link flags to use library mumps. Use --with-mumps-incdir of environment variable $MUMPSINCDIR to specify the include directory. Use --with-mumps-lib or environment variable $MUMPSLIB to specify link flags." >&2;}
    23811    { (exit 1); exit 1; }; }
    23812     fi
    23813     coin_has_mumps=true
    23814     echo "$as_me:$LINENO: result: yes" >&5
    23815 echo "${ECHO_T}yes" >&6
    23816   else
    23817     coin_has_mumps=false
    23818     echo "$as_me:$LINENO: result: no" >&5
    23819 echo "${ECHO_T}no" >&6
    23820   fi
    23821 
    23822 # If we have instructions for use, consider header and link checks.
    23823 
    23824   if test $coin_has_mumps = true; then
    23825 
    23826 # If argument 3 (file) is given, check for the file. Typically this will be a
    23827 # header file, but that's not assumed.
    23828 
    23829     if test -r $MUMPSINCDIR/dmumps_c.h; then
    23830 
    23831   :
    23832 else
    23833   { { echo "$as_me:$LINENO: error: Cannot find file dmumps_c.h in $MUMPSINCDIR" >&5
    23834 echo "$as_me: error: Cannot find file dmumps_c.h in $MUMPSINCDIR" >&2;}
    23835    { (exit 1); exit 1; }; }
    23836   :
    23837 fi
    23838 
    23839 
    23840 # Now see if we can link the function. There are arguments for and against
    23841 # assuming argument 3 is a header file declaring the function. A correct
    23842 # function declaration is the main argument in favour. Having to cope with
    23843 # possible dependencies or other oddities are the main arguments against.
    23844 # Force the use of C as the best single choice amongst C++, C, and Fortran.
    23845 # Obviously, this has limits.
    23846 
    23847     if test x"$mumps_libcheck" != xno; then
    23848            coin_save_LIBS="$LIBS"
    23849            LIBS="$MUMPSLIB $ADDLIBS"
    23850            coin_MUMPS_link=no
    23851            ac_ext=c
    23852 ac_cpp='$CPP $CPPFLAGS'
    23853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23856 
    23857            for fnm in dmumps_c ; do
    23858              echo "$as_me:$LINENO: checking whether symbol $fnm is available with MUMPS" >&5
    23859 echo $ECHO_N "checking whether symbol $fnm is available with MUMPS... $ECHO_C" >&6
    23860              cat >conftest.$ac_ext <<_ACEOF
    23861 /* confdefs.h.  */
    23862 _ACEOF
    23863 cat confdefs.h >>conftest.$ac_ext
    23864 cat >>conftest.$ac_ext <<_ACEOF
    23865 /* end confdefs.h.  */
    23866 
    23867 #ifdef F77_DUMMY_MAIN
    23868 
    23869 #  ifdef __cplusplus
    23870      extern "C"
    23871 #  endif
    23872    int F77_DUMMY_MAIN() { return 1; }
    23873 
    23874 #endif
    23875 int
    23876 main ()
    23877 {
    23878 $fnm()
    23879   ;
    23880   return 0;
    23881 }
    23882 _ACEOF
    23883 rm -f conftest.$ac_objext conftest$ac_exeext
    23884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23885   (eval $ac_link) 2>conftest.er1
    23886   ac_status=$?
    23887   grep -v '^ *+' conftest.er1 >conftest.err
    23888   rm -f conftest.er1
    23889   cat conftest.err >&5
    23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23891   (exit $ac_status); } &&
    23892          { ac_try='test -z "$ac_c_werror_flag"
    23893                          || test ! -s conftest.err'
    23894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23895   (eval $ac_try) 2>&5
    23896   ac_status=$?
    23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23898   (exit $ac_status); }; } &&
    23899          { ac_try='test -s conftest$ac_exeext'
    23900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23901   (eval $ac_try) 2>&5
    23902   ac_status=$?
    23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23904   (exit $ac_status); }; }; then
    23905   echo "$as_me:$LINENO: result: yes" >&5
    23906 echo "${ECHO_T}yes" >&6
    23907                   coin_MUMPS_link=yes
    23908                   break
    23909 else
    23910   echo "$as_me: failed program was:" >&5
    23911 sed 's/^/| /' conftest.$ac_ext >&5
    23912 
    23913 echo "$as_me:$LINENO: result: no" >&5
    23914 echo "${ECHO_T}no" >&6
    23915 fi
    23916 rm -f conftest.err conftest.$ac_objext \
    23917       conftest$ac_exeext conftest.$ac_ext
    23918            done
    23919            ac_ext=c
    23920 ac_cpp='$CPP $CPPFLAGS'
    23921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23924 
    23925            if test x"$coin_MUMPS_link" = xyes ; then
    23926              LIBS="$coin_save_LIBS"
    23927            else
    23928              { { echo "$as_me:$LINENO: error: Cannot find symbol(s) dmumps_c with MUMPS" >&5
    23929 echo "$as_me: error: Cannot find symbol(s) dmumps_c with MUMPS" >&2;}
    23930    { (exit 1); exit 1; }; }
    23931            fi
    23932          fi
    23933 
    23934 
    23935 # If we make it this far, we've verified the file and linked the function. Add
    23936 # the necessary link flags to ADDLIBS and define the preprocessor symbol
    23937 # COIN_HAS_LBRY.
    23938 
    23939     ADDLIBS="$MUMPSLIB $ADDLIBS"
    23940 
    23941 cat >>confdefs.h <<\_ACEOF
    23942 #define COIN_HAS_MUMPS 1
    23943 _ACEOF
    23944 
    23945   fi
    23946 
    23947 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
    23948 # automake conditional. These actions must occur unconditionally.
    23949 
    23950 
    23951 
    23952 
    23953 
    23954 if test $coin_has_mumps = true; then
    23955   COIN_HAS_MUMPS_TRUE=
    23956   COIN_HAS_MUMPS_FALSE='#'
    23957 else
    23958   COIN_HAS_MUMPS_TRUE='#'
    23959   COIN_HAS_MUMPS_FALSE=
    23960 fi
    23961 
    23962 
    23963 ADDLIBS="$SAVE_ADDLIBS"
    23964 ac_ext=c
    23965 ac_cpp='$CPP $CPPFLAGS'
    23966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23969 
    23970 
    23971 if test "$coin_has_mumps" = "true"; then  # user provided mumps library
    23972   use_mumps=yes
    23973   coin_has_mumps=yes
    23974 
    23975   MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $MUMPSINCDIR\`"
    23976   ADDLIBS="$MUMPSLIB $ADDLIBS"
    23977 
    23978 else # no user provided library, so we try to build our own
    23979   use_mumps=BUILD
    23980 
    23981   # Check if the MUMPS' ThirdParty project has been configured
    23982   if test "$PACKAGE_NAME" != ThirdPartyMumps; then
    23983     if test -r $coin_mumpsobjdir/.MakeOk; then
    23984       use_mumps=BUILD
    23985       # Mumps needs pthreads
    23986       ac_ext=c
    23987 ac_cpp='$CPP $CPPFLAGS'
    23988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    23989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    23990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    23991 
    23992       save_LIBS="$LIBS"
    23993       LIBS="$LIBS $FLIBS"
    23994       echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
     24261#Mumps needs pthreads
     24262echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
    2399524263echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
    2399624264if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
     
    2406524333echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
    2406624334if test $ac_cv_lib_pthread_pthread_create = yes; then
    24067   LIBS="-lpthread $save_LIBS"; ADDLIBS="-lpthread $ADDLIBS"
    24068 else
    24069   LIBS="save_LIBS"
    24070 fi
    24071 
    24072       ac_ext=c
    24073 ac_cpp='$CPP $CPPFLAGS'
    24074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    24075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    24076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    24077 
    24078 
    24079       MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $coin_mumpssrcdir/libseq\` -I\`\$(CYGPATH_W) $coin_mumpssrcdir/include\`"
    24080     else
    24081       use_mumps=
    24082     fi
    24083   fi
    24084 
    24085   # if a user provided library is used, then COIN_HAS_USER_LIBRARY takes care of the COIN_HAS_MUMPS conditional and preprocessor symbol
    24086 
    24087 
    24088 if test x"$use_mumps" != x; then
    24089   COIN_HAS_MUMPS_TRUE=
    24090   COIN_HAS_MUMPS_FALSE='#'
    24091 else
    24092   COIN_HAS_MUMPS_TRUE='#'
    24093   COIN_HAS_MUMPS_FALSE=
    24094 fi
    24095 
    24096   if test x"$use_mumps" != x; then
    24097 
    24098 cat >>confdefs.h <<\_ACEOF
    24099 #define COIN_HAS_MUMPS 1
    24100 _ACEOF
    24101 
    24102     coin_has_mumps=yes
    24103   else
    24104     coin_has_mumps=no
    24105   fi
    24106   echo "$as_me:$LINENO: checking whether MUMPS is available" >&5
    24107 echo $ECHO_N "checking whether MUMPS is available... $ECHO_C" >&6
    24108   echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
    24109 echo "${ECHO_T}$coin_has_mumps" >&6
    24110 fi
    24111 
    24112 if test x"$use_mumps" != x; then
    24113   # we need the Fortran runtime libraries if we want to link with C/C++
    24114   coin_need_flibs=yes
    24115 
    24116 
    24117 fi
    24118 
    24119 
    24120 
    24121 if test "$use_mumps" = BUILD; then
    24122   COIN_BUILD_MUMPS_TRUE=
    24123   COIN_BUILD_MUMPS_FALSE='#'
    24124 else
    24125   COIN_BUILD_MUMPS_TRUE='#'
    24126   COIN_BUILD_MUMPS_FALSE=
    24127 fi
    24128 
    24129 
    24130 
    24131 
    24132 #Mumps needs pthreads
    24133 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
    24134 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
    24135 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
    24136   echo $ECHO_N "(cached) $ECHO_C" >&6
    24137 else
    24138   ac_check_lib_save_LIBS=$LIBS
    24139 LIBS="-lpthread  $LIBS"
    24140 cat >conftest.$ac_ext <<_ACEOF
    24141 /* confdefs.h.  */
    24142 _ACEOF
    24143 cat confdefs.h >>conftest.$ac_ext
    24144 cat >>conftest.$ac_ext <<_ACEOF
    24145 /* end confdefs.h.  */
    24146 
    24147 /* Override any gcc2 internal prototype to avoid an error.  */
    24148 #ifdef __cplusplus
    24149 extern "C"
    24150 #endif
    24151 /* We use char because int might match the return type of a gcc2
    24152    builtin and then its argument prototype would still apply.  */
    24153 char pthread_create ();
    24154 #ifdef F77_DUMMY_MAIN
    24155 
    24156 #  ifdef __cplusplus
    24157      extern "C"
    24158 #  endif
    24159    int F77_DUMMY_MAIN() { return 1; }
    24160 
    24161 #endif
    24162 int
    24163 main ()
    24164 {
    24165 pthread_create ();
    24166   ;
    24167   return 0;
    24168 }
    24169 _ACEOF
    24170 rm -f conftest.$ac_objext conftest$ac_exeext
    24171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    24172   (eval $ac_link) 2>conftest.er1
    24173   ac_status=$?
    24174   grep -v '^ *+' conftest.er1 >conftest.err
    24175   rm -f conftest.er1
    24176   cat conftest.err >&5
    24177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24178   (exit $ac_status); } &&
    24179          { ac_try='test -z "$ac_c_werror_flag"
    24180                          || test ! -s conftest.err'
    24181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    24182   (eval $ac_try) 2>&5
    24183   ac_status=$?
    24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24185   (exit $ac_status); }; } &&
    24186          { ac_try='test -s conftest$ac_exeext'
    24187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    24188   (eval $ac_try) 2>&5
    24189   ac_status=$?
    24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24191   (exit $ac_status); }; }; then
    24192   ac_cv_lib_pthread_pthread_create=yes
    24193 else
    24194   echo "$as_me: failed program was:" >&5
    24195 sed 's/^/| /' conftest.$ac_ext >&5
    24196 
    24197 ac_cv_lib_pthread_pthread_create=no
    24198 fi
    24199 rm -f conftest.err conftest.$ac_objext \
    24200       conftest$ac_exeext conftest.$ac_ext
    24201 LIBS=$ac_check_lib_save_LIBS
    24202 fi
    24203 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
    24204 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
    24205 if test $ac_cv_lib_pthread_pthread_create = yes; then
    2420624335  ADDLIBS="-lpthread $ADDLIBS"
    2420724336fi
     
    2420924338
    2421024339# Verify that we can compile Fortran 90 code
    24211 if test "$use_mumps" = BUILD; then
    24212   echo "$as_me:$LINENO: checking whether we can compile Fortran 90 code" >&5
     24340echo "$as_me:$LINENO: checking whether we can compile Fortran 90 code" >&5
    2421324341echo $ECHO_N "checking whether we can compile Fortran 90 code... $ECHO_C" >&6
    24214   ac_ext=f
     24342ac_ext=f
    2421524343ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    2421624344ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2421724345ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    2421824346
    24219   cat >conftest.$ac_ext <<_ACEOF
     24347cat >conftest.$ac_ext <<_ACEOF
    2422024348        MODULE BLA
    24221         DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
    24222         END MODULE BLA
     24349      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     24350      END MODULE BLA
    2422324351_ACEOF
    2422424352rm -f conftest.$ac_objext
     
    2425224380fi
    2425324381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    24254   echo "$as_me:$LINENO: result: $can_f90" >&5
     24382echo "$as_me:$LINENO: result: $can_f90" >&5
    2425524383echo "${ECHO_T}$can_f90" >&6
    24256   ac_ext=c
     24384ac_ext=c
    2425724385ac_cpp='$CPP $CPPFLAGS'
    2425824386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2426024388ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2426124389
    24262   if test $can_f90 = no; then
    24263     { echo "$as_me:$LINENO: WARNING: Your Fortran compiler can't compile Fortran 90, I will not compile MUMPS" >&5
    24264 echo "$as_me: WARNING: Your Fortran compiler can't compile Fortran 90, I will not compile MUMPS" >&2;}
    24265     use_mumps=
    24266   fi
    24267 fi
    24268 
    24269 rm -f $MAKEOKFILE
    24270 if test $coin_has_mumps = yes && test "$use_mumps" != BUILD; then
    24271   { echo "$as_me:$LINENO: The Mumps sources don't need to be compiled" >&5
    24272 echo "$as_me: The Mumps sources don't need to be compiled" >&6;}
    24273   MAKEOKFILE=
    24274 else
    24275   touch $MAKEOKFILE
    24276 fi
    24277 
    24278 
    24279 
    24280 if test -z "$MAKEOKFILE"; then
    24281   SKIPMAKE_TRUE=
    24282   SKIPMAKE_FALSE='#'
    24283 else
    24284   SKIPMAKE_TRUE='#'
    24285   SKIPMAKE_FALSE=
    24286 fi
    24287 
     24390if test $can_f90 = no; then
     24391  { { echo "$as_me:$LINENO: error: Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS" >&5
     24392echo "$as_me: error: Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS" >&2;}
     24393   { (exit 1); exit 1; }; }
     24394fi
    2428824395
    2428924396MUMPSDIR=MUMPS
     24397MUMPSOBJDIR=`pwd`
     24398MUMPSSRCDIR=$abs_source_dir/$coin_mumpsobjdir/$MUMPSDIR
     24399
     24400
     24401
    2429024402
    2429124403
     
    2431124423echo "${ECHO_T}$MY_FDEFS" >&6
    2431224424
    24313           ac_config_files="$ac_config_files Makefile"
     24425                              ac_config_files="$ac_config_files Makefile coinmumps.pc coinmumps-uninstalled.pc"
    2431424426
    2431524427
     
    2436924481    done
    2437024482    subdirs="$new_subdirs"
     24483  fi
     24484
     24485  # need to come before AC_OUTPUT
     24486  if test x$coin_projectdir != xyes; then
     24487    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     24488    echo $coin_subdirs > coin_subdirs.txt
     24489  else
     24490    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     24491    ABSBUILDDIR="`pwd`"
     24492
    2437124493  fi
    2437224494
     
    2453524657   { (exit 1); exit 1; }; }
    2453624658fi
     24659if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     24660  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     24661Usually this means the macro was only invoked conditionally." >&5
     24662echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     24663Usually this means the macro was only invoked conditionally." >&2;}
     24664   { (exit 1); exit 1; }; }
     24665fi
    2453724666if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
    2453824667  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     
    2454224671   { (exit 1); exit 1; }; }
    2454324672fi
    24544 if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
    24545   { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     24673if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24674  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
    2454624675Usually this means the macro was only invoked conditionally." >&5
    24547 echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     24676echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24677Usually this means the macro was only invoked conditionally." >&2;}
     24678   { (exit 1); exit 1; }; }
     24679fi
     24680if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24681  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24682Usually this means the macro was only invoked conditionally." >&5
     24683echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24684Usually this means the macro was only invoked conditionally." >&2;}
     24685   { (exit 1); exit 1; }; }
     24686fi
     24687if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     24688  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     24689Usually this means the macro was only invoked conditionally." >&5
     24690echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
    2454824691Usually this means the macro was only invoked conditionally." >&2;}
    2454924692   { (exit 1); exit 1; }; }
     
    2455624699   { (exit 1); exit 1; }; }
    2455724700fi
    24558 if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
    24559   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
     24701if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
     24702  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
    2456024703Usually this means the macro was only invoked conditionally." >&5
    24561 echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
    24562 Usually this means the macro was only invoked conditionally." >&2;}
    24563    { (exit 1); exit 1; }; }
    24564 fi
    24565 if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
    24566   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
    24567 Usually this means the macro was only invoked conditionally." >&5
    24568 echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
    24569 Usually this means the macro was only invoked conditionally." >&2;}
    24570    { (exit 1); exit 1; }; }
    24571 fi
    24572 if test -z "${COIN_BUILD_MUMPS_TRUE}" && test -z "${COIN_BUILD_MUMPS_FALSE}"; then
    24573   { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_MUMPS\" was never defined.
    24574 Usually this means the macro was only invoked conditionally." >&5
    24575 echo "$as_me: error: conditional \"COIN_BUILD_MUMPS\" was never defined.
    24576 Usually this means the macro was only invoked conditionally." >&2;}
    24577    { (exit 1); exit 1; }; }
    24578 fi
    24579 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
    24580   { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
    24581 Usually this means the macro was only invoked conditionally." >&5
    24582 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
     24704echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
    2458324705Usually this means the macro was only invoked conditionally." >&2;}
    2458424706   { (exit 1); exit 1; }; }
     
    2502425146  # Handling of arguments.
    2502525147  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     25148  "coinmumps.pc" ) CONFIG_FILES="$CONFIG_FILES coinmumps.pc" ;;
     25149  "coinmumps-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinmumps-uninstalled.pc" ;;
    2502625150  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2502725151  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     
    2521125335s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2521225336s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     25337s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     25338s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     25339s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     25340s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     25341s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
     25342s,@BLAS_LIBS@,$BLAS_LIBS,;t t
     25343s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
     25344s,@BLAS_DATA@,$BLAS_DATA,;t t
     25345s,@REQUIREDPACKAGES@,$REQUIREDPACKAGES,;t t
    2521325346s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
    2521425347s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
    25215 s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
    25216 s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
     25348s,@METIS_LIBS@,$METIS_LIBS,;t t
     25349s,@METIS_CFLAGS@,$METIS_CFLAGS,;t t
     25350s,@METIS_DATA@,$METIS_DATA,;t t
    2521725351s,@COIN_HAS_METIS_TRUE@,$COIN_HAS_METIS_TRUE,;t t
    2521825352s,@COIN_HAS_METIS_FALSE@,$COIN_HAS_METIS_FALSE,;t t
    25219 s,@MUMPSINCDIR@,$MUMPSINCDIR,;t t
    25220 s,@MUMPSLIB@,$MUMPSLIB,;t t
    25221 s,@COIN_HAS_MUMPS_TRUE@,$COIN_HAS_MUMPS_TRUE,;t t
    25222 s,@COIN_HAS_MUMPS_FALSE@,$COIN_HAS_MUMPS_FALSE,;t t
    25223 s,@MUMPS_INCFLAGS@,$MUMPS_INCFLAGS,;t t
    25224 s,@COIN_BUILD_MUMPS_TRUE@,$COIN_BUILD_MUMPS_TRUE,;t t
    25225 s,@COIN_BUILD_MUMPS_FALSE@,$COIN_BUILD_MUMPS_FALSE,;t t
    25226 s,@MAKEOKFILE@,$MAKEOKFILE,;t t
    25227 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
    25228 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2522925353s,@MUMPSDIR@,$MUMPSDIR,;t t
     25354s,@MUMPSOBJDIR@,$MUMPSOBJDIR,;t t
     25355s,@MUMPSSRCDIR@,$MUMPSSRCDIR,;t t
    2523025356s,@MY_FDEFS@,$MY_FDEFS,;t t
    2523125357s,@LIBEXT@,$LIBEXT,;t t
    2523225358s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     25359s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2523325360s,@LIBOBJS@,$LIBOBJS,;t t
    2523425361s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • ThirdParty/Mumps/trunk/configure.ac

    r1492 r1548  
    1 # Copyright (C) 2007-2008 International Business Machines.
     1# Copyright (C) 2007-2009 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    1616
    1717AC_COPYRIGHT([
    18 Copyright 2007-2008 International Business Machines and others.
     18Copyright 2007-2009 International Business Machines and others.
    1919All Rights Reserved.
    2020This file is part of the open source package Coin which is distributed
     
    5757AC_COIN_F77_WRAPPERS
    5858
     59# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     60coin_need_flibs=yes
     61
    5962# We need to translate the result from autoconf to what MUMPS wants
    6063case "$ac_cv_f77_mangling" in
     
    9396AC_COIN_INIT_AUTO_TOOLS
    9497
    95 # Check for user-provided BLAS library, but make sure it is not added to libcoinmumps.a
    96 save_LIBS="$LIBS"
    97 AC_COIN_HAS_BLAS
    98 LIBS="$save_LIBS"
     98AC_COIN_HAS_MODULE_BLAS
     99AC_COIN_HAS_MODULE(Metis, [coinmetis >= 4.0], [], [../Metis])
    99100
    100 # Check if Metis is available
    101 AC_COIN_HAS_METIS
    102101if test "$coin_has_metis" = yes; then
    103102  MY_DEFS="$MY_DEFS -Dmetis"
     
    105104fi
    106105
    107 ## Check if Mumps is already provided by user
    108 AC_COIN_HAS_MUMPS
    109 
    110106#Mumps needs pthreads
    111107AC_CHECK_LIB([pthread],[pthread_create],[ADDLIBS="-lpthread $ADDLIBS"])
    112108
    113109# Verify that we can compile Fortran 90 code
    114 if test "$use_mumps" = BUILD; then
    115   AC_MSG_CHECKING([whether we can compile Fortran 90 code])
    116   AC_LANG_PUSH(Fortran 77)
    117   AC_COMPILE_IFELSE([        MODULE BLA
    118         DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
    119         END MODULE BLA],[can_f90=yes],[can_f90=no])
    120   AC_MSG_RESULT([$can_f90])
    121   AC_LANG_POP(Fortran 77)
    122   if test $can_f90 = no; then
    123     AC_MSG_WARN([Your Fortran compiler can't compile Fortran 90, I will not compile MUMPS])
    124     use_mumps=
    125   fi
     110AC_MSG_CHECKING([whether we can compile Fortran 90 code])
     111AC_LANG_PUSH(Fortran 77)
     112AC_COMPILE_IFELSE([        MODULE BLA
     113      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     114      END MODULE BLA],[can_f90=yes],[can_f90=no])
     115AC_MSG_RESULT([$can_f90])
     116AC_LANG_POP(Fortran 77)
     117if test $can_f90 = no; then
     118  AC_MSG_ERROR([Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS])
    126119fi
    127120
    128 rm -f $MAKEOKFILE
    129 if test $coin_has_mumps = yes && test "$use_mumps" != BUILD; then
    130   AC_MSG_NOTICE([The Mumps sources don't need to be compiled])
    131   MAKEOKFILE=
    132 else
    133   touch $MAKEOKFILE
    134 fi
    135 AC_SUBST(MAKEOKFILE)
    136 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     121MUMPSDIR=MUMPS
     122MUMPSOBJDIR=`pwd`
     123MUMPSSRCDIR=$abs_source_dir/$coin_mumpsobjdir/$MUMPSDIR
    137124
    138 MUMPSDIR=MUMPS
    139125AC_SUBST(MUMPSDIR)
     126AC_SUBST(MUMPSOBJDIR)
     127AC_SUBST(MUMPSSRCDIR)
    140128
    141129# Fix Fortran preprocessor flags
     
    156144AC_MSG_RESULT([$MY_FDEFS])
    157145
    158 AC_CONFIG_FILES([Makefile])
     146AC_CONFIG_FILES([Makefile coinmumps.pc coinmumps-uninstalled.pc])
    159147
    160148AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.