Changeset 1548 for ThirdParty/Blas


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/Blas/trunk
Files:
2 added
4 edited

Legend:

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

    r1411 r1548  
    99EXTRA_DIST = get.blas INSTALL.BLAS
    1010
    11 if SKIPMAKE
    12   noinst_LTLIBRARIES =
    13 else
    14   noinst_LTLIBRARIES = libcoinblas.la
    15 endif
     11thirdpartylibdir = $(libdir)/coin/ThirdParty
     12thirdpartylib_LTLIBRARIES = libcoinblas.la
    1613
    17 nodist_libcoinblas_la_SOURCES = \
     14libcoinblas_la_SOURCES = \
    1815        dasum.f \
    1916        daxpy.f \
     
    5653libcoinblas_la_LDFLAGS = $(LT_LDFLAGS)
    5754
     55if COIN_HAS_PKGCONFIG
     56addlibsdir = $(datadir)/coin/doc/ThirdParty/Blas
     57addlibs_DATA = blas_addlibs.txt
     58
     59blas_addlibs.txt : coinblas.pc
     60        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinblas > blas_addlibs.txt
     61endif
     62
     63pkgconfiglibdir = $(libdir)/pkgconfig
     64pkgconfiglib_DATA = coinblas.pc
     65
    5866########################################################################
    5967#                         Maintainer Stuff                             #
    6068########################################################################
     69
     70CLEANFILES = blas_addlibs.txt
    6171
    6272# Files that are generated and should be cleaned with make distclean
  • ThirdParty/Blas/trunk/Makefile.in

    r1411 r1548  
    2828#                    Documentation installation                        #
    2929########################################################################
     30
    3031
    3132srcdir = @srcdir@
     
    5657        $(srcdir)/../../install-sh $(srcdir)/../../ltmain.sh \
    5758        $(srcdir)/../../missing $(srcdir)/Makefile.am \
    58         $(srcdir)/Makefile.in $(top_srcdir)/configure
     59        $(srcdir)/Makefile.in $(srcdir)/coinblas-uninstalled.pc.in \
     60        $(srcdir)/coinblas.pc.in $(top_srcdir)/configure
    5961@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    6062@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    6870 configure.lineno configure.status.lineno
    6971mkinstalldirs = $(install_sh) -d
    70 CONFIG_CLEAN_FILES =
    71 LTLIBRARIES = $(noinst_LTLIBRARIES)
     72CONFIG_CLEAN_FILES = coinblas.pc coinblas-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)"
     81thirdpartylibLTLIBRARIES_INSTALL = $(INSTALL)
     82LTLIBRARIES = $(thirdpartylib_LTLIBRARIES)
    7283libcoinblas_la_LIBADD =
    73 nodist_libcoinblas_la_OBJECTS = dasum.lo daxpy.lo dcopy.lo ddot.lo \
     84am_libcoinblas_la_OBJECTS = dasum.lo daxpy.lo dcopy.lo ddot.lo \
    7485        dgbmv.lo dgemm.lo dgemv.lo dger.lo dnrm2.lo drot.lo drotg.lo \
    7586        drotm.lo drotmg.lo dsbmv.lo dscal.lo dsdot.lo dspmv.lo \
     
    7788        dsyr.lo dsyrk.lo dtbmv.lo dtbsv.lo dtpmv.lo dtpsv.lo dtrmm.lo \
    7889        dtrmv.lo dtrsm.lo dtrsv.lo idamax.lo lsame.lo xerbla.lo
    79 libcoinblas_la_OBJECTS = $(nodist_libcoinblas_la_OBJECTS)
    80 @SKIPMAKE_FALSE@am_libcoinblas_la_rpath =
     90libcoinblas_la_OBJECTS = $(am_libcoinblas_la_OBJECTS)
    8191DEFAULT_INCLUDES = -I. -I$(srcdir)
    8292F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS)
     
    8696F77LINK = $(LIBTOOL) --tag=F77 --mode=link $(F77LD) $(AM_FFLAGS) \
    8797        $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    88 SOURCES = $(nodist_libcoinblas_la_SOURCES)
    89 DIST_SOURCES =
     98SOURCES = $(libcoinblas_la_SOURCES)
     99DIST_SOURCES = $(libcoinblas_la_SOURCES)
     100addlibsDATA_INSTALL = $(INSTALL_DATA)
     101pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     102DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
    90103ETAGS = etags
    91104CTAGS = ctags
     
    101114distuninstallcheck_listfiles = find . -type f -print
    102115distcleancheck_listfiles = find . -type f -print
     116ABSBUILDDIR = @ABSBUILDDIR@
    103117ACLOCAL = @ACLOCAL@
    104118ADDLIBS = @ADDLIBS@
     
    121135CDEFS = @CDEFS@
    122136CFLAGS = @CFLAGS@
    123 COIN_BUILD_BLAS_FALSE = @COIN_BUILD_BLAS_FALSE@
    124 COIN_BUILD_BLAS_TRUE = @COIN_BUILD_BLAS_TRUE@
    125 COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@
    126 COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@
     137COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     138COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
     139COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    127140CPP = @CPP@
    128141CPPFLAGS = @CPPFLAGS@
     
    165178MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    166179MAKEINFO = @MAKEINFO@
    167 MAKEOKFILE = @MAKEOKFILE@
    168180MPICC = @MPICC@
    169181MPIF77 = @MPIF77@
     
    178190PACKAGE_VERSION = @PACKAGE_VERSION@
    179191PATH_SEPARATOR = @PATH_SEPARATOR@
     192PKG_CONFIG = @PKG_CONFIG@
    180193RANLIB = @RANLIB@
    181194RPATH_FLAGS = @RPATH_FLAGS@
    182195SET_MAKE = @SET_MAKE@
    183196SHELL = @SHELL@
    184 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
    185 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    186197STRIP = @STRIP@
    187198VERSION = @VERSION@
    188199VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
     200_SVN_REV = @_SVN_REV@
    189201abs_bin_dir = @abs_bin_dir@
    190202abs_include_dir = @abs_include_dir@
     
    199211ac_ct_STRIP = @ac_ct_STRIP@
    200212ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     213ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    201214am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    202215am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    219232have_automake = @have_automake@
    220233have_svn = @have_svn@
     234have_svnversion = @have_svnversion@
    221235host = @host@
    222236host_alias = @host_alias@
     
    242256AUTOMAKE_OPTIONS = foreign
    243257EXTRA_DIST = get.blas INSTALL.BLAS $(am__append_1)
    244 @SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinblas.la
    245 @SKIPMAKE_TRUE@noinst_LTLIBRARIES =
    246 nodist_libcoinblas_la_SOURCES = \
     258thirdpartylibdir = $(libdir)/coin/ThirdParty
     259thirdpartylib_LTLIBRARIES = libcoinblas.la
     260libcoinblas_la_SOURCES = \
    247261        dasum.f \
    248262        daxpy.f \
     
    284298
    285299libcoinblas_la_LDFLAGS = $(LT_LDFLAGS)
     300@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/ThirdParty/Blas
     301@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = blas_addlibs.txt
     302pkgconfiglibdir = $(libdir)/pkgconfig
     303pkgconfiglib_DATA = coinblas.pc
    286304
    287305########################################################################
    288306#                         Maintainer Stuff                             #
    289307########################################################################
     308CLEANFILES = blas_addlibs.txt
    290309
    291310# Files that are generated and should be cleaned with make distclean
    292311DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES)
    293312DocFiles = README AUTHORS LICENSE
    294 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     313DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    295314all: all-am
    296315
     
    330349$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    331350        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    332 
    333 clean-noinstLTLIBRARIES:
    334         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
    335         @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
     351coinblas.pc: $(top_builddir)/config.status $(srcdir)/coinblas.pc.in
     352        cd $(top_builddir) && $(SHELL) ./config.status $@
     353coinblas-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinblas-uninstalled.pc.in
     354        cd $(top_builddir) && $(SHELL) ./config.status $@
     355install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES)
     356        @$(NORMAL_INSTALL)
     357        test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     358        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     359          if test -f $$p; then \
     360            f=$(am__strip_dir) \
     361            echo " $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     362            $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     363          else :; fi; \
     364        done
     365
     366uninstall-thirdpartylibLTLIBRARIES:
     367        @$(NORMAL_UNINSTALL)
     368        @set -x; list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     369          p=$(am__strip_dir) \
     370          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(thirdpartylibdir)/$$p'"; \
     371          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(thirdpartylibdir)/$$p"; \
     372        done
     373
     374clean-thirdpartylibLTLIBRARIES:
     375        -test -z "$(thirdpartylib_LTLIBRARIES)" || rm -f $(thirdpartylib_LTLIBRARIES)
     376        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
    336377          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
    337378          test "$$dir" != "$$p" || dir=.; \
     
    340381        done
    341382libcoinblas.la: $(libcoinblas_la_OBJECTS) $(libcoinblas_la_DEPENDENCIES)
    342         $(F77LINK) $(am_libcoinblas_la_rpath) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)
     383        $(F77LINK) -rpath $(thirdpartylibdir) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)
    343384
    344385mostlyclean-compile:
     
    366407        -rm -f libtool
    367408uninstall-info-am:
     409install-addlibsDATA: $(addlibs_DATA)
     410        @$(NORMAL_INSTALL)
     411        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     412        @list='$(addlibs_DATA)'; for p in $$list; do \
     413          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     414          f=$(am__strip_dir) \
     415          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     416          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     417        done
     418
     419uninstall-addlibsDATA:
     420        @$(NORMAL_UNINSTALL)
     421        @list='$(addlibs_DATA)'; for p in $$list; do \
     422          f=$(am__strip_dir) \
     423          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     424          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     425        done
     426install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     427        @$(NORMAL_INSTALL)
     428        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     429        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     430          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     431          f=$(am__strip_dir) \
     432          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     433          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     434        done
     435
     436uninstall-pkgconfiglibDATA:
     437        @$(NORMAL_UNINSTALL)
     438        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     439          f=$(am__strip_dir) \
     440          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     441          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     442        done
    368443
    369444ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    418493        $(am__remove_distdir)
    419494        mkdir $(distdir)
    420         $(mkdir_p) $(distdir)/../.. $(distdir)/../../BuildTools
     495        $(mkdir_p) $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
    421496        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    422497        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    544619check-am: all-am
    545620check: check-am
    546 all-am: Makefile $(LTLIBRARIES)
     621all-am: Makefile $(LTLIBRARIES) $(DATA)
    547622installdirs:
     623        for dir in "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)"; do \
     624          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     625        done
    548626install: install-am
    549627install-exec: install-exec-am
     
    563641
    564642clean-generic:
     643        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    565644
    566645distclean-generic:
     
    573652clean: clean-am
    574653
    575 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
     654clean-am: clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
    576655        mostlyclean-am
    577656
     
    592671info-am:
    593672
    594 install-data-am:
     673install-data-am: install-addlibsDATA install-pkgconfiglibDATA \
     674        install-thirdpartylibLTLIBRARIES
    595675
    596676install-exec-am:
     
    621701ps-am:
    622702
    623 uninstall-am: uninstall-info-am
     703uninstall-am: uninstall-addlibsDATA uninstall-info-am \
     704        uninstall-pkgconfiglibDATA uninstall-thirdpartylibLTLIBRARIES
    624705
    625706.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
    626         clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \
    627         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    628         distcheck distclean distclean-compile distclean-generic \
    629         distclean-libtool distclean-tags distcleancheck distdir \
    630         distuninstallcheck dvi dvi-am html html-am info info-am \
    631         install install-am install-data install-data-am install-exec \
    632         install-exec-am install-info install-info-am install-man \
    633         install-strip installcheck installcheck-am installdirs \
    634         maintainer-clean maintainer-clean-generic mostlyclean \
    635         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    636         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    637         uninstall-info-am
    638 
     707        clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
     708        ctags dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \
     709        dist-zip distcheck distclean distclean-compile \
     710        distclean-generic distclean-libtool distclean-tags \
     711        distcleancheck distdir distuninstallcheck dvi dvi-am html \
     712        html-am info info-am install install-addlibsDATA install-am \
     713        install-data install-data-am install-exec install-exec-am \
     714        install-info install-info-am install-man \
     715        install-pkgconfiglibDATA install-strip \
     716        install-thirdpartylibLTLIBRARIES installcheck installcheck-am \
     717        installdirs maintainer-clean maintainer-clean-generic \
     718        mostlyclean mostlyclean-compile mostlyclean-generic \
     719        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     720        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     721        uninstall-pkgconfiglibDATA uninstall-thirdpartylibLTLIBRARIES
     722
     723
     724@COIN_HAS_PKGCONFIG_TRUE@blas_addlibs.txt : coinblas.pc
     725@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinblas > blas_addlibs.txt
    639726
    640727install-doc: $(DocFiles)
  • ThirdParty/Blas/trunk/configure

    r1411 r1548  
    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 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 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP 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 FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    974974ac_cv_env_MPIF77_set=${MPIF77+set}
    975975ac_cv_env_MPIF77_value=$MPIF77
     976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     977ac_env_PKG_CONFIG_value=$PKG_CONFIG
     978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    976980ac_env_CPP_set=${CPP+set}
    977981ac_env_CPP_value=$CPP
     
    10781082                          icl/link). Default when mentioned: mingw. Default
    10791083                          when not mentioned: disabled.
     1084  --enable-pkg-config     use pkg-config if available (default is yes)
    10801085  --enable-static[=PKGS]
    10811086                          build static libraries [default=no]
     
    10951100  --with-blas-verbosity specify the debug verbosity level for project Blas
    10961101  --with-blas-checklevel specify the sanity check level for project Blas
     1102  --with-coin-instdir     prefix of installation directory for precompiled
     1103                          COIN packages
    10971104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    10981105  --with-pic              try to use only PIC/non-PIC objects [default=use
     
    11001107  --with-tags[=TAGS]
    11011108                          include additional configurations [automatic]
    1102   --with-blas             specify BLAS library (or BUILD for compilation)
    11031109
    11041110Some influential environment variables:
     
    11201126  FFLAGS      Fortran 77 compiler flags
    11211127  MPIF77      Fortran MPI Compiler
     1128  PKG_CONFIG  path to pkg-config utility
    11221129  CPP         C preprocessor
    11231130  CXX         C++ compiler command
     
    16171624fi
    16181625
     1626
     1627#Set the project's version number
     1628if test "x" != x; then
     1629
     1630cat >>confdefs.h <<_ACEOF
     1631#define _VERSION "$PACKAGE_VERSION"
     1632_ACEOF
     1633
     1634fi
     1635
     1636#Set the project's SVN revision number
     1637# Extract the first word of "svnversion", so it can be a program name with args.
     1638set dummy svnversion; ac_word=$2
     1639echo "$as_me:$LINENO: checking for $ac_word" >&5
     1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1641if test "${ac_cv_prog_have_svnversion+set}" = set; then
     1642  echo $ECHO_N "(cached) $ECHO_C" >&6
     1643else
     1644  if test -n "$have_svnversion"; then
     1645  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
     1646else
     1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1648for as_dir in $PATH
     1649do
     1650  IFS=$as_save_IFS
     1651  test -z "$as_dir" && as_dir=.
     1652  for ac_exec_ext in '' $ac_executable_extensions; do
     1653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1654    ac_cv_prog_have_svnversion="yes"
     1655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1656    break 2
     1657  fi
     1658done
     1659done
     1660
     1661  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
     1662fi
     1663fi
     1664have_svnversion=$ac_cv_prog_have_svnversion
     1665if test -n "$have_svnversion"; then
     1666  echo "$as_me:$LINENO: result: $have_svnversion" >&5
     1667echo "${ECHO_T}$have_svnversion" >&6
     1668else
     1669  echo "$as_me:$LINENO: result: no" >&5
     1670echo "${ECHO_T}no" >&6
     1671fi
     1672
     1673if test "x$have_svnversion" = xyes && test "x" != x; then
     1674
     1675  _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion`
     1676  if test $_SVN_REV != exported; then
     1677
     1678cat >>confdefs.h <<_ACEOF
     1679#define _SVN_REV "$_SVN_REV"
     1680_ACEOF
     1681
     1682  fi
     1683fi
    16191684
    16201685# We set the following variable so that we know later in AC_COIN_FINALIZE
     
    32923357
    32933358# Provide some information about the compiler.
    3294 echo "$as_me:3294:" \
     3359echo "$as_me:3359:" \
    32953360     "checking for Fortran 77 compiler version" >&5
    32963361ac_compiler=`set X $ac_compile; echo $2`
     
    38083873
    38093874
     3875# Get the linker flags (FLIBS) that are required for linking against this blas library
     3876ac_ext=f
     3877ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3878ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3879ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3880echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     3881echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     3882if test "${ac_cv_prog_f77_v+set}" = set; then
     3883  echo $ECHO_N "(cached) $ECHO_C" >&6
     3884else
     3885  cat >conftest.$ac_ext <<_ACEOF
     3886      program main
     3887
     3888      end
     3889_ACEOF
     3890rm -f conftest.$ac_objext
     3891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3892  (eval $ac_compile) 2>conftest.er1
     3893  ac_status=$?
     3894  grep -v '^ *+' conftest.er1 >conftest.err
     3895  rm -f conftest.er1
     3896  cat conftest.err >&5
     3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3898  (exit $ac_status); } &&
     3899         { ac_try='test -z "$ac_f77_werror_flag"
     3900                         || test ! -s conftest.err'
     3901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3902  (eval $ac_try) 2>&5
     3903  ac_status=$?
     3904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3905  (exit $ac_status); }; } &&
     3906         { ac_try='test -s conftest.$ac_objext'
     3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3908  (eval $ac_try) 2>&5
     3909  ac_status=$?
     3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3911  (exit $ac_status); }; }; then
     3912  ac_cv_prog_f77_v=
     3913# Try some options frequently used verbose output
     3914for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     3915  cat >conftest.$ac_ext <<_ACEOF
     3916      program main
     3917
     3918      end
     3919_ACEOF
     3920
     3921# Compile and link our simple test program by passing a flag (argument
     3922# 1 to this macro) to the Fortran compiler in order to get
     3923# "verbose" output that we can then parse for the Fortran linker
     3924# flags.
     3925ac_save_FFLAGS=$FFLAGS
     3926FFLAGS="$FFLAGS $ac_verb"
     3927(eval echo $as_me:3927: \"$ac_link\") >&5
     3928ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3929echo "$ac_f77_v_output" >&5
     3930FFLAGS=$ac_save_FFLAGS
     3931
     3932rm -f conftest*
     3933
     3934# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3935# /foo, /bar, and /baz are search directories for the Fortran linker.
     3936# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3937ac_f77_v_output="`echo $ac_f77_v_output |
     3938        grep 'LPATH is:' |
     3939        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3940
     3941case $ac_f77_v_output in
     3942  # If we are using xlf then replace all the commas with spaces.
     3943  *xlfentry*)
     3944    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3945
     3946  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3947  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3948  *mGLOB_options_string*)
     3949    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3950
     3951  # If we are using Cray Fortran then delete quotes.
     3952  # Use "\"" instead of '"' for font-lock-mode.
     3953  # FIXME: a more general fix for quoted arguments with spaces?
     3954  *cft90*)
     3955    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3956esac
     3957
     3958
     3959  # look for -l* and *.a constructs in the output
     3960  for ac_arg in $ac_f77_v_output; do
     3961     case $ac_arg in
     3962        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     3963          ac_cv_prog_f77_v=$ac_verb
     3964          break 2 ;;
     3965     esac
     3966  done
     3967done
     3968if test -z "$ac_cv_prog_f77_v"; then
     3969   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     3970echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     3971fi
     3972else
     3973  echo "$as_me: failed program was:" >&5
     3974sed 's/^/| /' conftest.$ac_ext >&5
     3975
     3976{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     3977echo "$as_me: WARNING: compilation failed" >&2;}
     3978fi
     3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3980
     3981fi
     3982echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     3983echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     3984echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     3985echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     3986if test "${ac_cv_f77_libs+set}" = set; then
     3987  echo $ECHO_N "(cached) $ECHO_C" >&6
     3988else
     3989  if test "x$FLIBS" != "x"; then
     3990  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     3991else
     3992
     3993cat >conftest.$ac_ext <<_ACEOF
     3994      program main
     3995
     3996      end
     3997_ACEOF
     3998
     3999# Compile and link our simple test program by passing a flag (argument
     4000# 1 to this macro) to the Fortran compiler in order to get
     4001# "verbose" output that we can then parse for the Fortran linker
     4002# flags.
     4003ac_save_FFLAGS=$FFLAGS
     4004FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     4005(eval echo $as_me:4005: \"$ac_link\") >&5
     4006ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     4007echo "$ac_f77_v_output" >&5
     4008FFLAGS=$ac_save_FFLAGS
     4009
     4010rm -f conftest*
     4011
     4012# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     4013# /foo, /bar, and /baz are search directories for the Fortran linker.
     4014# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     4015ac_f77_v_output="`echo $ac_f77_v_output |
     4016        grep 'LPATH is:' |
     4017        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     4018
     4019case $ac_f77_v_output in
     4020  # If we are using xlf then replace all the commas with spaces.
     4021  *xlfentry*)
     4022    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     4023
     4024  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     4025  # $LIBS confuse us, and the libraries appear later in the output anyway).
     4026  *mGLOB_options_string*)
     4027    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     4028
     4029  # If we are using Cray Fortran then delete quotes.
     4030  # Use "\"" instead of '"' for font-lock-mode.
     4031  # FIXME: a more general fix for quoted arguments with spaces?
     4032  *cft90*)
     4033    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     4034esac
     4035
     4036
     4037
     4038ac_cv_f77_libs=
     4039
     4040# Save positional arguments (if any)
     4041ac_save_positional="$@"
     4042
     4043set X $ac_f77_v_output
     4044while test $# != 1; do
     4045  shift
     4046  ac_arg=$1
     4047  case $ac_arg in
     4048        [\\/]*.a | ?:[\\/]*.a)
     4049            ac_exists=false
     4050  for ac_i in $ac_cv_f77_libs; do
     4051    if test x"$ac_arg" = x"$ac_i"; then
     4052      ac_exists=true
     4053      break
     4054    fi
     4055  done
     4056
     4057  if test x"$ac_exists" = xtrue; then
     4058  :
     4059else
     4060  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4061fi
     4062
     4063          ;;
     4064        -bI:*)
     4065            ac_exists=false
     4066  for ac_i in $ac_cv_f77_libs; do
     4067    if test x"$ac_arg" = x"$ac_i"; then
     4068      ac_exists=true
     4069      break
     4070    fi
     4071  done
     4072
     4073  if test x"$ac_exists" = xtrue; then
     4074  :
     4075else
     4076  if test "$ac_compiler_gnu" = yes; then
     4077  for ac_link_opt in $ac_arg; do
     4078    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4079  done
     4080else
     4081  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4082fi
     4083fi
     4084
     4085          ;;
     4086          # Ignore these flags.
     4087        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     4088          ;;
     4089        -lkernel32)
     4090          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4091          ;;
     4092        -[LRuY])
     4093          # These flags, when seen by themselves, take an argument.
     4094          # We remove the space between option and argument and re-iterate
     4095          # unless we find an empty arg or a new option (starting with -)
     4096          case $2 in
     4097             "" | -*);;
     4098             *)
     4099                ac_arg="$ac_arg$2"
     4100                shift; shift
     4101                set X $ac_arg "$@"
     4102                ;;
     4103          esac
     4104          ;;
     4105        -YP,*)
     4106          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     4107              ac_exists=false
     4108  for ac_i in $ac_cv_f77_libs; do
     4109    if test x"$ac_j" = x"$ac_i"; then
     4110      ac_exists=true
     4111      break
     4112    fi
     4113  done
     4114
     4115  if test x"$ac_exists" = xtrue; then
     4116  :
     4117else
     4118  ac_arg="$ac_arg $ac_j"
     4119                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     4120fi
     4121
     4122          done
     4123          ;;
     4124        -[lLR]*)
     4125            ac_exists=false
     4126  for ac_i in $ac_cv_f77_libs; do
     4127    if test x"$ac_arg" = x"$ac_i"; then
     4128      ac_exists=true
     4129      break
     4130    fi
     4131  done
     4132
     4133  if test x"$ac_exists" = xtrue; then
     4134  :
     4135else
     4136  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4137fi
     4138
     4139          ;;
     4140          # Ignore everything else.
     4141  esac
     4142done
     4143# restore positional arguments
     4144set X $ac_save_positional; shift
     4145
     4146# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     4147# then we insist that the "run path" must be an absolute path (i.e. it
     4148# must begin with a "/").
     4149case `(uname -sr) 2>/dev/null` in
     4150   "SunOS 5"*)
     4151      ac_ld_run_path=`echo $ac_f77_v_output |
     4152                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     4153      test "x$ac_ld_run_path" != x &&
     4154        if test "$ac_compiler_gnu" = yes; then
     4155  for ac_link_opt in $ac_ld_run_path; do
     4156    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4157  done
     4158else
     4159  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     4160fi
     4161      ;;
     4162esac
     4163fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     4164
     4165fi
     4166echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     4167echo "${ECHO_T}$ac_cv_f77_libs" >&6
     4168FLIBS="$ac_cv_f77_libs"
     4169
     4170
     4171ac_ext=f
     4172ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4173ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4174ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4175
     4176ac_ext=f
     4177ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4178ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4179ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4180
     4181echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     4182echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     4183if test "${ac_cv_f77_dummy_main+set}" = set; then
     4184  echo $ECHO_N "(cached) $ECHO_C" >&6
     4185else
     4186  ac_f77_dm_save_LIBS=$LIBS
     4187 LIBS="$LIBS $FLIBS"
     4188 ac_fortran_dm_var=F77_DUMMY_MAIN
     4189 ac_ext=c
     4190ac_cpp='$CPP $CPPFLAGS'
     4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4194
     4195 # First, try linking without a dummy main:
     4196 cat >conftest.$ac_ext <<_ACEOF
     4197/* confdefs.h.  */
     4198_ACEOF
     4199cat confdefs.h >>conftest.$ac_ext
     4200cat >>conftest.$ac_ext <<_ACEOF
     4201/* end confdefs.h.  */
     4202
     4203#ifdef F77_DUMMY_MAIN
     4204
     4205#  ifdef __cplusplus
     4206     extern "C"
     4207#  endif
     4208   int F77_DUMMY_MAIN() { return 1; }
     4209
     4210#endif
     4211int
     4212main ()
     4213{
     4214
     4215  ;
     4216  return 0;
     4217}
     4218_ACEOF
     4219rm -f conftest.$ac_objext conftest$ac_exeext
     4220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4221  (eval $ac_link) 2>conftest.er1
     4222  ac_status=$?
     4223  grep -v '^ *+' conftest.er1 >conftest.err
     4224  rm -f conftest.er1
     4225  cat conftest.err >&5
     4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4227  (exit $ac_status); } &&
     4228         { ac_try='test -z "$ac_c_werror_flag"
     4229                         || test ! -s conftest.err'
     4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4231  (eval $ac_try) 2>&5
     4232  ac_status=$?
     4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4234  (exit $ac_status); }; } &&
     4235         { ac_try='test -s conftest$ac_exeext'
     4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4237  (eval $ac_try) 2>&5
     4238  ac_status=$?
     4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4240  (exit $ac_status); }; }; then
     4241  ac_cv_fortran_dummy_main=none
     4242else
     4243  echo "$as_me: failed program was:" >&5
     4244sed 's/^/| /' conftest.$ac_ext >&5
     4245
     4246ac_cv_fortran_dummy_main=unknown
     4247fi
     4248rm -f conftest.err conftest.$ac_objext \
     4249      conftest$ac_exeext conftest.$ac_ext
     4250
     4251 if test $ac_cv_fortran_dummy_main = unknown; then
     4252   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     4253     cat >conftest.$ac_ext <<_ACEOF
     4254/* confdefs.h.  */
     4255_ACEOF
     4256cat confdefs.h >>conftest.$ac_ext
     4257cat >>conftest.$ac_ext <<_ACEOF
     4258/* end confdefs.h.  */
     4259#define $ac_fortran_dm_var $ac_func
     4260#ifdef F77_DUMMY_MAIN
     4261
     4262#  ifdef __cplusplus
     4263     extern "C"
     4264#  endif
     4265   int F77_DUMMY_MAIN() { return 1; }
     4266
     4267#endif
     4268int
     4269main ()
     4270{
     4271
     4272  ;
     4273  return 0;
     4274}
     4275_ACEOF
     4276rm -f conftest.$ac_objext conftest$ac_exeext
     4277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4278  (eval $ac_link) 2>conftest.er1
     4279  ac_status=$?
     4280  grep -v '^ *+' conftest.er1 >conftest.err
     4281  rm -f conftest.er1
     4282  cat conftest.err >&5
     4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4284  (exit $ac_status); } &&
     4285         { ac_try='test -z "$ac_c_werror_flag"
     4286                         || test ! -s conftest.err'
     4287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4288  (eval $ac_try) 2>&5
     4289  ac_status=$?
     4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4291  (exit $ac_status); }; } &&
     4292         { ac_try='test -s conftest$ac_exeext'
     4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4294  (eval $ac_try) 2>&5
     4295  ac_status=$?
     4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4297  (exit $ac_status); }; }; then
     4298  ac_cv_fortran_dummy_main=$ac_func; break
     4299else
     4300  echo "$as_me: failed program was:" >&5
     4301sed 's/^/| /' conftest.$ac_ext >&5
     4302
     4303fi
     4304rm -f conftest.err conftest.$ac_objext \
     4305      conftest$ac_exeext conftest.$ac_ext
     4306   done
     4307 fi
     4308 ac_ext=f
     4309ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4310ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4311ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4312 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     4313 rm -f conftest*
     4314 LIBS=$ac_f77_dm_save_LIBS
     4315
     4316fi
     4317echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     4318echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     4319F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     4320if test "$F77_DUMMY_MAIN" != unknown; then
     4321  if test $F77_DUMMY_MAIN != none; then
     4322
     4323cat >>confdefs.h <<_ACEOF
     4324#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     4325_ACEOF
     4326
     4327  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     4328
     4329cat >>confdefs.h <<\_ACEOF
     4330#define FC_DUMMY_MAIN_EQ_F77 1
     4331_ACEOF
     4332
     4333  fi
     4334fi
     4335else
     4336  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     4337See \`config.log' for more details." >&5
     4338echo "$as_me: error: linking to Fortran libraries from C fails
     4339See \`config.log' for more details." >&2;}
     4340   { (exit 1); exit 1; }; }
     4341fi
     4342
     4343
     4344ac_ext=f
     4345ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4346ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4347ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4348
     4349ac_ext=f
     4350ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4351ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4352ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4353echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     4354echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     4355if test "${ac_cv_f77_mangling+set}" = set; then
     4356  echo $ECHO_N "(cached) $ECHO_C" >&6
     4357else
     4358  cat >conftest.$ac_ext <<_ACEOF
     4359      subroutine foobar()
     4360      return
     4361      end
     4362      subroutine foo_bar()
     4363      return
     4364      end
     4365_ACEOF
     4366rm -f conftest.$ac_objext
     4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4368  (eval $ac_compile) 2>conftest.er1
     4369  ac_status=$?
     4370  grep -v '^ *+' conftest.er1 >conftest.err
     4371  rm -f conftest.er1
     4372  cat conftest.err >&5
     4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4374  (exit $ac_status); } &&
     4375         { ac_try='test -z "$ac_f77_werror_flag"
     4376                         || test ! -s conftest.err'
     4377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4378  (eval $ac_try) 2>&5
     4379  ac_status=$?
     4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4381  (exit $ac_status); }; } &&
     4382         { ac_try='test -s conftest.$ac_objext'
     4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4384  (eval $ac_try) 2>&5
     4385  ac_status=$?
     4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4387  (exit $ac_status); }; }; then
     4388  mv conftest.$ac_objext cfortran_test.$ac_objext
     4389
     4390  ac_save_LIBS=$LIBS
     4391  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     4392
     4393  ac_ext=c
     4394ac_cpp='$CPP $CPPFLAGS'
     4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4398  ac_success=no
     4399  for ac_foobar in foobar FOOBAR; do
     4400    for ac_underscore in "" "_"; do
     4401      ac_func="$ac_foobar$ac_underscore"
     4402      cat >conftest.$ac_ext <<_ACEOF
     4403/* confdefs.h.  */
     4404_ACEOF
     4405cat confdefs.h >>conftest.$ac_ext
     4406cat >>conftest.$ac_ext <<_ACEOF
     4407/* end confdefs.h.  */
     4408
     4409/* Override any gcc2 internal prototype to avoid an error.  */
     4410#ifdef __cplusplus
     4411extern "C"
     4412#endif
     4413/* We use char because int might match the return type of a gcc2
     4414   builtin and then its argument prototype would still apply.  */
     4415char $ac_func ();
     4416#ifdef F77_DUMMY_MAIN
     4417
     4418#  ifdef __cplusplus
     4419     extern "C"
     4420#  endif
     4421   int F77_DUMMY_MAIN() { return 1; }
     4422
     4423#endif
     4424int
     4425main ()
     4426{
     4427$ac_func ();
     4428  ;
     4429  return 0;
     4430}
     4431_ACEOF
     4432rm -f conftest.$ac_objext conftest$ac_exeext
     4433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4434  (eval $ac_link) 2>conftest.er1
     4435  ac_status=$?
     4436  grep -v '^ *+' conftest.er1 >conftest.err
     4437  rm -f conftest.er1
     4438  cat conftest.err >&5
     4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4440  (exit $ac_status); } &&
     4441         { ac_try='test -z "$ac_c_werror_flag"
     4442                         || test ! -s conftest.err'
     4443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4444  (eval $ac_try) 2>&5
     4445  ac_status=$?
     4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4447  (exit $ac_status); }; } &&
     4448         { ac_try='test -s conftest$ac_exeext'
     4449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4450  (eval $ac_try) 2>&5
     4451  ac_status=$?
     4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4453  (exit $ac_status); }; }; then
     4454  ac_success=yes; break 2
     4455else
     4456  echo "$as_me: failed program was:" >&5
     4457sed 's/^/| /' conftest.$ac_ext >&5
     4458
     4459fi
     4460rm -f conftest.err conftest.$ac_objext \
     4461      conftest$ac_exeext conftest.$ac_ext
     4462    done
     4463  done
     4464  ac_ext=f
     4465ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4466ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4467ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4468
     4469  if test "$ac_success" = "yes"; then
     4470     case $ac_foobar in
     4471        foobar)
     4472           ac_case=lower
     4473           ac_foo_bar=foo_bar
     4474           ;;
     4475        FOOBAR)
     4476           ac_case=upper
     4477           ac_foo_bar=FOO_BAR
     4478           ;;
     4479     esac
     4480
     4481     ac_ext=c
     4482ac_cpp='$CPP $CPPFLAGS'
     4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4486     ac_success_extra=no
     4487     for ac_extra in "" "_"; do
     4488        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     4489        cat >conftest.$ac_ext <<_ACEOF
     4490/* confdefs.h.  */
     4491_ACEOF
     4492cat confdefs.h >>conftest.$ac_ext
     4493cat >>conftest.$ac_ext <<_ACEOF
     4494/* end confdefs.h.  */
     4495
     4496/* Override any gcc2 internal prototype to avoid an error.  */
     4497#ifdef __cplusplus
     4498extern "C"
     4499#endif
     4500/* We use char because int might match the return type of a gcc2
     4501   builtin and then its argument prototype would still apply.  */
     4502char $ac_func ();
     4503#ifdef F77_DUMMY_MAIN
     4504
     4505#  ifdef __cplusplus
     4506     extern "C"
     4507#  endif
     4508   int F77_DUMMY_MAIN() { return 1; }
     4509
     4510#endif
     4511int
     4512main ()
     4513{
     4514$ac_func ();
     4515  ;
     4516  return 0;
     4517}
     4518_ACEOF
     4519rm -f conftest.$ac_objext conftest$ac_exeext
     4520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4521  (eval $ac_link) 2>conftest.er1
     4522  ac_status=$?
     4523  grep -v '^ *+' conftest.er1 >conftest.err
     4524  rm -f conftest.er1
     4525  cat conftest.err >&5
     4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4527  (exit $ac_status); } &&
     4528         { ac_try='test -z "$ac_c_werror_flag"
     4529                         || test ! -s conftest.err'
     4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4531  (eval $ac_try) 2>&5
     4532  ac_status=$?
     4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4534  (exit $ac_status); }; } &&
     4535         { ac_try='test -s conftest$ac_exeext'
     4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4537  (eval $ac_try) 2>&5
     4538  ac_status=$?
     4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4540  (exit $ac_status); }; }; then
     4541  ac_success_extra=yes; break
     4542else
     4543  echo "$as_me: failed program was:" >&5
     4544sed 's/^/| /' conftest.$ac_ext >&5
     4545
     4546fi
     4547rm -f conftest.err conftest.$ac_objext \
     4548      conftest$ac_exeext conftest.$ac_ext
     4549     done
     4550     ac_ext=f
     4551ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4552ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4553ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4554
     4555     if test "$ac_success_extra" = "yes"; then
     4556        ac_cv_f77_mangling="$ac_case case"
     4557        if test -z "$ac_underscore"; then
     4558           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     4559        else
     4560           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     4561        fi
     4562        if test -z "$ac_extra"; then
     4563           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     4564        else
     4565           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     4566        fi
     4567      else
     4568        ac_cv_f77_mangling="unknown"
     4569      fi
     4570  else
     4571     ac_cv_f77_mangling="unknown"
     4572  fi
     4573
     4574  LIBS=$ac_save_LIBS
     4575  rm -f cfortran_test* conftest*
     4576else
     4577  echo "$as_me: failed program was:" >&5
     4578sed 's/^/| /' conftest.$ac_ext >&5
     4579
     4580{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     4581See \`config.log' for more details." >&5
     4582echo "$as_me: error: cannot compile a simple Fortran program
     4583See \`config.log' for more details." >&2;}
     4584   { (exit 1); exit 1; }; }
     4585fi
     4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4587
     4588fi
     4589echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     4590echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     4591
     4592ac_ext=f
     4593ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4594ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4595ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4596
     4597
     4598ac_ext=f
     4599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4602
     4603
     4604ac_ext=f
     4605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4608
     4609
     4610case $ac_cv_f77_mangling in
     4611  "lower case, no underscore, no extra underscore")
     4612          cat >>confdefs.h <<\_ACEOF
     4613#define F77_FUNC(name,NAME) name
     4614_ACEOF
     4615
     4616          cat >>confdefs.h <<\_ACEOF
     4617#define F77_FUNC_(name,NAME) name
     4618_ACEOF
     4619 ;;
     4620  "lower case, no underscore, extra underscore")
     4621          cat >>confdefs.h <<\_ACEOF
     4622#define F77_FUNC(name,NAME) name
     4623_ACEOF
     4624
     4625          cat >>confdefs.h <<\_ACEOF
     4626#define F77_FUNC_(name,NAME) name ## _
     4627_ACEOF
     4628 ;;
     4629  "lower case, underscore, no extra underscore")
     4630          cat >>confdefs.h <<\_ACEOF
     4631#define F77_FUNC(name,NAME) name ## _
     4632_ACEOF
     4633
     4634          cat >>confdefs.h <<\_ACEOF
     4635#define F77_FUNC_(name,NAME) name ## _
     4636_ACEOF
     4637 ;;
     4638  "lower case, underscore, extra underscore")
     4639          cat >>confdefs.h <<\_ACEOF
     4640#define F77_FUNC(name,NAME) name ## _
     4641_ACEOF
     4642
     4643          cat >>confdefs.h <<\_ACEOF
     4644#define F77_FUNC_(name,NAME) name ## __
     4645_ACEOF
     4646 ;;
     4647  "upper case, no underscore, no extra underscore")
     4648          cat >>confdefs.h <<\_ACEOF
     4649#define F77_FUNC(name,NAME) NAME
     4650_ACEOF
     4651
     4652          cat >>confdefs.h <<\_ACEOF
     4653#define F77_FUNC_(name,NAME) NAME
     4654_ACEOF
     4655 ;;
     4656  "upper case, no underscore, extra underscore")
     4657          cat >>confdefs.h <<\_ACEOF
     4658#define F77_FUNC(name,NAME) NAME
     4659_ACEOF
     4660
     4661          cat >>confdefs.h <<\_ACEOF
     4662#define F77_FUNC_(name,NAME) NAME ## _
     4663_ACEOF
     4664 ;;
     4665  "upper case, underscore, no extra underscore")
     4666          cat >>confdefs.h <<\_ACEOF
     4667#define F77_FUNC(name,NAME) NAME ## _
     4668_ACEOF
     4669
     4670          cat >>confdefs.h <<\_ACEOF
     4671#define F77_FUNC_(name,NAME) NAME ## _
     4672_ACEOF
     4673 ;;
     4674  "upper case, underscore, extra underscore")
     4675          cat >>confdefs.h <<\_ACEOF
     4676#define F77_FUNC(name,NAME) NAME ## _
     4677_ACEOF
     4678
     4679          cat >>confdefs.h <<\_ACEOF
     4680#define F77_FUNC_(name,NAME) NAME ## __
     4681_ACEOF
     4682 ;;
     4683  *)
     4684          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
     4685echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
     4686          ;;
     4687esac
     4688
     4689ac_ext=f
     4690ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4691ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4692ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4693
     4694
     4695# If FLIBS has been set by the user, we just restore its value here
     4696if test x"$save_FLIBS" != x; then
     4697  FLIBS="$save_FLIBS"
     4698else
     4699  # This is to correct a missing exclusion in autoconf 2.59
     4700  if test x"$FLIBS" != x; then
     4701    my_flibs=
     4702    for flag in $FLIBS; do
     4703      case $flag in
     4704        -lcrt*.o) ;;
     4705        -lcygwin) ;;
     4706               *) my_flibs="$my_flibs $flag" ;;
     4707      esac
     4708    done
     4709    FLIBS="$my_flibs"
     4710  fi
     4711
     4712  case $build in
     4713  # The following is a fix to define FLIBS for ifort on Windows
     4714  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
     4715  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
     4716  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
     4717     *-cygwin* | *-mingw*)
     4718       case "$F77" in
     4719         ifort* | */ifort* | IFORT* | */IFORT*)
     4720           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
     4721#           if "$coin_debug_compile" = true ; then
     4722#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
     4723#           else
     4724#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
     4725#           fi
     4726           ;;
     4727         compile_f2c*)
     4728           FLIBS=`$F77 -FLIBS` ;;
     4729       esac;;
     4730     *-hp-*)
     4731         FLIBS="$FLIBS -lm";;
     4732     *-ibm-*)
     4733         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
     4734     *-linux-*)
     4735       case "$F77" in
     4736         pgf77* | */pgf77* | pgf90* | */pgf90*)
     4737# ask linker to go through the archives multiple times
     4738# (the Fortran compiler seems to do that automatically...
     4739           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
     4740       esac
     4741  esac
     4742  ac_cv_f77_libs="$FLIBS"
     4743fi
     4744
     4745ac_ext=c
     4746ac_cpp='$CPP $CPPFLAGS'
     4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4749ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4750
     4751
     4752
     4753
     4754# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4755coin_need_flibs=yes
     4756
     4757# Check if pkg-config is available (to setup addlibs file)
     4758
     4759
     4760# Check whether --enable-pkg-config or --disable-pkg-config was given.
     4761if test "${enable_pkg_config+set}" = set; then
     4762  enableval="$enable_pkg_config"
     4763  use_pkgconfig="$enableval"
     4764else
     4765  use_pkgconfig=yes
     4766fi;
     4767
     4768if test $use_pkgconfig = yes ; then
     4769  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     4770    if test -n "$ac_tool_prefix"; then
     4771  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     4772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     4773echo "$as_me:$LINENO: checking for $ac_word" >&5
     4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4775if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     4776  echo $ECHO_N "(cached) $ECHO_C" >&6
     4777else
     4778  case $PKG_CONFIG in
     4779  [\\/]* | ?:[\\/]*)
     4780  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     4781  ;;
     4782  *)
     4783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4784for as_dir in $PATH
     4785do
     4786  IFS=$as_save_IFS
     4787  test -z "$as_dir" && as_dir=.
     4788  for ac_exec_ext in '' $ac_executable_extensions; do
     4789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4790    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     4791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4792    break 2
     4793  fi
     4794done
     4795done
     4796
     4797  ;;
     4798esac
     4799fi
     4800PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     4801
     4802if test -n "$PKG_CONFIG"; then
     4803  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     4804echo "${ECHO_T}$PKG_CONFIG" >&6
     4805else
     4806  echo "$as_me:$LINENO: result: no" >&5
     4807echo "${ECHO_T}no" >&6
     4808fi
     4809
     4810fi
     4811if test -z "$ac_cv_path_PKG_CONFIG"; then
     4812  ac_pt_PKG_CONFIG=$PKG_CONFIG
     4813  # Extract the first word of "pkg-config", so it can be a program name with args.
     4814set dummy pkg-config; ac_word=$2
     4815echo "$as_me:$LINENO: checking for $ac_word" >&5
     4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4817if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     4818  echo $ECHO_N "(cached) $ECHO_C" >&6
     4819else
     4820  case $ac_pt_PKG_CONFIG in
     4821  [\\/]* | ?:[\\/]*)
     4822  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     4823  ;;
     4824  *)
     4825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4826for as_dir in $PATH
     4827do
     4828  IFS=$as_save_IFS
     4829  test -z "$as_dir" && as_dir=.
     4830  for ac_exec_ext in '' $ac_executable_extensions; do
     4831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4832    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     4833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4834    break 2
     4835  fi
     4836done
     4837done
     4838
     4839  ;;
     4840esac
     4841fi
     4842ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     4843
     4844if test -n "$ac_pt_PKG_CONFIG"; then
     4845  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     4846echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     4847else
     4848  echo "$as_me:$LINENO: result: no" >&5
     4849echo "${ECHO_T}no" >&6
     4850fi
     4851
     4852  PKG_CONFIG=$ac_pt_PKG_CONFIG
     4853else
     4854  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     4855fi
     4856
     4857  fi
     4858  if test -n "$PKG_CONFIG"; then
     4859    _pkg_min_version=0.9.0
     4860    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     4861echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     4862    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     4863      echo "$as_me:$LINENO: result: yes" >&5
     4864echo "${ECHO_T}yes" >&6
     4865    else
     4866      echo "$as_me:$LINENO: result: no" >&5
     4867echo "${ECHO_T}no" >&6
     4868      PKG_CONFIG=""
     4869    fi
     4870  fi
     4871
     4872  # check if pkg-config supports the short-errors flag
     4873  if test -n "$PKG_CONFIG" && \
     4874    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     4875    pkg_short_errors=" --short-errors "
     4876  else
     4877    pkg_short_errors=""
     4878  fi
     4879fi
     4880
     4881
     4882
     4883if test -n "$PKG_CONFIG"; then
     4884  COIN_HAS_PKGCONFIG_TRUE=
     4885  COIN_HAS_PKGCONFIG_FALSE='#'
     4886else
     4887  COIN_HAS_PKGCONFIG_TRUE='#'
     4888  COIN_HAS_PKGCONFIG_FALSE=
     4889fi
     4890
     4891
     4892
     4893# assemble search path for pkg-config, if we are in a project setup
     4894if test x$coin_projectdir = xyes ; then
     4895  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     4896
     4897  # 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
     4898  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     4899  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     4900  if test -d "${prefix}"; then
     4901    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     4902  fi
     4903
     4904
     4905# Check whether --with-coin-instdir or --without-coin-instdir was given.
     4906if test "${with_coin_instdir+set}" = set; then
     4907  withval="$with_coin_instdir"
     4908  if test -d "$withval"; then : ; else
     4909       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     4910echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     4911   { (exit 1); exit 1; }; }
     4912     fi
     4913     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     4914
     4915fi;
     4916
     4917  # in a classic setup, we want to find uninstalled projects
     4918  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     4919  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     4920  # 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)
     4921  if test -e ../coin_subdirs.txt ; then
     4922    for i in `cat ../coin_subdirs.txt` ; do
     4923      if test -d ../$i ; then
     4924        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     4925      fi
     4926    done
     4927  fi
     4928
     4929  if test -e ../../coin_subdirs.txt ; then
     4930    for i in `cat ../../coin_subdirs.txt` ; do
     4931      if test -d ../../$i ; then
     4932        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     4933      fi
     4934    done
     4935  fi
     4936
     4937
     4938fi
     4939
     4940
     4941
    38104942# Initialize automake
    38114943{
     
    54416573*-*-irix6*)
    54426574  # Find out which ABI we are using.
    5443   echo '#line 5443 "configure"' > conftest.$ac_ext
     6575  echo '#line 6575 "configure"' > conftest.$ac_ext
    54446576  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54456577  (eval $ac_compile) 2>&5
     
    55446676/* end confdefs.h.  */
    55456677
     6678#ifdef F77_DUMMY_MAIN
     6679
     6680#  ifdef __cplusplus
     6681     extern "C"
     6682#  endif
     6683   int F77_DUMMY_MAIN() { return 1; }
     6684
     6685#endif
    55466686int
    55476687main ()
     
    58747014#include <float.h>
    58757015
     7016#ifdef F77_DUMMY_MAIN
     7017
     7018#  ifdef __cplusplus
     7019     extern "C"
     7020#  endif
     7021   int F77_DUMMY_MAIN() { return 1; }
     7022
     7023#endif
    58767024int
    58777025main ()
     
    63717519/* end confdefs.h.  */
    63727520
     7521#ifdef F77_DUMMY_MAIN
     7522
     7523#  ifdef __cplusplus
     7524     extern "C"
     7525#  endif
     7526   int F77_DUMMY_MAIN() { return 1; }
     7527
     7528#endif
    63737529int
    63747530main ()
     
    64337589/* end confdefs.h.  */
    64347590
     7591#ifdef F77_DUMMY_MAIN
     7592
     7593#  ifdef __cplusplus
     7594     extern "C"
     7595#  endif
     7596   int F77_DUMMY_MAIN() { return 1; }
     7597
     7598#endif
    64357599int
    64367600main ()
     
    65057669$ac_declaration
    65067670#include <stdlib.h>
     7671#ifdef F77_DUMMY_MAIN
     7672
     7673#  ifdef __cplusplus
     7674     extern "C"
     7675#  endif
     7676   int F77_DUMMY_MAIN() { return 1; }
     7677
     7678#endif
    65077679int
    65087680main ()
     
    65507722/* end confdefs.h.  */
    65517723$ac_declaration
     7724#ifdef F77_DUMMY_MAIN
     7725
     7726#  ifdef __cplusplus
     7727     extern "C"
     7728#  endif
     7729   int F77_DUMMY_MAIN() { return 1; }
     7730
     7731#endif
    65527732int
    65537733main ()
     
    78709050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78719051   -e 's:$: $lt_compiler_flag:'`
    7872    (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
     9052   (eval echo "\"\$as_me:9052: $lt_compile\"" >&5)
    78739053   (eval "$lt_compile" 2>conftest.err)
    78749054   ac_status=$?
    78759055   cat conftest.err >&5
    7876    echo "$as_me:7876: \$? = $ac_status" >&5
     9056   echo "$as_me:9056: \$? = $ac_status" >&5
    78779057   if (exit $ac_status) && test -s "$ac_outfile"; then
    78789058     # The compiler can only warn and ignore the option if not recognized
     
    81389318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81399319   -e 's:$: $lt_compiler_flag:'`
    8140    (eval echo "\"\$as_me:8140: $lt_compile\"" >&5)
     9320   (eval echo "\"\$as_me:9320: $lt_compile\"" >&5)
    81419321   (eval "$lt_compile" 2>conftest.err)
    81429322   ac_status=$?
    81439323   cat conftest.err >&5
    8144    echo "$as_me:8144: \$? = $ac_status" >&5
     9324   echo "$as_me:9324: \$? = $ac_status" >&5
    81459325   if (exit $ac_status) && test -s "$ac_outfile"; then
    81469326     # The compiler can only warn and ignore the option if not recognized
     
    82429422   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82439423   -e 's:$: $lt_compiler_flag:'`
    8244    (eval echo "\"\$as_me:8244: $lt_compile\"" >&5)
     9424   (eval echo "\"\$as_me:9424: $lt_compile\"" >&5)
    82459425   (eval "$lt_compile" 2>out/conftest.err)
    82469426   ac_status=$?
    82479427   cat out/conftest.err >&5
    8248    echo "$as_me:8248: \$? = $ac_status" >&5
     9428   echo "$as_me:9428: \$? = $ac_status" >&5
    82499429   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82509430   then
     
    87019881/* end confdefs.h.  */
    87029882
     9883#ifdef F77_DUMMY_MAIN
     9884
     9885#  ifdef __cplusplus
     9886     extern "C"
     9887#  endif
     9888   int F77_DUMMY_MAIN() { return 1; }
     9889
     9890#endif
    87039891int
    87049892main ()
     
    87629950/* end confdefs.h.  */
    87639951
     9952#ifdef F77_DUMMY_MAIN
     9953
     9954#  ifdef __cplusplus
     9955     extern "C"
     9956#  endif
     9957   int F77_DUMMY_MAIN() { return 1; }
     9958
     9959#endif
    87649960int
    87659961main ()
     
    1003011226   builtin and then its argument prototype would still apply.  */
    1003111227char dlopen ();
     11228#ifdef F77_DUMMY_MAIN
     11229
     11230#  ifdef __cplusplus
     11231     extern "C"
     11232#  endif
     11233   int F77_DUMMY_MAIN() { return 1; }
     11234
     11235#endif
    1003211236int
    1003311237main ()
     
    1013411338#endif
    1013511339
     11340#ifdef F77_DUMMY_MAIN
     11341
     11342#  ifdef __cplusplus
     11343     extern "C"
     11344#  endif
     11345   int F77_DUMMY_MAIN() { return 1; }
     11346
     11347#endif
    1013611348int
    1013711349main ()
     
    1020011412   builtin and then its argument prototype would still apply.  */
    1020111413char shl_load ();
     11414#ifdef F77_DUMMY_MAIN
     11415
     11416#  ifdef __cplusplus
     11417     extern "C"
     11418#  endif
     11419   int F77_DUMMY_MAIN() { return 1; }
     11420
     11421#endif
    1020211422int
    1020311423main ()
     
    1029411514#endif
    1029511515
     11516#ifdef F77_DUMMY_MAIN
     11517
     11518#  ifdef __cplusplus
     11519     extern "C"
     11520#  endif
     11521   int F77_DUMMY_MAIN() { return 1; }
     11522
     11523#endif
    1029611524int
    1029711525main ()
     
    1036011588   builtin and then its argument prototype would still apply.  */
    1036111589char dlopen ();
     11590#ifdef F77_DUMMY_MAIN
     11591
     11592#  ifdef __cplusplus
     11593     extern "C"
     11594#  endif
     11595   int F77_DUMMY_MAIN() { return 1; }
     11596
     11597#endif
    1036211598int
    1036311599main ()
     
    1042711663   builtin and then its argument prototype would still apply.  */
    1042811664char dlopen ();
     11665#ifdef F77_DUMMY_MAIN
     11666
     11667#  ifdef __cplusplus
     11668     extern "C"
     11669#  endif
     11670   int F77_DUMMY_MAIN() { return 1; }
     11671
     11672#endif
    1042911673int
    1043011674main ()
     
    1049411738   builtin and then its argument prototype would still apply.  */
    1049511739char dld_link ();
     11740#ifdef F77_DUMMY_MAIN
     11741
     11742#  ifdef __cplusplus
     11743     extern "C"
     11744#  endif
     11745   int F77_DUMMY_MAIN() { return 1; }
     11746
     11747#endif
    1049611748int
    1049711749main ()
     
    1058711839  lt_status=$lt_dlunknown
    1058811840  cat > conftest.$ac_ext <<EOF
    10589 #line 10589 "configure"
     11841#line 11841 "configure"
    1059011842#include "confdefs.h"
    1059111843
     
    1068711939  lt_status=$lt_dlunknown
    1068811940  cat > conftest.$ac_ext <<EOF
    10689 #line 10689 "configure"
     11941#line 11941 "configure"
    1069011942#include "confdefs.h"
    1069111943
     
    1175313005/* end confdefs.h.  */
    1175413006
     13007#ifdef F77_DUMMY_MAIN
     13008
     13009#  ifdef __cplusplus
     13010     extern "C"
     13011#  endif
     13012   int F77_DUMMY_MAIN() { return 1; }
     13013
     13014#endif
    1175513015int
    1175613016main ()
     
    1181513075/* end confdefs.h.  */
    1181613076
     13077#ifdef F77_DUMMY_MAIN
     13078
     13079#  ifdef __cplusplus
     13080     extern "C"
     13081#  endif
     13082   int F77_DUMMY_MAIN() { return 1; }
     13083
     13084#endif
    1181713085int
    1181813086main ()
     
    1303114299   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1303214300   -e 's:$: $lt_compiler_flag:'`
    13033    (eval echo "\"\$as_me:13033: $lt_compile\"" >&5)
     14301   (eval echo "\"\$as_me:14301: $lt_compile\"" >&5)
    1303414302   (eval "$lt_compile" 2>conftest.err)
    1303514303   ac_status=$?
    1303614304   cat conftest.err >&5
    13037    echo "$as_me:13037: \$? = $ac_status" >&5
     14305   echo "$as_me:14305: \$? = $ac_status" >&5
    1303814306   if (exit $ac_status) && test -s "$ac_outfile"; then
    1303914307     # The compiler can only warn and ignore the option if not recognized
     
    1313514403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1313614404   -e 's:$: $lt_compiler_flag:'`
    13137    (eval echo "\"\$as_me:13137: $lt_compile\"" >&5)
     14405   (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
    1313814406   (eval "$lt_compile" 2>out/conftest.err)
    1313914407   ac_status=$?
    1314014408   cat out/conftest.err >&5
    13141    echo "$as_me:13141: \$? = $ac_status" >&5
     14409   echo "$as_me:14409: \$? = $ac_status" >&5
    1314214410   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1314314411   then
     
    1470515973   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1470615974   -e 's:$: $lt_compiler_flag:'`
    14707    (eval echo "\"\$as_me:14707: $lt_compile\"" >&5)
     15975   (eval echo "\"\$as_me:15975: $lt_compile\"" >&5)
    1470815976   (eval "$lt_compile" 2>conftest.err)
    1470915977   ac_status=$?
    1471015978   cat conftest.err >&5
    14711    echo "$as_me:14711: \$? = $ac_status" >&5
     15979   echo "$as_me:15979: \$? = $ac_status" >&5
    1471215980   if (exit $ac_status) && test -s "$ac_outfile"; then
    1471315981     # The compiler can only warn and ignore the option if not recognized
     
    1480916077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1481016078   -e 's:$: $lt_compiler_flag:'`
    14811    (eval echo "\"\$as_me:14811: $lt_compile\"" >&5)
     16079   (eval echo "\"\$as_me:16079: $lt_compile\"" >&5)
    1481216080   (eval "$lt_compile" 2>out/conftest.err)
    1481316081   ac_status=$?
    1481416082   cat out/conftest.err >&5
    14815    echo "$as_me:14815: \$? = $ac_status" >&5
     16083   echo "$as_me:16083: \$? = $ac_status" >&5
    1481616084   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1481716085   then
     
    1701618284   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1701718285   -e 's:$: $lt_compiler_flag:'`
    17018    (eval echo "\"\$as_me:17018: $lt_compile\"" >&5)
     18286   (eval echo "\"\$as_me:18286: $lt_compile\"" >&5)
    1701918287   (eval "$lt_compile" 2>conftest.err)
    1702018288   ac_status=$?
    1702118289   cat conftest.err >&5
    17022    echo "$as_me:17022: \$? = $ac_status" >&5
     18290   echo "$as_me:18290: \$? = $ac_status" >&5
    1702318291   if (exit $ac_status) && test -s "$ac_outfile"; then
    1702418292     # The compiler can only warn and ignore the option if not recognized
     
    1728418552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1728518553   -e 's:$: $lt_compiler_flag:'`
    17286    (eval echo "\"\$as_me:17286: $lt_compile\"" >&5)
     18554   (eval echo "\"\$as_me:18554: $lt_compile\"" >&5)
    1728718555   (eval "$lt_compile" 2>conftest.err)
    1728818556   ac_status=$?
    1728918557   cat conftest.err >&5
    17290    echo "$as_me:17290: \$? = $ac_status" >&5
     18558   echo "$as_me:18558: \$? = $ac_status" >&5
    1729118559   if (exit $ac_status) && test -s "$ac_outfile"; then
    1729218560     # The compiler can only warn and ignore the option if not recognized
     
    1738818656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1738918657   -e 's:$: $lt_compiler_flag:'`
    17390    (eval echo "\"\$as_me:17390: $lt_compile\"" >&5)
     18658   (eval echo "\"\$as_me:18658: $lt_compile\"" >&5)
    1739118659   (eval "$lt_compile" 2>out/conftest.err)
    1739218660   ac_status=$?
    1739318661   cat out/conftest.err >&5
    17394    echo "$as_me:17394: \$? = $ac_status" >&5
     18662   echo "$as_me:18662: \$? = $ac_status" >&5
    1739518663   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1739618664   then
     
    1784719115/* end confdefs.h.  */
    1784819116
     19117#ifdef F77_DUMMY_MAIN
     19118
     19119#  ifdef __cplusplus
     19120     extern "C"
     19121#  endif
     19122   int F77_DUMMY_MAIN() { return 1; }
     19123
     19124#endif
    1784919125int
    1785019126main ()
     
    1790819184/* end confdefs.h.  */
    1790919185
     19186#ifdef F77_DUMMY_MAIN
     19187
     19188#  ifdef __cplusplus
     19189     extern "C"
     19190#  endif
     19191   int F77_DUMMY_MAIN() { return 1; }
     19192
     19193#endif
    1791019194int
    1791119195main ()
     
    2029021574}
    2029121575
    20292 # Check if Blas is already available on the system or provided by user
    20293 ac_ext=f
    20294 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20295 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20296 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20297 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
    20298 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
    20299 if test "${ac_cv_prog_f77_v+set}" = set; then
    20300   echo $ECHO_N "(cached) $ECHO_C" >&6
    20301 else
    20302   cat >conftest.$ac_ext <<_ACEOF
    20303       program main
    20304 
    20305       end
    20306 _ACEOF
    20307 rm -f conftest.$ac_objext
    20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    20309   (eval $ac_compile) 2>conftest.er1
    20310   ac_status=$?
    20311   grep -v '^ *+' conftest.er1 >conftest.err
    20312   rm -f conftest.er1
    20313   cat conftest.err >&5
    20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20315   (exit $ac_status); } &&
    20316          { ac_try='test -z "$ac_f77_werror_flag"
    20317                          || test ! -s conftest.err'
    20318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20319   (eval $ac_try) 2>&5
    20320   ac_status=$?
    20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20322   (exit $ac_status); }; } &&
    20323          { ac_try='test -s conftest.$ac_objext'
    20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20325   (eval $ac_try) 2>&5
    20326   ac_status=$?
    20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20328   (exit $ac_status); }; }; then
    20329   ac_cv_prog_f77_v=
    20330 # Try some options frequently used verbose output
    20331 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
    20332   cat >conftest.$ac_ext <<_ACEOF
    20333       program main
    20334 
    20335       end
    20336 _ACEOF
    20337 
    20338 # Compile and link our simple test program by passing a flag (argument
    20339 # 1 to this macro) to the Fortran compiler in order to get
    20340 # "verbose" output that we can then parse for the Fortran linker
    20341 # flags.
    20342 ac_save_FFLAGS=$FFLAGS
    20343 FFLAGS="$FFLAGS $ac_verb"
    20344 (eval echo $as_me:20344: \"$ac_link\") >&5
    20345 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    20346 echo "$ac_f77_v_output" >&5
    20347 FFLAGS=$ac_save_FFLAGS
    20348 
    20349 rm -f conftest*
    20350 
    20351 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
    20352 # /foo, /bar, and /baz are search directories for the Fortran linker.
    20353 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
    20354 ac_f77_v_output="`echo $ac_f77_v_output |
    20355         grep 'LPATH is:' |
    20356         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
    20357 
    20358 case $ac_f77_v_output in
    20359   # If we are using xlf then replace all the commas with spaces.
    20360   *xlfentry*)
    20361     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
    20362 
    20363   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
    20364   # $LIBS confuse us, and the libraries appear later in the output anyway).
    20365   *mGLOB_options_string*)
    20366     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
    20367 
    20368   # If we are using Cray Fortran then delete quotes.
    20369   # Use "\"" instead of '"' for font-lock-mode.
    20370   # FIXME: a more general fix for quoted arguments with spaces?
    20371   *cft90*)
    20372     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
    20373 esac
    20374 
    20375 
    20376   # look for -l* and *.a constructs in the output
    20377   for ac_arg in $ac_f77_v_output; do
    20378      case $ac_arg in
    20379         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
    20380           ac_cv_prog_f77_v=$ac_verb
    20381           break 2 ;;
    20382      esac
    20383   done
    20384 done
    20385 if test -z "$ac_cv_prog_f77_v"; then
    20386    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
    20387 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
    20388 fi
    20389 else
    20390   echo "$as_me: failed program was:" >&5
    20391 sed 's/^/| /' conftest.$ac_ext >&5
    20392 
    20393 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
    20394 echo "$as_me: WARNING: compilation failed" >&2;}
    20395 fi
    20396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    20397 
    20398 fi
    20399 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
    20400 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
    20401 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
    20402 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
    20403 if test "${ac_cv_f77_libs+set}" = set; then
    20404   echo $ECHO_N "(cached) $ECHO_C" >&6
    20405 else
    20406   if test "x$FLIBS" != "x"; then
    20407   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
    20408 else
    20409 
    20410 cat >conftest.$ac_ext <<_ACEOF
    20411       program main
    20412 
    20413       end
    20414 _ACEOF
    20415 
    20416 # Compile and link our simple test program by passing a flag (argument
    20417 # 1 to this macro) to the Fortran compiler in order to get
    20418 # "verbose" output that we can then parse for the Fortran linker
    20419 # flags.
    20420 ac_save_FFLAGS=$FFLAGS
    20421 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    20422 (eval echo $as_me:20422: \"$ac_link\") >&5
    20423 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    20424 echo "$ac_f77_v_output" >&5
    20425 FFLAGS=$ac_save_FFLAGS
    20426 
    20427 rm -f conftest*
    20428 
    20429 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
    20430 # /foo, /bar, and /baz are search directories for the Fortran linker.
    20431 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
    20432 ac_f77_v_output="`echo $ac_f77_v_output |
    20433         grep 'LPATH is:' |
    20434         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
    20435 
    20436 case $ac_f77_v_output in
    20437   # If we are using xlf then replace all the commas with spaces.
    20438   *xlfentry*)
    20439     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
    20440 
    20441   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
    20442   # $LIBS confuse us, and the libraries appear later in the output anyway).
    20443   *mGLOB_options_string*)
    20444     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
    20445 
    20446   # If we are using Cray Fortran then delete quotes.
    20447   # Use "\"" instead of '"' for font-lock-mode.
    20448   # FIXME: a more general fix for quoted arguments with spaces?
    20449   *cft90*)
    20450     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
    20451 esac
    20452 
    20453 
    20454 
    20455 ac_cv_f77_libs=
    20456 
    20457 # Save positional arguments (if any)
    20458 ac_save_positional="$@"
    20459 
    20460 set X $ac_f77_v_output
    20461 while test $# != 1; do
    20462   shift
    20463   ac_arg=$1
    20464   case $ac_arg in
    20465         [\\/]*.a | ?:[\\/]*.a)
    20466             ac_exists=false
    20467   for ac_i in $ac_cv_f77_libs; do
    20468     if test x"$ac_arg" = x"$ac_i"; then
    20469       ac_exists=true
    20470       break
    20471     fi
    20472   done
    20473 
    20474   if test x"$ac_exists" = xtrue; then
    20475   :
    20476 else
    20477   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20478 fi
    20479 
    20480           ;;
    20481         -bI:*)
    20482             ac_exists=false
    20483   for ac_i in $ac_cv_f77_libs; do
    20484     if test x"$ac_arg" = x"$ac_i"; then
    20485       ac_exists=true
    20486       break
    20487     fi
    20488   done
    20489 
    20490   if test x"$ac_exists" = xtrue; then
    20491   :
    20492 else
    20493   if test "$ac_compiler_gnu" = yes; then
    20494   for ac_link_opt in $ac_arg; do
    20495     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
    20496   done
    20497 else
    20498   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20499 fi
    20500 fi
    20501 
    20502           ;;
    20503           # Ignore these flags.
    20504         -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
    20505           ;;
    20506         -lkernel32)
    20507           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20508           ;;
    20509         -[LRuY])
    20510           # These flags, when seen by themselves, take an argument.
    20511           # We remove the space between option and argument and re-iterate
    20512           # unless we find an empty arg or a new option (starting with -)
    20513           case $2 in
    20514              "" | -*);;
    20515              *)
    20516                 ac_arg="$ac_arg$2"
    20517                 shift; shift
    20518                 set X $ac_arg "$@"
    20519                 ;;
    20520           esac
    20521           ;;
    20522         -YP,*)
    20523           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
    20524               ac_exists=false
    20525   for ac_i in $ac_cv_f77_libs; do
    20526     if test x"$ac_j" = x"$ac_i"; then
    20527       ac_exists=true
    20528       break
    20529     fi
    20530   done
    20531 
    20532   if test x"$ac_exists" = xtrue; then
    20533   :
    20534 else
    20535   ac_arg="$ac_arg $ac_j"
    20536                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
    20537 fi
    20538 
    20539           done
    20540           ;;
    20541         -[lLR]*)
    20542             ac_exists=false
    20543   for ac_i in $ac_cv_f77_libs; do
    20544     if test x"$ac_arg" = x"$ac_i"; then
    20545       ac_exists=true
    20546       break
    20547     fi
    20548   done
    20549 
    20550   if test x"$ac_exists" = xtrue; then
    20551   :
    20552 else
    20553   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    20554 fi
    20555 
    20556           ;;
    20557           # Ignore everything else.
    20558   esac
    20559 done
    20560 # restore positional arguments
    20561 set X $ac_save_positional; shift
    20562 
    20563 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
    20564 # then we insist that the "run path" must be an absolute path (i.e. it
    20565 # must begin with a "/").
    20566 case `(uname -sr) 2>/dev/null` in
    20567    "SunOS 5"*)
    20568       ac_ld_run_path=`echo $ac_f77_v_output |
    20569                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
    20570       test "x$ac_ld_run_path" != x &&
    20571         if test "$ac_compiler_gnu" = yes; then
    20572   for ac_link_opt in $ac_ld_run_path; do
    20573     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
    20574   done
    20575 else
    20576   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
    20577 fi
    20578       ;;
    20579 esac
    20580 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
    20581 
    20582 fi
    20583 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
    20584 echo "${ECHO_T}$ac_cv_f77_libs" >&6
    20585 FLIBS="$ac_cv_f77_libs"
    20586 
    20587 
    20588 ac_ext=c
    20589 ac_cpp='$CPP $CPPFLAGS'
    20590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20593 
    20594 ac_ext=f
    20595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20598 
    20599 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
    20600 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
    20601 if test "${ac_cv_f77_dummy_main+set}" = set; then
    20602   echo $ECHO_N "(cached) $ECHO_C" >&6
    20603 else
    20604   ac_f77_dm_save_LIBS=$LIBS
    20605  LIBS="$LIBS $FLIBS"
    20606  ac_fortran_dm_var=F77_DUMMY_MAIN
    20607  ac_ext=c
    20608 ac_cpp='$CPP $CPPFLAGS'
    20609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20612 
    20613  # First, try linking without a dummy main:
    20614  cat >conftest.$ac_ext <<_ACEOF
    20615 /* confdefs.h.  */
    20616 _ACEOF
    20617 cat confdefs.h >>conftest.$ac_ext
    20618 cat >>conftest.$ac_ext <<_ACEOF
    20619 /* end confdefs.h.  */
    20620 
    20621 #ifdef F77_DUMMY_MAIN
    20622 
    20623 #  ifdef __cplusplus
    20624      extern "C"
    20625 #  endif
    20626    int F77_DUMMY_MAIN() { return 1; }
    20627 
    20628 #endif
    20629 int
    20630 main ()
    20631 {
    20632 
    20633   ;
    20634   return 0;
    20635 }
    20636 _ACEOF
    20637 rm -f conftest.$ac_objext conftest$ac_exeext
    20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20639   (eval $ac_link) 2>conftest.er1
    20640   ac_status=$?
    20641   grep -v '^ *+' conftest.er1 >conftest.err
    20642   rm -f conftest.er1
    20643   cat conftest.err >&5
    20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20645   (exit $ac_status); } &&
    20646          { ac_try='test -z "$ac_c_werror_flag"
    20647                          || test ! -s conftest.err'
    20648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20649   (eval $ac_try) 2>&5
    20650   ac_status=$?
    20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20652   (exit $ac_status); }; } &&
    20653          { ac_try='test -s conftest$ac_exeext'
    20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20655   (eval $ac_try) 2>&5
    20656   ac_status=$?
    20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20658   (exit $ac_status); }; }; then
    20659   ac_cv_fortran_dummy_main=none
    20660 else
    20661   echo "$as_me: failed program was:" >&5
    20662 sed 's/^/| /' conftest.$ac_ext >&5
    20663 
    20664 ac_cv_fortran_dummy_main=unknown
    20665 fi
    20666 rm -f conftest.err conftest.$ac_objext \
    20667       conftest$ac_exeext conftest.$ac_ext
    20668 
    20669  if test $ac_cv_fortran_dummy_main = unknown; then
    20670    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
    20671      cat >conftest.$ac_ext <<_ACEOF
    20672 /* confdefs.h.  */
    20673 _ACEOF
    20674 cat confdefs.h >>conftest.$ac_ext
    20675 cat >>conftest.$ac_ext <<_ACEOF
    20676 /* end confdefs.h.  */
    20677 #define $ac_fortran_dm_var $ac_func
    20678 #ifdef F77_DUMMY_MAIN
    20679 
    20680 #  ifdef __cplusplus
    20681      extern "C"
    20682 #  endif
    20683    int F77_DUMMY_MAIN() { return 1; }
    20684 
    20685 #endif
    20686 int
    20687 main ()
    20688 {
    20689 
    20690   ;
    20691   return 0;
    20692 }
    20693 _ACEOF
    20694 rm -f conftest.$ac_objext conftest$ac_exeext
    20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20696   (eval $ac_link) 2>conftest.er1
    20697   ac_status=$?
    20698   grep -v '^ *+' conftest.er1 >conftest.err
    20699   rm -f conftest.er1
    20700   cat conftest.err >&5
    20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20702   (exit $ac_status); } &&
    20703          { ac_try='test -z "$ac_c_werror_flag"
    20704                          || test ! -s conftest.err'
    20705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20706   (eval $ac_try) 2>&5
    20707   ac_status=$?
    20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20709   (exit $ac_status); }; } &&
    20710          { ac_try='test -s conftest$ac_exeext'
    20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20712   (eval $ac_try) 2>&5
    20713   ac_status=$?
    20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20715   (exit $ac_status); }; }; then
    20716   ac_cv_fortran_dummy_main=$ac_func; break
    20717 else
    20718   echo "$as_me: failed program was:" >&5
    20719 sed 's/^/| /' conftest.$ac_ext >&5
    20720 
    20721 fi
    20722 rm -f conftest.err conftest.$ac_objext \
    20723       conftest$ac_exeext conftest.$ac_ext
    20724    done
    20725  fi
    20726  ac_ext=f
    20727 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20728 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20729 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20730  ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
    20731  rm -f conftest*
    20732  LIBS=$ac_f77_dm_save_LIBS
    20733 
    20734 fi
    20735 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
    20736 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
    20737 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
    20738 if test "$F77_DUMMY_MAIN" != unknown; then
    20739   if test $F77_DUMMY_MAIN != none; then
    20740 
    20741 cat >>confdefs.h <<_ACEOF
    20742 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
    20743 _ACEOF
    20744 
    20745   if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
    20746 
    20747 cat >>confdefs.h <<\_ACEOF
    20748 #define FC_DUMMY_MAIN_EQ_F77 1
    20749 _ACEOF
    20750 
    20751   fi
    20752 fi
    20753 else
    20754   { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
    20755 See \`config.log' for more details." >&5
    20756 echo "$as_me: error: linking to Fortran libraries from C fails
    20757 See \`config.log' for more details." >&2;}
    20758    { (exit 1); exit 1; }; }
    20759 fi
    20760 
    20761 
    20762 ac_ext=c
    20763 ac_cpp='$CPP $CPPFLAGS'
    20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20767 
    20768 ac_ext=f
    20769 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20770 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20771 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20772 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
    20773 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
    20774 if test "${ac_cv_f77_mangling+set}" = set; then
    20775   echo $ECHO_N "(cached) $ECHO_C" >&6
    20776 else
    20777   cat >conftest.$ac_ext <<_ACEOF
    20778       subroutine foobar()
    20779       return
    20780       end
    20781       subroutine foo_bar()
    20782       return
    20783       end
    20784 _ACEOF
    20785 rm -f conftest.$ac_objext
    20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    20787   (eval $ac_compile) 2>conftest.er1
    20788   ac_status=$?
    20789   grep -v '^ *+' conftest.er1 >conftest.err
    20790   rm -f conftest.er1
    20791   cat conftest.err >&5
    20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20793   (exit $ac_status); } &&
    20794          { ac_try='test -z "$ac_f77_werror_flag"
    20795                          || test ! -s conftest.err'
    20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20797   (eval $ac_try) 2>&5
    20798   ac_status=$?
    20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20800   (exit $ac_status); }; } &&
    20801          { ac_try='test -s conftest.$ac_objext'
    20802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20803   (eval $ac_try) 2>&5
    20804   ac_status=$?
    20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20806   (exit $ac_status); }; }; then
    20807   mv conftest.$ac_objext cfortran_test.$ac_objext
    20808 
    20809   ac_save_LIBS=$LIBS
    20810   LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
    20811 
    20812   ac_ext=c
    20813 ac_cpp='$CPP $CPPFLAGS'
    20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20817   ac_success=no
    20818   for ac_foobar in foobar FOOBAR; do
    20819     for ac_underscore in "" "_"; do
    20820       ac_func="$ac_foobar$ac_underscore"
    20821       cat >conftest.$ac_ext <<_ACEOF
    20822 /* confdefs.h.  */
    20823 _ACEOF
    20824 cat confdefs.h >>conftest.$ac_ext
    20825 cat >>conftest.$ac_ext <<_ACEOF
    20826 /* end confdefs.h.  */
    20827 
    20828 /* Override any gcc2 internal prototype to avoid an error.  */
    20829 #ifdef __cplusplus
    20830 extern "C"
    20831 #endif
    20832 /* We use char because int might match the return type of a gcc2
    20833    builtin and then its argument prototype would still apply.  */
    20834 char $ac_func ();
    20835 #ifdef F77_DUMMY_MAIN
    20836 
    20837 #  ifdef __cplusplus
    20838      extern "C"
    20839 #  endif
    20840    int F77_DUMMY_MAIN() { return 1; }
    20841 
    20842 #endif
    20843 int
    20844 main ()
    20845 {
    20846 $ac_func ();
    20847   ;
    20848   return 0;
    20849 }
    20850 _ACEOF
    20851 rm -f conftest.$ac_objext conftest$ac_exeext
    20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20853   (eval $ac_link) 2>conftest.er1
    20854   ac_status=$?
    20855   grep -v '^ *+' conftest.er1 >conftest.err
    20856   rm -f conftest.er1
    20857   cat conftest.err >&5
    20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20859   (exit $ac_status); } &&
    20860          { ac_try='test -z "$ac_c_werror_flag"
    20861                          || test ! -s conftest.err'
    20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20863   (eval $ac_try) 2>&5
    20864   ac_status=$?
    20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20866   (exit $ac_status); }; } &&
    20867          { ac_try='test -s conftest$ac_exeext'
    20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20869   (eval $ac_try) 2>&5
    20870   ac_status=$?
    20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20872   (exit $ac_status); }; }; then
    20873   ac_success=yes; break 2
    20874 else
    20875   echo "$as_me: failed program was:" >&5
    20876 sed 's/^/| /' conftest.$ac_ext >&5
    20877 
    20878 fi
    20879 rm -f conftest.err conftest.$ac_objext \
    20880       conftest$ac_exeext conftest.$ac_ext
    20881     done
    20882   done
    20883   ac_ext=f
    20884 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20885 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20886 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20887 
    20888   if test "$ac_success" = "yes"; then
    20889      case $ac_foobar in
    20890         foobar)
    20891            ac_case=lower
    20892            ac_foo_bar=foo_bar
    20893            ;;
    20894         FOOBAR)
    20895            ac_case=upper
    20896            ac_foo_bar=FOO_BAR
    20897            ;;
    20898      esac
    20899 
    20900      ac_ext=c
    20901 ac_cpp='$CPP $CPPFLAGS'
    20902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    20903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    20905      ac_success_extra=no
    20906      for ac_extra in "" "_"; do
    20907         ac_func="$ac_foo_bar$ac_underscore$ac_extra"
    20908         cat >conftest.$ac_ext <<_ACEOF
    20909 /* confdefs.h.  */
    20910 _ACEOF
    20911 cat confdefs.h >>conftest.$ac_ext
    20912 cat >>conftest.$ac_ext <<_ACEOF
    20913 /* end confdefs.h.  */
    20914 
    20915 /* Override any gcc2 internal prototype to avoid an error.  */
    20916 #ifdef __cplusplus
    20917 extern "C"
    20918 #endif
    20919 /* We use char because int might match the return type of a gcc2
    20920    builtin and then its argument prototype would still apply.  */
    20921 char $ac_func ();
    20922 #ifdef F77_DUMMY_MAIN
    20923 
    20924 #  ifdef __cplusplus
    20925      extern "C"
    20926 #  endif
    20927    int F77_DUMMY_MAIN() { return 1; }
    20928 
    20929 #endif
    20930 int
    20931 main ()
    20932 {
    20933 $ac_func ();
    20934   ;
    20935   return 0;
    20936 }
    20937 _ACEOF
    20938 rm -f conftest.$ac_objext conftest$ac_exeext
    20939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20940   (eval $ac_link) 2>conftest.er1
    20941   ac_status=$?
    20942   grep -v '^ *+' conftest.er1 >conftest.err
    20943   rm -f conftest.er1
    20944   cat conftest.err >&5
    20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20946   (exit $ac_status); } &&
    20947          { ac_try='test -z "$ac_c_werror_flag"
    20948                          || test ! -s conftest.err'
    20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20950   (eval $ac_try) 2>&5
    20951   ac_status=$?
    20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20953   (exit $ac_status); }; } &&
    20954          { ac_try='test -s conftest$ac_exeext'
    20955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20956   (eval $ac_try) 2>&5
    20957   ac_status=$?
    20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20959   (exit $ac_status); }; }; then
    20960   ac_success_extra=yes; break
    20961 else
    20962   echo "$as_me: failed program was:" >&5
    20963 sed 's/^/| /' conftest.$ac_ext >&5
    20964 
    20965 fi
    20966 rm -f conftest.err conftest.$ac_objext \
    20967       conftest$ac_exeext conftest.$ac_ext
    20968      done
    20969      ac_ext=f
    20970 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    20971 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    20972 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    20973 
    20974      if test "$ac_success_extra" = "yes"; then
    20975         ac_cv_f77_mangling="$ac_case case"
    20976         if test -z "$ac_underscore"; then
    20977            ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
    20978         else
    20979            ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
    20980         fi
    20981         if test -z "$ac_extra"; then
    20982            ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
    20983         else
    20984            ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
    20985         fi
    20986       else
    20987         ac_cv_f77_mangling="unknown"
    20988       fi
    20989   else
    20990      ac_cv_f77_mangling="unknown"
    20991   fi
    20992 
    20993   LIBS=$ac_save_LIBS
    20994   rm -f cfortran_test* conftest*
    20995 else
    20996   echo "$as_me: failed program was:" >&5
    20997 sed 's/^/| /' conftest.$ac_ext >&5
    20998 
    20999 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
    21000 See \`config.log' for more details." >&5
    21001 echo "$as_me: error: cannot compile a simple Fortran program
    21002 See \`config.log' for more details." >&2;}
    21003    { (exit 1); exit 1; }; }
    21004 fi
    21005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    21006 
    21007 fi
    21008 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
    21009 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
    21010 
    21011 ac_ext=c
    21012 ac_cpp='$CPP $CPPFLAGS'
    21013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21016 
    21017 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then
    21018   coin_blasobjdir=../Blas
    21019 else
    21020   coin_blasobjdir=../ThirdParty/Blas
    21021 fi
    21022 coin_blassrcdir=$srcdir/$coin_blasobjdir
    21023 
    21024 
    21025 # Check whether --with-blas or --without-blas was given.
    21026 if test "${with_blas+set}" = set; then
    21027   withval="$with_blas"
    21028   use_blas=$withval
    21029 else
    21030   use_blas=
    21031 fi;
    21032 
    21033 MAKEOKFILE=.MakeOk
    21034 # Check if user supplied option makes sense
    21035 if test x"$use_blas" != x; then
    21036   if test "$use_blas" = "BUILD"; then
    21037     # Don't check for course code if this is executed in ThirdParty/Blas
    21038     if test "$PACKAGE_NAME" != ThirdPartyBlas; then
    21039       if test -r $coin_blasobjdir/.MakeOk; then :; else
    21040         { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5
    21041 echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;}
    21042    { (exit 1); exit 1; }; }
    21043       fi
    21044     fi
    21045   elif test "$use_blas" != no ; then
    21046     echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
    21047 echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
    21048     LIBS="$use_blas $LIBS"
    21049     ADDLIBS="$use_blas $ADDLIBS"
    21050     case $ac_ext in
    21051   f)
    21052     cat >conftest.$ac_ext <<_ACEOF
    21053 /* confdefs.h.  */
    21054 _ACEOF
    21055 cat confdefs.h >>conftest.$ac_ext
    21056 cat >>conftest.$ac_ext <<_ACEOF
    21057 /* end confdefs.h.  */
    21058 
    21059 int
    21060 main ()
    21061 {
    21062       call daxpy
    21063   ;
    21064   return 0;
    21065 }
    21066 _ACEOF
    21067 rm -f conftest.$ac_objext conftest$ac_exeext
    21068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21069   (eval $ac_link) 2>conftest.er1
    21070   ac_status=$?
    21071   grep -v '^ *+' conftest.er1 >conftest.err
    21072   rm -f conftest.er1
    21073   cat conftest.err >&5
    21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21075   (exit $ac_status); } &&
    21076          { ac_try='test -z "$ac_c_werror_flag"
    21077                          || test ! -s conftest.err'
    21078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21079   (eval $ac_try) 2>&5
    21080   ac_status=$?
    21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21082   (exit $ac_status); }; } &&
    21083          { ac_try='test -s conftest$ac_exeext'
    21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21085   (eval $ac_try) 2>&5
    21086   ac_status=$?
    21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21088   (exit $ac_status); }; }; then
    21089   echo "$as_me:$LINENO: result: yes" >&5
    21090 echo "${ECHO_T}yes" >&6
    21091 else
    21092   echo "$as_me: failed program was:" >&5
    21093 sed 's/^/| /' conftest.$ac_ext >&5
    21094 
    21095 echo "$as_me:$LINENO: result: no" >&5
    21096 echo "${ECHO_T}no" >&6
    21097                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21098 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21099    { (exit 1); exit 1; }; }
    21100 fi
    21101 rm -f conftest.err conftest.$ac_objext \
    21102       conftest$ac_exeext conftest.$ac_ext
    21103     ;;
    21104   c)
    21105     ac_ext=f
    21106 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21107 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21108 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21109 case $ac_cv_f77_mangling in
    21110   upper*) ac_val="DAXPY" ;;
    21111   lower*) ac_val="daxpy" ;;
    21112   *)      ac_val="unknown" ;;
    21113 esac
    21114 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21115 
    21116 cfuncdaxpy="$ac_val"
    21117 
    21118 ac_ext=c
    21119 ac_cpp='$CPP $CPPFLAGS'
    21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21123 
    21124     if test x"$coin_need_flibs" = xyes; then
    21125       flink_try=no;
    21126     else
    21127       cat >conftest.$ac_ext <<_ACEOF
    21128 /* confdefs.h.  */
    21129 _ACEOF
    21130 cat confdefs.h >>conftest.$ac_ext
    21131 cat >>conftest.$ac_ext <<_ACEOF
    21132 /* end confdefs.h.  */
    21133 void $cfuncdaxpy();
    21134 #ifdef F77_DUMMY_MAIN
    21135 
    21136 #  ifdef __cplusplus
    21137      extern "C"
    21138 #  endif
    21139    int F77_DUMMY_MAIN() { return 1; }
    21140 
    21141 #endif
    21142 int
    21143 main ()
    21144 {
    21145 $cfuncdaxpy()
    21146   ;
    21147   return 0;
    21148 }
    21149 _ACEOF
    21150 rm -f conftest.$ac_objext conftest$ac_exeext
    21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21152   (eval $ac_link) 2>conftest.er1
    21153   ac_status=$?
    21154   grep -v '^ *+' conftest.er1 >conftest.err
    21155   rm -f conftest.er1
    21156   cat conftest.err >&5
    21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21158   (exit $ac_status); } &&
    21159          { ac_try='test -z "$ac_c_werror_flag"
    21160                          || test ! -s conftest.err'
    21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21162   (eval $ac_try) 2>&5
    21163   ac_status=$?
    21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21165   (exit $ac_status); }; } &&
    21166          { ac_try='test -s conftest$ac_exeext'
    21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21168   (eval $ac_try) 2>&5
    21169   ac_status=$?
    21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21171   (exit $ac_status); }; }; then
    21172   flink_try=yes
    21173 else
    21174   echo "$as_me: failed program was:" >&5
    21175 sed 's/^/| /' conftest.$ac_ext >&5
    21176 
    21177 flink_try=no
    21178 fi
    21179 rm -f conftest.err conftest.$ac_objext \
    21180       conftest$ac_exeext conftest.$ac_ext
    21181     fi
    21182     if test $flink_try = yes; then
    21183       echo "$as_me:$LINENO: result: yes" >&5
    21184 echo "${ECHO_T}yes" >&6
    21185     else
    21186       if test x"$FLIBS" != x; then
    21187         flink_save_libs="$LIBS"
    21188         LIBS="$LIBS $FLIBS"
    21189         cat >conftest.$ac_ext <<_ACEOF
    21190 /* confdefs.h.  */
    21191 _ACEOF
    21192 cat confdefs.h >>conftest.$ac_ext
    21193 cat >>conftest.$ac_ext <<_ACEOF
    21194 /* end confdefs.h.  */
    21195 void $cfuncdaxpy();
    21196 #ifdef F77_DUMMY_MAIN
    21197 
    21198 #  ifdef __cplusplus
    21199      extern "C"
    21200 #  endif
    21201    int F77_DUMMY_MAIN() { return 1; }
    21202 
    21203 #endif
    21204 int
    21205 main ()
    21206 {
    21207 $cfuncdaxpy()
    21208   ;
    21209   return 0;
    21210 }
    21211 _ACEOF
    21212 rm -f conftest.$ac_objext conftest$ac_exeext
    21213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21214   (eval $ac_link) 2>conftest.er1
    21215   ac_status=$?
    21216   grep -v '^ *+' conftest.er1 >conftest.err
    21217   rm -f conftest.er1
    21218   cat conftest.err >&5
    21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21220   (exit $ac_status); } &&
    21221          { ac_try='test -z "$ac_c_werror_flag"
    21222                          || test ! -s conftest.err'
    21223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21224   (eval $ac_try) 2>&5
    21225   ac_status=$?
    21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21227   (exit $ac_status); }; } &&
    21228          { ac_try='test -s conftest$ac_exeext'
    21229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21230   (eval $ac_try) 2>&5
    21231   ac_status=$?
    21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21233   (exit $ac_status); }; }; then
    21234   LIBS="$flink_save_libs"
    21235                      echo "$as_me:$LINENO: result: yes" >&5
    21236 echo "${ECHO_T}yes" >&6
    21237                      coin_need_flibs=yes
    21238 else
    21239   echo "$as_me: failed program was:" >&5
    21240 sed 's/^/| /' conftest.$ac_ext >&5
    21241 
    21242 LIBS="$flink_save_libs"
    21243                      echo "$as_me:$LINENO: result: no" >&5
    21244 echo "${ECHO_T}no" >&6
    21245                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21246 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21247    { (exit 1); exit 1; }; }
    21248 fi
    21249 rm -f conftest.err conftest.$ac_objext \
    21250       conftest$ac_exeext conftest.$ac_ext
    21251       else
    21252         echo "$as_me:$LINENO: result: no" >&5
    21253 echo "${ECHO_T}no" >&6
    21254                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21255 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21256    { (exit 1); exit 1; }; }
    21257       fi
    21258     fi
    21259     ;;
    21260   cc|cpp)
    21261     ac_ext=f
    21262 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21263 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21264 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21265 case $ac_cv_f77_mangling in
    21266   upper*) ac_val="DAXPY" ;;
    21267   lower*) ac_val="daxpy" ;;
    21268   *)      ac_val="unknown" ;;
    21269 esac
    21270 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21271 
    21272 cfuncdaxpy="$ac_val"
    21273 
    21274 ac_ext=c
    21275 ac_cpp='$CPP $CPPFLAGS'
    21276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21279 
    21280     if test x"$coin_need_flibs" = xyes; then
    21281       flink_try=no;
    21282     else
    21283       cat >conftest.$ac_ext <<_ACEOF
    21284 /* confdefs.h.  */
    21285 _ACEOF
    21286 cat confdefs.h >>conftest.$ac_ext
    21287 cat >>conftest.$ac_ext <<_ACEOF
    21288 /* end confdefs.h.  */
    21289 extern "C" {void $cfuncdaxpy();}
    21290 #ifdef F77_DUMMY_MAIN
    21291 
    21292 #  ifdef __cplusplus
    21293      extern "C"
    21294 #  endif
    21295    int F77_DUMMY_MAIN() { return 1; }
    21296 
    21297 #endif
    21298 int
    21299 main ()
    21300 {
    21301 $cfuncdaxpy()
    21302   ;
    21303   return 0;
    21304 }
    21305 _ACEOF
    21306 rm -f conftest.$ac_objext conftest$ac_exeext
    21307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21308   (eval $ac_link) 2>conftest.er1
    21309   ac_status=$?
    21310   grep -v '^ *+' conftest.er1 >conftest.err
    21311   rm -f conftest.er1
    21312   cat conftest.err >&5
    21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21314   (exit $ac_status); } &&
    21315          { ac_try='test -z "$ac_c_werror_flag"
    21316                          || test ! -s conftest.err'
    21317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21318   (eval $ac_try) 2>&5
    21319   ac_status=$?
    21320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21321   (exit $ac_status); }; } &&
    21322          { ac_try='test -s conftest$ac_exeext'
    21323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21324   (eval $ac_try) 2>&5
    21325   ac_status=$?
    21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21327   (exit $ac_status); }; }; then
    21328   flink_try=yes
    21329 else
    21330   echo "$as_me: failed program was:" >&5
    21331 sed 's/^/| /' conftest.$ac_ext >&5
    21332 
    21333 flink_try=no
    21334 fi
    21335 rm -f conftest.err conftest.$ac_objext \
    21336       conftest$ac_exeext conftest.$ac_ext
    21337     fi
    21338     if test $flink_try = yes; then
    21339       echo "$as_me:$LINENO: result: yes" >&5
    21340 echo "${ECHO_T}yes" >&6
    21341     else
    21342       if test x"$FLIBS" != x; then
    21343         flink_save_libs="$LIBS"
    21344         LIBS="$LIBS $FLIBS"
    21345         cat >conftest.$ac_ext <<_ACEOF
    21346 /* confdefs.h.  */
    21347 _ACEOF
    21348 cat confdefs.h >>conftest.$ac_ext
    21349 cat >>conftest.$ac_ext <<_ACEOF
    21350 /* end confdefs.h.  */
    21351 extern "C" {void $cfuncdaxpy();}
    21352 #ifdef F77_DUMMY_MAIN
    21353 
    21354 #  ifdef __cplusplus
    21355      extern "C"
    21356 #  endif
    21357    int F77_DUMMY_MAIN() { return 1; }
    21358 
    21359 #endif
    21360 int
    21361 main ()
    21362 {
    21363 $cfuncdaxpy()
    21364   ;
    21365   return 0;
    21366 }
    21367 _ACEOF
    21368 rm -f conftest.$ac_objext conftest$ac_exeext
    21369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21370   (eval $ac_link) 2>conftest.er1
    21371   ac_status=$?
    21372   grep -v '^ *+' conftest.er1 >conftest.err
    21373   rm -f conftest.er1
    21374   cat conftest.err >&5
    21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21376   (exit $ac_status); } &&
    21377          { ac_try='test -z "$ac_c_werror_flag"
    21378                          || test ! -s conftest.err'
    21379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21380   (eval $ac_try) 2>&5
    21381   ac_status=$?
    21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21383   (exit $ac_status); }; } &&
    21384          { ac_try='test -s conftest$ac_exeext'
    21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21386   (eval $ac_try) 2>&5
    21387   ac_status=$?
    21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21389   (exit $ac_status); }; }; then
    21390   LIBS="$flink_save_libs"
    21391                      echo "$as_me:$LINENO: result: yes" >&5
    21392 echo "${ECHO_T}yes" >&6
    21393                      coin_need_flibs=yes
    21394 else
    21395   echo "$as_me: failed program was:" >&5
    21396 sed 's/^/| /' conftest.$ac_ext >&5
    21397 
    21398 LIBS="$flink_save_libs"
    21399                      echo "$as_me:$LINENO: result: no" >&5
    21400 echo "${ECHO_T}no" >&6
    21401                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21402 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21403    { (exit 1); exit 1; }; }
    21404 fi
    21405 rm -f conftest.err conftest.$ac_objext \
    21406       conftest$ac_exeext conftest.$ac_ext
    21407       else
    21408         echo "$as_me:$LINENO: result: no" >&5
    21409 echo "${ECHO_T}no" >&6
    21410                        { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
    21411 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
    21412    { (exit 1); exit 1; }; }
    21413       fi
    21414     fi
    21415     ;;
    21416 esac
    21417 
    21418   fi
    21419 else
    21420 # Try to autodetect the library for blas based on build system
    21421   #AC_MSG_CHECKING([default locations for BLAS])
    21422   skip_lblas_check=no
    21423   case $build in
    21424     *-sgi-*)
    21425       SAVE_LIBS="$LIBS"
    21426       echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
    21427 echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
    21428       LIBS="-lcomplib.sgimath $LIBS"
    21429       case $ac_ext in
    21430   f)
    21431     cat >conftest.$ac_ext <<_ACEOF
    21432 /* confdefs.h.  */
    21433 _ACEOF
    21434 cat confdefs.h >>conftest.$ac_ext
    21435 cat >>conftest.$ac_ext <<_ACEOF
    21436 /* end confdefs.h.  */
    21437 
    21438 #ifdef F77_DUMMY_MAIN
    21439 
    21440 #  ifdef __cplusplus
    21441      extern "C"
    21442 #  endif
    21443    int F77_DUMMY_MAIN() { return 1; }
    21444 
    21445 #endif
    21446 int
    21447 main ()
    21448 {
    21449       call daxpy
    21450   ;
    21451   return 0;
    21452 }
    21453 _ACEOF
    21454 rm -f conftest.$ac_objext conftest$ac_exeext
    21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21456   (eval $ac_link) 2>conftest.er1
    21457   ac_status=$?
    21458   grep -v '^ *+' conftest.er1 >conftest.err
    21459   rm -f conftest.er1
    21460   cat conftest.err >&5
    21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21462   (exit $ac_status); } &&
    21463          { ac_try='test -z "$ac_c_werror_flag"
    21464                          || test ! -s conftest.err'
    21465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21466   (eval $ac_try) 2>&5
    21467   ac_status=$?
    21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21469   (exit $ac_status); }; } &&
    21470          { ac_try='test -s conftest$ac_exeext'
    21471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21472   (eval $ac_try) 2>&5
    21473   ac_status=$?
    21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21475   (exit $ac_status); }; }; then
    21476   echo "$as_me:$LINENO: result: yes" >&5
    21477 echo "${ECHO_T}yes" >&6
    21478                          use_blas=-lcomplib.sgimath;
    21479                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21480 else
    21481   echo "$as_me: failed program was:" >&5
    21482 sed 's/^/| /' conftest.$ac_ext >&5
    21483 
    21484 echo "$as_me:$LINENO: result: no" >&5
    21485 echo "${ECHO_T}no" >&6
    21486                          SAVE_LIBS="$LIBS"
    21487 fi
    21488 rm -f conftest.err conftest.$ac_objext \
    21489       conftest$ac_exeext conftest.$ac_ext
    21490     ;;
    21491   c)
    21492     ac_ext=f
    21493 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21494 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21495 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21496 case $ac_cv_f77_mangling in
    21497   upper*) ac_val="DAXPY" ;;
    21498   lower*) ac_val="daxpy" ;;
    21499   *)      ac_val="unknown" ;;
    21500 esac
    21501 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21502 
    21503 cfuncdaxpy="$ac_val"
    21504 
    21505 ac_ext=c
    21506 ac_cpp='$CPP $CPPFLAGS'
    21507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21510 
    21511     if test x"$coin_need_flibs" = xyes; then
    21512       flink_try=no;
    21513     else
    21514       cat >conftest.$ac_ext <<_ACEOF
    21515 /* confdefs.h.  */
    21516 _ACEOF
    21517 cat confdefs.h >>conftest.$ac_ext
    21518 cat >>conftest.$ac_ext <<_ACEOF
    21519 /* end confdefs.h.  */
    21520 void $cfuncdaxpy();
    21521 #ifdef F77_DUMMY_MAIN
    21522 
    21523 #  ifdef __cplusplus
    21524      extern "C"
    21525 #  endif
    21526    int F77_DUMMY_MAIN() { return 1; }
    21527 
    21528 #endif
    21529 int
    21530 main ()
    21531 {
    21532 $cfuncdaxpy()
    21533   ;
    21534   return 0;
    21535 }
    21536 _ACEOF
    21537 rm -f conftest.$ac_objext conftest$ac_exeext
    21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21539   (eval $ac_link) 2>conftest.er1
    21540   ac_status=$?
    21541   grep -v '^ *+' conftest.er1 >conftest.err
    21542   rm -f conftest.er1
    21543   cat conftest.err >&5
    21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21545   (exit $ac_status); } &&
    21546          { ac_try='test -z "$ac_c_werror_flag"
    21547                          || test ! -s conftest.err'
    21548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21549   (eval $ac_try) 2>&5
    21550   ac_status=$?
    21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21552   (exit $ac_status); }; } &&
    21553          { ac_try='test -s conftest$ac_exeext'
    21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21555   (eval $ac_try) 2>&5
    21556   ac_status=$?
    21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21558   (exit $ac_status); }; }; then
    21559   flink_try=yes
    21560 else
    21561   echo "$as_me: failed program was:" >&5
    21562 sed 's/^/| /' conftest.$ac_ext >&5
    21563 
    21564 flink_try=no
    21565 fi
    21566 rm -f conftest.err conftest.$ac_objext \
    21567       conftest$ac_exeext conftest.$ac_ext
    21568     fi
    21569     if test $flink_try = yes; then
    21570       echo "$as_me:$LINENO: result: yes" >&5
    21571 echo "${ECHO_T}yes" >&6
    21572                          use_blas=-lcomplib.sgimath;
    21573                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21574     else
    21575       if test x"$FLIBS" != x; then
    21576         flink_save_libs="$LIBS"
    21577         LIBS="$LIBS $FLIBS"
    21578         cat >conftest.$ac_ext <<_ACEOF
    21579 /* confdefs.h.  */
    21580 _ACEOF
    21581 cat confdefs.h >>conftest.$ac_ext
    21582 cat >>conftest.$ac_ext <<_ACEOF
    21583 /* end confdefs.h.  */
    21584 void $cfuncdaxpy();
    21585 #ifdef F77_DUMMY_MAIN
    21586 
    21587 #  ifdef __cplusplus
    21588      extern "C"
    21589 #  endif
    21590    int F77_DUMMY_MAIN() { return 1; }
    21591 
    21592 #endif
    21593 int
    21594 main ()
    21595 {
    21596 $cfuncdaxpy()
    21597   ;
    21598   return 0;
    21599 }
    21600 _ACEOF
    21601 rm -f conftest.$ac_objext conftest$ac_exeext
    21602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21603   (eval $ac_link) 2>conftest.er1
    21604   ac_status=$?
    21605   grep -v '^ *+' conftest.er1 >conftest.err
    21606   rm -f conftest.er1
    21607   cat conftest.err >&5
    21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21609   (exit $ac_status); } &&
    21610          { ac_try='test -z "$ac_c_werror_flag"
    21611                          || test ! -s conftest.err'
    21612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21613   (eval $ac_try) 2>&5
    21614   ac_status=$?
    21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21616   (exit $ac_status); }; } &&
    21617          { ac_try='test -s conftest$ac_exeext'
    21618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21619   (eval $ac_try) 2>&5
    21620   ac_status=$?
    21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21622   (exit $ac_status); }; }; then
    21623   LIBS="$flink_save_libs"
    21624                      echo "$as_me:$LINENO: result: yes" >&5
    21625 echo "${ECHO_T}yes" >&6
    21626                          use_blas=-lcomplib.sgimath;
    21627                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21628                      coin_need_flibs=yes
    21629 else
    21630   echo "$as_me: failed program was:" >&5
    21631 sed 's/^/| /' conftest.$ac_ext >&5
    21632 
    21633 LIBS="$flink_save_libs"
    21634                      echo "$as_me:$LINENO: result: no" >&5
    21635 echo "${ECHO_T}no" >&6
    21636                          SAVE_LIBS="$LIBS"
    21637 fi
    21638 rm -f conftest.err conftest.$ac_objext \
    21639       conftest$ac_exeext conftest.$ac_ext
    21640       else
    21641         echo "$as_me:$LINENO: result: no" >&5
    21642 echo "${ECHO_T}no" >&6
    21643                          SAVE_LIBS="$LIBS"
    21644       fi
    21645     fi
    21646     ;;
    21647   cc|cpp)
    21648     ac_ext=f
    21649 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21650 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21651 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21652 case $ac_cv_f77_mangling in
    21653   upper*) ac_val="DAXPY" ;;
    21654   lower*) ac_val="daxpy" ;;
    21655   *)      ac_val="unknown" ;;
    21656 esac
    21657 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21658 
    21659 cfuncdaxpy="$ac_val"
    21660 
    21661 ac_ext=c
    21662 ac_cpp='$CPP $CPPFLAGS'
    21663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21666 
    21667     if test x"$coin_need_flibs" = xyes; then
    21668       flink_try=no;
    21669     else
    21670       cat >conftest.$ac_ext <<_ACEOF
    21671 /* confdefs.h.  */
    21672 _ACEOF
    21673 cat confdefs.h >>conftest.$ac_ext
    21674 cat >>conftest.$ac_ext <<_ACEOF
    21675 /* end confdefs.h.  */
    21676 extern "C" {void $cfuncdaxpy();}
    21677 #ifdef F77_DUMMY_MAIN
    21678 
    21679 #  ifdef __cplusplus
    21680      extern "C"
    21681 #  endif
    21682    int F77_DUMMY_MAIN() { return 1; }
    21683 
    21684 #endif
    21685 int
    21686 main ()
    21687 {
    21688 $cfuncdaxpy()
    21689   ;
    21690   return 0;
    21691 }
    21692 _ACEOF
    21693 rm -f conftest.$ac_objext conftest$ac_exeext
    21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21695   (eval $ac_link) 2>conftest.er1
    21696   ac_status=$?
    21697   grep -v '^ *+' conftest.er1 >conftest.err
    21698   rm -f conftest.er1
    21699   cat conftest.err >&5
    21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21701   (exit $ac_status); } &&
    21702          { ac_try='test -z "$ac_c_werror_flag"
    21703                          || test ! -s conftest.err'
    21704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21705   (eval $ac_try) 2>&5
    21706   ac_status=$?
    21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21708   (exit $ac_status); }; } &&
    21709          { ac_try='test -s conftest$ac_exeext'
    21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21711   (eval $ac_try) 2>&5
    21712   ac_status=$?
    21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21714   (exit $ac_status); }; }; then
    21715   flink_try=yes
    21716 else
    21717   echo "$as_me: failed program was:" >&5
    21718 sed 's/^/| /' conftest.$ac_ext >&5
    21719 
    21720 flink_try=no
    21721 fi
    21722 rm -f conftest.err conftest.$ac_objext \
    21723       conftest$ac_exeext conftest.$ac_ext
    21724     fi
    21725     if test $flink_try = yes; then
    21726       echo "$as_me:$LINENO: result: yes" >&5
    21727 echo "${ECHO_T}yes" >&6
    21728                          use_blas=-lcomplib.sgimath;
    21729                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21730     else
    21731       if test x"$FLIBS" != x; then
    21732         flink_save_libs="$LIBS"
    21733         LIBS="$LIBS $FLIBS"
    21734         cat >conftest.$ac_ext <<_ACEOF
    21735 /* confdefs.h.  */
    21736 _ACEOF
    21737 cat confdefs.h >>conftest.$ac_ext
    21738 cat >>conftest.$ac_ext <<_ACEOF
    21739 /* end confdefs.h.  */
    21740 extern "C" {void $cfuncdaxpy();}
    21741 #ifdef F77_DUMMY_MAIN
    21742 
    21743 #  ifdef __cplusplus
    21744      extern "C"
    21745 #  endif
    21746    int F77_DUMMY_MAIN() { return 1; }
    21747 
    21748 #endif
    21749 int
    21750 main ()
    21751 {
    21752 $cfuncdaxpy()
    21753   ;
    21754   return 0;
    21755 }
    21756 _ACEOF
    21757 rm -f conftest.$ac_objext conftest$ac_exeext
    21758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21759   (eval $ac_link) 2>conftest.er1
    21760   ac_status=$?
    21761   grep -v '^ *+' conftest.er1 >conftest.err
    21762   rm -f conftest.er1
    21763   cat conftest.err >&5
    21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21765   (exit $ac_status); } &&
    21766          { ac_try='test -z "$ac_c_werror_flag"
    21767                          || test ! -s conftest.err'
    21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21769   (eval $ac_try) 2>&5
    21770   ac_status=$?
    21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21772   (exit $ac_status); }; } &&
    21773          { ac_try='test -s conftest$ac_exeext'
    21774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21775   (eval $ac_try) 2>&5
    21776   ac_status=$?
    21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21778   (exit $ac_status); }; }; then
    21779   LIBS="$flink_save_libs"
    21780                      echo "$as_me:$LINENO: result: yes" >&5
    21781 echo "${ECHO_T}yes" >&6
    21782                          use_blas=-lcomplib.sgimath;
    21783                          ADDLIBS="-lcomplib.sgimath $ADDLIBS"
    21784                      coin_need_flibs=yes
    21785 else
    21786   echo "$as_me: failed program was:" >&5
    21787 sed 's/^/| /' conftest.$ac_ext >&5
    21788 
    21789 LIBS="$flink_save_libs"
    21790                      echo "$as_me:$LINENO: result: no" >&5
    21791 echo "${ECHO_T}no" >&6
    21792                          SAVE_LIBS="$LIBS"
    21793 fi
    21794 rm -f conftest.err conftest.$ac_objext \
    21795       conftest$ac_exeext conftest.$ac_ext
    21796       else
    21797         echo "$as_me:$LINENO: result: no" >&5
    21798 echo "${ECHO_T}no" >&6
    21799                          SAVE_LIBS="$LIBS"
    21800       fi
    21801     fi
    21802     ;;
    21803 esac
    21804 
    21805       ;;
    21806 
    21807 # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
    21808 # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
    21809 # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
    21810 # that CC and cc will understand -library in Studio 13. The main extra
    21811 # function of -xlic_lib and -library is to arrange for the Fortran run-time
    21812 # libraries to be linked for C++ and C. We can arrange that explicitly.
    21813     *-*-solaris*)
    21814       SAVE_LIBS="$LIBS"
    21815       echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
    21816 echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
    21817       LIBS="-lsunperf $FLIBS $LIBS"
    21818       case $ac_ext in
    21819   f)
    21820     cat >conftest.$ac_ext <<_ACEOF
    21821 /* confdefs.h.  */
    21822 _ACEOF
    21823 cat confdefs.h >>conftest.$ac_ext
    21824 cat >>conftest.$ac_ext <<_ACEOF
    21825 /* end confdefs.h.  */
    21826 
    21827 #ifdef F77_DUMMY_MAIN
    21828 
    21829 #  ifdef __cplusplus
    21830      extern "C"
    21831 #  endif
    21832    int F77_DUMMY_MAIN() { return 1; }
    21833 
    21834 #endif
    21835 int
    21836 main ()
    21837 {
    21838       call daxpy
    21839   ;
    21840   return 0;
    21841 }
    21842 _ACEOF
    21843 rm -f conftest.$ac_objext conftest$ac_exeext
    21844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21845   (eval $ac_link) 2>conftest.er1
    21846   ac_status=$?
    21847   grep -v '^ *+' conftest.er1 >conftest.err
    21848   rm -f conftest.er1
    21849   cat conftest.err >&5
    21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21851   (exit $ac_status); } &&
    21852          { ac_try='test -z "$ac_c_werror_flag"
    21853                          || test ! -s conftest.err'
    21854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21855   (eval $ac_try) 2>&5
    21856   ac_status=$?
    21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21858   (exit $ac_status); }; } &&
    21859          { ac_try='test -s conftest$ac_exeext'
    21860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21861   (eval $ac_try) 2>&5
    21862   ac_status=$?
    21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21864   (exit $ac_status); }; }; then
    21865   echo "$as_me:$LINENO: result: yes" >&5
    21866 echo "${ECHO_T}yes" >&6
    21867                          use_blas='-lsunperf'
    21868                          ADDLIBS="-lsunperf $ADDLIBS"
    21869                          coin_need_flibs=yes
    21870 else
    21871   echo "$as_me: failed program was:" >&5
    21872 sed 's/^/| /' conftest.$ac_ext >&5
    21873 
    21874 echo "$as_me:$LINENO: result: no" >&5
    21875 echo "${ECHO_T}no" >&6
    21876                          LIBS="$SAVE_LIBS"
    21877 fi
    21878 rm -f conftest.err conftest.$ac_objext \
    21879       conftest$ac_exeext conftest.$ac_ext
    21880     ;;
    21881   c)
    21882     ac_ext=f
    21883 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    21884 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21885 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    21886 case $ac_cv_f77_mangling in
    21887   upper*) ac_val="DAXPY" ;;
    21888   lower*) ac_val="daxpy" ;;
    21889   *)      ac_val="unknown" ;;
    21890 esac
    21891 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    21892 
    21893 cfuncdaxpy="$ac_val"
    21894 
    21895 ac_ext=c
    21896 ac_cpp='$CPP $CPPFLAGS'
    21897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21900 
    21901     if test x"$coin_need_flibs" = xyes; then
    21902       flink_try=no;
    21903     else
    21904       cat >conftest.$ac_ext <<_ACEOF
    21905 /* confdefs.h.  */
    21906 _ACEOF
    21907 cat confdefs.h >>conftest.$ac_ext
    21908 cat >>conftest.$ac_ext <<_ACEOF
    21909 /* end confdefs.h.  */
    21910 void $cfuncdaxpy();
    21911 #ifdef F77_DUMMY_MAIN
    21912 
    21913 #  ifdef __cplusplus
    21914      extern "C"
    21915 #  endif
    21916    int F77_DUMMY_MAIN() { return 1; }
    21917 
    21918 #endif
    21919 int
    21920 main ()
    21921 {
    21922 $cfuncdaxpy()
    21923   ;
    21924   return 0;
    21925 }
    21926 _ACEOF
    21927 rm -f conftest.$ac_objext conftest$ac_exeext
    21928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21929   (eval $ac_link) 2>conftest.er1
    21930   ac_status=$?
    21931   grep -v '^ *+' conftest.er1 >conftest.err
    21932   rm -f conftest.er1
    21933   cat conftest.err >&5
    21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21935   (exit $ac_status); } &&
    21936          { ac_try='test -z "$ac_c_werror_flag"
    21937                          || test ! -s conftest.err'
    21938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21939   (eval $ac_try) 2>&5
    21940   ac_status=$?
    21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21942   (exit $ac_status); }; } &&
    21943          { ac_try='test -s conftest$ac_exeext'
    21944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21945   (eval $ac_try) 2>&5
    21946   ac_status=$?
    21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21948   (exit $ac_status); }; }; then
    21949   flink_try=yes
    21950 else
    21951   echo "$as_me: failed program was:" >&5
    21952 sed 's/^/| /' conftest.$ac_ext >&5
    21953 
    21954 flink_try=no
    21955 fi
    21956 rm -f conftest.err conftest.$ac_objext \
    21957       conftest$ac_exeext conftest.$ac_ext
    21958     fi
    21959     if test $flink_try = yes; then
    21960       echo "$as_me:$LINENO: result: yes" >&5
    21961 echo "${ECHO_T}yes" >&6
    21962                          use_blas='-lsunperf'
    21963                          ADDLIBS="-lsunperf $ADDLIBS"
    21964                          coin_need_flibs=yes
    21965     else
    21966       if test x"$FLIBS" != x; then
    21967         flink_save_libs="$LIBS"
    21968         LIBS="$LIBS $FLIBS"
    21969         cat >conftest.$ac_ext <<_ACEOF
    21970 /* confdefs.h.  */
    21971 _ACEOF
    21972 cat confdefs.h >>conftest.$ac_ext
    21973 cat >>conftest.$ac_ext <<_ACEOF
    21974 /* end confdefs.h.  */
    21975 void $cfuncdaxpy();
    21976 #ifdef F77_DUMMY_MAIN
    21977 
    21978 #  ifdef __cplusplus
    21979      extern "C"
    21980 #  endif
    21981    int F77_DUMMY_MAIN() { return 1; }
    21982 
    21983 #endif
    21984 int
    21985 main ()
    21986 {
    21987 $cfuncdaxpy()
    21988   ;
    21989   return 0;
    21990 }
    21991 _ACEOF
    21992 rm -f conftest.$ac_objext conftest$ac_exeext
    21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21994   (eval $ac_link) 2>conftest.er1
    21995   ac_status=$?
    21996   grep -v '^ *+' conftest.er1 >conftest.err
    21997   rm -f conftest.er1
    21998   cat conftest.err >&5
    21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22000   (exit $ac_status); } &&
    22001          { ac_try='test -z "$ac_c_werror_flag"
    22002                          || test ! -s conftest.err'
    22003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22004   (eval $ac_try) 2>&5
    22005   ac_status=$?
    22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22007   (exit $ac_status); }; } &&
    22008          { ac_try='test -s conftest$ac_exeext'
    22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22010   (eval $ac_try) 2>&5
    22011   ac_status=$?
    22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22013   (exit $ac_status); }; }; then
    22014   LIBS="$flink_save_libs"
    22015                      echo "$as_me:$LINENO: result: yes" >&5
    22016 echo "${ECHO_T}yes" >&6
    22017                          use_blas='-lsunperf'
    22018                          ADDLIBS="-lsunperf $ADDLIBS"
    22019                          coin_need_flibs=yes
    22020                      coin_need_flibs=yes
    22021 else
    22022   echo "$as_me: failed program was:" >&5
    22023 sed 's/^/| /' conftest.$ac_ext >&5
    22024 
    22025 LIBS="$flink_save_libs"
    22026                      echo "$as_me:$LINENO: result: no" >&5
    22027 echo "${ECHO_T}no" >&6
    22028                          LIBS="$SAVE_LIBS"
    22029 fi
    22030 rm -f conftest.err conftest.$ac_objext \
    22031       conftest$ac_exeext conftest.$ac_ext
    22032       else
    22033         echo "$as_me:$LINENO: result: no" >&5
    22034 echo "${ECHO_T}no" >&6
    22035                          LIBS="$SAVE_LIBS"
    22036       fi
    22037     fi
    22038     ;;
    22039   cc|cpp)
    22040     ac_ext=f
    22041 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22042 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22043 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22044 case $ac_cv_f77_mangling in
    22045   upper*) ac_val="DAXPY" ;;
    22046   lower*) ac_val="daxpy" ;;
    22047   *)      ac_val="unknown" ;;
    22048 esac
    22049 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22050 
    22051 cfuncdaxpy="$ac_val"
    22052 
    22053 ac_ext=c
    22054 ac_cpp='$CPP $CPPFLAGS'
    22055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22058 
    22059     if test x"$coin_need_flibs" = xyes; then
    22060       flink_try=no;
    22061     else
    22062       cat >conftest.$ac_ext <<_ACEOF
    22063 /* confdefs.h.  */
    22064 _ACEOF
    22065 cat confdefs.h >>conftest.$ac_ext
    22066 cat >>conftest.$ac_ext <<_ACEOF
    22067 /* end confdefs.h.  */
    22068 extern "C" {void $cfuncdaxpy();}
    22069 #ifdef F77_DUMMY_MAIN
    22070 
    22071 #  ifdef __cplusplus
    22072      extern "C"
    22073 #  endif
    22074    int F77_DUMMY_MAIN() { return 1; }
    22075 
    22076 #endif
    22077 int
    22078 main ()
    22079 {
    22080 $cfuncdaxpy()
    22081   ;
    22082   return 0;
    22083 }
    22084 _ACEOF
    22085 rm -f conftest.$ac_objext conftest$ac_exeext
    22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22087   (eval $ac_link) 2>conftest.er1
    22088   ac_status=$?
    22089   grep -v '^ *+' conftest.er1 >conftest.err
    22090   rm -f conftest.er1
    22091   cat conftest.err >&5
    22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22093   (exit $ac_status); } &&
    22094          { ac_try='test -z "$ac_c_werror_flag"
    22095                          || test ! -s conftest.err'
    22096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22097   (eval $ac_try) 2>&5
    22098   ac_status=$?
    22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22100   (exit $ac_status); }; } &&
    22101          { ac_try='test -s conftest$ac_exeext'
    22102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22103   (eval $ac_try) 2>&5
    22104   ac_status=$?
    22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22106   (exit $ac_status); }; }; then
    22107   flink_try=yes
    22108 else
    22109   echo "$as_me: failed program was:" >&5
    22110 sed 's/^/| /' conftest.$ac_ext >&5
    22111 
    22112 flink_try=no
    22113 fi
    22114 rm -f conftest.err conftest.$ac_objext \
    22115       conftest$ac_exeext conftest.$ac_ext
    22116     fi
    22117     if test $flink_try = yes; then
    22118       echo "$as_me:$LINENO: result: yes" >&5
    22119 echo "${ECHO_T}yes" >&6
    22120                          use_blas='-lsunperf'
    22121                          ADDLIBS="-lsunperf $ADDLIBS"
    22122                          coin_need_flibs=yes
    22123     else
    22124       if test x"$FLIBS" != x; then
    22125         flink_save_libs="$LIBS"
    22126         LIBS="$LIBS $FLIBS"
    22127         cat >conftest.$ac_ext <<_ACEOF
    22128 /* confdefs.h.  */
    22129 _ACEOF
    22130 cat confdefs.h >>conftest.$ac_ext
    22131 cat >>conftest.$ac_ext <<_ACEOF
    22132 /* end confdefs.h.  */
    22133 extern "C" {void $cfuncdaxpy();}
    22134 #ifdef F77_DUMMY_MAIN
    22135 
    22136 #  ifdef __cplusplus
    22137      extern "C"
    22138 #  endif
    22139    int F77_DUMMY_MAIN() { return 1; }
    22140 
    22141 #endif
    22142 int
    22143 main ()
    22144 {
    22145 $cfuncdaxpy()
    22146   ;
    22147   return 0;
    22148 }
    22149 _ACEOF
    22150 rm -f conftest.$ac_objext conftest$ac_exeext
    22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22152   (eval $ac_link) 2>conftest.er1
    22153   ac_status=$?
    22154   grep -v '^ *+' conftest.er1 >conftest.err
    22155   rm -f conftest.er1
    22156   cat conftest.err >&5
    22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22158   (exit $ac_status); } &&
    22159          { ac_try='test -z "$ac_c_werror_flag"
    22160                          || test ! -s conftest.err'
    22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22162   (eval $ac_try) 2>&5
    22163   ac_status=$?
    22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22165   (exit $ac_status); }; } &&
    22166          { ac_try='test -s conftest$ac_exeext'
    22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22168   (eval $ac_try) 2>&5
    22169   ac_status=$?
    22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22171   (exit $ac_status); }; }; then
    22172   LIBS="$flink_save_libs"
    22173                      echo "$as_me:$LINENO: result: yes" >&5
    22174 echo "${ECHO_T}yes" >&6
    22175                          use_blas='-lsunperf'
    22176                          ADDLIBS="-lsunperf $ADDLIBS"
    22177                          coin_need_flibs=yes
    22178                      coin_need_flibs=yes
    22179 else
    22180   echo "$as_me: failed program was:" >&5
    22181 sed 's/^/| /' conftest.$ac_ext >&5
    22182 
    22183 LIBS="$flink_save_libs"
    22184                      echo "$as_me:$LINENO: result: no" >&5
    22185 echo "${ECHO_T}no" >&6
    22186                          LIBS="$SAVE_LIBS"
    22187 fi
    22188 rm -f conftest.err conftest.$ac_objext \
    22189       conftest$ac_exeext conftest.$ac_ext
    22190       else
    22191         echo "$as_me:$LINENO: result: no" >&5
    22192 echo "${ECHO_T}no" >&6
    22193                          LIBS="$SAVE_LIBS"
    22194       fi
    22195     fi
    22196     ;;
    22197 esac
    22198 
    22199       ;;
    22200     *-cygwin* | *-mingw*)
    22201 # On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
    22202 # library will want to link with cygwin, hence won't run standalone in DOS.
    22203       if test "$enable_doscompile" = mingw; then
    22204         skip_lblas_check=yes
    22205       fi
    22206       case "$CC" in
    22207         cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    22208           SAVE_LIBS="$LIBS"
    22209           echo "$as_me:$LINENO: checking for BLAS in MKL" >&5
    22210 echo $ECHO_N "checking for BLAS in MKL... $ECHO_C" >&6
    22211           LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
    22212           case $ac_ext in
    22213   f)
    22214     cat >conftest.$ac_ext <<_ACEOF
    22215 /* confdefs.h.  */
    22216 _ACEOF
    22217 cat confdefs.h >>conftest.$ac_ext
    22218 cat >>conftest.$ac_ext <<_ACEOF
    22219 /* end confdefs.h.  */
    22220 
    22221 #ifdef F77_DUMMY_MAIN
    22222 
    22223 #  ifdef __cplusplus
    22224      extern "C"
    22225 #  endif
    22226    int F77_DUMMY_MAIN() { return 1; }
    22227 
    22228 #endif
    22229 int
    22230 main ()
    22231 {
    22232       call daxpy
    22233   ;
    22234   return 0;
    22235 }
    22236 _ACEOF
    22237 rm -f conftest.$ac_objext conftest$ac_exeext
    22238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22239   (eval $ac_link) 2>conftest.er1
    22240   ac_status=$?
    22241   grep -v '^ *+' conftest.er1 >conftest.err
    22242   rm -f conftest.er1
    22243   cat conftest.err >&5
    22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22245   (exit $ac_status); } &&
    22246          { ac_try='test -z "$ac_c_werror_flag"
    22247                          || test ! -s conftest.err'
    22248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22249   (eval $ac_try) 2>&5
    22250   ac_status=$?
    22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22252   (exit $ac_status); }; } &&
    22253          { ac_try='test -s conftest$ac_exeext'
    22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22255   (eval $ac_try) 2>&5
    22256   ac_status=$?
    22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22258   (exit $ac_status); }; }; then
    22259   echo "$as_me:$LINENO: result: yes" >&5
    22260 echo "${ECHO_T}yes" >&6
    22261                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22262                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22263 else
    22264   echo "$as_me: failed program was:" >&5
    22265 sed 's/^/| /' conftest.$ac_ext >&5
    22266 
    22267 echo "$as_me:$LINENO: result: no" >&5
    22268 echo "${ECHO_T}no" >&6
    22269                              LIBS="$SAVE_LIBS"
    22270 fi
    22271 rm -f conftest.err conftest.$ac_objext \
    22272       conftest$ac_exeext conftest.$ac_ext
    22273     ;;
    22274   c)
    22275     ac_ext=f
    22276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22279 case $ac_cv_f77_mangling in
    22280   upper*) ac_val="DAXPY" ;;
    22281   lower*) ac_val="daxpy" ;;
    22282   *)      ac_val="unknown" ;;
    22283 esac
    22284 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22285 
    22286 cfuncdaxpy="$ac_val"
    22287 
    22288 ac_ext=c
    22289 ac_cpp='$CPP $CPPFLAGS'
    22290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22293 
    22294     if test x"$coin_need_flibs" = xyes; then
    22295       flink_try=no;
    22296     else
    22297       cat >conftest.$ac_ext <<_ACEOF
    22298 /* confdefs.h.  */
    22299 _ACEOF
    22300 cat confdefs.h >>conftest.$ac_ext
    22301 cat >>conftest.$ac_ext <<_ACEOF
    22302 /* end confdefs.h.  */
    22303 void $cfuncdaxpy();
    22304 #ifdef F77_DUMMY_MAIN
    22305 
    22306 #  ifdef __cplusplus
    22307      extern "C"
    22308 #  endif
    22309    int F77_DUMMY_MAIN() { return 1; }
    22310 
    22311 #endif
    22312 int
    22313 main ()
    22314 {
    22315 $cfuncdaxpy()
    22316   ;
    22317   return 0;
    22318 }
    22319 _ACEOF
    22320 rm -f conftest.$ac_objext conftest$ac_exeext
    22321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22322   (eval $ac_link) 2>conftest.er1
    22323   ac_status=$?
    22324   grep -v '^ *+' conftest.er1 >conftest.err
    22325   rm -f conftest.er1
    22326   cat conftest.err >&5
    22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22328   (exit $ac_status); } &&
    22329          { ac_try='test -z "$ac_c_werror_flag"
    22330                          || test ! -s conftest.err'
    22331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22332   (eval $ac_try) 2>&5
    22333   ac_status=$?
    22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22335   (exit $ac_status); }; } &&
    22336          { ac_try='test -s conftest$ac_exeext'
    22337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22338   (eval $ac_try) 2>&5
    22339   ac_status=$?
    22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22341   (exit $ac_status); }; }; then
    22342   flink_try=yes
    22343 else
    22344   echo "$as_me: failed program was:" >&5
    22345 sed 's/^/| /' conftest.$ac_ext >&5
    22346 
    22347 flink_try=no
    22348 fi
    22349 rm -f conftest.err conftest.$ac_objext \
    22350       conftest$ac_exeext conftest.$ac_ext
    22351     fi
    22352     if test $flink_try = yes; then
    22353       echo "$as_me:$LINENO: result: yes" >&5
    22354 echo "${ECHO_T}yes" >&6
    22355                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22356                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22357     else
    22358       if test x"$FLIBS" != x; then
    22359         flink_save_libs="$LIBS"
    22360         LIBS="$LIBS $FLIBS"
    22361         cat >conftest.$ac_ext <<_ACEOF
    22362 /* confdefs.h.  */
    22363 _ACEOF
    22364 cat confdefs.h >>conftest.$ac_ext
    22365 cat >>conftest.$ac_ext <<_ACEOF
    22366 /* end confdefs.h.  */
    22367 void $cfuncdaxpy();
    22368 #ifdef F77_DUMMY_MAIN
    22369 
    22370 #  ifdef __cplusplus
    22371      extern "C"
    22372 #  endif
    22373    int F77_DUMMY_MAIN() { return 1; }
    22374 
    22375 #endif
    22376 int
    22377 main ()
    22378 {
    22379 $cfuncdaxpy()
    22380   ;
    22381   return 0;
    22382 }
    22383 _ACEOF
    22384 rm -f conftest.$ac_objext conftest$ac_exeext
    22385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22386   (eval $ac_link) 2>conftest.er1
    22387   ac_status=$?
    22388   grep -v '^ *+' conftest.er1 >conftest.err
    22389   rm -f conftest.er1
    22390   cat conftest.err >&5
    22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22392   (exit $ac_status); } &&
    22393          { ac_try='test -z "$ac_c_werror_flag"
    22394                          || test ! -s conftest.err'
    22395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22396   (eval $ac_try) 2>&5
    22397   ac_status=$?
    22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22399   (exit $ac_status); }; } &&
    22400          { ac_try='test -s conftest$ac_exeext'
    22401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22402   (eval $ac_try) 2>&5
    22403   ac_status=$?
    22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22405   (exit $ac_status); }; }; then
    22406   LIBS="$flink_save_libs"
    22407                      echo "$as_me:$LINENO: result: yes" >&5
    22408 echo "${ECHO_T}yes" >&6
    22409                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22410                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22411                      coin_need_flibs=yes
    22412 else
    22413   echo "$as_me: failed program was:" >&5
    22414 sed 's/^/| /' conftest.$ac_ext >&5
    22415 
    22416 LIBS="$flink_save_libs"
    22417                      echo "$as_me:$LINENO: result: no" >&5
    22418 echo "${ECHO_T}no" >&6
    22419                              LIBS="$SAVE_LIBS"
    22420 fi
    22421 rm -f conftest.err conftest.$ac_objext \
    22422       conftest$ac_exeext conftest.$ac_ext
    22423       else
    22424         echo "$as_me:$LINENO: result: no" >&5
    22425 echo "${ECHO_T}no" >&6
    22426                              LIBS="$SAVE_LIBS"
    22427       fi
    22428     fi
    22429     ;;
    22430   cc|cpp)
    22431     ac_ext=f
    22432 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22433 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22434 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22435 case $ac_cv_f77_mangling in
    22436   upper*) ac_val="DAXPY" ;;
    22437   lower*) ac_val="daxpy" ;;
    22438   *)      ac_val="unknown" ;;
    22439 esac
    22440 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22441 
    22442 cfuncdaxpy="$ac_val"
    22443 
    22444 ac_ext=c
    22445 ac_cpp='$CPP $CPPFLAGS'
    22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22449 
    22450     if test x"$coin_need_flibs" = xyes; then
    22451       flink_try=no;
    22452     else
    22453       cat >conftest.$ac_ext <<_ACEOF
    22454 /* confdefs.h.  */
    22455 _ACEOF
    22456 cat confdefs.h >>conftest.$ac_ext
    22457 cat >>conftest.$ac_ext <<_ACEOF
    22458 /* end confdefs.h.  */
    22459 extern "C" {void $cfuncdaxpy();}
    22460 #ifdef F77_DUMMY_MAIN
    22461 
    22462 #  ifdef __cplusplus
    22463      extern "C"
    22464 #  endif
    22465    int F77_DUMMY_MAIN() { return 1; }
    22466 
    22467 #endif
    22468 int
    22469 main ()
    22470 {
    22471 $cfuncdaxpy()
    22472   ;
    22473   return 0;
    22474 }
    22475 _ACEOF
    22476 rm -f conftest.$ac_objext conftest$ac_exeext
    22477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22478   (eval $ac_link) 2>conftest.er1
    22479   ac_status=$?
    22480   grep -v '^ *+' conftest.er1 >conftest.err
    22481   rm -f conftest.er1
    22482   cat conftest.err >&5
    22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22484   (exit $ac_status); } &&
    22485          { ac_try='test -z "$ac_c_werror_flag"
    22486                          || test ! -s conftest.err'
    22487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22488   (eval $ac_try) 2>&5
    22489   ac_status=$?
    22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22491   (exit $ac_status); }; } &&
    22492          { ac_try='test -s conftest$ac_exeext'
    22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22494   (eval $ac_try) 2>&5
    22495   ac_status=$?
    22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22497   (exit $ac_status); }; }; then
    22498   flink_try=yes
    22499 else
    22500   echo "$as_me: failed program was:" >&5
    22501 sed 's/^/| /' conftest.$ac_ext >&5
    22502 
    22503 flink_try=no
    22504 fi
    22505 rm -f conftest.err conftest.$ac_objext \
    22506       conftest$ac_exeext conftest.$ac_ext
    22507     fi
    22508     if test $flink_try = yes; then
    22509       echo "$as_me:$LINENO: result: yes" >&5
    22510 echo "${ECHO_T}yes" >&6
    22511                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22512                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22513     else
    22514       if test x"$FLIBS" != x; then
    22515         flink_save_libs="$LIBS"
    22516         LIBS="$LIBS $FLIBS"
    22517         cat >conftest.$ac_ext <<_ACEOF
    22518 /* confdefs.h.  */
    22519 _ACEOF
    22520 cat confdefs.h >>conftest.$ac_ext
    22521 cat >>conftest.$ac_ext <<_ACEOF
    22522 /* end confdefs.h.  */
    22523 extern "C" {void $cfuncdaxpy();}
    22524 #ifdef F77_DUMMY_MAIN
    22525 
    22526 #  ifdef __cplusplus
    22527      extern "C"
    22528 #  endif
    22529    int F77_DUMMY_MAIN() { return 1; }
    22530 
    22531 #endif
    22532 int
    22533 main ()
    22534 {
    22535 $cfuncdaxpy()
    22536   ;
    22537   return 0;
    22538 }
    22539 _ACEOF
    22540 rm -f conftest.$ac_objext conftest$ac_exeext
    22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22542   (eval $ac_link) 2>conftest.er1
    22543   ac_status=$?
    22544   grep -v '^ *+' conftest.er1 >conftest.err
    22545   rm -f conftest.er1
    22546   cat conftest.err >&5
    22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22548   (exit $ac_status); } &&
    22549          { ac_try='test -z "$ac_c_werror_flag"
    22550                          || test ! -s conftest.err'
    22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22552   (eval $ac_try) 2>&5
    22553   ac_status=$?
    22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22555   (exit $ac_status); }; } &&
    22556          { ac_try='test -s conftest$ac_exeext'
    22557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22558   (eval $ac_try) 2>&5
    22559   ac_status=$?
    22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22561   (exit $ac_status); }; }; then
    22562   LIBS="$flink_save_libs"
    22563                      echo "$as_me:$LINENO: result: yes" >&5
    22564 echo "${ECHO_T}yes" >&6
    22565                              use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
    22566                              ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
    22567                      coin_need_flibs=yes
    22568 else
    22569   echo "$as_me: failed program was:" >&5
    22570 sed 's/^/| /' conftest.$ac_ext >&5
    22571 
    22572 LIBS="$flink_save_libs"
    22573                      echo "$as_me:$LINENO: result: no" >&5
    22574 echo "${ECHO_T}no" >&6
    22575                              LIBS="$SAVE_LIBS"
    22576 fi
    22577 rm -f conftest.err conftest.$ac_objext \
    22578       conftest$ac_exeext conftest.$ac_ext
    22579       else
    22580         echo "$as_me:$LINENO: result: no" >&5
    22581 echo "${ECHO_T}no" >&6
    22582                              LIBS="$SAVE_LIBS"
    22583       fi
    22584     fi
    22585     ;;
    22586 esac
    22587 
    22588           ;;
    22589       esac
    22590       ;;
    22591   esac
    22592 
    22593   if test -z "$use_blas" && test $skip_lblas_check = no; then
    22594     SAVE_LIBS="$LIBS"
    22595     echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
    22596 echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
    22597     LIBS="-lblas $LIBS"
    22598     case $ac_ext in
    22599   f)
    22600     cat >conftest.$ac_ext <<_ACEOF
    22601 /* confdefs.h.  */
    22602 _ACEOF
    22603 cat confdefs.h >>conftest.$ac_ext
    22604 cat >>conftest.$ac_ext <<_ACEOF
    22605 /* end confdefs.h.  */
    22606 
    22607 #ifdef F77_DUMMY_MAIN
    22608 
    22609 #  ifdef __cplusplus
    22610      extern "C"
    22611 #  endif
    22612    int F77_DUMMY_MAIN() { return 1; }
    22613 
    22614 #endif
    22615 int
    22616 main ()
    22617 {
    22618       call daxpy
    22619   ;
    22620   return 0;
    22621 }
    22622 _ACEOF
    22623 rm -f conftest.$ac_objext conftest$ac_exeext
    22624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22625   (eval $ac_link) 2>conftest.er1
    22626   ac_status=$?
    22627   grep -v '^ *+' conftest.er1 >conftest.err
    22628   rm -f conftest.er1
    22629   cat conftest.err >&5
    22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22631   (exit $ac_status); } &&
    22632          { ac_try='test -z "$ac_c_werror_flag"
    22633                          || test ! -s conftest.err'
    22634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22635   (eval $ac_try) 2>&5
    22636   ac_status=$?
    22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22638   (exit $ac_status); }; } &&
    22639          { ac_try='test -s conftest$ac_exeext'
    22640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22641   (eval $ac_try) 2>&5
    22642   ac_status=$?
    22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22644   (exit $ac_status); }; }; then
    22645   echo "$as_me:$LINENO: result: yes" >&5
    22646 echo "${ECHO_T}yes" >&6
    22647                        ADDLIBS="-lblas $ADDLIBS"
    22648                        use_blas='-lblas'
    22649 else
    22650   echo "$as_me: failed program was:" >&5
    22651 sed 's/^/| /' conftest.$ac_ext >&5
    22652 
    22653 echo "$as_me:$LINENO: result: no" >&5
    22654 echo "${ECHO_T}no" >&6
    22655                        LIBS="$SAVE_LIBS"
    22656 fi
    22657 rm -f conftest.err conftest.$ac_objext \
    22658       conftest$ac_exeext conftest.$ac_ext
    22659     ;;
    22660   c)
    22661     ac_ext=f
    22662 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22663 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22664 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22665 case $ac_cv_f77_mangling in
    22666   upper*) ac_val="DAXPY" ;;
    22667   lower*) ac_val="daxpy" ;;
    22668   *)      ac_val="unknown" ;;
    22669 esac
    22670 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22671 
    22672 cfuncdaxpy="$ac_val"
    22673 
    22674 ac_ext=c
    22675 ac_cpp='$CPP $CPPFLAGS'
    22676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22679 
    22680     if test x"$coin_need_flibs" = xyes; then
    22681       flink_try=no;
    22682     else
    22683       cat >conftest.$ac_ext <<_ACEOF
    22684 /* confdefs.h.  */
    22685 _ACEOF
    22686 cat confdefs.h >>conftest.$ac_ext
    22687 cat >>conftest.$ac_ext <<_ACEOF
    22688 /* end confdefs.h.  */
    22689 void $cfuncdaxpy();
    22690 #ifdef F77_DUMMY_MAIN
    22691 
    22692 #  ifdef __cplusplus
    22693      extern "C"
    22694 #  endif
    22695    int F77_DUMMY_MAIN() { return 1; }
    22696 
    22697 #endif
    22698 int
    22699 main ()
    22700 {
    22701 $cfuncdaxpy()
    22702   ;
    22703   return 0;
    22704 }
    22705 _ACEOF
    22706 rm -f conftest.$ac_objext conftest$ac_exeext
    22707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22708   (eval $ac_link) 2>conftest.er1
    22709   ac_status=$?
    22710   grep -v '^ *+' conftest.er1 >conftest.err
    22711   rm -f conftest.er1
    22712   cat conftest.err >&5
    22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22714   (exit $ac_status); } &&
    22715          { ac_try='test -z "$ac_c_werror_flag"
    22716                          || test ! -s conftest.err'
    22717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22718   (eval $ac_try) 2>&5
    22719   ac_status=$?
    22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22721   (exit $ac_status); }; } &&
    22722          { ac_try='test -s conftest$ac_exeext'
    22723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22724   (eval $ac_try) 2>&5
    22725   ac_status=$?
    22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22727   (exit $ac_status); }; }; then
    22728   flink_try=yes
    22729 else
    22730   echo "$as_me: failed program was:" >&5
    22731 sed 's/^/| /' conftest.$ac_ext >&5
    22732 
    22733 flink_try=no
    22734 fi
    22735 rm -f conftest.err conftest.$ac_objext \
    22736       conftest$ac_exeext conftest.$ac_ext
    22737     fi
    22738     if test $flink_try = yes; then
    22739       echo "$as_me:$LINENO: result: yes" >&5
    22740 echo "${ECHO_T}yes" >&6
    22741                        ADDLIBS="-lblas $ADDLIBS"
    22742                        use_blas='-lblas'
    22743     else
    22744       if test x"$FLIBS" != x; then
    22745         flink_save_libs="$LIBS"
    22746         LIBS="$LIBS $FLIBS"
    22747         cat >conftest.$ac_ext <<_ACEOF
    22748 /* confdefs.h.  */
    22749 _ACEOF
    22750 cat confdefs.h >>conftest.$ac_ext
    22751 cat >>conftest.$ac_ext <<_ACEOF
    22752 /* end confdefs.h.  */
    22753 void $cfuncdaxpy();
    22754 #ifdef F77_DUMMY_MAIN
    22755 
    22756 #  ifdef __cplusplus
    22757      extern "C"
    22758 #  endif
    22759    int F77_DUMMY_MAIN() { return 1; }
    22760 
    22761 #endif
    22762 int
    22763 main ()
    22764 {
    22765 $cfuncdaxpy()
    22766   ;
    22767   return 0;
    22768 }
    22769 _ACEOF
    22770 rm -f conftest.$ac_objext conftest$ac_exeext
    22771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22772   (eval $ac_link) 2>conftest.er1
    22773   ac_status=$?
    22774   grep -v '^ *+' conftest.er1 >conftest.err
    22775   rm -f conftest.er1
    22776   cat conftest.err >&5
    22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22778   (exit $ac_status); } &&
    22779          { ac_try='test -z "$ac_c_werror_flag"
    22780                          || test ! -s conftest.err'
    22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22782   (eval $ac_try) 2>&5
    22783   ac_status=$?
    22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22785   (exit $ac_status); }; } &&
    22786          { ac_try='test -s conftest$ac_exeext'
    22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22788   (eval $ac_try) 2>&5
    22789   ac_status=$?
    22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22791   (exit $ac_status); }; }; then
    22792   LIBS="$flink_save_libs"
    22793                      echo "$as_me:$LINENO: result: yes" >&5
    22794 echo "${ECHO_T}yes" >&6
    22795                        ADDLIBS="-lblas $ADDLIBS"
    22796                        use_blas='-lblas'
    22797                      coin_need_flibs=yes
    22798 else
    22799   echo "$as_me: failed program was:" >&5
    22800 sed 's/^/| /' conftest.$ac_ext >&5
    22801 
    22802 LIBS="$flink_save_libs"
    22803                      echo "$as_me:$LINENO: result: no" >&5
    22804 echo "${ECHO_T}no" >&6
    22805                        LIBS="$SAVE_LIBS"
    22806 fi
    22807 rm -f conftest.err conftest.$ac_objext \
    22808       conftest$ac_exeext conftest.$ac_ext
    22809       else
    22810         echo "$as_me:$LINENO: result: no" >&5
    22811 echo "${ECHO_T}no" >&6
    22812                        LIBS="$SAVE_LIBS"
    22813       fi
    22814     fi
    22815     ;;
    22816   cc|cpp)
    22817     ac_ext=f
    22818 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    22819 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22820 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    22821 case $ac_cv_f77_mangling in
    22822   upper*) ac_val="DAXPY" ;;
    22823   lower*) ac_val="daxpy" ;;
    22824   *)      ac_val="unknown" ;;
    22825 esac
    22826 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
    22827 
    22828 cfuncdaxpy="$ac_val"
    22829 
    22830 ac_ext=c
    22831 ac_cpp='$CPP $CPPFLAGS'
    22832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    22833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    22834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22835 
    22836     if test x"$coin_need_flibs" = xyes; then
    22837       flink_try=no;
    22838     else
    22839       cat >conftest.$ac_ext <<_ACEOF
    22840 /* confdefs.h.  */
    22841 _ACEOF
    22842 cat confdefs.h >>conftest.$ac_ext
    22843 cat >>conftest.$ac_ext <<_ACEOF
    22844 /* end confdefs.h.  */
    22845 extern "C" {void $cfuncdaxpy();}
    22846 #ifdef F77_DUMMY_MAIN
    22847 
    22848 #  ifdef __cplusplus
    22849      extern "C"
    22850 #  endif
    22851    int F77_DUMMY_MAIN() { return 1; }
    22852 
    22853 #endif
    22854 int
    22855 main ()
    22856 {
    22857 $cfuncdaxpy()
    22858   ;
    22859   return 0;
    22860 }
    22861 _ACEOF
    22862 rm -f conftest.$ac_objext conftest$ac_exeext
    22863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22864   (eval $ac_link) 2>conftest.er1
    22865   ac_status=$?
    22866   grep -v '^ *+' conftest.er1 >conftest.err
    22867   rm -f conftest.er1
    22868   cat conftest.err >&5
    22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22870   (exit $ac_status); } &&
    22871          { ac_try='test -z "$ac_c_werror_flag"
    22872                          || test ! -s conftest.err'
    22873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22874   (eval $ac_try) 2>&5
    22875   ac_status=$?
    22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22877   (exit $ac_status); }; } &&
    22878          { ac_try='test -s conftest$ac_exeext'
    22879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22880   (eval $ac_try) 2>&5
    22881   ac_status=$?
    22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22883   (exit $ac_status); }; }; then
    22884   flink_try=yes
    22885 else
    22886   echo "$as_me: failed program was:" >&5
    22887 sed 's/^/| /' conftest.$ac_ext >&5
    22888 
    22889 flink_try=no
    22890 fi
    22891 rm -f conftest.err conftest.$ac_objext \
    22892       conftest$ac_exeext conftest.$ac_ext
    22893     fi
    22894     if test $flink_try = yes; then
    22895       echo "$as_me:$LINENO: result: yes" >&5
    22896 echo "${ECHO_T}yes" >&6
    22897                        ADDLIBS="-lblas $ADDLIBS"
    22898                        use_blas='-lblas'
    22899     else
    22900       if test x"$FLIBS" != x; then
    22901         flink_save_libs="$LIBS"
    22902         LIBS="$LIBS $FLIBS"
    22903         cat >conftest.$ac_ext <<_ACEOF
    22904 /* confdefs.h.  */
    22905 _ACEOF
    22906 cat confdefs.h >>conftest.$ac_ext
    22907 cat >>conftest.$ac_ext <<_ACEOF
    22908 /* end confdefs.h.  */
    22909 extern "C" {void $cfuncdaxpy();}
    22910 #ifdef F77_DUMMY_MAIN
    22911 
    22912 #  ifdef __cplusplus
    22913      extern "C"
    22914 #  endif
    22915    int F77_DUMMY_MAIN() { return 1; }
    22916 
    22917 #endif
    22918 int
    22919 main ()
    22920 {
    22921 $cfuncdaxpy()
    22922   ;
    22923   return 0;
    22924 }
    22925 _ACEOF
    22926 rm -f conftest.$ac_objext conftest$ac_exeext
    22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    22928   (eval $ac_link) 2>conftest.er1
    22929   ac_status=$?
    22930   grep -v '^ *+' conftest.er1 >conftest.err
    22931   rm -f conftest.er1
    22932   cat conftest.err >&5
    22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22934   (exit $ac_status); } &&
    22935          { ac_try='test -z "$ac_c_werror_flag"
    22936                          || test ! -s conftest.err'
    22937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22938   (eval $ac_try) 2>&5
    22939   ac_status=$?
    22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22941   (exit $ac_status); }; } &&
    22942          { ac_try='test -s conftest$ac_exeext'
    22943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22944   (eval $ac_try) 2>&5
    22945   ac_status=$?
    22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22947   (exit $ac_status); }; }; then
    22948   LIBS="$flink_save_libs"
    22949                      echo "$as_me:$LINENO: result: yes" >&5
    22950 echo "${ECHO_T}yes" >&6
    22951                        ADDLIBS="-lblas $ADDLIBS"
    22952                        use_blas='-lblas'
    22953                      coin_need_flibs=yes
    22954 else
    22955   echo "$as_me: failed program was:" >&5
    22956 sed 's/^/| /' conftest.$ac_ext >&5
    22957 
    22958 LIBS="$flink_save_libs"
    22959                      echo "$as_me:$LINENO: result: no" >&5
    22960 echo "${ECHO_T}no" >&6
    22961                        LIBS="$SAVE_LIBS"
    22962 fi
    22963 rm -f conftest.err conftest.$ac_objext \
    22964       conftest$ac_exeext conftest.$ac_ext
    22965       else
    22966         echo "$as_me:$LINENO: result: no" >&5
    22967 echo "${ECHO_T}no" >&6
    22968                        LIBS="$SAVE_LIBS"
    22969       fi
    22970     fi
    22971     ;;
    22972 esac
    22973 
    22974   fi
    22975 
    22976 # If we have no other ideas, consider building BLAS.
    22977   if test -z "$use_blas"; then
    22978     if test "$PACKAGE_NAME" != ThirdPartyBlas; then
    22979       if test -r $coin_blasobjdir/.MakeOk; then
    22980         use_blas=BUILD
    22981       fi
    22982     fi
    22983   fi
    22984 fi
    22985 
    22986 if test "$use_blas" = BUILD; then
    22987   coin_need_flibs=yes
    22988 fi
    22989 
    22990 
    22991 
    22992 if test x"$use_blas" != x; then
    22993   COIN_HAS_BLAS_TRUE=
    22994   COIN_HAS_BLAS_FALSE='#'
    22995 else
    22996   COIN_HAS_BLAS_TRUE='#'
    22997   COIN_HAS_BLAS_FALSE=
    22998 fi
    22999 
    23000 
    23001 
    23002 if test "$use_blas" = BUILD; then
    23003   COIN_BUILD_BLAS_TRUE=
    23004   COIN_BUILD_BLAS_FALSE='#'
    23005 else
    23006   COIN_BUILD_BLAS_TRUE='#'
    23007   COIN_BUILD_BLAS_FALSE=
    23008 fi
    23009 
    23010 
    23011 if test x"$use_blas" = x || test "$use_blas" = no; then
    23012   coin_has_blas=no
    23013 else
    23014   coin_has_blas=yes
    23015 
    23016 cat >>confdefs.h <<\_ACEOF
    23017 #define COIN_HAS_BLAS 1
    23018 _ACEOF
    23019 
    23020 fi
    23021 
    23022 MAKEOKFILE=.MakeOk
    23023 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
    23024   rm -f $MAKEOKFILE
    23025   { echo "$as_me:$LINENO: The Blas sources don't need to be compiled" >&5
    23026 echo "$as_me: The Blas sources don't need to be compiled" >&6;}
    23027   MAKEOKFILE=
    23028 else
    23029   touch $MAKEOKFILE
    23030 fi
    23031 
    23032 
    23033 
    23034 if test -z "$MAKEOKFILE"; then
    23035   SKIPMAKE_TRUE=
    23036   SKIPMAKE_FALSE='#'
    23037 else
    23038   SKIPMAKE_TRUE='#'
    23039   SKIPMAKE_FALSE=
    23040 fi
    23041 
    23042 
    23043           ac_config_files="$ac_config_files Makefile"
     21576                              ac_config_files="$ac_config_files Makefile coinblas.pc coinblas-uninstalled.pc"
    2304421577
    2304521578
     
    2309921632    done
    2310021633    subdirs="$new_subdirs"
     21634  fi
     21635
     21636  # need to come before AC_OUTPUT
     21637  if test x$coin_projectdir != xyes; then
     21638    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     21639    echo $coin_subdirs > coin_subdirs.txt
     21640  else
     21641    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     21642    ABSBUILDDIR="`pwd`"
     21643
    2310121644  fi
    2310221645
     
    2323021773   { (exit 1); exit 1; }; }
    2323121774fi
     21775if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     21776  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     21777Usually this means the macro was only invoked conditionally." >&5
     21778echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     21779Usually this means the macro was only invoked conditionally." >&2;}
     21780   { (exit 1); exit 1; }; }
     21781fi
    2323221782if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    2323321783  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
     
    2326221812Usually this means the macro was only invoked conditionally." >&5
    2326321813echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
    23264 Usually this means the macro was only invoked conditionally." >&2;}
    23265    { (exit 1); exit 1; }; }
    23266 fi
    23267 if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
    23268   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
    23269 Usually this means the macro was only invoked conditionally." >&5
    23270 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
    23271 Usually this means the macro was only invoked conditionally." >&2;}
    23272    { (exit 1); exit 1; }; }
    23273 fi
    23274 if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
    23275   { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
    23276 Usually this means the macro was only invoked conditionally." >&5
    23277 echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
    23278 Usually this means the macro was only invoked conditionally." >&2;}
    23279    { (exit 1); exit 1; }; }
    23280 fi
    23281 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
    23282   { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
    23283 Usually this means the macro was only invoked conditionally." >&5
    23284 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2328521814Usually this means the macro was only invoked conditionally." >&2;}
    2328621815   { (exit 1); exit 1; }; }
     
    2372622255  # Handling of arguments.
    2372722256  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     22257  "coinblas.pc" ) CONFIG_FILES="$CONFIG_FILES coinblas.pc" ;;
     22258  "coinblas-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinblas-uninstalled.pc" ;;
    2372822259  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2372922260  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     
    2381522346s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
    2381622347s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
     22348s,@have_svnversion@,$have_svnversion,;t t
     22349s,@_SVN_REV@,$_SVN_REV,;t t
    2381722350s,@build@,$build,;t t
    2381822351s,@build_cpu@,$build_cpu,;t t
     
    2383922372s,@ac_ct_F77@,$ac_ct_F77,;t t
    2384022373s,@MPIF77@,$MPIF77,;t t
     22374s,@FLIBS@,$FLIBS,;t t
     22375s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     22376s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     22377s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     22378s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     22379s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2384122380s,@EGREP@,$EGREP,;t t
    2384222381s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     
    2390922448s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2391022449s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    23911 s,@FLIBS@,$FLIBS,;t t
    23912 s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
    23913 s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
    23914 s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
    23915 s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
    23916 s,@MAKEOKFILE@,$MAKEOKFILE,;t t
    23917 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
    23918 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2391922450s,@LIBEXT@,$LIBEXT,;t t
    2392022451s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     22452s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2392122453s,@LIBOBJS@,$LIBOBJS,;t t
    2392222454s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • ThirdParty/Blas/trunk/configure.ac

    r1411 r1548  
    5050AC_COIN_PROG_F77
    5151
     52# Get the linker flags (FLIBS) that are required for linking against this blas library
     53AC_COIN_F77_WRAPPERS
     54
     55# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     56coin_need_flibs=yes
     57
     58# Check if pkg-config is available (to setup addlibs file)
     59AC_COIN_HAS_PKGCONFIG
     60
    5261# Initialize automake
    5362AC_COIN_INIT_AUTO_TOOLS
    5463
    55 # Check if Blas is already available on the system or provided by user
    56 AC_COIN_HAS_BLAS
    57 MAKEOKFILE=.MakeOk
    58 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
    59   rm -f $MAKEOKFILE
    60   AC_MSG_NOTICE([The Blas sources don't need to be compiled])
    61   MAKEOKFILE=
    62 else
    63   touch $MAKEOKFILE
    64 fi
    65 AC_SUBST(MAKEOKFILE)
    66 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
    67 
    68 AC_CONFIG_FILES([Makefile])
     64AC_CONFIG_FILES([Makefile coinblas.pc coinblas-uninstalled.pc])
    6965
    7066AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.