Changeset 273 for ThirdParty/Blas


Ignore:
Timestamp:
Mar 26, 2007 4:42:19 PM (13 years ago)
Author:
andreasw
Message:

synchronize Blas stable 1.0 with trunk rev 270

Location:
ThirdParty/Blas/stable/1.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Blas/stable/1.0/Makefile.am

    r49 r273  
    1 # Copyright (C) 2003, 2006 International Business Machines and others.
     1# Copyright (C) 2003, 2007 International Business Machines and others.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    99EXTRA_DIST = get.blas INSTALL.BLAS
    1010
    11 noinst_LTLIBRARIES = libcoinblas.la
     11if SKIPMAKE
     12  noinst_LTLIBRARIES =
     13else
     14  noinst_LTLIBRARIES = libcoinblas.la
     15endif
    1216
    1317nodist_libcoinblas_la_SOURCES = \
     
    5761
    5862# Files that are generated and should be cleaned with make distclean
    59 DISTCLEANFILES =
     63DISTCLEANFILES = $(MAKEOKFILE)
    6064
    6165include ../../BuildTools/Makemain.inc
  • ThirdParty/Blas/stable/1.0/Makefile.in

    r218 r273  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2003, 2006 International Business Machines and others.
     17# Copyright (C) 2003, 2007 International Business Machines and others.
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    7878        dtrmv.lo dtrsm.lo dtrsv.lo idamax.lo lsame.lo xerbla.lo
    7979libcoinblas_la_OBJECTS = $(nodist_libcoinblas_la_OBJECTS)
     80@SKIPMAKE_FALSE@am_libcoinblas_la_rpath =
    8081DEFAULT_INCLUDES = -I. -I$(srcdir)
    8182F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS)
     
    120121CDEFS = @CDEFS@
    121122CFLAGS = @CFLAGS@
     123COIN_BUILD_BLAS_FALSE = @COIN_BUILD_BLAS_FALSE@
     124COIN_BUILD_BLAS_TRUE = @COIN_BUILD_BLAS_TRUE@
     125COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@
     126COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@
    122127CPP = @CPP@
    123128CPPFLAGS = @CPPFLAGS@
     
    140145FADDLIBS = @FADDLIBS@
    141146FFLAGS = @FFLAGS@
     147FLIBS = @FLIBS@
    142148HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    143149HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    159165MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    160166MAKEINFO = @MAKEINFO@
     167MAKEOKFILE = @MAKEOKFILE@
    161168MPICC = @MPICC@
    162169MPIF77 = @MPIF77@
     
    175182SET_MAKE = @SET_MAKE@
    176183SHELL = @SHELL@
     184SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
     185SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    177186STRIP = @STRIP@
    178187VERSION = @VERSION@
     
    232241AUTOMAKE_OPTIONS = foreign
    233242EXTRA_DIST = get.blas INSTALL.BLAS $(am__append_1)
    234 noinst_LTLIBRARIES = libcoinblas.la
     243@SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinblas.la
     244@SKIPMAKE_TRUE@noinst_LTLIBRARIES =
    235245nodist_libcoinblas_la_SOURCES = \
    236246        dasum.f \
     
    279289
    280290# Files that are generated and should be cleaned with make distclean
    281 DISTCLEANFILES = $(am__append_2) $(VPATH_DISTCLEANFILES)
     291DISTCLEANFILES = $(MAKEOKFILE) $(am__append_2) $(VPATH_DISTCLEANFILES)
    282292all: all-am
    283293
     
    327337        done
    328338libcoinblas.la: $(libcoinblas_la_OBJECTS) $(libcoinblas_la_DEPENDENCIES)
    329         $(F77LINK) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)
     339        $(F77LINK) $(am_libcoinblas_la_rpath) $(libcoinblas_la_LDFLAGS) $(libcoinblas_la_OBJECTS) $(libcoinblas_la_LIBADD) $(LIBS)
    330340
    331341mostlyclean-compile:
  • ThirdParty/Blas/stable/1.0/configure

    r218 r273  
    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 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 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 build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS 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'
    476476ac_subst_files=''
    477477
     
    11001100  --with-tags[=TAGS]
    11011101                          include additional configurations [automatic]
     1102  --with-blas             specify BLAS library (or BUILD for compilation)
    11021103
    11031104Some influential environment variables:
     
    31963197
    31973198# Provide some information about the compiler.
    3198 echo "$as_me:3198:" \
     3199echo "$as_me:3199:" \
    31993200     "checking for Fortran 77 compiler version" >&5
    32003201ac_compiler=`set X $ac_compile; echo $2`
     
    47954796
    47964797
    4797 unset ac_cv_file__________libtool
    4798 unset ac_cv_file_______libtool
    4799 unset ac_cv_file____libtool
    4800 
    48014798LIBTOOL=
    4802 echo "$as_me:$LINENO: checking for ../libtool" >&5
    4803 echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
    4804 if test "${ac_cv_file____libtool+set}" = set; then
    4805   echo $ECHO_N "(cached) $ECHO_C" >&6
    4806 else
    4807   test "$cross_compiling" = yes &&
    4808   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    4809 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    4810    { (exit 1); exit 1; }; }
    4811 if test -r "../libtool"; then
    4812   ac_cv_file____libtool=yes
    4813 else
    4814   ac_cv_file____libtool=no
    4815 fi
    4816 fi
    4817 echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
    4818 echo "${ECHO_T}$ac_cv_file____libtool" >&6
    4819 if test $ac_cv_file____libtool = yes; then
     4799if test -r ../libtool; then
    48204800  coin_config_dir=..
    4821                LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
    4822 fi
    4823 
     4801  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     4802fi
    48244803if test "x$LIBTOOL" = x; then
    4825   echo "$as_me:$LINENO: checking for ../../libtool" >&5
    4826 echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
    4827 if test "${ac_cv_file_______libtool+set}" = set; then
    4828   echo $ECHO_N "(cached) $ECHO_C" >&6
    4829 else
    4830   test "$cross_compiling" = yes &&
    4831   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    4832 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    4833    { (exit 1); exit 1; }; }
    4834 if test -r "../../libtool"; then
    4835   ac_cv_file_______libtool=yes
    4836 else
    4837   ac_cv_file_______libtool=no
    4838 fi
    4839 fi
    4840 echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
    4841 echo "${ECHO_T}$ac_cv_file_______libtool" >&6
    4842 if test $ac_cv_file_______libtool = yes; then
    4843   coin_config_dir=../..
    4844                  LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
    4845 fi
    4846 
    4847 fi
    4848 # if test "x$LIBTOOL" = x; then
    4849 #   AC_CHECK_FILE([../../../libtool],
    4850 #                 [coin_config_dir=../../..
    4851 #                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
    4852 # fi
     4804  if test -r ../../libtool; then
     4805    coin_config_dir=../..
     4806    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     4807  fi
     4808fi
    48534809
    48544810if test "x$LIBTOOL" = x; then
     
    54035359*-*-irix6*)
    54045360  # Find out which ABI we are using.
    5405   echo '#line 5405 "configure"' > conftest.$ac_ext
     5361  echo '#line 5361 "configure"' > conftest.$ac_ext
    54065362  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54075363  (eval $ac_compile) 2>&5
     
    78327788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78337789   -e 's:$: $lt_compiler_flag:'`
    7834    (eval echo "\"\$as_me:7834: $lt_compile\"" >&5)
     7790   (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
    78357791   (eval "$lt_compile" 2>conftest.err)
    78367792   ac_status=$?
    78377793   cat conftest.err >&5
    7838    echo "$as_me:7838: \$? = $ac_status" >&5
     7794   echo "$as_me:7794: \$? = $ac_status" >&5
    78397795   if (exit $ac_status) && test -s "$ac_outfile"; then
    78407796     # The compiler can only warn and ignore the option if not recognized
     
    81008056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81018057   -e 's:$: $lt_compiler_flag:'`
    8102    (eval echo "\"\$as_me:8102: $lt_compile\"" >&5)
     8058   (eval echo "\"\$as_me:8058: $lt_compile\"" >&5)
    81038059   (eval "$lt_compile" 2>conftest.err)
    81048060   ac_status=$?
    81058061   cat conftest.err >&5
    8106    echo "$as_me:8106: \$? = $ac_status" >&5
     8062   echo "$as_me:8062: \$? = $ac_status" >&5
    81078063   if (exit $ac_status) && test -s "$ac_outfile"; then
    81088064     # The compiler can only warn and ignore the option if not recognized
     
    82048160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82058161   -e 's:$: $lt_compiler_flag:'`
    8206    (eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
     8162   (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
    82078163   (eval "$lt_compile" 2>out/conftest.err)
    82088164   ac_status=$?
    82098165   cat out/conftest.err >&5
    8210    echo "$as_me:8210: \$? = $ac_status" >&5
     8166   echo "$as_me:8166: \$? = $ac_status" >&5
    82118167   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82128168   then
     
    1054910505  lt_status=$lt_dlunknown
    1055010506  cat > conftest.$ac_ext <<EOF
    10551 #line 10551 "configure"
     10507#line 10507 "configure"
    1055210508#include "confdefs.h"
    1055310509
     
    1064910605  lt_status=$lt_dlunknown
    1065010606  cat > conftest.$ac_ext <<EOF
    10651 #line 10651 "configure"
     10607#line 10607 "configure"
    1065210608#include "confdefs.h"
    1065310609
     
    1299312949   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1299412950   -e 's:$: $lt_compiler_flag:'`
    12995    (eval echo "\"\$as_me:12995: $lt_compile\"" >&5)
     12951   (eval echo "\"\$as_me:12951: $lt_compile\"" >&5)
    1299612952   (eval "$lt_compile" 2>conftest.err)
    1299712953   ac_status=$?
    1299812954   cat conftest.err >&5
    12999    echo "$as_me:12999: \$? = $ac_status" >&5
     12955   echo "$as_me:12955: \$? = $ac_status" >&5
    1300012956   if (exit $ac_status) && test -s "$ac_outfile"; then
    1300112957     # The compiler can only warn and ignore the option if not recognized
     
    1309713053   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1309813054   -e 's:$: $lt_compiler_flag:'`
    13099    (eval echo "\"\$as_me:13099: $lt_compile\"" >&5)
     13055   (eval echo "\"\$as_me:13055: $lt_compile\"" >&5)
    1310013056   (eval "$lt_compile" 2>out/conftest.err)
    1310113057   ac_status=$?
    1310213058   cat out/conftest.err >&5
    13103    echo "$as_me:13103: \$? = $ac_status" >&5
     13059   echo "$as_me:13059: \$? = $ac_status" >&5
    1310413060   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1310513061   then
     
    1466714623   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1466814624   -e 's:$: $lt_compiler_flag:'`
    14669    (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
     14625   (eval echo "\"\$as_me:14625: $lt_compile\"" >&5)
    1467014626   (eval "$lt_compile" 2>conftest.err)
    1467114627   ac_status=$?
    1467214628   cat conftest.err >&5
    14673    echo "$as_me:14673: \$? = $ac_status" >&5
     14629   echo "$as_me:14629: \$? = $ac_status" >&5
    1467414630   if (exit $ac_status) && test -s "$ac_outfile"; then
    1467514631     # The compiler can only warn and ignore the option if not recognized
     
    1477114727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1477214728   -e 's:$: $lt_compiler_flag:'`
    14773    (eval echo "\"\$as_me:14773: $lt_compile\"" >&5)
     14729   (eval echo "\"\$as_me:14729: $lt_compile\"" >&5)
    1477414730   (eval "$lt_compile" 2>out/conftest.err)
    1477514731   ac_status=$?
    1477614732   cat out/conftest.err >&5
    14777    echo "$as_me:14777: \$? = $ac_status" >&5
     14733   echo "$as_me:14733: \$? = $ac_status" >&5
    1477814734   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1477914735   then
     
    1697816934   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1697916935   -e 's:$: $lt_compiler_flag:'`
    16980    (eval echo "\"\$as_me:16980: $lt_compile\"" >&5)
     16936   (eval echo "\"\$as_me:16936: $lt_compile\"" >&5)
    1698116937   (eval "$lt_compile" 2>conftest.err)
    1698216938   ac_status=$?
    1698316939   cat conftest.err >&5
    16984    echo "$as_me:16984: \$? = $ac_status" >&5
     16940   echo "$as_me:16940: \$? = $ac_status" >&5
    1698516941   if (exit $ac_status) && test -s "$ac_outfile"; then
    1698616942     # The compiler can only warn and ignore the option if not recognized
     
    1724617202   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1724717203   -e 's:$: $lt_compiler_flag:'`
    17248    (eval echo "\"\$as_me:17248: $lt_compile\"" >&5)
     17204   (eval echo "\"\$as_me:17204: $lt_compile\"" >&5)
    1724917205   (eval "$lt_compile" 2>conftest.err)
    1725017206   ac_status=$?
    1725117207   cat conftest.err >&5
    17252    echo "$as_me:17252: \$? = $ac_status" >&5
     17208   echo "$as_me:17208: \$? = $ac_status" >&5
    1725317209   if (exit $ac_status) && test -s "$ac_outfile"; then
    1725417210     # The compiler can only warn and ignore the option if not recognized
     
    1735017306   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1735117307   -e 's:$: $lt_compiler_flag:'`
    17352    (eval echo "\"\$as_me:17352: $lt_compile\"" >&5)
     17308   (eval echo "\"\$as_me:17308: $lt_compile\"" >&5)
    1735317309   (eval "$lt_compile" 2>out/conftest.err)
    1735417310   ac_status=$?
    1735517311   cat out/conftest.err >&5
    17356    echo "$as_me:17356: \$? = $ac_status" >&5
     17312   echo "$as_me:17312: \$? = $ac_status" >&5
    1735717313   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1735817314   then
     
    2006420020
    2006520021  case $build in
     20022    *x86_64-*)
     20023# Here we need to check if -m32 is specified.  If so, we need to correct sys_lib_search_path_spec
     20024      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
     20025        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
     20026echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
     20027        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
     20028        mv conftest.bla libtool
     20029        chmod 755 libtool
     20030      fi
     20031      ;;
    2006620032    *-cygwin* | *-mingw*)
    2006720033    case "$CXX" in
     
    2020320169}
    2020420170
     20171# Check if Blas is already available on the system or provided by user
     20172ac_ext=f
     20173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20176echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     20177echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     20178if test "${ac_cv_prog_f77_v+set}" = set; then
     20179  echo $ECHO_N "(cached) $ECHO_C" >&6
     20180else
     20181  cat >conftest.$ac_ext <<_ACEOF
     20182      program main
     20183
     20184      end
     20185_ACEOF
     20186rm -f conftest.$ac_objext
     20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20188  (eval $ac_compile) 2>conftest.er1
     20189  ac_status=$?
     20190  grep -v '^ *+' conftest.er1 >conftest.err
     20191  rm -f conftest.er1
     20192  cat conftest.err >&5
     20193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20194  (exit $ac_status); } &&
     20195         { ac_try='test -z "$ac_f77_werror_flag"
     20196                         || test ! -s conftest.err'
     20197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20198  (eval $ac_try) 2>&5
     20199  ac_status=$?
     20200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20201  (exit $ac_status); }; } &&
     20202         { ac_try='test -s conftest.$ac_objext'
     20203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20204  (eval $ac_try) 2>&5
     20205  ac_status=$?
     20206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20207  (exit $ac_status); }; }; then
     20208  ac_cv_prog_f77_v=
     20209# Try some options frequently used verbose output
     20210for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     20211  cat >conftest.$ac_ext <<_ACEOF
     20212      program main
     20213
     20214      end
     20215_ACEOF
     20216
     20217# Compile and link our simple test program by passing a flag (argument
     20218# 1 to this macro) to the Fortran compiler in order to get
     20219# "verbose" output that we can then parse for the Fortran linker
     20220# flags.
     20221ac_save_FFLAGS=$FFLAGS
     20222FFLAGS="$FFLAGS $ac_verb"
     20223(eval echo $as_me:20223: \"$ac_link\") >&5
     20224ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20225echo "$ac_f77_v_output" >&5
     20226FFLAGS=$ac_save_FFLAGS
     20227
     20228rm -f conftest*
     20229
     20230# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20231# /foo, /bar, and /baz are search directories for the Fortran linker.
     20232# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20233ac_f77_v_output="`echo $ac_f77_v_output |
     20234        grep 'LPATH is:' |
     20235        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20236
     20237case $ac_f77_v_output in
     20238  # If we are using xlf then replace all the commas with spaces.
     20239  *xlfentry*)
     20240    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20241
     20242  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20243  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20244  *mGLOB_options_string*)
     20245    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20246
     20247  # If we are using Cray Fortran then delete quotes.
     20248  # Use "\"" instead of '"' for font-lock-mode.
     20249  # FIXME: a more general fix for quoted arguments with spaces?
     20250  *cft90*)
     20251    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20252esac
     20253
     20254
     20255  # look for -l* and *.a constructs in the output
     20256  for ac_arg in $ac_f77_v_output; do
     20257     case $ac_arg in
     20258        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     20259          ac_cv_prog_f77_v=$ac_verb
     20260          break 2 ;;
     20261     esac
     20262  done
     20263done
     20264if test -z "$ac_cv_prog_f77_v"; then
     20265   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     20266echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     20267fi
     20268else
     20269  echo "$as_me: failed program was:" >&5
     20270sed 's/^/| /' conftest.$ac_ext >&5
     20271
     20272{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     20273echo "$as_me: WARNING: compilation failed" >&2;}
     20274fi
     20275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20276
     20277fi
     20278echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     20279echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     20280echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     20281echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     20282if test "${ac_cv_f77_libs+set}" = set; then
     20283  echo $ECHO_N "(cached) $ECHO_C" >&6
     20284else
     20285  if test "x$FLIBS" != "x"; then
     20286  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     20287else
     20288
     20289cat >conftest.$ac_ext <<_ACEOF
     20290      program main
     20291
     20292      end
     20293_ACEOF
     20294
     20295# Compile and link our simple test program by passing a flag (argument
     20296# 1 to this macro) to the Fortran compiler in order to get
     20297# "verbose" output that we can then parse for the Fortran linker
     20298# flags.
     20299ac_save_FFLAGS=$FFLAGS
     20300FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     20301(eval echo $as_me:20301: \"$ac_link\") >&5
     20302ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20303echo "$ac_f77_v_output" >&5
     20304FFLAGS=$ac_save_FFLAGS
     20305
     20306rm -f conftest*
     20307
     20308# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20309# /foo, /bar, and /baz are search directories for the Fortran linker.
     20310# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20311ac_f77_v_output="`echo $ac_f77_v_output |
     20312        grep 'LPATH is:' |
     20313        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20314
     20315case $ac_f77_v_output in
     20316  # If we are using xlf then replace all the commas with spaces.
     20317  *xlfentry*)
     20318    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20319
     20320  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20321  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20322  *mGLOB_options_string*)
     20323    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20324
     20325  # If we are using Cray Fortran then delete quotes.
     20326  # Use "\"" instead of '"' for font-lock-mode.
     20327  # FIXME: a more general fix for quoted arguments with spaces?
     20328  *cft90*)
     20329    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20330esac
     20331
     20332
     20333
     20334ac_cv_f77_libs=
     20335
     20336# Save positional arguments (if any)
     20337ac_save_positional="$@"
     20338
     20339set X $ac_f77_v_output
     20340while test $# != 1; do
     20341  shift
     20342  ac_arg=$1
     20343  case $ac_arg in
     20344        [\\/]*.a | ?:[\\/]*.a)
     20345            ac_exists=false
     20346  for ac_i in $ac_cv_f77_libs; do
     20347    if test x"$ac_arg" = x"$ac_i"; then
     20348      ac_exists=true
     20349      break
     20350    fi
     20351  done
     20352
     20353  if test x"$ac_exists" = xtrue; then
     20354  :
     20355else
     20356  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20357fi
     20358
     20359          ;;
     20360        -bI:*)
     20361            ac_exists=false
     20362  for ac_i in $ac_cv_f77_libs; do
     20363    if test x"$ac_arg" = x"$ac_i"; then
     20364      ac_exists=true
     20365      break
     20366    fi
     20367  done
     20368
     20369  if test x"$ac_exists" = xtrue; then
     20370  :
     20371else
     20372  if test "$ac_compiler_gnu" = yes; then
     20373  for ac_link_opt in $ac_arg; do
     20374    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20375  done
     20376else
     20377  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20378fi
     20379fi
     20380
     20381          ;;
     20382          # Ignore these flags.
     20383        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     20384          ;;
     20385        -lkernel32)
     20386          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20387          ;;
     20388        -[LRuY])
     20389          # These flags, when seen by themselves, take an argument.
     20390          # We remove the space between option and argument and re-iterate
     20391          # unless we find an empty arg or a new option (starting with -)
     20392          case $2 in
     20393             "" | -*);;
     20394             *)
     20395                ac_arg="$ac_arg$2"
     20396                shift; shift
     20397                set X $ac_arg "$@"
     20398                ;;
     20399          esac
     20400          ;;
     20401        -YP,*)
     20402          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     20403              ac_exists=false
     20404  for ac_i in $ac_cv_f77_libs; do
     20405    if test x"$ac_j" = x"$ac_i"; then
     20406      ac_exists=true
     20407      break
     20408    fi
     20409  done
     20410
     20411  if test x"$ac_exists" = xtrue; then
     20412  :
     20413else
     20414  ac_arg="$ac_arg $ac_j"
     20415                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     20416fi
     20417
     20418          done
     20419          ;;
     20420        -[lLR]*)
     20421            ac_exists=false
     20422  for ac_i in $ac_cv_f77_libs; do
     20423    if test x"$ac_arg" = x"$ac_i"; then
     20424      ac_exists=true
     20425      break
     20426    fi
     20427  done
     20428
     20429  if test x"$ac_exists" = xtrue; then
     20430  :
     20431else
     20432  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20433fi
     20434
     20435          ;;
     20436          # Ignore everything else.
     20437  esac
     20438done
     20439# restore positional arguments
     20440set X $ac_save_positional; shift
     20441
     20442# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     20443# then we insist that the "run path" must be an absolute path (i.e. it
     20444# must begin with a "/").
     20445case `(uname -sr) 2>/dev/null` in
     20446   "SunOS 5"*)
     20447      ac_ld_run_path=`echo $ac_f77_v_output |
     20448                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     20449      test "x$ac_ld_run_path" != x &&
     20450        if test "$ac_compiler_gnu" = yes; then
     20451  for ac_link_opt in $ac_ld_run_path; do
     20452    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20453  done
     20454else
     20455  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     20456fi
     20457      ;;
     20458esac
     20459fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     20460
     20461fi
     20462echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     20463echo "${ECHO_T}$ac_cv_f77_libs" >&6
     20464FLIBS="$ac_cv_f77_libs"
     20465
     20466
     20467ac_ext=c
     20468ac_cpp='$CPP $CPPFLAGS'
     20469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20471ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20472
     20473ac_ext=f
     20474ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20475ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20476ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20477
     20478echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     20479echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     20480if test "${ac_cv_f77_dummy_main+set}" = set; then
     20481  echo $ECHO_N "(cached) $ECHO_C" >&6
     20482else
     20483  ac_f77_dm_save_LIBS=$LIBS
     20484 LIBS="$LIBS $FLIBS"
     20485 ac_fortran_dm_var=F77_DUMMY_MAIN
     20486 ac_ext=c
     20487ac_cpp='$CPP $CPPFLAGS'
     20488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20490ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20491
     20492 # First, try linking without a dummy main:
     20493 cat >conftest.$ac_ext <<_ACEOF
     20494/* confdefs.h.  */
     20495_ACEOF
     20496cat confdefs.h >>conftest.$ac_ext
     20497cat >>conftest.$ac_ext <<_ACEOF
     20498/* end confdefs.h.  */
     20499
     20500#ifdef F77_DUMMY_MAIN
     20501
     20502#  ifdef __cplusplus
     20503     extern "C"
     20504#  endif
     20505   int F77_DUMMY_MAIN() { return 1; }
     20506
     20507#endif
     20508int
     20509main ()
     20510{
     20511
     20512  ;
     20513  return 0;
     20514}
     20515_ACEOF
     20516rm -f conftest.$ac_objext conftest$ac_exeext
     20517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20518  (eval $ac_link) 2>conftest.er1
     20519  ac_status=$?
     20520  grep -v '^ *+' conftest.er1 >conftest.err
     20521  rm -f conftest.er1
     20522  cat conftest.err >&5
     20523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20524  (exit $ac_status); } &&
     20525         { ac_try='test -z "$ac_c_werror_flag"
     20526                         || test ! -s conftest.err'
     20527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20528  (eval $ac_try) 2>&5
     20529  ac_status=$?
     20530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20531  (exit $ac_status); }; } &&
     20532         { ac_try='test -s conftest$ac_exeext'
     20533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20534  (eval $ac_try) 2>&5
     20535  ac_status=$?
     20536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20537  (exit $ac_status); }; }; then
     20538  ac_cv_fortran_dummy_main=none
     20539else
     20540  echo "$as_me: failed program was:" >&5
     20541sed 's/^/| /' conftest.$ac_ext >&5
     20542
     20543ac_cv_fortran_dummy_main=unknown
     20544fi
     20545rm -f conftest.err conftest.$ac_objext \
     20546      conftest$ac_exeext conftest.$ac_ext
     20547
     20548 if test $ac_cv_fortran_dummy_main = unknown; then
     20549   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     20550     cat >conftest.$ac_ext <<_ACEOF
     20551/* confdefs.h.  */
     20552_ACEOF
     20553cat confdefs.h >>conftest.$ac_ext
     20554cat >>conftest.$ac_ext <<_ACEOF
     20555/* end confdefs.h.  */
     20556#define $ac_fortran_dm_var $ac_func
     20557#ifdef F77_DUMMY_MAIN
     20558
     20559#  ifdef __cplusplus
     20560     extern "C"
     20561#  endif
     20562   int F77_DUMMY_MAIN() { return 1; }
     20563
     20564#endif
     20565int
     20566main ()
     20567{
     20568
     20569  ;
     20570  return 0;
     20571}
     20572_ACEOF
     20573rm -f conftest.$ac_objext conftest$ac_exeext
     20574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20575  (eval $ac_link) 2>conftest.er1
     20576  ac_status=$?
     20577  grep -v '^ *+' conftest.er1 >conftest.err
     20578  rm -f conftest.er1
     20579  cat conftest.err >&5
     20580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20581  (exit $ac_status); } &&
     20582         { ac_try='test -z "$ac_c_werror_flag"
     20583                         || test ! -s conftest.err'
     20584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20585  (eval $ac_try) 2>&5
     20586  ac_status=$?
     20587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20588  (exit $ac_status); }; } &&
     20589         { ac_try='test -s conftest$ac_exeext'
     20590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20591  (eval $ac_try) 2>&5
     20592  ac_status=$?
     20593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20594  (exit $ac_status); }; }; then
     20595  ac_cv_fortran_dummy_main=$ac_func; break
     20596else
     20597  echo "$as_me: failed program was:" >&5
     20598sed 's/^/| /' conftest.$ac_ext >&5
     20599
     20600fi
     20601rm -f conftest.err conftest.$ac_objext \
     20602      conftest$ac_exeext conftest.$ac_ext
     20603   done
     20604 fi
     20605 ac_ext=f
     20606ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20607ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20608ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20609 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     20610 rm -f conftest*
     20611 LIBS=$ac_f77_dm_save_LIBS
     20612
     20613fi
     20614echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     20615echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     20616F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     20617if test "$F77_DUMMY_MAIN" != unknown; then
     20618  if test $F77_DUMMY_MAIN != none; then
     20619
     20620cat >>confdefs.h <<_ACEOF
     20621#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     20622_ACEOF
     20623
     20624  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     20625
     20626cat >>confdefs.h <<\_ACEOF
     20627#define FC_DUMMY_MAIN_EQ_F77 1
     20628_ACEOF
     20629
     20630  fi
     20631fi
     20632else
     20633  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     20634See \`config.log' for more details." >&5
     20635echo "$as_me: error: linking to Fortran libraries from C fails
     20636See \`config.log' for more details." >&2;}
     20637   { (exit 1); exit 1; }; }
     20638fi
     20639
     20640
     20641ac_ext=c
     20642ac_cpp='$CPP $CPPFLAGS'
     20643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20645ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20646
     20647ac_ext=f
     20648ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20649ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20650ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20651echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     20652echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     20653if test "${ac_cv_f77_mangling+set}" = set; then
     20654  echo $ECHO_N "(cached) $ECHO_C" >&6
     20655else
     20656  cat >conftest.$ac_ext <<_ACEOF
     20657      subroutine foobar()
     20658      return
     20659      end
     20660      subroutine foo_bar()
     20661      return
     20662      end
     20663_ACEOF
     20664rm -f conftest.$ac_objext
     20665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20666  (eval $ac_compile) 2>conftest.er1
     20667  ac_status=$?
     20668  grep -v '^ *+' conftest.er1 >conftest.err
     20669  rm -f conftest.er1
     20670  cat conftest.err >&5
     20671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20672  (exit $ac_status); } &&
     20673         { ac_try='test -z "$ac_f77_werror_flag"
     20674                         || test ! -s conftest.err'
     20675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20676  (eval $ac_try) 2>&5
     20677  ac_status=$?
     20678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20679  (exit $ac_status); }; } &&
     20680         { ac_try='test -s conftest.$ac_objext'
     20681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20682  (eval $ac_try) 2>&5
     20683  ac_status=$?
     20684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20685  (exit $ac_status); }; }; then
     20686  mv conftest.$ac_objext cfortran_test.$ac_objext
     20687
     20688  ac_save_LIBS=$LIBS
     20689  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     20690
     20691  ac_ext=c
     20692ac_cpp='$CPP $CPPFLAGS'
     20693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20695ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20696  ac_success=no
     20697  for ac_foobar in foobar FOOBAR; do
     20698    for ac_underscore in "" "_"; do
     20699      ac_func="$ac_foobar$ac_underscore"
     20700      cat >conftest.$ac_ext <<_ACEOF
     20701/* confdefs.h.  */
     20702_ACEOF
     20703cat confdefs.h >>conftest.$ac_ext
     20704cat >>conftest.$ac_ext <<_ACEOF
     20705/* end confdefs.h.  */
     20706
     20707/* Override any gcc2 internal prototype to avoid an error.  */
     20708#ifdef __cplusplus
     20709extern "C"
     20710#endif
     20711/* We use char because int might match the return type of a gcc2
     20712   builtin and then its argument prototype would still apply.  */
     20713char $ac_func ();
     20714#ifdef F77_DUMMY_MAIN
     20715
     20716#  ifdef __cplusplus
     20717     extern "C"
     20718#  endif
     20719   int F77_DUMMY_MAIN() { return 1; }
     20720
     20721#endif
     20722int
     20723main ()
     20724{
     20725$ac_func ();
     20726  ;
     20727  return 0;
     20728}
     20729_ACEOF
     20730rm -f conftest.$ac_objext conftest$ac_exeext
     20731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20732  (eval $ac_link) 2>conftest.er1
     20733  ac_status=$?
     20734  grep -v '^ *+' conftest.er1 >conftest.err
     20735  rm -f conftest.er1
     20736  cat conftest.err >&5
     20737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20738  (exit $ac_status); } &&
     20739         { ac_try='test -z "$ac_c_werror_flag"
     20740                         || test ! -s conftest.err'
     20741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20742  (eval $ac_try) 2>&5
     20743  ac_status=$?
     20744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20745  (exit $ac_status); }; } &&
     20746         { ac_try='test -s conftest$ac_exeext'
     20747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20748  (eval $ac_try) 2>&5
     20749  ac_status=$?
     20750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20751  (exit $ac_status); }; }; then
     20752  ac_success=yes; break 2
     20753else
     20754  echo "$as_me: failed program was:" >&5
     20755sed 's/^/| /' conftest.$ac_ext >&5
     20756
     20757fi
     20758rm -f conftest.err conftest.$ac_objext \
     20759      conftest$ac_exeext conftest.$ac_ext
     20760    done
     20761  done
     20762  ac_ext=f
     20763ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20764ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20765ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20766
     20767  if test "$ac_success" = "yes"; then
     20768     case $ac_foobar in
     20769        foobar)
     20770           ac_case=lower
     20771           ac_foo_bar=foo_bar
     20772           ;;
     20773        FOOBAR)
     20774           ac_case=upper
     20775           ac_foo_bar=FOO_BAR
     20776           ;;
     20777     esac
     20778
     20779     ac_ext=c
     20780ac_cpp='$CPP $CPPFLAGS'
     20781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20783ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20784     ac_success_extra=no
     20785     for ac_extra in "" "_"; do
     20786        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     20787        cat >conftest.$ac_ext <<_ACEOF
     20788/* confdefs.h.  */
     20789_ACEOF
     20790cat confdefs.h >>conftest.$ac_ext
     20791cat >>conftest.$ac_ext <<_ACEOF
     20792/* end confdefs.h.  */
     20793
     20794/* Override any gcc2 internal prototype to avoid an error.  */
     20795#ifdef __cplusplus
     20796extern "C"
     20797#endif
     20798/* We use char because int might match the return type of a gcc2
     20799   builtin and then its argument prototype would still apply.  */
     20800char $ac_func ();
     20801#ifdef F77_DUMMY_MAIN
     20802
     20803#  ifdef __cplusplus
     20804     extern "C"
     20805#  endif
     20806   int F77_DUMMY_MAIN() { return 1; }
     20807
     20808#endif
     20809int
     20810main ()
     20811{
     20812$ac_func ();
     20813  ;
     20814  return 0;
     20815}
     20816_ACEOF
     20817rm -f conftest.$ac_objext conftest$ac_exeext
     20818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20819  (eval $ac_link) 2>conftest.er1
     20820  ac_status=$?
     20821  grep -v '^ *+' conftest.er1 >conftest.err
     20822  rm -f conftest.er1
     20823  cat conftest.err >&5
     20824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20825  (exit $ac_status); } &&
     20826         { ac_try='test -z "$ac_c_werror_flag"
     20827                         || test ! -s conftest.err'
     20828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20829  (eval $ac_try) 2>&5
     20830  ac_status=$?
     20831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20832  (exit $ac_status); }; } &&
     20833         { ac_try='test -s conftest$ac_exeext'
     20834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20835  (eval $ac_try) 2>&5
     20836  ac_status=$?
     20837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20838  (exit $ac_status); }; }; then
     20839  ac_success_extra=yes; break
     20840else
     20841  echo "$as_me: failed program was:" >&5
     20842sed 's/^/| /' conftest.$ac_ext >&5
     20843
     20844fi
     20845rm -f conftest.err conftest.$ac_objext \
     20846      conftest$ac_exeext conftest.$ac_ext
     20847     done
     20848     ac_ext=f
     20849ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20850ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20851ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20852
     20853     if test "$ac_success_extra" = "yes"; then
     20854        ac_cv_f77_mangling="$ac_case case"
     20855        if test -z "$ac_underscore"; then
     20856           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     20857        else
     20858           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     20859        fi
     20860        if test -z "$ac_extra"; then
     20861           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     20862        else
     20863           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     20864        fi
     20865      else
     20866        ac_cv_f77_mangling="unknown"
     20867      fi
     20868  else
     20869     ac_cv_f77_mangling="unknown"
     20870  fi
     20871
     20872  LIBS=$ac_save_LIBS
     20873  rm -f cfortran_test* conftest*
     20874else
     20875  echo "$as_me: failed program was:" >&5
     20876sed 's/^/| /' conftest.$ac_ext >&5
     20877
     20878{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     20879See \`config.log' for more details." >&5
     20880echo "$as_me: error: cannot compile a simple Fortran program
     20881See \`config.log' for more details." >&2;}
     20882   { (exit 1); exit 1; }; }
     20883fi
     20884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20885
     20886fi
     20887echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     20888echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     20889
     20890ac_ext=c
     20891ac_cpp='$CPP $CPPFLAGS'
     20892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20894ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20895
     20896if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack; then
     20897  coin_blasobjdir=../Blas
     20898else
     20899  coin_blasobjdir=../ThirdParty/Blas
     20900fi
     20901coin_blassrcdir=$srcdir/$coin_blasobjdir
     20902
     20903
     20904# Check whether --with-blas or --without-blas was given.
     20905if test "${with_blas+set}" = set; then
     20906  withval="$with_blas"
     20907  use_blas=$withval
     20908else
     20909  use_blas=
     20910fi;
     20911
     20912MAKEOKFILE=.MakeOk
     20913# Check if user supplied option makes sense
     20914if test x"$use_blas" != x; then
     20915  if test "$use_blas" = "BUILD"; then
     20916    # Don't check for course code if this is executed in ThirdParty/Blas
     20917    if test "$PACKAGE_NAME" != ThirdPartyBlas; then
     20918      if test -r $coin_blasobjdir/.MakeOk; then :; else
     20919        { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5
     20920echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;}
     20921   { (exit 1); exit 1; }; }
     20922      fi
     20923    fi
     20924  elif test "$use_blas" != no ; then
     20925    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
     20926echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
     20927    LIBS="$use_blas $LIBS"
     20928    ADDLIBS="$use_blas $ADDLIBS"
     20929    case $ac_ext in
     20930  f)
     20931    cat >conftest.$ac_ext <<_ACEOF
     20932/* confdefs.h.  */
     20933_ACEOF
     20934cat confdefs.h >>conftest.$ac_ext
     20935cat >>conftest.$ac_ext <<_ACEOF
     20936/* end confdefs.h.  */
     20937
     20938int
     20939main ()
     20940{
     20941      call daxpy
     20942  ;
     20943  return 0;
     20944}
     20945_ACEOF
     20946rm -f conftest.$ac_objext conftest$ac_exeext
     20947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20948  (eval $ac_link) 2>conftest.er1
     20949  ac_status=$?
     20950  grep -v '^ *+' conftest.er1 >conftest.err
     20951  rm -f conftest.er1
     20952  cat conftest.err >&5
     20953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20954  (exit $ac_status); } &&
     20955         { ac_try='test -z "$ac_c_werror_flag"
     20956                         || test ! -s conftest.err'
     20957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20958  (eval $ac_try) 2>&5
     20959  ac_status=$?
     20960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20961  (exit $ac_status); }; } &&
     20962         { ac_try='test -s conftest$ac_exeext'
     20963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20964  (eval $ac_try) 2>&5
     20965  ac_status=$?
     20966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20967  (exit $ac_status); }; }; then
     20968  echo "$as_me:$LINENO: result: yes" >&5
     20969echo "${ECHO_T}yes" >&6
     20970else
     20971  echo "$as_me: failed program was:" >&5
     20972sed 's/^/| /' conftest.$ac_ext >&5
     20973
     20974echo "$as_me:$LINENO: result: no" >&5
     20975echo "${ECHO_T}no" >&6
     20976                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     20977echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     20978   { (exit 1); exit 1; }; }
     20979fi
     20980rm -f conftest.err conftest.$ac_objext \
     20981      conftest$ac_exeext conftest.$ac_ext
     20982    ;;
     20983  c)
     20984    ac_ext=f
     20985ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20986ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20987ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20988case $ac_cv_f77_mangling in
     20989  upper*) ac_val="DAXPY" ;;
     20990  lower*) ac_val="daxpy" ;;
     20991  *)      ac_val="unknown" ;;
     20992esac
     20993case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     20994
     20995cfuncdaxpy="$ac_val"
     20996
     20997ac_ext=c
     20998ac_cpp='$CPP $CPPFLAGS'
     20999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21001ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21002
     21003    if test x"$coin_need_flibs" = xyes; then
     21004      flink_try=no;
     21005    else
     21006      cat >conftest.$ac_ext <<_ACEOF
     21007/* confdefs.h.  */
     21008_ACEOF
     21009cat confdefs.h >>conftest.$ac_ext
     21010cat >>conftest.$ac_ext <<_ACEOF
     21011/* end confdefs.h.  */
     21012void $cfuncdaxpy();
     21013#ifdef F77_DUMMY_MAIN
     21014
     21015#  ifdef __cplusplus
     21016     extern "C"
     21017#  endif
     21018   int F77_DUMMY_MAIN() { return 1; }
     21019
     21020#endif
     21021int
     21022main ()
     21023{
     21024$cfuncdaxpy()
     21025  ;
     21026  return 0;
     21027}
     21028_ACEOF
     21029rm -f conftest.$ac_objext conftest$ac_exeext
     21030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21031  (eval $ac_link) 2>conftest.er1
     21032  ac_status=$?
     21033  grep -v '^ *+' conftest.er1 >conftest.err
     21034  rm -f conftest.er1
     21035  cat conftest.err >&5
     21036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21037  (exit $ac_status); } &&
     21038         { ac_try='test -z "$ac_c_werror_flag"
     21039                         || test ! -s conftest.err'
     21040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21041  (eval $ac_try) 2>&5
     21042  ac_status=$?
     21043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21044  (exit $ac_status); }; } &&
     21045         { ac_try='test -s conftest$ac_exeext'
     21046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21047  (eval $ac_try) 2>&5
     21048  ac_status=$?
     21049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21050  (exit $ac_status); }; }; then
     21051  flink_try=yes
     21052else
     21053  echo "$as_me: failed program was:" >&5
     21054sed 's/^/| /' conftest.$ac_ext >&5
     21055
     21056flink_try=no
     21057fi
     21058rm -f conftest.err conftest.$ac_objext \
     21059      conftest$ac_exeext conftest.$ac_ext
     21060    fi
     21061    if test $flink_try = yes; then
     21062      echo "$as_me:$LINENO: result: yes" >&5
     21063echo "${ECHO_T}yes" >&6
     21064    else
     21065      if test x"$FLIBS" != x; then
     21066        flink_save_libs="$LIBS"
     21067        LIBS="$LIBS $FLIBS"
     21068        cat >conftest.$ac_ext <<_ACEOF
     21069/* confdefs.h.  */
     21070_ACEOF
     21071cat confdefs.h >>conftest.$ac_ext
     21072cat >>conftest.$ac_ext <<_ACEOF
     21073/* end confdefs.h.  */
     21074void $cfuncdaxpy();
     21075#ifdef F77_DUMMY_MAIN
     21076
     21077#  ifdef __cplusplus
     21078     extern "C"
     21079#  endif
     21080   int F77_DUMMY_MAIN() { return 1; }
     21081
     21082#endif
     21083int
     21084main ()
     21085{
     21086$cfuncdaxpy()
     21087  ;
     21088  return 0;
     21089}
     21090_ACEOF
     21091rm -f conftest.$ac_objext conftest$ac_exeext
     21092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21093  (eval $ac_link) 2>conftest.er1
     21094  ac_status=$?
     21095  grep -v '^ *+' conftest.er1 >conftest.err
     21096  rm -f conftest.er1
     21097  cat conftest.err >&5
     21098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21099  (exit $ac_status); } &&
     21100         { ac_try='test -z "$ac_c_werror_flag"
     21101                         || test ! -s conftest.err'
     21102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21103  (eval $ac_try) 2>&5
     21104  ac_status=$?
     21105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21106  (exit $ac_status); }; } &&
     21107         { ac_try='test -s conftest$ac_exeext'
     21108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21109  (eval $ac_try) 2>&5
     21110  ac_status=$?
     21111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21112  (exit $ac_status); }; }; then
     21113  LIBS="$flink_save_libs"
     21114                     echo "$as_me:$LINENO: result: yes" >&5
     21115echo "${ECHO_T}yes" >&6
     21116                     coin_need_flibs=yes
     21117else
     21118  echo "$as_me: failed program was:" >&5
     21119sed 's/^/| /' conftest.$ac_ext >&5
     21120
     21121LIBS="$flink_save_libs"
     21122                     echo "$as_me:$LINENO: result: no" >&5
     21123echo "${ECHO_T}no" >&6
     21124                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21125echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21126   { (exit 1); exit 1; }; }
     21127fi
     21128rm -f conftest.err conftest.$ac_objext \
     21129      conftest$ac_exeext conftest.$ac_ext
     21130      else
     21131        echo "$as_me:$LINENO: result: no" >&5
     21132echo "${ECHO_T}no" >&6
     21133                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21134echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21135   { (exit 1); exit 1; }; }
     21136      fi
     21137    fi
     21138    ;;
     21139  cc|cpp)
     21140    ac_ext=f
     21141ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21142ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21143ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21144case $ac_cv_f77_mangling in
     21145  upper*) ac_val="DAXPY" ;;
     21146  lower*) ac_val="daxpy" ;;
     21147  *)      ac_val="unknown" ;;
     21148esac
     21149case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21150
     21151cfuncdaxpy="$ac_val"
     21152
     21153ac_ext=c
     21154ac_cpp='$CPP $CPPFLAGS'
     21155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21157ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21158
     21159    if test x"$coin_need_flibs" = xyes; then
     21160      flink_try=no;
     21161    else
     21162      cat >conftest.$ac_ext <<_ACEOF
     21163/* confdefs.h.  */
     21164_ACEOF
     21165cat confdefs.h >>conftest.$ac_ext
     21166cat >>conftest.$ac_ext <<_ACEOF
     21167/* end confdefs.h.  */
     21168extern "C" {void $cfuncdaxpy();}
     21169#ifdef F77_DUMMY_MAIN
     21170
     21171#  ifdef __cplusplus
     21172     extern "C"
     21173#  endif
     21174   int F77_DUMMY_MAIN() { return 1; }
     21175
     21176#endif
     21177int
     21178main ()
     21179{
     21180$cfuncdaxpy()
     21181  ;
     21182  return 0;
     21183}
     21184_ACEOF
     21185rm -f conftest.$ac_objext conftest$ac_exeext
     21186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21187  (eval $ac_link) 2>conftest.er1
     21188  ac_status=$?
     21189  grep -v '^ *+' conftest.er1 >conftest.err
     21190  rm -f conftest.er1
     21191  cat conftest.err >&5
     21192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21193  (exit $ac_status); } &&
     21194         { ac_try='test -z "$ac_c_werror_flag"
     21195                         || test ! -s conftest.err'
     21196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21197  (eval $ac_try) 2>&5
     21198  ac_status=$?
     21199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21200  (exit $ac_status); }; } &&
     21201         { ac_try='test -s conftest$ac_exeext'
     21202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21203  (eval $ac_try) 2>&5
     21204  ac_status=$?
     21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21206  (exit $ac_status); }; }; then
     21207  flink_try=yes
     21208else
     21209  echo "$as_me: failed program was:" >&5
     21210sed 's/^/| /' conftest.$ac_ext >&5
     21211
     21212flink_try=no
     21213fi
     21214rm -f conftest.err conftest.$ac_objext \
     21215      conftest$ac_exeext conftest.$ac_ext
     21216    fi
     21217    if test $flink_try = yes; then
     21218      echo "$as_me:$LINENO: result: yes" >&5
     21219echo "${ECHO_T}yes" >&6
     21220    else
     21221      if test x"$FLIBS" != x; then
     21222        flink_save_libs="$LIBS"
     21223        LIBS="$LIBS $FLIBS"
     21224        cat >conftest.$ac_ext <<_ACEOF
     21225/* confdefs.h.  */
     21226_ACEOF
     21227cat confdefs.h >>conftest.$ac_ext
     21228cat >>conftest.$ac_ext <<_ACEOF
     21229/* end confdefs.h.  */
     21230extern "C" {void $cfuncdaxpy();}
     21231#ifdef F77_DUMMY_MAIN
     21232
     21233#  ifdef __cplusplus
     21234     extern "C"
     21235#  endif
     21236   int F77_DUMMY_MAIN() { return 1; }
     21237
     21238#endif
     21239int
     21240main ()
     21241{
     21242$cfuncdaxpy()
     21243  ;
     21244  return 0;
     21245}
     21246_ACEOF
     21247rm -f conftest.$ac_objext conftest$ac_exeext
     21248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21249  (eval $ac_link) 2>conftest.er1
     21250  ac_status=$?
     21251  grep -v '^ *+' conftest.er1 >conftest.err
     21252  rm -f conftest.er1
     21253  cat conftest.err >&5
     21254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21255  (exit $ac_status); } &&
     21256         { ac_try='test -z "$ac_c_werror_flag"
     21257                         || test ! -s conftest.err'
     21258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21259  (eval $ac_try) 2>&5
     21260  ac_status=$?
     21261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21262  (exit $ac_status); }; } &&
     21263         { ac_try='test -s conftest$ac_exeext'
     21264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21265  (eval $ac_try) 2>&5
     21266  ac_status=$?
     21267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21268  (exit $ac_status); }; }; then
     21269  LIBS="$flink_save_libs"
     21270                     echo "$as_me:$LINENO: result: yes" >&5
     21271echo "${ECHO_T}yes" >&6
     21272                     coin_need_flibs=yes
     21273else
     21274  echo "$as_me: failed program was:" >&5
     21275sed 's/^/| /' conftest.$ac_ext >&5
     21276
     21277LIBS="$flink_save_libs"
     21278                     echo "$as_me:$LINENO: result: no" >&5
     21279echo "${ECHO_T}no" >&6
     21280                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21281echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21282   { (exit 1); exit 1; }; }
     21283fi
     21284rm -f conftest.err conftest.$ac_objext \
     21285      conftest$ac_exeext conftest.$ac_ext
     21286      else
     21287        echo "$as_me:$LINENO: result: no" >&5
     21288echo "${ECHO_T}no" >&6
     21289                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21290echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21291   { (exit 1); exit 1; }; }
     21292      fi
     21293    fi
     21294    ;;
     21295esac
     21296
     21297  fi
     21298else
     21299# Try to autodetect the library for blas based on build system
     21300  #AC_MSG_CHECKING([default locations for BLAS])
     21301  skip_lblas_check=no
     21302  case $build in
     21303    *-sgi-*)
     21304      SAVE_LIBS="$LIBS"
     21305      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
     21306echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
     21307      LIBS="-lcomplib.sgimath $LIBS"
     21308      case $ac_ext in
     21309  f)
     21310    cat >conftest.$ac_ext <<_ACEOF
     21311/* confdefs.h.  */
     21312_ACEOF
     21313cat confdefs.h >>conftest.$ac_ext
     21314cat >>conftest.$ac_ext <<_ACEOF
     21315/* end confdefs.h.  */
     21316
     21317#ifdef F77_DUMMY_MAIN
     21318
     21319#  ifdef __cplusplus
     21320     extern "C"
     21321#  endif
     21322   int F77_DUMMY_MAIN() { return 1; }
     21323
     21324#endif
     21325int
     21326main ()
     21327{
     21328      call daxpy
     21329  ;
     21330  return 0;
     21331}
     21332_ACEOF
     21333rm -f conftest.$ac_objext conftest$ac_exeext
     21334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21335  (eval $ac_link) 2>conftest.er1
     21336  ac_status=$?
     21337  grep -v '^ *+' conftest.er1 >conftest.err
     21338  rm -f conftest.er1
     21339  cat conftest.err >&5
     21340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21341  (exit $ac_status); } &&
     21342         { ac_try='test -z "$ac_c_werror_flag"
     21343                         || test ! -s conftest.err'
     21344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21345  (eval $ac_try) 2>&5
     21346  ac_status=$?
     21347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21348  (exit $ac_status); }; } &&
     21349         { ac_try='test -s conftest$ac_exeext'
     21350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21351  (eval $ac_try) 2>&5
     21352  ac_status=$?
     21353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21354  (exit $ac_status); }; }; then
     21355  echo "$as_me:$LINENO: result: yes" >&5
     21356echo "${ECHO_T}yes" >&6
     21357                         use_blas=-lcomplib.sgimath;
     21358                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21359else
     21360  echo "$as_me: failed program was:" >&5
     21361sed 's/^/| /' conftest.$ac_ext >&5
     21362
     21363echo "$as_me:$LINENO: result: no" >&5
     21364echo "${ECHO_T}no" >&6
     21365                         SAVE_LIBS="$LIBS"
     21366fi
     21367rm -f conftest.err conftest.$ac_objext \
     21368      conftest$ac_exeext conftest.$ac_ext
     21369    ;;
     21370  c)
     21371    ac_ext=f
     21372ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21373ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21374ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21375case $ac_cv_f77_mangling in
     21376  upper*) ac_val="DAXPY" ;;
     21377  lower*) ac_val="daxpy" ;;
     21378  *)      ac_val="unknown" ;;
     21379esac
     21380case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21381
     21382cfuncdaxpy="$ac_val"
     21383
     21384ac_ext=c
     21385ac_cpp='$CPP $CPPFLAGS'
     21386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21388ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21389
     21390    if test x"$coin_need_flibs" = xyes; then
     21391      flink_try=no;
     21392    else
     21393      cat >conftest.$ac_ext <<_ACEOF
     21394/* confdefs.h.  */
     21395_ACEOF
     21396cat confdefs.h >>conftest.$ac_ext
     21397cat >>conftest.$ac_ext <<_ACEOF
     21398/* end confdefs.h.  */
     21399void $cfuncdaxpy();
     21400#ifdef F77_DUMMY_MAIN
     21401
     21402#  ifdef __cplusplus
     21403     extern "C"
     21404#  endif
     21405   int F77_DUMMY_MAIN() { return 1; }
     21406
     21407#endif
     21408int
     21409main ()
     21410{
     21411$cfuncdaxpy()
     21412  ;
     21413  return 0;
     21414}
     21415_ACEOF
     21416rm -f conftest.$ac_objext conftest$ac_exeext
     21417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21418  (eval $ac_link) 2>conftest.er1
     21419  ac_status=$?
     21420  grep -v '^ *+' conftest.er1 >conftest.err
     21421  rm -f conftest.er1
     21422  cat conftest.err >&5
     21423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21424  (exit $ac_status); } &&
     21425         { ac_try='test -z "$ac_c_werror_flag"
     21426                         || test ! -s conftest.err'
     21427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21428  (eval $ac_try) 2>&5
     21429  ac_status=$?
     21430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21431  (exit $ac_status); }; } &&
     21432         { ac_try='test -s conftest$ac_exeext'
     21433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21434  (eval $ac_try) 2>&5
     21435  ac_status=$?
     21436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21437  (exit $ac_status); }; }; then
     21438  flink_try=yes
     21439else
     21440  echo "$as_me: failed program was:" >&5
     21441sed 's/^/| /' conftest.$ac_ext >&5
     21442
     21443flink_try=no
     21444fi
     21445rm -f conftest.err conftest.$ac_objext \
     21446      conftest$ac_exeext conftest.$ac_ext
     21447    fi
     21448    if test $flink_try = yes; then
     21449      echo "$as_me:$LINENO: result: yes" >&5
     21450echo "${ECHO_T}yes" >&6
     21451                         use_blas=-lcomplib.sgimath;
     21452                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21453    else
     21454      if test x"$FLIBS" != x; then
     21455        flink_save_libs="$LIBS"
     21456        LIBS="$LIBS $FLIBS"
     21457        cat >conftest.$ac_ext <<_ACEOF
     21458/* confdefs.h.  */
     21459_ACEOF
     21460cat confdefs.h >>conftest.$ac_ext
     21461cat >>conftest.$ac_ext <<_ACEOF
     21462/* end confdefs.h.  */
     21463void $cfuncdaxpy();
     21464#ifdef F77_DUMMY_MAIN
     21465
     21466#  ifdef __cplusplus
     21467     extern "C"
     21468#  endif
     21469   int F77_DUMMY_MAIN() { return 1; }
     21470
     21471#endif
     21472int
     21473main ()
     21474{
     21475$cfuncdaxpy()
     21476  ;
     21477  return 0;
     21478}
     21479_ACEOF
     21480rm -f conftest.$ac_objext conftest$ac_exeext
     21481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21482  (eval $ac_link) 2>conftest.er1
     21483  ac_status=$?
     21484  grep -v '^ *+' conftest.er1 >conftest.err
     21485  rm -f conftest.er1
     21486  cat conftest.err >&5
     21487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21488  (exit $ac_status); } &&
     21489         { ac_try='test -z "$ac_c_werror_flag"
     21490                         || test ! -s conftest.err'
     21491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21492  (eval $ac_try) 2>&5
     21493  ac_status=$?
     21494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21495  (exit $ac_status); }; } &&
     21496         { ac_try='test -s conftest$ac_exeext'
     21497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21498  (eval $ac_try) 2>&5
     21499  ac_status=$?
     21500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21501  (exit $ac_status); }; }; then
     21502  LIBS="$flink_save_libs"
     21503                     echo "$as_me:$LINENO: result: yes" >&5
     21504echo "${ECHO_T}yes" >&6
     21505                         use_blas=-lcomplib.sgimath;
     21506                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21507                     coin_need_flibs=yes
     21508else
     21509  echo "$as_me: failed program was:" >&5
     21510sed 's/^/| /' conftest.$ac_ext >&5
     21511
     21512LIBS="$flink_save_libs"
     21513                     echo "$as_me:$LINENO: result: no" >&5
     21514echo "${ECHO_T}no" >&6
     21515                         SAVE_LIBS="$LIBS"
     21516fi
     21517rm -f conftest.err conftest.$ac_objext \
     21518      conftest$ac_exeext conftest.$ac_ext
     21519      else
     21520        echo "$as_me:$LINENO: result: no" >&5
     21521echo "${ECHO_T}no" >&6
     21522                         SAVE_LIBS="$LIBS"
     21523      fi
     21524    fi
     21525    ;;
     21526  cc|cpp)
     21527    ac_ext=f
     21528ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21529ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21530ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21531case $ac_cv_f77_mangling in
     21532  upper*) ac_val="DAXPY" ;;
     21533  lower*) ac_val="daxpy" ;;
     21534  *)      ac_val="unknown" ;;
     21535esac
     21536case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21537
     21538cfuncdaxpy="$ac_val"
     21539
     21540ac_ext=c
     21541ac_cpp='$CPP $CPPFLAGS'
     21542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21544ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21545
     21546    if test x"$coin_need_flibs" = xyes; then
     21547      flink_try=no;
     21548    else
     21549      cat >conftest.$ac_ext <<_ACEOF
     21550/* confdefs.h.  */
     21551_ACEOF
     21552cat confdefs.h >>conftest.$ac_ext
     21553cat >>conftest.$ac_ext <<_ACEOF
     21554/* end confdefs.h.  */
     21555extern "C" {void $cfuncdaxpy();}
     21556#ifdef F77_DUMMY_MAIN
     21557
     21558#  ifdef __cplusplus
     21559     extern "C"
     21560#  endif
     21561   int F77_DUMMY_MAIN() { return 1; }
     21562
     21563#endif
     21564int
     21565main ()
     21566{
     21567$cfuncdaxpy()
     21568  ;
     21569  return 0;
     21570}
     21571_ACEOF
     21572rm -f conftest.$ac_objext conftest$ac_exeext
     21573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21574  (eval $ac_link) 2>conftest.er1
     21575  ac_status=$?
     21576  grep -v '^ *+' conftest.er1 >conftest.err
     21577  rm -f conftest.er1
     21578  cat conftest.err >&5
     21579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21580  (exit $ac_status); } &&
     21581         { ac_try='test -z "$ac_c_werror_flag"
     21582                         || test ! -s conftest.err'
     21583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21584  (eval $ac_try) 2>&5
     21585  ac_status=$?
     21586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21587  (exit $ac_status); }; } &&
     21588         { ac_try='test -s conftest$ac_exeext'
     21589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21590  (eval $ac_try) 2>&5
     21591  ac_status=$?
     21592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21593  (exit $ac_status); }; }; then
     21594  flink_try=yes
     21595else
     21596  echo "$as_me: failed program was:" >&5
     21597sed 's/^/| /' conftest.$ac_ext >&5
     21598
     21599flink_try=no
     21600fi
     21601rm -f conftest.err conftest.$ac_objext \
     21602      conftest$ac_exeext conftest.$ac_ext
     21603    fi
     21604    if test $flink_try = yes; then
     21605      echo "$as_me:$LINENO: result: yes" >&5
     21606echo "${ECHO_T}yes" >&6
     21607                         use_blas=-lcomplib.sgimath;
     21608                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21609    else
     21610      if test x"$FLIBS" != x; then
     21611        flink_save_libs="$LIBS"
     21612        LIBS="$LIBS $FLIBS"
     21613        cat >conftest.$ac_ext <<_ACEOF
     21614/* confdefs.h.  */
     21615_ACEOF
     21616cat confdefs.h >>conftest.$ac_ext
     21617cat >>conftest.$ac_ext <<_ACEOF
     21618/* end confdefs.h.  */
     21619extern "C" {void $cfuncdaxpy();}
     21620#ifdef F77_DUMMY_MAIN
     21621
     21622#  ifdef __cplusplus
     21623     extern "C"
     21624#  endif
     21625   int F77_DUMMY_MAIN() { return 1; }
     21626
     21627#endif
     21628int
     21629main ()
     21630{
     21631$cfuncdaxpy()
     21632  ;
     21633  return 0;
     21634}
     21635_ACEOF
     21636rm -f conftest.$ac_objext conftest$ac_exeext
     21637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21638  (eval $ac_link) 2>conftest.er1
     21639  ac_status=$?
     21640  grep -v '^ *+' conftest.er1 >conftest.err
     21641  rm -f conftest.er1
     21642  cat conftest.err >&5
     21643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21644  (exit $ac_status); } &&
     21645         { ac_try='test -z "$ac_c_werror_flag"
     21646                         || test ! -s conftest.err'
     21647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21648  (eval $ac_try) 2>&5
     21649  ac_status=$?
     21650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21651  (exit $ac_status); }; } &&
     21652         { ac_try='test -s conftest$ac_exeext'
     21653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21654  (eval $ac_try) 2>&5
     21655  ac_status=$?
     21656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21657  (exit $ac_status); }; }; then
     21658  LIBS="$flink_save_libs"
     21659                     echo "$as_me:$LINENO: result: yes" >&5
     21660echo "${ECHO_T}yes" >&6
     21661                         use_blas=-lcomplib.sgimath;
     21662                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21663                     coin_need_flibs=yes
     21664else
     21665  echo "$as_me: failed program was:" >&5
     21666sed 's/^/| /' conftest.$ac_ext >&5
     21667
     21668LIBS="$flink_save_libs"
     21669                     echo "$as_me:$LINENO: result: no" >&5
     21670echo "${ECHO_T}no" >&6
     21671                         SAVE_LIBS="$LIBS"
     21672fi
     21673rm -f conftest.err conftest.$ac_objext \
     21674      conftest$ac_exeext conftest.$ac_ext
     21675      else
     21676        echo "$as_me:$LINENO: result: no" >&5
     21677echo "${ECHO_T}no" >&6
     21678                         SAVE_LIBS="$LIBS"
     21679      fi
     21680    fi
     21681    ;;
     21682esac
     21683
     21684      ;;
     21685    *-sun-*)
     21686      SAVE_LIBS="$LIBS"
     21687      echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has BLAS" >&5
     21688echo $ECHO_N "checking whether -xlic_lib=sunperf has BLAS... $ECHO_C" >&6
     21689      LIBS="-xlic_lib=sunperf $LIBS"
     21690      case $ac_ext in
     21691  f)
     21692    cat >conftest.$ac_ext <<_ACEOF
     21693/* confdefs.h.  */
     21694_ACEOF
     21695cat confdefs.h >>conftest.$ac_ext
     21696cat >>conftest.$ac_ext <<_ACEOF
     21697/* end confdefs.h.  */
     21698
     21699#ifdef F77_DUMMY_MAIN
     21700
     21701#  ifdef __cplusplus
     21702     extern "C"
     21703#  endif
     21704   int F77_DUMMY_MAIN() { return 1; }
     21705
     21706#endif
     21707int
     21708main ()
     21709{
     21710      call daxpy
     21711  ;
     21712  return 0;
     21713}
     21714_ACEOF
     21715rm -f conftest.$ac_objext conftest$ac_exeext
     21716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21717  (eval $ac_link) 2>conftest.er1
     21718  ac_status=$?
     21719  grep -v '^ *+' conftest.er1 >conftest.err
     21720  rm -f conftest.er1
     21721  cat conftest.err >&5
     21722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21723  (exit $ac_status); } &&
     21724         { ac_try='test -z "$ac_c_werror_flag"
     21725                         || test ! -s conftest.err'
     21726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21727  (eval $ac_try) 2>&5
     21728  ac_status=$?
     21729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21730  (exit $ac_status); }; } &&
     21731         { ac_try='test -s conftest$ac_exeext'
     21732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21733  (eval $ac_try) 2>&5
     21734  ac_status=$?
     21735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21736  (exit $ac_status); }; }; then
     21737  echo "$as_me:$LINENO: result: yes" >&5
     21738echo "${ECHO_T}yes" >&6
     21739                         use_blas='-xlic_lib=sunperf'
     21740                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21741else
     21742  echo "$as_me: failed program was:" >&5
     21743sed 's/^/| /' conftest.$ac_ext >&5
     21744
     21745echo "$as_me:$LINENO: result: no" >&5
     21746echo "${ECHO_T}no" >&6
     21747                         LIBS="$SAVE_LIBS"
     21748fi
     21749rm -f conftest.err conftest.$ac_objext \
     21750      conftest$ac_exeext conftest.$ac_ext
     21751    ;;
     21752  c)
     21753    ac_ext=f
     21754ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21755ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21756ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21757case $ac_cv_f77_mangling in
     21758  upper*) ac_val="DAXPY" ;;
     21759  lower*) ac_val="daxpy" ;;
     21760  *)      ac_val="unknown" ;;
     21761esac
     21762case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21763
     21764cfuncdaxpy="$ac_val"
     21765
     21766ac_ext=c
     21767ac_cpp='$CPP $CPPFLAGS'
     21768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21770ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21771
     21772    if test x"$coin_need_flibs" = xyes; then
     21773      flink_try=no;
     21774    else
     21775      cat >conftest.$ac_ext <<_ACEOF
     21776/* confdefs.h.  */
     21777_ACEOF
     21778cat confdefs.h >>conftest.$ac_ext
     21779cat >>conftest.$ac_ext <<_ACEOF
     21780/* end confdefs.h.  */
     21781void $cfuncdaxpy();
     21782#ifdef F77_DUMMY_MAIN
     21783
     21784#  ifdef __cplusplus
     21785     extern "C"
     21786#  endif
     21787   int F77_DUMMY_MAIN() { return 1; }
     21788
     21789#endif
     21790int
     21791main ()
     21792{
     21793$cfuncdaxpy()
     21794  ;
     21795  return 0;
     21796}
     21797_ACEOF
     21798rm -f conftest.$ac_objext conftest$ac_exeext
     21799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21800  (eval $ac_link) 2>conftest.er1
     21801  ac_status=$?
     21802  grep -v '^ *+' conftest.er1 >conftest.err
     21803  rm -f conftest.er1
     21804  cat conftest.err >&5
     21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21806  (exit $ac_status); } &&
     21807         { ac_try='test -z "$ac_c_werror_flag"
     21808                         || test ! -s conftest.err'
     21809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21810  (eval $ac_try) 2>&5
     21811  ac_status=$?
     21812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21813  (exit $ac_status); }; } &&
     21814         { ac_try='test -s conftest$ac_exeext'
     21815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21816  (eval $ac_try) 2>&5
     21817  ac_status=$?
     21818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21819  (exit $ac_status); }; }; then
     21820  flink_try=yes
     21821else
     21822  echo "$as_me: failed program was:" >&5
     21823sed 's/^/| /' conftest.$ac_ext >&5
     21824
     21825flink_try=no
     21826fi
     21827rm -f conftest.err conftest.$ac_objext \
     21828      conftest$ac_exeext conftest.$ac_ext
     21829    fi
     21830    if test $flink_try = yes; then
     21831      echo "$as_me:$LINENO: result: yes" >&5
     21832echo "${ECHO_T}yes" >&6
     21833                         use_blas='-xlic_lib=sunperf'
     21834                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21835    else
     21836      if test x"$FLIBS" != x; then
     21837        flink_save_libs="$LIBS"
     21838        LIBS="$LIBS $FLIBS"
     21839        cat >conftest.$ac_ext <<_ACEOF
     21840/* confdefs.h.  */
     21841_ACEOF
     21842cat confdefs.h >>conftest.$ac_ext
     21843cat >>conftest.$ac_ext <<_ACEOF
     21844/* end confdefs.h.  */
     21845void $cfuncdaxpy();
     21846#ifdef F77_DUMMY_MAIN
     21847
     21848#  ifdef __cplusplus
     21849     extern "C"
     21850#  endif
     21851   int F77_DUMMY_MAIN() { return 1; }
     21852
     21853#endif
     21854int
     21855main ()
     21856{
     21857$cfuncdaxpy()
     21858  ;
     21859  return 0;
     21860}
     21861_ACEOF
     21862rm -f conftest.$ac_objext conftest$ac_exeext
     21863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21864  (eval $ac_link) 2>conftest.er1
     21865  ac_status=$?
     21866  grep -v '^ *+' conftest.er1 >conftest.err
     21867  rm -f conftest.er1
     21868  cat conftest.err >&5
     21869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21870  (exit $ac_status); } &&
     21871         { ac_try='test -z "$ac_c_werror_flag"
     21872                         || test ! -s conftest.err'
     21873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21874  (eval $ac_try) 2>&5
     21875  ac_status=$?
     21876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21877  (exit $ac_status); }; } &&
     21878         { ac_try='test -s conftest$ac_exeext'
     21879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21880  (eval $ac_try) 2>&5
     21881  ac_status=$?
     21882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21883  (exit $ac_status); }; }; then
     21884  LIBS="$flink_save_libs"
     21885                     echo "$as_me:$LINENO: result: yes" >&5
     21886echo "${ECHO_T}yes" >&6
     21887                         use_blas='-xlic_lib=sunperf'
     21888                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21889                     coin_need_flibs=yes
     21890else
     21891  echo "$as_me: failed program was:" >&5
     21892sed 's/^/| /' conftest.$ac_ext >&5
     21893
     21894LIBS="$flink_save_libs"
     21895                     echo "$as_me:$LINENO: result: no" >&5
     21896echo "${ECHO_T}no" >&6
     21897                         LIBS="$SAVE_LIBS"
     21898fi
     21899rm -f conftest.err conftest.$ac_objext \
     21900      conftest$ac_exeext conftest.$ac_ext
     21901      else
     21902        echo "$as_me:$LINENO: result: no" >&5
     21903echo "${ECHO_T}no" >&6
     21904                         LIBS="$SAVE_LIBS"
     21905      fi
     21906    fi
     21907    ;;
     21908  cc|cpp)
     21909    ac_ext=f
     21910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21912ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21913case $ac_cv_f77_mangling in
     21914  upper*) ac_val="DAXPY" ;;
     21915  lower*) ac_val="daxpy" ;;
     21916  *)      ac_val="unknown" ;;
     21917esac
     21918case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21919
     21920cfuncdaxpy="$ac_val"
     21921
     21922ac_ext=c
     21923ac_cpp='$CPP $CPPFLAGS'
     21924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21926ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21927
     21928    if test x"$coin_need_flibs" = xyes; then
     21929      flink_try=no;
     21930    else
     21931      cat >conftest.$ac_ext <<_ACEOF
     21932/* confdefs.h.  */
     21933_ACEOF
     21934cat confdefs.h >>conftest.$ac_ext
     21935cat >>conftest.$ac_ext <<_ACEOF
     21936/* end confdefs.h.  */
     21937extern "C" {void $cfuncdaxpy();}
     21938#ifdef F77_DUMMY_MAIN
     21939
     21940#  ifdef __cplusplus
     21941     extern "C"
     21942#  endif
     21943   int F77_DUMMY_MAIN() { return 1; }
     21944
     21945#endif
     21946int
     21947main ()
     21948{
     21949$cfuncdaxpy()
     21950  ;
     21951  return 0;
     21952}
     21953_ACEOF
     21954rm -f conftest.$ac_objext conftest$ac_exeext
     21955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21956  (eval $ac_link) 2>conftest.er1
     21957  ac_status=$?
     21958  grep -v '^ *+' conftest.er1 >conftest.err
     21959  rm -f conftest.er1
     21960  cat conftest.err >&5
     21961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21962  (exit $ac_status); } &&
     21963         { ac_try='test -z "$ac_c_werror_flag"
     21964                         || test ! -s conftest.err'
     21965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21966  (eval $ac_try) 2>&5
     21967  ac_status=$?
     21968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21969  (exit $ac_status); }; } &&
     21970         { ac_try='test -s conftest$ac_exeext'
     21971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21972  (eval $ac_try) 2>&5
     21973  ac_status=$?
     21974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21975  (exit $ac_status); }; }; then
     21976  flink_try=yes
     21977else
     21978  echo "$as_me: failed program was:" >&5
     21979sed 's/^/| /' conftest.$ac_ext >&5
     21980
     21981flink_try=no
     21982fi
     21983rm -f conftest.err conftest.$ac_objext \
     21984      conftest$ac_exeext conftest.$ac_ext
     21985    fi
     21986    if test $flink_try = yes; then
     21987      echo "$as_me:$LINENO: result: yes" >&5
     21988echo "${ECHO_T}yes" >&6
     21989                         use_blas='-xlic_lib=sunperf'
     21990                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     21991    else
     21992      if test x"$FLIBS" != x; then
     21993        flink_save_libs="$LIBS"
     21994        LIBS="$LIBS $FLIBS"
     21995        cat >conftest.$ac_ext <<_ACEOF
     21996/* confdefs.h.  */
     21997_ACEOF
     21998cat confdefs.h >>conftest.$ac_ext
     21999cat >>conftest.$ac_ext <<_ACEOF
     22000/* end confdefs.h.  */
     22001extern "C" {void $cfuncdaxpy();}
     22002#ifdef F77_DUMMY_MAIN
     22003
     22004#  ifdef __cplusplus
     22005     extern "C"
     22006#  endif
     22007   int F77_DUMMY_MAIN() { return 1; }
     22008
     22009#endif
     22010int
     22011main ()
     22012{
     22013$cfuncdaxpy()
     22014  ;
     22015  return 0;
     22016}
     22017_ACEOF
     22018rm -f conftest.$ac_objext conftest$ac_exeext
     22019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22020  (eval $ac_link) 2>conftest.er1
     22021  ac_status=$?
     22022  grep -v '^ *+' conftest.er1 >conftest.err
     22023  rm -f conftest.er1
     22024  cat conftest.err >&5
     22025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22026  (exit $ac_status); } &&
     22027         { ac_try='test -z "$ac_c_werror_flag"
     22028                         || test ! -s conftest.err'
     22029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22030  (eval $ac_try) 2>&5
     22031  ac_status=$?
     22032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22033  (exit $ac_status); }; } &&
     22034         { ac_try='test -s conftest$ac_exeext'
     22035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22036  (eval $ac_try) 2>&5
     22037  ac_status=$?
     22038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22039  (exit $ac_status); }; }; then
     22040  LIBS="$flink_save_libs"
     22041                     echo "$as_me:$LINENO: result: yes" >&5
     22042echo "${ECHO_T}yes" >&6
     22043                         use_blas='-xlic_lib=sunperf'
     22044                         ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22045                     coin_need_flibs=yes
     22046else
     22047  echo "$as_me: failed program was:" >&5
     22048sed 's/^/| /' conftest.$ac_ext >&5
     22049
     22050LIBS="$flink_save_libs"
     22051                     echo "$as_me:$LINENO: result: no" >&5
     22052echo "${ECHO_T}no" >&6
     22053                         LIBS="$SAVE_LIBS"
     22054fi
     22055rm -f conftest.err conftest.$ac_objext \
     22056      conftest$ac_exeext conftest.$ac_ext
     22057      else
     22058        echo "$as_me:$LINENO: result: no" >&5
     22059echo "${ECHO_T}no" >&6
     22060                         LIBS="$SAVE_LIBS"
     22061      fi
     22062    fi
     22063    ;;
     22064esac
     22065
     22066      ;;
     22067# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
     22068# library will want to link with cygwin, hence won't run standalone in DOS.
     22069    *-cygwin*)
     22070      if test "$enable_doscompile" = mingw; then
     22071        skip_lblas_check=yes
     22072      fi
     22073      ;;
     22074  esac
     22075
     22076  if test -z "$use_blas" && test $skip_lblas_check = no; then
     22077    SAVE_LIBS="$LIBS"
     22078    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
     22079echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
     22080    LIBS="-lblas $LIBS"
     22081    case $ac_ext in
     22082  f)
     22083    cat >conftest.$ac_ext <<_ACEOF
     22084/* confdefs.h.  */
     22085_ACEOF
     22086cat confdefs.h >>conftest.$ac_ext
     22087cat >>conftest.$ac_ext <<_ACEOF
     22088/* end confdefs.h.  */
     22089
     22090#ifdef F77_DUMMY_MAIN
     22091
     22092#  ifdef __cplusplus
     22093     extern "C"
     22094#  endif
     22095   int F77_DUMMY_MAIN() { return 1; }
     22096
     22097#endif
     22098int
     22099main ()
     22100{
     22101      call daxpy
     22102  ;
     22103  return 0;
     22104}
     22105_ACEOF
     22106rm -f conftest.$ac_objext conftest$ac_exeext
     22107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22108  (eval $ac_link) 2>conftest.er1
     22109  ac_status=$?
     22110  grep -v '^ *+' conftest.er1 >conftest.err
     22111  rm -f conftest.er1
     22112  cat conftest.err >&5
     22113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22114  (exit $ac_status); } &&
     22115         { ac_try='test -z "$ac_c_werror_flag"
     22116                         || test ! -s conftest.err'
     22117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22118  (eval $ac_try) 2>&5
     22119  ac_status=$?
     22120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22121  (exit $ac_status); }; } &&
     22122         { ac_try='test -s conftest$ac_exeext'
     22123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22124  (eval $ac_try) 2>&5
     22125  ac_status=$?
     22126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22127  (exit $ac_status); }; }; then
     22128  echo "$as_me:$LINENO: result: yes" >&5
     22129echo "${ECHO_T}yes" >&6
     22130                       ADDLIBS="-lblas $ADDLIBS"
     22131                       use_blas='-lblas'
     22132else
     22133  echo "$as_me: failed program was:" >&5
     22134sed 's/^/| /' conftest.$ac_ext >&5
     22135
     22136echo "$as_me:$LINENO: result: no" >&5
     22137echo "${ECHO_T}no" >&6
     22138                       LIBS="$SAVE_LIBS"
     22139fi
     22140rm -f conftest.err conftest.$ac_objext \
     22141      conftest$ac_exeext conftest.$ac_ext
     22142    ;;
     22143  c)
     22144    ac_ext=f
     22145ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22146ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22147ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22148case $ac_cv_f77_mangling in
     22149  upper*) ac_val="DAXPY" ;;
     22150  lower*) ac_val="daxpy" ;;
     22151  *)      ac_val="unknown" ;;
     22152esac
     22153case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22154
     22155cfuncdaxpy="$ac_val"
     22156
     22157ac_ext=c
     22158ac_cpp='$CPP $CPPFLAGS'
     22159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22161ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22162
     22163    if test x"$coin_need_flibs" = xyes; then
     22164      flink_try=no;
     22165    else
     22166      cat >conftest.$ac_ext <<_ACEOF
     22167/* confdefs.h.  */
     22168_ACEOF
     22169cat confdefs.h >>conftest.$ac_ext
     22170cat >>conftest.$ac_ext <<_ACEOF
     22171/* end confdefs.h.  */
     22172void $cfuncdaxpy();
     22173#ifdef F77_DUMMY_MAIN
     22174
     22175#  ifdef __cplusplus
     22176     extern "C"
     22177#  endif
     22178   int F77_DUMMY_MAIN() { return 1; }
     22179
     22180#endif
     22181int
     22182main ()
     22183{
     22184$cfuncdaxpy()
     22185  ;
     22186  return 0;
     22187}
     22188_ACEOF
     22189rm -f conftest.$ac_objext conftest$ac_exeext
     22190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22191  (eval $ac_link) 2>conftest.er1
     22192  ac_status=$?
     22193  grep -v '^ *+' conftest.er1 >conftest.err
     22194  rm -f conftest.er1
     22195  cat conftest.err >&5
     22196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22197  (exit $ac_status); } &&
     22198         { ac_try='test -z "$ac_c_werror_flag"
     22199                         || test ! -s conftest.err'
     22200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22201  (eval $ac_try) 2>&5
     22202  ac_status=$?
     22203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22204  (exit $ac_status); }; } &&
     22205         { ac_try='test -s conftest$ac_exeext'
     22206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22207  (eval $ac_try) 2>&5
     22208  ac_status=$?
     22209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22210  (exit $ac_status); }; }; then
     22211  flink_try=yes
     22212else
     22213  echo "$as_me: failed program was:" >&5
     22214sed 's/^/| /' conftest.$ac_ext >&5
     22215
     22216flink_try=no
     22217fi
     22218rm -f conftest.err conftest.$ac_objext \
     22219      conftest$ac_exeext conftest.$ac_ext
     22220    fi
     22221    if test $flink_try = yes; then
     22222      echo "$as_me:$LINENO: result: yes" >&5
     22223echo "${ECHO_T}yes" >&6
     22224                       ADDLIBS="-lblas $ADDLIBS"
     22225                       use_blas='-lblas'
     22226    else
     22227      if test x"$FLIBS" != x; then
     22228        flink_save_libs="$LIBS"
     22229        LIBS="$LIBS $FLIBS"
     22230        cat >conftest.$ac_ext <<_ACEOF
     22231/* confdefs.h.  */
     22232_ACEOF
     22233cat confdefs.h >>conftest.$ac_ext
     22234cat >>conftest.$ac_ext <<_ACEOF
     22235/* end confdefs.h.  */
     22236void $cfuncdaxpy();
     22237#ifdef F77_DUMMY_MAIN
     22238
     22239#  ifdef __cplusplus
     22240     extern "C"
     22241#  endif
     22242   int F77_DUMMY_MAIN() { return 1; }
     22243
     22244#endif
     22245int
     22246main ()
     22247{
     22248$cfuncdaxpy()
     22249  ;
     22250  return 0;
     22251}
     22252_ACEOF
     22253rm -f conftest.$ac_objext conftest$ac_exeext
     22254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22255  (eval $ac_link) 2>conftest.er1
     22256  ac_status=$?
     22257  grep -v '^ *+' conftest.er1 >conftest.err
     22258  rm -f conftest.er1
     22259  cat conftest.err >&5
     22260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22261  (exit $ac_status); } &&
     22262         { ac_try='test -z "$ac_c_werror_flag"
     22263                         || test ! -s conftest.err'
     22264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22265  (eval $ac_try) 2>&5
     22266  ac_status=$?
     22267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22268  (exit $ac_status); }; } &&
     22269         { ac_try='test -s conftest$ac_exeext'
     22270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22271  (eval $ac_try) 2>&5
     22272  ac_status=$?
     22273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22274  (exit $ac_status); }; }; then
     22275  LIBS="$flink_save_libs"
     22276                     echo "$as_me:$LINENO: result: yes" >&5
     22277echo "${ECHO_T}yes" >&6
     22278                       ADDLIBS="-lblas $ADDLIBS"
     22279                       use_blas='-lblas'
     22280                     coin_need_flibs=yes
     22281else
     22282  echo "$as_me: failed program was:" >&5
     22283sed 's/^/| /' conftest.$ac_ext >&5
     22284
     22285LIBS="$flink_save_libs"
     22286                     echo "$as_me:$LINENO: result: no" >&5
     22287echo "${ECHO_T}no" >&6
     22288                       LIBS="$SAVE_LIBS"
     22289fi
     22290rm -f conftest.err conftest.$ac_objext \
     22291      conftest$ac_exeext conftest.$ac_ext
     22292      else
     22293        echo "$as_me:$LINENO: result: no" >&5
     22294echo "${ECHO_T}no" >&6
     22295                       LIBS="$SAVE_LIBS"
     22296      fi
     22297    fi
     22298    ;;
     22299  cc|cpp)
     22300    ac_ext=f
     22301ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22302ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22303ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22304case $ac_cv_f77_mangling in
     22305  upper*) ac_val="DAXPY" ;;
     22306  lower*) ac_val="daxpy" ;;
     22307  *)      ac_val="unknown" ;;
     22308esac
     22309case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22310
     22311cfuncdaxpy="$ac_val"
     22312
     22313ac_ext=c
     22314ac_cpp='$CPP $CPPFLAGS'
     22315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22317ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22318
     22319    if test x"$coin_need_flibs" = xyes; then
     22320      flink_try=no;
     22321    else
     22322      cat >conftest.$ac_ext <<_ACEOF
     22323/* confdefs.h.  */
     22324_ACEOF
     22325cat confdefs.h >>conftest.$ac_ext
     22326cat >>conftest.$ac_ext <<_ACEOF
     22327/* end confdefs.h.  */
     22328extern "C" {void $cfuncdaxpy();}
     22329#ifdef F77_DUMMY_MAIN
     22330
     22331#  ifdef __cplusplus
     22332     extern "C"
     22333#  endif
     22334   int F77_DUMMY_MAIN() { return 1; }
     22335
     22336#endif
     22337int
     22338main ()
     22339{
     22340$cfuncdaxpy()
     22341  ;
     22342  return 0;
     22343}
     22344_ACEOF
     22345rm -f conftest.$ac_objext conftest$ac_exeext
     22346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22347  (eval $ac_link) 2>conftest.er1
     22348  ac_status=$?
     22349  grep -v '^ *+' conftest.er1 >conftest.err
     22350  rm -f conftest.er1
     22351  cat conftest.err >&5
     22352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22353  (exit $ac_status); } &&
     22354         { ac_try='test -z "$ac_c_werror_flag"
     22355                         || test ! -s conftest.err'
     22356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22357  (eval $ac_try) 2>&5
     22358  ac_status=$?
     22359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22360  (exit $ac_status); }; } &&
     22361         { ac_try='test -s conftest$ac_exeext'
     22362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22363  (eval $ac_try) 2>&5
     22364  ac_status=$?
     22365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22366  (exit $ac_status); }; }; then
     22367  flink_try=yes
     22368else
     22369  echo "$as_me: failed program was:" >&5
     22370sed 's/^/| /' conftest.$ac_ext >&5
     22371
     22372flink_try=no
     22373fi
     22374rm -f conftest.err conftest.$ac_objext \
     22375      conftest$ac_exeext conftest.$ac_ext
     22376    fi
     22377    if test $flink_try = yes; then
     22378      echo "$as_me:$LINENO: result: yes" >&5
     22379echo "${ECHO_T}yes" >&6
     22380                       ADDLIBS="-lblas $ADDLIBS"
     22381                       use_blas='-lblas'
     22382    else
     22383      if test x"$FLIBS" != x; then
     22384        flink_save_libs="$LIBS"
     22385        LIBS="$LIBS $FLIBS"
     22386        cat >conftest.$ac_ext <<_ACEOF
     22387/* confdefs.h.  */
     22388_ACEOF
     22389cat confdefs.h >>conftest.$ac_ext
     22390cat >>conftest.$ac_ext <<_ACEOF
     22391/* end confdefs.h.  */
     22392extern "C" {void $cfuncdaxpy();}
     22393#ifdef F77_DUMMY_MAIN
     22394
     22395#  ifdef __cplusplus
     22396     extern "C"
     22397#  endif
     22398   int F77_DUMMY_MAIN() { return 1; }
     22399
     22400#endif
     22401int
     22402main ()
     22403{
     22404$cfuncdaxpy()
     22405  ;
     22406  return 0;
     22407}
     22408_ACEOF
     22409rm -f conftest.$ac_objext conftest$ac_exeext
     22410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22411  (eval $ac_link) 2>conftest.er1
     22412  ac_status=$?
     22413  grep -v '^ *+' conftest.er1 >conftest.err
     22414  rm -f conftest.er1
     22415  cat conftest.err >&5
     22416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22417  (exit $ac_status); } &&
     22418         { ac_try='test -z "$ac_c_werror_flag"
     22419                         || test ! -s conftest.err'
     22420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22421  (eval $ac_try) 2>&5
     22422  ac_status=$?
     22423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22424  (exit $ac_status); }; } &&
     22425         { ac_try='test -s conftest$ac_exeext'
     22426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22427  (eval $ac_try) 2>&5
     22428  ac_status=$?
     22429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22430  (exit $ac_status); }; }; then
     22431  LIBS="$flink_save_libs"
     22432                     echo "$as_me:$LINENO: result: yes" >&5
     22433echo "${ECHO_T}yes" >&6
     22434                       ADDLIBS="-lblas $ADDLIBS"
     22435                       use_blas='-lblas'
     22436                     coin_need_flibs=yes
     22437else
     22438  echo "$as_me: failed program was:" >&5
     22439sed 's/^/| /' conftest.$ac_ext >&5
     22440
     22441LIBS="$flink_save_libs"
     22442                     echo "$as_me:$LINENO: result: no" >&5
     22443echo "${ECHO_T}no" >&6
     22444                       LIBS="$SAVE_LIBS"
     22445fi
     22446rm -f conftest.err conftest.$ac_objext \
     22447      conftest$ac_exeext conftest.$ac_ext
     22448      else
     22449        echo "$as_me:$LINENO: result: no" >&5
     22450echo "${ECHO_T}no" >&6
     22451                       LIBS="$SAVE_LIBS"
     22452      fi
     22453    fi
     22454    ;;
     22455esac
     22456
     22457  fi
     22458
     22459# If we have no other ideas, consider building BLAS.
     22460  if test -z "$use_blas"; then
     22461    if test "$PACKAGE_NAME" != ThirdPartyBlas; then
     22462      if test -r $coin_blasobjdir/.MakeOk; then
     22463        use_blas=BUILD
     22464      fi
     22465    fi
     22466  fi
     22467fi
     22468
     22469if test "$use_blas" = BUILD; then
     22470  coin_need_flibs=yes
     22471fi
     22472
     22473
     22474
     22475if test x"$use_blas" != x; then
     22476  COIN_HAS_BLAS_TRUE=
     22477  COIN_HAS_BLAS_FALSE='#'
     22478else
     22479  COIN_HAS_BLAS_TRUE='#'
     22480  COIN_HAS_BLAS_FALSE=
     22481fi
     22482
     22483
     22484
     22485if test "$use_blas" = BUILD; then
     22486  COIN_BUILD_BLAS_TRUE=
     22487  COIN_BUILD_BLAS_FALSE='#'
     22488else
     22489  COIN_BUILD_BLAS_TRUE='#'
     22490  COIN_BUILD_BLAS_FALSE=
     22491fi
     22492
     22493
     22494if test x"$use_blas" = x || test "$use_blas" = no; then
     22495  coin_has_blas=no
     22496else
     22497  coin_has_blas=yes
     22498
     22499cat >>confdefs.h <<\_ACEOF
     22500#define COIN_HAS_BLAS 1
     22501_ACEOF
     22502
     22503fi
     22504
     22505MAKEOKFILE=.MakeOk
     22506if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
     22507  rm -f $MAKEOKFILE
     22508  { echo "$as_me:$LINENO: The Blas sources don't need to be compiled" >&5
     22509echo "$as_me: The Blas sources don't need to be compiled" >&6;}
     22510  MAKEOKFILE=
     22511else
     22512  touch $MAKEOKFILE
     22513fi
     22514
     22515
     22516
     22517if test -z "$MAKEOKFILE"; then
     22518  SKIPMAKE_TRUE=
     22519  SKIPMAKE_FALSE='#'
     22520else
     22521  SKIPMAKE_TRUE='#'
     22522  SKIPMAKE_FALSE=
     22523fi
     22524
     22525
    2020522526          ac_config_files="$ac_config_files Makefile"
    2020622527
    2020722528
    2020822529
    20209 FADDLIBS="$ADDLIBS"
    20210 if test x"$coin_need_flibs" = xyes; then
    20211   ADDLIBS="$ADDLIBS $FLIBS"
    20212 fi
    20213 
    20214 # library extension
    20215 
    20216 case "$CC" in
    20217   cl* | */cl* | CL* | */CL*)
    20218        LIBEXT=lib ;;
    20219     *) LIBEXT=a ;;
    20220 esac
    20221 
    20222 # Define VPATH_DISTCLEANFILES to be everything that needs to be
    20223 # cleaned for distclean in a vpath configuration
    20224 
    20225 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
    20226 
    20227 cat >confcache <<\_ACEOF
     22530if test x$coin_skip_ac_output != xyes; then
     22531
     22532  FADDLIBS="$ADDLIBS"
     22533  if test x"$coin_need_flibs" = xyes; then
     22534    ADDLIBS="$ADDLIBS $FLIBS"
     22535  fi
     22536
     22537  # library extension
     22538
     22539  case "$CC" in
     22540    cl* | */cl* | CL* | */CL*)
     22541         LIBEXT=lib ;;
     22542      *) LIBEXT=a ;;
     22543  esac
     22544
     22545  # Define VPATH_DISTCLEANFILES to be everything that needs to be
     22546  # cleaned for distclean in a vpath configuration
     22547
     22548  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
     22549
     22550  # Take out subdirectories if their configuration concluded that they
     22551  # don't need to be compiled
     22552  if test x"$coin_ac_skip_subdirs" != x; then
     22553    new_subdirs=
     22554    for i in $subdirs; do
     22555      skipme=no
     22556      for j in $coin_ac_skip_subdirs; do
     22557        if test $i = $j; then
     22558          skipme=yes;
     22559        fi
     22560      done
     22561      if test $skipme = no; then
     22562        new_subdirs="$new_subdirs $i"
     22563      fi
     22564    done
     22565    subdirs="$new_subdirs"
     22566  fi
     22567
     22568  cat >confcache <<\_ACEOF
    2022822569# This file is a shell script that caches the results of configure
    2022922570# tests run on this system so they can be shared between configure
     
    2038622727Usually this means the macro was only invoked conditionally." >&5
    2038722728echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
     22729Usually this means the macro was only invoked conditionally." >&2;}
     22730   { (exit 1); exit 1; }; }
     22731fi
     22732if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     22733  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     22734Usually this means the macro was only invoked conditionally." >&5
     22735echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     22736Usually this means the macro was only invoked conditionally." >&2;}
     22737   { (exit 1); exit 1; }; }
     22738fi
     22739if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
     22740  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     22741Usually this means the macro was only invoked conditionally." >&5
     22742echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     22743Usually this means the macro was only invoked conditionally." >&2;}
     22744   { (exit 1); exit 1; }; }
     22745fi
     22746if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
     22747  { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
     22748Usually this means the macro was only invoked conditionally." >&5
     22749echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2038822750Usually this means the macro was only invoked conditionally." >&2;}
    2038922751   { (exit 1); exit 1; }; }
     
    2101123373s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2101223374s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     23375s,@FLIBS@,$FLIBS,;t t
     23376s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
     23377s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
     23378s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
     23379s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
     23380s,@MAKEOKFILE@,$MAKEOKFILE,;t t
     23381s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
     23382s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2101323383s,@LIBEXT@,$LIBEXT,;t t
    2101423384s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     
    2148623856
    2148723857
    21488 if test x"$coin_vpath_link_files" = x; then : ; else
    21489   lnkcmd=
    21490   if test "$enable_doscompile" = yes; then
    21491     lnkcmd=cp
    21492   fi
    21493   case "$CC" in
    21494     cl* | */cl* | CL* | */CL*)
    21495       lnkcmd=cp ;;
    21496   esac
    21497   if test "$lnkcmd" = cp; then
    21498     { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
     23858  if test x"$coin_vpath_link_files" = x; then : ; else
     23859    lnkcmd=
     23860    if test "$enable_doscompile" = yes; then
     23861      lnkcmd=cp
     23862    fi
     23863    case "$CC" in
     23864      cl* | */cl* | CL* | */CL*)
     23865        lnkcmd=cp ;;
     23866    esac
     23867    if test "$lnkcmd" = cp; then
     23868      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
    2149923869echo "$as_me: Copying data files for VPATH configuration" >&6;}
    21500   else
    21501     echo "$as_me:$LINENO: checking whether ln -s works" >&5
     23870    else
     23871      echo "$as_me:$LINENO: checking whether ln -s works" >&5
    2150223872echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2150323873LN_S=$as_ln_s
     
    2151023880fi
    2151123881
    21512     { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
     23882      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
    2151323883echo "$as_me: Creating VPATH links for data files" >&6;}
    21514     lnkcmd="$LN_S"
    21515   fi
    21516   for file in $coin_vpath_link_files; do
    21517     dir=`(dirname "./$file") 2>/dev/null ||
     23884      lnkcmd="$LN_S"
     23885    fi
     23886    for file in $coin_vpath_link_files; do
     23887      dir=`(dirname "./$file") 2>/dev/null ||
    2151823888$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    2151923889         X"./$file" : 'X\(//\)[^/]' \| \
     
    2152723897          /^X\(\/\).*/{ s//\1/; q; }
    2152823898          s/.*/./; q'`
    21529     if test -d $dir; then : ; else
    21530       { if $as_mkdir_p; then
     23899      if test -d $dir; then : ; else
     23900        { if $as_mkdir_p; then
    2153123901    mkdir -p $dir
    2153223902  else
     
    2155323923   { (exit 1); exit 1; }; }; }
    2155423924
    21555     fi
    21556     rm -f $file
    21557     $lnkcmd $abs_source_dir/$file $file
    21558   done
    21559 fi
    21560 
    21561 if test x$coin_projectdir = xyes; then
    21562   { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
     23925      fi
     23926      rm -f $file
     23927      $lnkcmd $abs_source_dir/$file $file
     23928    done
     23929  fi
     23930
     23931  if test x$coin_projectdir = xyes; then
     23932    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
    2156323933echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
    21564 else
    21565   { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
     23934  else
     23935    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
    2156623936echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
    21567 fi
    21568 
     23937  fi
     23938else
     23939  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
     23940echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
     23941fi
     23942
     23943
  • ThirdParty/Blas/stable/1.0/configure.ac

    r218 r273  
    1 # Copyright (C) 2006 International Business Machines.
     1# Copyright (C) 2006, 2007 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    4949AC_COIN_INIT_AUTO_TOOLS
    5050
     51# Check if Blas is already available on the system or provided by user
     52AC_COIN_HAS_BLAS
     53MAKEOKFILE=.MakeOk
     54if test $coin_has_blas = yes && test "$use_blas" != BUILD; then
     55  rm -f $MAKEOKFILE
     56  AC_MSG_NOTICE([The Blas sources don't need to be compiled])
     57  MAKEOKFILE=
     58else
     59  touch $MAKEOKFILE
     60fi
     61AC_SUBST(MAKEOKFILE)
     62AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     63
    5164AC_CONFIG_FILES([Makefile])
    5265
Note: See TracChangeset for help on using the changeset viewer.