Changeset 228 for ThirdParty/Blas


Ignore:
Timestamp:
Feb 27, 2007 12:26:37 PM (13 years ago)
Author:
andreasw
Message:

compile third party code only if not otherwise available

Location:
ThirdParty/Blas/trunk
Files:
4 edited

Legend:

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

    r49 r228  
    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/trunk/Makefile.in

    r212 r228  
    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/trunk/configure

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

    r168 r228  
    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.