source: ThirdParty/Lapack/trunk/configure @ 2681

Last change on this file since 2681 was 2681, checked in by stefan, 7 years ago

rerun autotools

  • Property svn:executable set to *
File size: 849.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyLapack trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-lapack compile project Lapack with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089
1090  --disable-pkg-config    disable use of pkg-config (if available)
1091  --disable-interpackage-dependencies
1092                          disables deduction of Makefile dependencies from
1093                          package linker flags
1094  --enable-static[=PKGS]
1095                          build static libraries [default=no]
1096  --disable-dependency-tracking  speeds up one-time build
1097  --enable-dependency-tracking   do not reject slow dependency extractors
1098  --enable-maintainer-mode  enable make rules and dependencies not useful
1099                          (and sometimes confusing) to the casual installer
1100  --enable-shared[=PKGS]
1101                          build shared libraries [default=yes]
1102  --enable-fast-install[=PKGS]
1103                          optimize for fast installation [default=yes]
1104  --disable-libtool-lock  avoid locking (might break parallel builds)
1105
1106Optional Packages:
1107  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1110  --with-lapack-checklevel
1111                          specify the sanity check level for project Lapack
1112  --with-blas             specify BLAS library (or BUILD to enforce use of
1113                          ThirdParty/Blas)
1114
1115  --with-coin-instdir     prefix of installation directory for precompiled
1116                          COIN packages
1117  --with-blas-lib linker flags for using package Blas
1118  --with-blas-incdir directory with header files for using package Blas
1119  --with-blas-datadir directory with data files for using package Blas
1120  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1121  --with-pic              try to use only PIC/non-PIC objects [default=use
1122                          both]
1123  --with-tags[=TAGS]
1124                          include additional configurations [automatic]
1125
1126Some influential environment variables:
1127  CDEFS       Additional -D flags to be used when compiling C code.
1128  ADD_CFLAGS  Additional C compiler options
1129  DBG_CFLAGS  Debug C compiler options
1130  OPT_CFLAGS  Optimize C compiler options
1131  CC          C compiler command
1132  CFLAGS      C compiler flags
1133  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1134              nonstandard directory <lib dir>
1135  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1136              headers in a nonstandard directory <include dir>
1137  MPICC       C MPI Compiler
1138  ADD_FFLAGS  Additional Fortran compiler options
1139  DBG_FFLAGS  Debug Fortran compiler options
1140  OPT_FFLAGS  Optimize Fortran compiler options
1141  F77         Fortran 77 compiler command
1142  FFLAGS      Fortran 77 compiler flags
1143  MPIF77      Fortran MPI Compiler
1144  PKG_CONFIG  path to pkg-config utility
1145  DLAMCH_FFLAGS
1146              Fortran compiler options for DLAMCH.F
1147  CPP         C preprocessor
1148  CXX         C++ compiler command
1149  CXXFLAGS    C++ compiler flags
1150  CXXCPP      C++ preprocessor
1151
1152Use these variables to override the choices made by `configure' or to help
1153it to find libraries and programs with nonstandard names/locations.
1154
1155Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1156_ACEOF
1157fi
1158
1159if test "$ac_init_help" = "recursive"; then
1160  # If there are subdirs, report their specific --help.
1161  ac_popdir=`pwd`
1162  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1163    test -d $ac_dir || continue
1164    ac_builddir=.
1165
1166if test "$ac_dir" != .; then
1167  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1168  # A "../" for each directory in $ac_dir_suffix.
1169  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1170else
1171  ac_dir_suffix= ac_top_builddir=
1172fi
1173
1174case $srcdir in
1175  .)  # No --srcdir option.  We are building in place.
1176    ac_srcdir=.
1177    if test -z "$ac_top_builddir"; then
1178       ac_top_srcdir=.
1179    else
1180       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1181    fi ;;
1182  [\\/]* | ?:[\\/]* )  # Absolute path.
1183    ac_srcdir=$srcdir$ac_dir_suffix;
1184    ac_top_srcdir=$srcdir ;;
1185  *) # Relative path.
1186    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1187    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1188esac
1189
1190# Do not use `cd foo && pwd` to compute absolute paths, because
1191# the directories may not exist.
1192case `pwd` in
1193.) ac_abs_builddir="$ac_dir";;
1194*)
1195  case "$ac_dir" in
1196  .) ac_abs_builddir=`pwd`;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1198  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_top_builddir=${ac_top_builddir}.;;
1203*)
1204  case ${ac_top_builddir}. in
1205  .) ac_abs_top_builddir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1207  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_srcdir=$ac_srcdir;;
1212*)
1213  case $ac_srcdir in
1214  .) ac_abs_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1216  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_top_srcdir=$ac_top_srcdir;;
1221*)
1222  case $ac_top_srcdir in
1223  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1225  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1226  esac;;
1227esac
1228
1229    cd $ac_dir
1230    # Check for guested configure; otherwise get Cygnus style configure.
1231    if test -f $ac_srcdir/configure.gnu; then
1232      echo
1233      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1234    elif test -f $ac_srcdir/configure; then
1235      echo
1236      $SHELL $ac_srcdir/configure  --help=recursive
1237    elif test -f $ac_srcdir/configure.ac ||
1238           test -f $ac_srcdir/configure.in; then
1239      echo
1240      $ac_configure --help
1241    else
1242      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1243    fi
1244    cd $ac_popdir
1245  done
1246fi
1247
1248test -n "$ac_init_help" && exit 0
1249if $ac_init_version; then
1250  cat <<\_ACEOF
1251ThirdPartyLapack configure trunk
1252generated by GNU Autoconf 2.59
1253
1254Copyright (C) 2003 Free Software Foundation, Inc.
1255This configure script is free software; the Free Software Foundation
1256gives unlimited permission to copy, distribute and modify it.
1257
1258
1259Copyright 2006 International Business Machines and others.
1260All Rights Reserved.
1261This file is part of the open source package Coin which is distributed
1262under the Eclipse Public License.
1263_ACEOF
1264  exit 0
1265fi
1266exec 5>config.log
1267cat >&5 <<_ACEOF
1268This file contains any messages produced by compilers while
1269running configure, to aid debugging if configure makes a mistake.
1270
1271It was created by ThirdPartyLapack $as_me trunk, which was
1272generated by GNU Autoconf 2.59.  Invocation command line was
1273
1274  $ $0 $@
1275
1276_ACEOF
1277{
1278cat <<_ASUNAME
1279## --------- ##
1280## Platform. ##
1281## --------- ##
1282
1283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1284uname -m = `(uname -m) 2>/dev/null || echo unknown`
1285uname -r = `(uname -r) 2>/dev/null || echo unknown`
1286uname -s = `(uname -s) 2>/dev/null || echo unknown`
1287uname -v = `(uname -v) 2>/dev/null || echo unknown`
1288
1289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1290/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1291
1292/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1293/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1295hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1296/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1297/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1298/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1299
1300_ASUNAME
1301
1302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1303for as_dir in $PATH
1304do
1305  IFS=$as_save_IFS
1306  test -z "$as_dir" && as_dir=.
1307  echo "PATH: $as_dir"
1308done
1309
1310} >&5
1311
1312cat >&5 <<_ACEOF
1313
1314
1315## ----------- ##
1316## Core tests. ##
1317## ----------- ##
1318
1319_ACEOF
1320
1321
1322# Keep a trace of the command line.
1323# Strip out --no-create and --no-recursion so they do not pile up.
1324# Strip out --silent because we don't want to record it for future runs.
1325# Also quote any args containing shell meta-characters.
1326# Make two passes to allow for proper duplicate-argument suppression.
1327ac_configure_args=
1328ac_configure_args0=
1329ac_configure_args1=
1330ac_sep=
1331ac_must_keep_next=false
1332for ac_pass in 1 2
1333do
1334  for ac_arg
1335  do
1336    case $ac_arg in
1337    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339    | -silent | --silent | --silen | --sile | --sil)
1340      continue ;;
1341    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1343    esac
1344    case $ac_pass in
1345    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1346    2)
1347      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1348      if test $ac_must_keep_next = true; then
1349        ac_must_keep_next=false # Got value, back to normal.
1350      else
1351        case $ac_arg in
1352          *=* | --config-cache | -C | -disable-* | --disable-* \
1353          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1354          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1355          | -with-* | --with-* | -without-* | --without-* | --x)
1356            case "$ac_configure_args0 " in
1357              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1358            esac
1359            ;;
1360          -* ) ac_must_keep_next=true ;;
1361        esac
1362      fi
1363      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1364      # Get rid of the leading space.
1365      ac_sep=" "
1366      ;;
1367    esac
1368  done
1369done
1370$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1371$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1372
1373# When interrupted or exit'd, cleanup temporary files, and complete
1374# config.log.  We remove comments because anyway the quotes in there
1375# would cause problems or look ugly.
1376# WARNING: Be sure not to use single quotes in there, as some shells,
1377# such as our DU 5.0 friend, will then `close' the trap.
1378trap 'exit_status=$?
1379  # Save into config.log some information that might help in debugging.
1380  {
1381    echo
1382
1383    cat <<\_ASBOX
1384## ---------------- ##
1385## Cache variables. ##
1386## ---------------- ##
1387_ASBOX
1388    echo
1389    # The following way of writing the cache mishandles newlines in values,
1390{
1391  (set) 2>&1 |
1392    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1393    *ac_space=\ *)
1394      sed -n \
1395        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1396          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1397      ;;
1398    *)
1399      sed -n \
1400        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1401      ;;
1402    esac;
1403}
1404    echo
1405
1406    cat <<\_ASBOX
1407## ----------------- ##
1408## Output variables. ##
1409## ----------------- ##
1410_ASBOX
1411    echo
1412    for ac_var in $ac_subst_vars
1413    do
1414      eval ac_val=$`echo $ac_var`
1415      echo "$ac_var='"'"'$ac_val'"'"'"
1416    done | sort
1417    echo
1418
1419    if test -n "$ac_subst_files"; then
1420      cat <<\_ASBOX
1421## ------------- ##
1422## Output files. ##
1423## ------------- ##
1424_ASBOX
1425      echo
1426      for ac_var in $ac_subst_files
1427      do
1428        eval ac_val=$`echo $ac_var`
1429        echo "$ac_var='"'"'$ac_val'"'"'"
1430      done | sort
1431      echo
1432    fi
1433
1434    if test -s confdefs.h; then
1435      cat <<\_ASBOX
1436## ----------- ##
1437## confdefs.h. ##
1438## ----------- ##
1439_ASBOX
1440      echo
1441      sed "/^$/d" confdefs.h | sort
1442      echo
1443    fi
1444    test "$ac_signal" != 0 &&
1445      echo "$as_me: caught signal $ac_signal"
1446    echo "$as_me: exit $exit_status"
1447  } >&5
1448  rm -f core *.core &&
1449  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1450    exit $exit_status
1451     ' 0
1452for ac_signal in 1 2 13 15; do
1453  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1454done
1455ac_signal=0
1456
1457# confdefs.h avoids OS command line length limits that DEFS can exceed.
1458rm -rf conftest* confdefs.h
1459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1460echo >confdefs.h
1461
1462# Predefined preprocessor variables.
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_NAME "$PACKAGE_NAME"
1466_ACEOF
1467
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_VERSION "$PACKAGE_VERSION"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_STRING "$PACKAGE_STRING"
1481_ACEOF
1482
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1486_ACEOF
1487
1488
1489# Let the site file select an alternate cache file if it wants to.
1490# Prefer explicitly selected file to automatically selected ones.
1491if test -z "$CONFIG_SITE"; then
1492  if test "x$prefix" != xNONE; then
1493    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1494  else
1495    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1496  fi
1497fi
1498for ac_site_file in $CONFIG_SITE; do
1499  if test -r "$ac_site_file"; then
1500    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1501echo "$as_me: loading site script $ac_site_file" >&6;}
1502    sed 's/^/| /' "$ac_site_file" >&5
1503    . "$ac_site_file"
1504  fi
1505done
1506
1507if test -r "$cache_file"; then
1508  # Some versions of bash will fail to source /dev/null (special
1509  # files actually), so we avoid doing that.
1510  if test -f "$cache_file"; then
1511    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1512echo "$as_me: loading cache $cache_file" >&6;}
1513    case $cache_file in
1514      [\\/]* | ?:[\\/]* ) . $cache_file;;
1515      *)                      . ./$cache_file;;
1516    esac
1517  fi
1518else
1519  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1520echo "$as_me: creating cache $cache_file" >&6;}
1521  >$cache_file
1522fi
1523
1524# Check that the precious variables saved in the cache have kept the same
1525# value.
1526ac_cache_corrupted=false
1527for ac_var in `(set) 2>&1 |
1528               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1529  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1530  eval ac_new_set=\$ac_env_${ac_var}_set
1531  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1532  eval ac_new_val="\$ac_env_${ac_var}_value"
1533  case $ac_old_set,$ac_new_set in
1534    set,)
1535      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1536echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1537      ac_cache_corrupted=: ;;
1538    ,set)
1539      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1540echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1541      ac_cache_corrupted=: ;;
1542    ,);;
1543    *)
1544      if test "x$ac_old_val" != "x$ac_new_val"; then
1545        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1546echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1547        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1548echo "$as_me:   former value:  $ac_old_val" >&2;}
1549        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1550echo "$as_me:   current value: $ac_new_val" >&2;}
1551        ac_cache_corrupted=:
1552      fi;;
1553  esac
1554  # Pass precious variables to config.status.
1555  if test "$ac_new_set" = set; then
1556    case $ac_new_val in
1557    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1558      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1559    *) ac_arg=$ac_var=$ac_new_val ;;
1560    esac
1561    case " $ac_configure_args " in
1562      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1563      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1564    esac
1565  fi
1566done
1567if $ac_cache_corrupted; then
1568  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1569echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1570  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1571echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1572   { (exit 1); exit 1; }; }
1573fi
1574
1575ac_ext=c
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1579ac_compiler_gnu=$ac_cv_c_compiler_gnu
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610# List one file in the package so that the configure script can test
1611# whether the package is actually there
1612
1613
1614# Where should everything be installed by default?  Here, we want it
1615# to be installed directly in 'bin', 'lib', 'include' subdirectories
1616# of the directory where configure is run.  The default would be
1617# /usr/local.
1618
1619
1620
1621# As backup, we make sure we don't loose an FLIBS if it has been set
1622# by the user
1623save_FLIBS="$FLIBS"
1624
1625# A useful makefile conditional that is always false
1626
1627
1628if false; then
1629  ALWAYS_FALSE_TRUE=
1630  ALWAYS_FALSE_FALSE='#'
1631else
1632  ALWAYS_FALSE_TRUE='#'
1633  ALWAYS_FALSE_FALSE=
1634fi
1635
1636
1637# We set the following variable so that we know later in AC_COIN_FINALIZE
1638# that we are in a project main directory
1639coin_projectdir=yes
1640
1641# Set the project's version numbers
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define LAPACK_VERSION "$PACKAGE_VERSION"
1646_ACEOF
1647
1648
1649  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1650  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1651  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1652  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1653  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1654  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1655
1656cat >>confdefs.h <<_ACEOF
1657#define LAPACK_VERSION_MAJOR $coin_majorver
1658_ACEOF
1659
1660
1661cat >>confdefs.h <<_ACEOF
1662#define LAPACK_VERSION_MINOR $coin_minorver
1663_ACEOF
1664
1665
1666cat >>confdefs.h <<_ACEOF
1667#define LAPACK_VERSION_RELEASE $coin_releasever
1668_ACEOF
1669
1670
1671  # We use the following variable to have a string with the upper case
1672  # version of the project name
1673  COIN_PRJCT=LAPACK
1674
1675  # Set the project's SVN revision number. The complicated sed expression
1676  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1677  # as a single number.
1678  # Extract the first word of "svnversion", so it can be a program name with args.
1679set dummy svnversion; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_have_svnversion+set}" = set; then
1683  echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685  if test -n "$have_svnversion"; then
1686  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691  IFS=$as_save_IFS
1692  test -z "$as_dir" && as_dir=.
1693  for ac_exec_ext in '' $ac_executable_extensions; do
1694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695    ac_cv_prog_have_svnversion="yes"
1696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697    break 2
1698  fi
1699done
1700done
1701
1702  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1703fi
1704fi
1705have_svnversion=$ac_cv_prog_have_svnversion
1706if test -n "$have_svnversion"; then
1707  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1708echo "${ECHO_T}$have_svnversion" >&6
1709else
1710  echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714  if test "x$have_svnversion" = xyes; then
1715
1716    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1717    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1718      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1719
1720cat >>confdefs.h <<_ACEOF
1721#define LAPACK_SVN_REV $LAPACK_SVN_REV
1722_ACEOF
1723
1724    fi
1725  fi
1726
1727
1728
1729# Capture libtool library version, if given.
1730
1731
1732
1733
1734#############################################################################
1735#                         Standard build tool stuff                         #
1736#############################################################################
1737
1738# Get the system type
1739ac_aux_dir=
1740for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1741  if test -f $ac_dir/install-sh; then
1742    ac_aux_dir=$ac_dir
1743    ac_install_sh="$ac_aux_dir/install-sh -c"
1744    break
1745  elif test -f $ac_dir/install.sh; then
1746    ac_aux_dir=$ac_dir
1747    ac_install_sh="$ac_aux_dir/install.sh -c"
1748    break
1749  elif test -f $ac_dir/shtool; then
1750    ac_aux_dir=$ac_dir
1751    ac_install_sh="$ac_aux_dir/shtool install -c"
1752    break
1753  fi
1754done
1755if test -z "$ac_aux_dir"; then
1756  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1757echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1758   { (exit 1); exit 1; }; }
1759fi
1760ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1761ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1762ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777  ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781   { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785   { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796
1797#turn off warnings and pedantic mode since they could make trouble on some platforms,
1798#and we couldn't fix them anyway
1799coin_skip_warn_fflags=yes
1800
1801# Check if user wants to produce debugging code
1802
1803echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1804echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1805
1806# Check whether --enable-debug or --disable-debug was given.
1807if test "${enable_debug+set}" = set; then
1808  enableval="$enable_debug"
1809  case "${enableval}" in
1810   yes) coin_debug_compile=true
1811        if test "${enable_shared+set}" = set; then :; else
1812          enable_shared=no
1813        fi
1814        ;;
1815   no)  coin_debug_compile=false
1816        ;;
1817   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1819   { (exit 1); exit 1; }; }
1820        ;;
1821esac
1822else
1823  coin_debug_compile=false
1824fi;
1825
1826# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1827if test "${enable_debug_lapack+set}" = set; then
1828  enableval="$enable_debug_lapack"
1829  case "${enableval}" in
1830    yes) coin_debug_compile=true
1831         ;;
1832    no)  coin_debug_compile=false
1833         ;;
1834    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1835echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1836   { (exit 1); exit 1; }; }
1837         ;;
1838 esac
1839else
1840  :
1841fi;
1842
1843 # m4_ifvaln([Lapack],
1844
1845if test $coin_debug_compile = true; then
1846  echo "$as_me:$LINENO: result: yes" >&5
1847echo "${ECHO_T}yes" >&6
1848else
1849  echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853
1854# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1855if test "${with_lapack_verbosity+set}" = set; then
1856  withval="$with_lapack_verbosity"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_lapack_verbosity=$withval
1861else
1862  coin_lapack_verbosity=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1867_ACEOF
1868
1869
1870
1871# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1872if test "${with_lapack_checklevel+set}" = set; then
1873  withval="$with_lapack_checklevel"
1874  if test "$withval" = yes; then
1875                withval=1
1876              fi
1877              coin_lapack_checklevel=$withval
1878else
1879  coin_lapack_checklevel=0
1880fi;
1881
1882cat >>confdefs.h <<_ACEOF
1883#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1884_ACEOF
1885
1886
1887 # m4_ifvaln([Lapack],
1888
1889
1890
1891# Get the name of the Fortran compiler and appropriate compiler options
1892case $build in
1893  *-mingw*)
1894    if test "${LD+set}" = set; then :; else
1895      LD=link
1896    fi
1897    ;;
1898 esac
1899 case $enable_doscompile in
1900   msvc)
1901     if test "x${LD+set}" = xset; then :; else
1902       LD=link
1903     fi
1904     ;;
1905 esac
1906
1907
1908 # Check whether --enable-doscompile or --disable-doscompile was given.
1909if test "${enable_doscompile+set}" = set; then
1910  enableval="$enable_doscompile"
1911  if test "$enable_doscompile" != no; then
1912     case $build in
1913       *-cygwin* | *-mingw*) ;;
1914       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1915echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1916   { (exit 1); exit 1; }; } ;;
1917     esac
1918   fi
1919else
1920  enable_doscompile=no
1921fi;
1922 case "$enable_doscompile" in
1923   mingw)
1924     case $build in
1925       *-mingw*) enable_doscompile=no ;;
1926     esac
1927     ;;
1928   msvc|no) ;;
1929   yes) enable_doscompile=mingw ;;
1930   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1931                    Try configure --help=recursive." >&5
1932echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1933                    Try configure --help=recursive." >&2;}
1934   { (exit 1); exit 1; }; }
1935      ;;
1936  esac
1937  if test "$enable_doscompile" != no ; then
1938    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1939echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1940  fi
1941
1942
1943# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1944if test "${enable_static_standardlibs+set}" = set; then
1945  enableval="$enable_static_standardlibs"
1946  case "$enableval" in
1947     no | yes | auto ) ;;
1948     *)
1949       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1950echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1951   { (exit 1); exit 1; }; } ;;
1952   esac
1953   use_static_standardlibs=$enableval
1954else
1955  use_static_standardlibs=no
1956fi;
1957
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969# For consistency, we set the C compiler to the same value of the C++
1970# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1971if test x"$CXX" != x; then
1972  case "$CXX" in
1973    clang* ) ;;
1974    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1975      if test x"$CC" = x; then
1976        CC="$CXX"
1977        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1978echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1979      fi
1980      ;;
1981  esac
1982fi
1983
1984
1985
1986
1987
1988
1989coin_has_cc=yes
1990
1991save_cflags="$CFLAGS"
1992
1993# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1994# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1995# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1996# compiler. In this case, put cc after gcc.
1997
1998case $build in
1999  *-cygwin* | *-mingw*)
2000             if test "$enable_doscompile" = msvc ; then
2001               comps="icl cl"
2002             else
2003               comps="gcc cl"
2004             fi ;;
2005  *-*-solaris*)
2006             # Extract the first word of "cc", so it can be a program name with args.
2007set dummy cc; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$sol_cc_compiler"; then
2014  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2015else
2016  ac_prog_rejected=no
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  test -z "$as_dir" && as_dir=.
2022  for ac_exec_ext in '' $ac_executable_extensions; do
2023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2025       ac_prog_rejected=yes
2026       continue
2027     fi
2028    ac_cv_prog_sol_cc_compiler="cc"
2029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030    break 2
2031  fi
2032done
2033done
2034
2035if test $ac_prog_rejected = yes; then
2036  # We found a bogon in the path, so make sure we never use it.
2037  set dummy $ac_cv_prog_sol_cc_compiler
2038  shift
2039  if test $# != 0; then
2040    # We chose a different compiler from the bogus one.
2041    # However, it has the same basename, so the bogon will be chosen
2042    # first if we set sol_cc_compiler to just the basename; use the full file name.
2043    shift
2044    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2045  fi
2046fi
2047fi
2048fi
2049sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2050if test -n "$sol_cc_compiler"; then
2051  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2052echo "${ECHO_T}$sol_cc_compiler" >&6
2053else
2054  echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
2058             if test "$sol_cc_compiler" = "cc" ; then
2059               comps="cc xlc gcc pgcc icc"
2060             else
2061               comps="xlc gcc pgcc icc cc"
2062             fi
2063             ;;
2064  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2065  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2066  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2067esac
2068
2069# We delete the cached value, since the test might not have been
2070# performed with our choice of compilers earlier
2071$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2072# AC_MSG_NOTICE([C compiler candidates: $comps])
2073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078if test -n "$ac_tool_prefix"; then
2079  for ac_prog in $comps
2080  do
2081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$CC"; then
2089  ac_cv_prog_CC="$CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107CC=$ac_cv_prog_CC
2108if test -n "$CC"; then
2109  echo "$as_me:$LINENO: result: $CC" >&5
2110echo "${ECHO_T}$CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116    test -n "$CC" && break
2117  done
2118fi
2119if test -z "$CC"; then
2120  ac_ct_CC=$CC
2121  for ac_prog in $comps
2122do
2123  # Extract the first word of "$ac_prog", so it can be a program name with args.
2124set dummy $ac_prog; ac_word=$2
2125echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  if test -n "$ac_ct_CC"; then
2131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  for ac_exec_ext in '' $ac_executable_extensions; do
2139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140    ac_cv_prog_ac_ct_CC="$ac_prog"
2141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142    break 2
2143  fi
2144done
2145done
2146
2147fi
2148fi
2149ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150if test -n "$ac_ct_CC"; then
2151  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152echo "${ECHO_T}$ac_ct_CC" >&6
2153else
2154  echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6
2156fi
2157
2158  test -n "$ac_ct_CC" && break
2159done
2160
2161  CC=$ac_ct_CC
2162fi
2163
2164
2165test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166See \`config.log' for more details." >&5
2167echo "$as_me: error: no acceptable C compiler found in \$PATH
2168See \`config.log' for more details." >&2;}
2169   { (exit 1); exit 1; }; }
2170
2171# Provide some information about the compiler.
2172echo "$as_me:$LINENO:" \
2173     "checking for C compiler version" >&5
2174ac_compiler=`set X $ac_compile; echo $2`
2175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176  (eval $ac_compiler --version </dev/null >&5) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }
2180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181  (eval $ac_compiler -v </dev/null >&5) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }
2185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186  (eval $ac_compiler -V </dev/null >&5) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }
2190
2191cat >conftest.$ac_ext <<_ACEOF
2192/* confdefs.h.  */
2193_ACEOF
2194cat confdefs.h >>conftest.$ac_ext
2195cat >>conftest.$ac_ext <<_ACEOF
2196/* end confdefs.h.  */
2197
2198int
2199main ()
2200{
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206ac_clean_files_save=$ac_clean_files
2207ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208# Try to create an executable without -o first, disregard a.out.
2209# It will help us diagnose broken compilers, and finding out an intuition
2210# of exeext.
2211echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215  (eval $ac_link_default) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; then
2219  # Find the output, starting from the most likely.  This scheme is
2220# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221# resort.
2222
2223# Be careful to initialize this variable, since it used to be cached.
2224# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225ac_cv_exeext=
2226# b.out is created by i960 compilers.
2227for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2228do
2229  test -f "$ac_file" || continue
2230  case $ac_file in
2231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232        ;;
2233    conftest.$ac_ext )
2234        # This is the source file.
2235        ;;
2236    [ab].out )
2237        # We found the default executable, but exeext='' is most
2238        # certainly right.
2239        break;;
2240    *.* )
2241        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242        # FIXME: I believe we export ac_cv_exeext for Libtool,
2243        # but it would be cool to find out if it's true.  Does anybody
2244        # maintain Libtool? --akim.
2245        export ac_cv_exeext
2246        break;;
2247    * )
2248        break;;
2249  esac
2250done
2251else
2252  echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259   { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263echo "$as_me:$LINENO: result: $ac_file" >&5
2264echo "${ECHO_T}$ac_file" >&6
2265
2266# Check the compiler produces executables we can run.  If not, either
2267# the compiler is broken, or we cross compile.
2268echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271# If not cross compiling, check that we can run a simple program.
2272if test "$cross_compiling" != yes; then
2273  if { ac_try='./$ac_file'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279    cross_compiling=no
2280  else
2281    if test "$cross_compiling" = maybe; then
2282        cross_compiling=yes
2283    else
2284        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285If you meant to cross compile, use \`--host'.
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot run C compiled programs.
2288If you meant to cross compile, use \`--host'.
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291    fi
2292  fi
2293fi
2294echo "$as_me:$LINENO: result: yes" >&5
2295echo "${ECHO_T}yes" >&6
2296
2297rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298ac_clean_files=$ac_clean_files_save
2299# Check the compiler produces executables we can run.  If not, either
2300# the compiler is broken, or we cross compile.
2301echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304echo "${ECHO_T}$cross_compiling" >&6
2305
2306echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309  (eval $ac_link) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; then
2313  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2315# work properly (i.e., refer to `conftest.exe'), while it won't with
2316# `rm'.
2317for ac_file in conftest.exe conftest conftest.*; do
2318  test -f "$ac_file" || continue
2319  case $ac_file in
2320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322          export ac_cv_exeext
2323          break;;
2324    * ) break;;
2325  esac
2326done
2327else
2328  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest$ac_cv_exeext
2336echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337echo "${ECHO_T}$ac_cv_exeext" >&6
2338
2339rm -f conftest.$ac_ext
2340EXEEXT=$ac_cv_exeext
2341ac_exeext=$EXEEXT
2342echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344if test "${ac_cv_objext+set}" = set; then
2345  echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347  cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.o conftest.obj
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; then
2368  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369  case $ac_file in
2370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2371    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372       break;;
2373  esac
2374done
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380See \`config.log' for more details." >&5
2381echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382See \`config.log' for more details." >&2;}
2383   { (exit 1); exit 1; }; }
2384fi
2385
2386rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389echo "${ECHO_T}$ac_cv_objext" >&6
2390OBJEXT=$ac_cv_objext
2391ac_objext=$OBJEXT
2392echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403
2404int
2405main ()
2406{
2407#ifndef __GNUC__
2408       choke me
2409#endif
2410
2411  ;
2412  return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_compiler_gnu=yes
2438else
2439  echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442ac_compiler_gnu=no
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450GCC=`test $ac_compiler_gnu = yes && echo yes`
2451ac_test_CFLAGS=${CFLAGS+set}
2452ac_save_CFLAGS=$CFLAGS
2453CFLAGS="-g"
2454echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456if test "${ac_cv_prog_cc_g+set}" = set; then
2457  echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459  cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h.  */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h.  */
2465
2466int
2467main ()
2468{
2469
2470  ;
2471  return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476  (eval $ac_compile) 2>conftest.er1
2477  ac_status=$?
2478  grep -v '^ *+' conftest.er1 >conftest.err
2479  rm -f conftest.er1
2480  cat conftest.err >&5
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); } &&
2483         { ac_try='test -z "$ac_c_werror_flag"
2484                         || test ! -s conftest.err'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; } &&
2490         { ac_try='test -s conftest.$ac_objext'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; }; then
2496  ac_cv_prog_cc_g=yes
2497else
2498  echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501ac_cv_prog_cc_g=no
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504fi
2505echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507if test "$ac_test_CFLAGS" = set; then
2508  CFLAGS=$ac_save_CFLAGS
2509elif test $ac_cv_prog_cc_g = yes; then
2510  if test "$GCC" = yes; then
2511    CFLAGS="-g -O2"
2512  else
2513    CFLAGS="-g"
2514  fi
2515else
2516  if test "$GCC" = yes; then
2517    CFLAGS="-O2"
2518  else
2519    CFLAGS=
2520  fi
2521fi
2522echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525  echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527  ac_cv_prog_cc_stdc=no
2528ac_save_CC=$CC
2529cat >conftest.$ac_ext <<_ACEOF
2530/* confdefs.h.  */
2531_ACEOF
2532cat confdefs.h >>conftest.$ac_ext
2533cat >>conftest.$ac_ext <<_ACEOF
2534/* end confdefs.h.  */
2535#include <stdarg.h>
2536#include <stdio.h>
2537#include <sys/types.h>
2538#include <sys/stat.h>
2539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2540struct buf { int x; };
2541FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542static char *e (p, i)
2543     char **p;
2544     int i;
2545{
2546  return p[i];
2547}
2548static char *f (char * (*g) (char **, int), char **p, ...)
2549{
2550  char *s;
2551  va_list v;
2552  va_start (v,p);
2553  s = g (p, va_arg (v,int));
2554  va_end (v);
2555  return s;
2556}
2557
2558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2559   function prototypes and stuff, but not '\xHH' hex character constants.
2560   These don't provoke an error unfortunately, instead are silently treated
2561   as 'x'.  The following induces an error, until -std1 is added to get
2562   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2563   array size at least.  It's necessary to write '\x00'==0 to get something
2564   that's true only with -std1.  */
2565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2566
2567int test (int i, double x);
2568struct s1 {int (*f) (int a);};
2569struct s2 {int (*f) (double a);};
2570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2571int argc;
2572char **argv;
2573int
2574main ()
2575{
2576return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581# Don't try gcc -ansi; that turns off useful extensions and
2582# breaks some systems' header files.
2583# AIX                   -qlanglvl=ansi
2584# Ultrix and OSF/1      -std1
2585# HP-UX 10.20 and later -Ae
2586# HP-UX older versions  -Aa -D_HPUX_SOURCE
2587# SVR4                  -Xc -D__EXTENSIONS__
2588for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2589do
2590  CC="$ac_save_CC $ac_arg"
2591  rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593  (eval $ac_compile) 2>conftest.er1
2594  ac_status=$?
2595  grep -v '^ *+' conftest.er1 >conftest.err
2596  rm -f conftest.er1
2597  cat conftest.err >&5
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); } &&
2600         { ac_try='test -z "$ac_c_werror_flag"
2601                         || test ! -s conftest.err'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; } &&
2607         { ac_try='test -s conftest.$ac_objext'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; }; then
2613  ac_cv_prog_cc_stdc=$ac_arg
2614break
2615else
2616  echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619fi
2620rm -f conftest.err conftest.$ac_objext
2621done
2622rm -f conftest.$ac_ext conftest.$ac_objext
2623CC=$ac_save_CC
2624
2625fi
2626
2627case "x$ac_cv_prog_cc_stdc" in
2628  x|xno)
2629    echo "$as_me:$LINENO: result: none needed" >&5
2630echo "${ECHO_T}none needed" >&6 ;;
2631  *)
2632    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634    CC="$CC $ac_cv_prog_cc_stdc" ;;
2635esac
2636
2637# Some people use a C++ compiler to compile C.  Since we use `exit',
2638# in C++ we need to declare it.  In case someone uses the same compiler
2639# for both compiling C and C++ we need to have the C++ compiler decide
2640# the declaration of exit, since it's the most demanding environment.
2641cat >conftest.$ac_ext <<_ACEOF
2642#ifndef __cplusplus
2643  choke me
2644#endif
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>conftest.er1
2649  ac_status=$?
2650  grep -v '^ *+' conftest.er1 >conftest.err
2651  rm -f conftest.er1
2652  cat conftest.err >&5
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655         { ac_try='test -z "$ac_c_werror_flag"
2656                         || test ! -s conftest.err'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; } &&
2662         { ac_try='test -s conftest.$ac_objext'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  for ac_declaration in \
2669   '' \
2670   'extern "C" void std::exit (int) throw (); using std::exit;' \
2671   'extern "C" void std::exit (int); using std::exit;' \
2672   'extern "C" void exit (int) throw ();' \
2673   'extern "C" void exit (int);' \
2674   'void exit (int);'
2675do
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682$ac_declaration
2683#include <stdlib.h>
2684int
2685main ()
2686{
2687exit (42);
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701         { ac_try='test -z "$ac_c_werror_flag"
2702                         || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708         { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  :
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719continue
2720fi
2721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728$ac_declaration
2729int
2730main ()
2731{
2732exit (42);
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739  (eval $ac_compile) 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746         { ac_try='test -z "$ac_c_werror_flag"
2747                         || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753         { ac_try='test -s conftest.$ac_objext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  break
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766done
2767rm -f conftest*
2768if test -n "$ac_declaration"; then
2769  echo '#ifdef __cplusplus' >>confdefs.h
2770  echo $ac_declaration      >>confdefs.h
2771  echo '#endif'             >>confdefs.h
2772fi
2773
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778fi
2779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786if test -z "$CC" ; then
2787  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2788echo "$as_me: error: Failed to find a C compiler!" >&2;}
2789   { (exit 1); exit 1; }; }
2790fi
2791# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2792case "$CC" in
2793  clang* ) ;;
2794  cl* | */cl* | CL* | */CL* )
2795    if test "$ac_cv_prog_cc_g" = yes ; then
2796      ac_cv_prog_cc_g=no
2797      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2798echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2799    fi ;;
2800esac
2801CFLAGS="$save_cflags"
2802
2803# add automake conditional so we can recognize cl compiler in makefile
2804coin_cc_is_cl=false
2805case "$CC" in
2806  clang* ) ;;
2807  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2808    coin_cc_is_cl=true
2809    ;;
2810esac
2811
2812
2813if test $coin_cc_is_cl = true; then
2814  COIN_CC_IS_CL_TRUE=
2815  COIN_CC_IS_CL_FALSE='#'
2816else
2817  COIN_CC_IS_CL_TRUE='#'
2818  COIN_CC_IS_CL_FALSE=
2819fi
2820
2821
2822# Check if a project specific CFLAGS variable has been set
2823if test x$COIN_PRJCT != x; then
2824  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2825  if test x$coin_tmp = xset; then
2826    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2827  fi
2828fi
2829
2830if test x"$CFLAGS" = x; then
2831
2832  coin_add_cflags=
2833  coin_opt_cflags=
2834  coin_dbg_cflags=
2835  coin_warn_cflags=
2836
2837  if test "$GCC" = "yes"; then
2838    case "$CC" in
2839      icc* | */icc*)
2840        ;;
2841      *)
2842        coin_opt_cflags="-O3"
2843        coin_add_cflags="-pipe"
2844        coin_dbg_cflags="-g -O0"
2845        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2846        case $build in
2847          *-darwin*)
2848            ;;
2849          *)
2850            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2851            ;;
2852        esac
2853        case $enable_doscompile in
2854          mingw)
2855            CFLAGS="-mno-cygwin"
2856            cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h.  */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866int i=0; i++;
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext conftest$ac_exeext
2872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2873  (eval $ac_link) 2>conftest.er1
2874  ac_status=$?
2875  grep -v '^ *+' conftest.er1 >conftest.err
2876  rm -f conftest.er1
2877  cat conftest.err >&5
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); } &&
2880         { ac_try='test -z "$ac_c_werror_flag"
2881                         || test ! -s conftest.err'
2882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883  (eval $ac_try) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }; } &&
2887         { ac_try='test -s conftest$ac_exeext'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; }; then
2893  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898fi
2899rm -f conftest.err conftest.$ac_objext \
2900      conftest$ac_exeext conftest.$ac_ext
2901            CFLAGS=
2902          ;;
2903        esac
2904    esac
2905  fi
2906  if test -z "$coin_opt_cflags"; then
2907    case $build in
2908      *-cygwin* | *-mingw*)
2909        case "$CC" in
2910          clang* ) ;;
2911          cl* | */cl* | CL* | */CL*)
2912            coin_opt_cflags='-MT -O2'
2913            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2914            coin_dbg_cflags='-MTd'
2915            ;;
2916          icl* | */icl* | ICL* | */ICL*)
2917            coin_opt_cflags='-MT -Ox'
2918            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2919            coin_dbg_cflags='-MTd -debug'
2920            ;;
2921        esac
2922        ;;
2923      *-linux-*)
2924        case "$CC" in
2925          icc* | */icc*)
2926            coin_opt_cflags="-O3 -ip -mp1"
2927            coin_add_cflags=""
2928            coin_dbg_cflags="-g"
2929            # Check if -i_dynamic is necessary (for new glibc library)
2930            CFLAGS=
2931            cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h.  */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h.  */
2937
2938int
2939main ()
2940{
2941int i=0; i++;
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext conftest$ac_exeext
2947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2948  (eval $ac_link) 2>conftest.er1
2949  ac_status=$?
2950  grep -v '^ *+' conftest.er1 >conftest.err
2951  rm -f conftest.er1
2952  cat conftest.err >&5
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); } &&
2955         { ac_try='test -z "$ac_c_werror_flag"
2956                         || test ! -s conftest.err'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; } &&
2962         { ac_try='test -s conftest$ac_exeext'
2963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964  (eval $ac_try) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; }; then
2968  :
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973coin_add_cflags="-i_dynamic $coin_add_cflags"
2974fi
2975rm -f conftest.err conftest.$ac_objext \
2976      conftest$ac_exeext conftest.$ac_ext
2977            ;;
2978          pgcc* | */pgcc*)
2979            coin_opt_cflags="-fast"
2980            coin_add_cflags="-Kieee -pc 64"
2981            coin_dbg_cflags="-g"
2982            ;;
2983        esac
2984        ;;
2985      *-ibm-*)
2986        case "$CC" in
2987          xlc* | */xlc* | mpxlc* | */mpxlc*)
2988            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2989            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2990            coin_dbg_cflags="-g"
2991          ;;
2992        esac
2993        ;;
2994      *-hp-*)
2995        coin_opt_cflags="-O"
2996        coin_add_cflags="-Ae"
2997        coin_dbg_cflags="-g"
2998        ;;
2999      *-*-solaris*)
3000        coin_opt_cflags="-xO4"
3001        coin_dbg_cflags="-g"
3002        ;;
3003      *-sgi-*)
3004        coin_opt_cflags="-O -OPT:Olimit=0"
3005        coin_dbg_cflags="-g"
3006        ;;
3007    esac
3008  fi
3009
3010  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3011    coin_dbg_cflags="-g"
3012  fi
3013
3014  if test -z "$coin_opt_cflags"; then
3015    # Try if -O option works if nothing else is set
3016    CFLAGS="-O"
3017    cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h.  */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h.  */
3023
3024int
3025main ()
3026{
3027int i=0; i++;
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032rm -f conftest.$ac_objext conftest$ac_exeext
3033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3034  (eval $ac_link) 2>conftest.er1
3035  ac_status=$?
3036  grep -v '^ *+' conftest.er1 >conftest.err
3037  rm -f conftest.er1
3038  cat conftest.err >&5
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); } &&
3041         { ac_try='test -z "$ac_c_werror_flag"
3042                         || test ! -s conftest.err'
3043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044  (eval $ac_try) 2>&5
3045  ac_status=$?
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); }; } &&
3048         { ac_try='test -s conftest$ac_exeext'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; }; then
3054  coin_opt_cflags="-O"
3055else
3056  echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059fi
3060rm -f conftest.err conftest.$ac_objext \
3061      conftest$ac_exeext conftest.$ac_ext
3062  fi
3063
3064  # if PM doesn't want the warning messages, take them out
3065  if test x"$coin_skip_warn_cflags" = xyes; then
3066    coin_warn_cflags=
3067  fi
3068
3069  if test x${DBG_CFLAGS+set} != xset; then
3070    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3071  fi
3072  if test x${OPT_CFLAGS+set} != xset; then
3073    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3074  fi
3075
3076  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3077  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3078
3079  if test "$coin_debug_compile" = "true"; then
3080    CFLAGS="$DBG_CFLAGS"
3081  else
3082    CFLAGS="$OPT_CFLAGS"
3083  fi
3084
3085else
3086  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3087  if test x${DBG_CFLAGS+set} != xset; then
3088    DBG_CFLAGS="$CFLAGS"
3089  fi
3090  if test x${OPT_CFLAGS+set} != xset; then
3091    OPT_CFLAGS="$CFLAGS"
3092  fi
3093fi
3094
3095# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3096
3097case "$CFLAGS" in
3098  *-mno-cygwin*)
3099    if test x${CPPFLAGS+set} != xset ; then
3100      CPPFLAGS="-mno-cygwin"
3101    else
3102      case "$CPPFLAGS" in
3103        *-mno-cygwin*)
3104          ;;
3105        *)
3106          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3107          ;;
3108      esac
3109    fi ;;
3110esac
3111
3112# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3113if test x$COIN_PRJCT != x; then
3114  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3115fi
3116
3117# Try if CFLAGS works
3118save_CFLAGS="$CFLAGS"
3119cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h.  */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h.  */
3125
3126int
3127main ()
3128{
3129int i=0; i++;
3130  ;
3131  return 0;
3132}
3133_ACEOF
3134rm -f conftest.$ac_objext conftest$ac_exeext
3135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3136  (eval $ac_link) 2>conftest.er1
3137  ac_status=$?
3138  grep -v '^ *+' conftest.er1 >conftest.err
3139  rm -f conftest.er1
3140  cat conftest.err >&5
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); } &&
3143         { ac_try='test -z "$ac_c_werror_flag"
3144                         || test ! -s conftest.err'
3145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146  (eval $ac_try) 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }; } &&
3150         { ac_try='test -s conftest$ac_exeext'
3151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152  (eval $ac_try) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; }; then
3156  :
3157else
3158  echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161CFLAGS=
3162fi
3163rm -f conftest.err conftest.$ac_objext \
3164      conftest$ac_exeext conftest.$ac_ext
3165if test -z "$CFLAGS"; then
3166  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3167echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3168  CFLAGS='-O'
3169  cat >conftest.$ac_ext <<_ACEOF
3170/* confdefs.h.  */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h.  */
3175
3176int
3177main ()
3178{
3179int i=0; i++;
3180  ;
3181  return 0;
3182}
3183_ACEOF
3184rm -f conftest.$ac_objext conftest$ac_exeext
3185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3186  (eval $ac_link) 2>conftest.er1
3187  ac_status=$?
3188  grep -v '^ *+' conftest.er1 >conftest.err
3189  rm -f conftest.er1
3190  cat conftest.err >&5
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); } &&
3193         { ac_try='test -z "$ac_c_werror_flag"
3194                         || test ! -s conftest.err'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; } &&
3200         { ac_try='test -s conftest$ac_exeext'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; }; then
3206  :
3207else
3208  echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211CFLAGS=
3212fi
3213rm -f conftest.err conftest.$ac_objext \
3214      conftest$ac_exeext conftest.$ac_ext
3215  if test -z "$CFLAGS"; then
3216    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3217echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3218  fi
3219fi
3220
3221{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3222echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3223
3224
3225if test x"$MPICC" = x; then :; else
3226  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3227echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3228  CC="$MPICC"
3229fi
3230
3231# Correct the LD variable if we are using the MS or Intel-windows compiler
3232case "$CC" in
3233  clang* ) ;;
3234  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3235    case $build in
3236  *-mingw*)
3237    if test "${LD+set}" = set; then :; else
3238      LD=link
3239    fi
3240    ;;
3241 esac
3242 case $enable_doscompile in
3243   msvc)
3244     if test "x${LD+set}" = xset; then :; else
3245       LD=link
3246     fi
3247     ;;
3248 esac
3249
3250    ;;
3251esac
3252
3253# check whether to add flags for static linking against standard libraries to LDFLAGS
3254if test x$use_static_standardlibs != xno ; then
3255  case $build in
3256    *-mingw*)
3257      static_standardlib_flag=-static
3258      ;;
3259    *)
3260      static_standardlib_flag=-static-libgcc
3261      ;;
3262  esac
3263  case " $LDFLAGS " in
3264    *" $static_standardlib_flag "* ) ;;
3265    *)
3266    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3267echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3268    coin_save_LDFLAGS="$LDFLAGS"
3269    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3270    cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h.  */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280int i=0;
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285rm -f conftest.$ac_objext conftest$ac_exeext
3286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3287  (eval $ac_link) 2>conftest.er1
3288  ac_status=$?
3289  grep -v '^ *+' conftest.er1 >conftest.err
3290  rm -f conftest.er1
3291  cat conftest.err >&5
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } &&
3294         { ac_try='test -z "$ac_c_werror_flag"
3295                         || test ! -s conftest.err'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; } &&
3301         { ac_try='test -s conftest$ac_exeext'
3302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303  (eval $ac_try) 2>&5
3304  ac_status=$?
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); }; }; then
3307  echo "$as_me:$LINENO: result: yes" >&5
3308echo "${ECHO_T}yes" >&6
3309else
3310  echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
3315       LDFLAGS="$coin_save_LDFLAGS"
3316       if test $use_static_standardlibs = yes ; then
3317         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3318echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3319   { (exit 1); exit 1; }; }
3320       fi
3321
3322fi
3323rm -f conftest.err conftest.$ac_objext \
3324      conftest$ac_exeext conftest.$ac_ext
3325    ;;
3326  esac
3327fi
3328
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334
3335
3336case $build in
3337  *-cygwin* | *-mingw*)
3338     if test "$enable_doscompile" = msvc ; then
3339       coin_f77_comps="ifort fl32 compile_f2c"
3340     else
3341       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3342     fi ;;
3343  *-*-solaris*)
3344     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3345  *-linux-gnu*)
3346     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3347  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3348 esac
3349
3350
3351
3352
3353
3354
3355
3356ac_ext=f
3357ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3358ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3360
3361
3362
3363
3364
3365
3366coin_has_f77=yes
3367
3368save_fflags="$FFLAGS"
3369
3370# We delete the cached value, since the test might not have been
3371# performed with our choice of compilers earlier
3372$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3373
3374# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3375# coin_f77_comps to see if there's a program that matches one of the names.
3376# If there's no such program, F77 = unavailable. If we match the name,
3377# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3378# compiler.
3379# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3380
3381
3382{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3383echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3384if test -n "$ac_tool_prefix"; then
3385  for ac_prog in $coin_f77_comps
3386  do
3387    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3389echo "$as_me:$LINENO: checking for $ac_word" >&5
3390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391if test "${ac_cv_prog_F77+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -n "$F77"; then
3395  ac_cv_prog_F77="$F77" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400  IFS=$as_save_IFS
3401  test -z "$as_dir" && as_dir=.
3402  for ac_exec_ext in '' $ac_executable_extensions; do
3403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406    break 2
3407  fi
3408done
3409done
3410
3411fi
3412fi
3413F77=$ac_cv_prog_F77
3414if test -n "$F77"; then
3415  echo "$as_me:$LINENO: result: $F77" >&5
3416echo "${ECHO_T}$F77" >&6
3417else
3418  echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420fi
3421
3422    test -n "$F77" && break
3423  done
3424fi
3425if test -z "$F77"; then
3426  ac_ct_F77=$F77
3427  for ac_prog in $coin_f77_comps
3428do
3429  # Extract the first word of "$ac_prog", so it can be a program name with args.
3430set dummy $ac_prog; ac_word=$2
3431echo "$as_me:$LINENO: checking for $ac_word" >&5
3432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3434  echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436  if test -n "$ac_ct_F77"; then
3437  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442  IFS=$as_save_IFS
3443  test -z "$as_dir" && as_dir=.
3444  for ac_exec_ext in '' $ac_executable_extensions; do
3445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446    ac_cv_prog_ac_ct_F77="$ac_prog"
3447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448    break 2
3449  fi
3450done
3451done
3452
3453fi
3454fi
3455ac_ct_F77=$ac_cv_prog_ac_ct_F77
3456if test -n "$ac_ct_F77"; then
3457  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3458echo "${ECHO_T}$ac_ct_F77" >&6
3459else
3460  echo "$as_me:$LINENO: result: no" >&5
3461echo "${ECHO_T}no" >&6
3462fi
3463
3464  test -n "$ac_ct_F77" && break
3465done
3466test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3467
3468  F77=$ac_ct_F77
3469fi
3470
3471
3472if test "$F77" != "unavailable" ; then
3473  ac_ext=f
3474ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3475ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3477if test -n "$ac_tool_prefix"; then
3478  for ac_prog in $coin_f77_comps
3479  do
3480    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3482echo "$as_me:$LINENO: checking for $ac_word" >&5
3483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484if test "${ac_cv_prog_F77+set}" = set; then
3485  echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487  if test -n "$F77"; then
3488  ac_cv_prog_F77="$F77" # Let the user override the test.
3489else
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493  IFS=$as_save_IFS
3494  test -z "$as_dir" && as_dir=.
3495  for ac_exec_ext in '' $ac_executable_extensions; do
3496  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499    break 2
3500  fi
3501done
3502done
3503
3504fi
3505fi
3506F77=$ac_cv_prog_F77
3507if test -n "$F77"; then
3508  echo "$as_me:$LINENO: result: $F77" >&5
3509echo "${ECHO_T}$F77" >&6
3510else
3511  echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
3513fi
3514
3515    test -n "$F77" && break
3516  done
3517fi
3518if test -z "$F77"; then
3519  ac_ct_F77=$F77
3520  for ac_prog in $coin_f77_comps
3521do
3522  # Extract the first word of "$ac_prog", so it can be a program name with args.
3523set dummy $ac_prog; ac_word=$2
3524echo "$as_me:$LINENO: checking for $ac_word" >&5
3525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3527  echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529  if test -n "$ac_ct_F77"; then
3530  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537  for ac_exec_ext in '' $ac_executable_extensions; do
3538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_ac_ct_F77="$ac_prog"
3540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544done
3545
3546fi
3547fi
3548ac_ct_F77=$ac_cv_prog_ac_ct_F77
3549if test -n "$ac_ct_F77"; then
3550  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3551echo "${ECHO_T}$ac_ct_F77" >&6
3552else
3553  echo "$as_me:$LINENO: result: no" >&5
3554echo "${ECHO_T}no" >&6
3555fi
3556
3557  test -n "$ac_ct_F77" && break
3558done
3559
3560  F77=$ac_ct_F77
3561fi
3562
3563
3564# Provide some information about the compiler.
3565echo "$as_me:3565:" \
3566     "checking for Fortran 77 compiler version" >&5
3567ac_compiler=`set X $ac_compile; echo $2`
3568{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3569  (eval $ac_compiler --version </dev/null >&5) 2>&5
3570  ac_status=$?
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); }
3573{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3574  (eval $ac_compiler -v </dev/null >&5) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }
3578{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3579  (eval $ac_compiler -V </dev/null >&5) 2>&5
3580  ac_status=$?
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); }
3583rm -f a.out
3584
3585# If we don't use `.F' as extension, the preprocessor is not run on the
3586# input file.  (Note that this only needs to work for GNU compilers.)
3587ac_save_ext=$ac_ext
3588ac_ext=F
3589echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3590echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3591if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3592  echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594  cat >conftest.$ac_ext <<_ACEOF
3595      program main
3596#ifndef __GNUC__
3597       choke me
3598#endif
3599
3600      end
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604  (eval $ac_compile) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -z "$ac_f77_werror_flag"
3612                         || test ! -s conftest.err'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; } &&
3618         { ac_try='test -s conftest.$ac_objext'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; }; then
3624  ac_compiler_gnu=yes
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629ac_compiler_gnu=no
3630fi
3631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3633
3634fi
3635echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3636echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3637ac_ext=$ac_save_ext
3638ac_test_FFLAGS=${FFLAGS+set}
3639ac_save_FFLAGS=$FFLAGS
3640FFLAGS=
3641echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3642echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3643if test "${ac_cv_prog_f77_g+set}" = set; then
3644  echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646  FFLAGS=-g
3647cat >conftest.$ac_ext <<_ACEOF
3648      program main
3649
3650      end
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654  (eval $ac_compile) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } &&
3661         { ac_try='test -z "$ac_f77_werror_flag"
3662                         || test ! -s conftest.err'
3663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }; } &&
3668         { ac_try='test -s conftest.$ac_objext'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; }; then
3674  ac_cv_prog_f77_g=yes
3675else
3676  echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679ac_cv_prog_f77_g=no
3680fi
3681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3682
3683fi
3684echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3685echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3686if test "$ac_test_FFLAGS" = set; then
3687  FFLAGS=$ac_save_FFLAGS
3688elif test $ac_cv_prog_f77_g = yes; then
3689  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3690    FFLAGS="-g -O2"
3691  else
3692    FFLAGS="-g"
3693  fi
3694else
3695  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3696    FFLAGS="-O2"
3697  else
3698    FFLAGS=
3699  fi
3700fi
3701
3702G77=`test $ac_compiler_gnu = yes && echo yes`
3703ac_ext=f
3704ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3705ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3707
3708else
3709  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3710echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3711fi
3712
3713FFLAGS="$save_fflags"
3714
3715# Check if a project specific FFLAGS variable has been set
3716if test x$COIN_PRJCT != x; then
3717  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3718  if test x$coin_tmp = xset; then
3719    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3720  fi
3721fi
3722
3723if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3724
3725  coin_add_fflags=
3726  coin_opt_fflags=
3727  coin_dbg_fflags=
3728  coin_warn_fflags=
3729
3730  if test "$G77" = "yes"; then
3731    coin_opt_fflags="-O3"
3732    coin_add_fflags="-pipe"
3733    coin_dbg_fflags="-g -O0"
3734    case $enable_doscompile in
3735      mingw)
3736        FFLAGS="-mno-cygwin"
3737        cat >conftest.$ac_ext <<_ACEOF
3738      program main
3739      write(*,*) 'Hello world'
3740      end
3741_ACEOF
3742rm -f conftest.$ac_objext conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744  (eval $ac_link) 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } &&
3751         { ac_try='test -z "$ac_f77_werror_flag"
3752                         || test ! -s conftest.err'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; } &&
3758         { ac_try='test -s conftest$ac_exeext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
3764  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769fi
3770rm -f conftest.err conftest.$ac_objext \
3771      conftest$ac_exeext conftest.$ac_ext
3772        FFLAGS=
3773      ;;
3774    esac
3775  else
3776    case $build in
3777      *-cygwin* | *-mingw*)
3778        case $F77 in
3779          ifort* | */ifort* | IFORT* | */IFORT* )
3780            coin_opt_fflags='-MT -O3'
3781            coin_add_fflags='-fpp -nologo'
3782            coin_dbg_fflags='-MTd -debug'
3783          ;;
3784          compile_f2c*)
3785            coin_opt_fflags='-MT -O2'
3786            coin_add_fflags='-nologo -wd4996'
3787            coin_dbg_fflags='-MTd'
3788          ;;
3789        esac
3790        ;;
3791      *-linux-*)
3792        case $F77 in
3793          ifc* | */ifc* | ifort* | */ifort*)
3794            coin_opt_fflags="-O3 -ip"
3795            coin_add_fflags="-cm -w90 -w95"
3796            coin_dbg_fflags="-g -CA -CB -CS"
3797            # Check if -i_dynamic is necessary (for new glibc library)
3798            FFLAGS=
3799            cat >conftest.$ac_ext <<_ACEOF
3800      program main
3801      write(*,*) 'Hello world'
3802      end
3803_ACEOF
3804rm -f conftest.$ac_objext conftest$ac_exeext
3805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806  (eval $ac_link) 2>conftest.er1
3807  ac_status=$?
3808  grep -v '^ *+' conftest.er1 >conftest.err
3809  rm -f conftest.er1
3810  cat conftest.err >&5
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); } &&
3813         { ac_try='test -z "$ac_f77_werror_flag"
3814                         || test ! -s conftest.err'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; } &&
3820         { ac_try='test -s conftest$ac_exeext'
3821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822  (eval $ac_try) 2>&5
3823  ac_status=$?
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); }; }; then
3826  :
3827else
3828  echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831coin_add_fflags="-i_dynamic $coin_add_fflags"
3832fi
3833rm -f conftest.err conftest.$ac_objext \
3834      conftest$ac_exeext conftest.$ac_ext
3835            ;;
3836          pgf77* | */pgf77* | pgf90* | */pgf90*)
3837            coin_opt_fflags="-fast"
3838            coin_add_fflags="-Kieee -pc 64"
3839            coin_dbg_fflags="-g"
3840          ;;
3841        esac
3842        ;;
3843      *-ibm-*)
3844        case "$F77" in
3845          xlf* | */xlf* | mpxlf* | */mpxlf* )
3846            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3847            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3848            coin_dbg_fflags="-g -C"
3849            ;;
3850        esac
3851        ;;
3852      *-hp-*)
3853        coin_opt_fflags="+O3"
3854        coin_add_fflags="+U77"
3855        coin_dbg_fflags="-C -g"
3856        ;;
3857      *-*-solaris*)
3858        coin_opt_fflags="-O4"
3859        coin_dbg_fflags="-g"
3860        ;;
3861      *-sgi-*)
3862        coin_opt_fflags="-O5 -OPT:Olimit=0"
3863        coin_dbg_fflags="-g"
3864        ;;
3865    esac
3866  fi
3867
3868  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3869    coin_dbg_fflags="-g"
3870  fi
3871
3872  if test -z "$coin_opt_fflags"; then
3873    # Try if -O option works if nothing else is set
3874    FFLAGS=-O
3875    cat >conftest.$ac_ext <<_ACEOF
3876      program main
3877      integer i
3878      end
3879_ACEOF
3880rm -f conftest.$ac_objext conftest$ac_exeext
3881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882  (eval $ac_link) 2>conftest.er1
3883  ac_status=$?
3884  grep -v '^ *+' conftest.er1 >conftest.err
3885  rm -f conftest.er1
3886  cat conftest.err >&5
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); } &&
3889         { ac_try='test -z "$ac_f77_werror_flag"
3890                         || test ! -s conftest.err'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; } &&
3896         { ac_try='test -s conftest$ac_exeext'
3897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898  (eval $ac_try) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); }; }; then
3902  coin_opt_fflags="-O"
3903else
3904  echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907fi
3908rm -f conftest.err conftest.$ac_objext \
3909      conftest$ac_exeext conftest.$ac_ext
3910  fi
3911
3912  # if PM doesn't want the warning messages, take them out
3913  if test x"$coin_skip_warn_fflags" = xyes; then
3914    coin_warn_fflags=
3915  fi
3916
3917  if test x${DBG_FFLAGS+set} != xset; then
3918    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3919  fi
3920  if test x${OPT_FFLAGS+set} != xset; then
3921    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3922  fi
3923
3924  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3925  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3926
3927  if test "$coin_debug_compile" = "true"; then
3928    FFLAGS="$DBG_FFLAGS"
3929  else
3930    FFLAGS="$OPT_FFLAGS"
3931  fi
3932
3933else
3934  FFLAGS="$FFLAGS $ADD_FFLAGS"
3935  if test x${DBG_FFLAGS+set} != xset; then
3936    DBG_FFLAGS="$FFLAGS"
3937  fi
3938  if test x${OPT_FFLAGS+set} != xset; then
3939    OPT_FFLAGS="$FFLAGS"
3940  fi
3941fi
3942
3943# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3944case "$FFLAGS" in
3945  *-mno-cygwin*)
3946    if test x${CPPFLAGS+set} != xset ; then
3947      CPPFLAGS="-mno-cygwin"
3948    else
3949      case "$CPPFLAGS" in
3950        *-mno-cygwin*)
3951          ;;
3952        *)
3953          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3954          ;;
3955      esac
3956    fi ;;
3957esac
3958
3959# Try if FFLAGS works
3960if test "$F77" != "unavailable" ; then
3961  cat >conftest.$ac_ext <<_ACEOF
3962      program main
3963      integer i
3964      end
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968  (eval $ac_link) 2>conftest.er1
3969  ac_status=$?
3970  grep -v '^ *+' conftest.er1 >conftest.err
3971  rm -f conftest.er1
3972  cat conftest.err >&5
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); } &&
3975         { ac_try='test -z "$ac_f77_werror_flag"
3976                         || test ! -s conftest.err'
3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978  (eval $ac_try) 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; } &&
3982         { ac_try='test -s conftest$ac_exeext'
3983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984  (eval $ac_try) 2>&5
3985  ac_status=$?
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); }; }; then
3988  :
3989else
3990  echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993FFLAGS=
3994fi
3995rm -f conftest.err conftest.$ac_objext \
3996      conftest$ac_exeext conftest.$ac_ext
3997  if test -z "$FFLAGS"; then
3998    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3999echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4000    FFLAGS='-O'
4001    cat >conftest.$ac_ext <<_ACEOF
4002      program main
4003      integer i
4004      end
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_f77_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  :
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033FFLAGS=
4034fi
4035rm -f conftest.err conftest.$ac_objext \
4036      conftest$ac_exeext conftest.$ac_ext
4037    if test -z "$FFLAGS"; then
4038      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4039echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4040    fi
4041  fi
4042fi
4043
4044{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4045echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4046
4047
4048if test x"$MPIF77" = x; then :; else
4049  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4050echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4051  F77="$MPIF77"
4052fi
4053
4054# correct the LD variable if we use the intel fortran compiler in windows
4055case "$F77" in
4056  ifort* | */ifort* | IFORT* | */IFORT*)
4057    case $build in
4058  *-mingw*)
4059    if test "${LD+set}" = set; then :; else
4060      LD=link
4061    fi
4062    ;;
4063 esac
4064 case $enable_doscompile in
4065   msvc)
4066     if test "x${LD+set}" = xset; then :; else
4067       LD=link
4068     fi
4069     ;;
4070 esac
4071
4072    ;;
4073esac
4074
4075# check whether to add flag for static linking against standard libraries to LDFLAGS
4076if test x$use_static_standardlibs != xno ; then
4077  case $build in
4078    *-mingw*)
4079      static_standardlib_flag=-static
4080      ;;
4081    *)
4082      static_standardlib_flag=-static-libgfortran
4083      ;;
4084  esac
4085  case " $LDFLAGS " in
4086    *" $static_standardlib_flag "* ) ;;
4087    *)
4088    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
4089echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
4090    coin_save_LDFLAGS="$LDFLAGS"
4091    LDFLAGS="$LDFLAGS $static_standardlib_flag"
4092    cat >conftest.$ac_ext <<_ACEOF
4093      program main
4094      integer i
4095      end
4096_ACEOF
4097rm -f conftest.$ac_objext conftest$ac_exeext
4098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4099  (eval $ac_link) 2>conftest.er1
4100  ac_status=$?
4101  grep -v '^ *+' conftest.er1 >conftest.err
4102  rm -f conftest.er1
4103  cat conftest.err >&5
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } &&
4106         { ac_try='test -z "$ac_f77_werror_flag"
4107                         || test ! -s conftest.err'
4108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109  (eval $ac_try) 2>&5
4110  ac_status=$?
4111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112  (exit $ac_status); }; } &&
4113         { ac_try='test -s conftest$ac_exeext'
4114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115  (eval $ac_try) 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; }; then
4119  echo "$as_me:$LINENO: result: yes" >&5
4120echo "${ECHO_T}yes" >&6
4121else
4122  echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125echo "$as_me:$LINENO: result: no" >&5
4126echo "${ECHO_T}no" >&6
4127       LDFLAGS="$coin_save_LDFLAGS"
4128       if test $use_static_standardlibs = yes ; then
4129         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
4130echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
4131   { (exit 1); exit 1; }; }
4132       fi
4133
4134fi
4135rm -f conftest.err conftest.$ac_objext \
4136      conftest$ac_exeext conftest.$ac_ext
4137    ;;
4138  esac
4139fi
4140
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147
4148
4149# Get the linker flags (FLIBS) that are required for linking against this library
4150
4151# get FLIBS
4152ac_ext=f
4153ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4154ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4156echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4157echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4158if test "${ac_cv_prog_f77_v+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  cat >conftest.$ac_ext <<_ACEOF
4162      program main
4163
4164      end
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168  (eval $ac_compile) 2>conftest.er1
4169  ac_status=$?
4170  grep -v '^ *+' conftest.er1 >conftest.err
4171  rm -f conftest.er1
4172  cat conftest.err >&5
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); } &&
4175         { ac_try='test -z "$ac_f77_werror_flag"
4176                         || test ! -s conftest.err'
4177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178  (eval $ac_try) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; } &&
4182         { ac_try='test -s conftest.$ac_objext'
4183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184  (eval $ac_try) 2>&5
4185  ac_status=$?
4186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187  (exit $ac_status); }; }; then
4188  ac_cv_prog_f77_v=
4189# Try some options frequently used verbose output
4190for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4191  cat >conftest.$ac_ext <<_ACEOF
4192      program main
4193
4194      end
4195_ACEOF
4196
4197# Compile and link our simple test program by passing a flag (argument
4198# 1 to this macro) to the Fortran compiler in order to get
4199# "verbose" output that we can then parse for the Fortran linker
4200# flags.
4201ac_save_FFLAGS=$FFLAGS
4202FFLAGS="$FFLAGS $ac_verb"
4203(eval echo $as_me:4203: \"$ac_link\") >&5
4204ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4205echo "$ac_f77_v_output" >&5
4206FFLAGS=$ac_save_FFLAGS
4207
4208rm -f conftest*
4209
4210# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4211# /foo, /bar, and /baz are search directories for the Fortran linker.
4212# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4213ac_f77_v_output="`echo $ac_f77_v_output |
4214        grep 'LPATH is:' |
4215        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4216
4217case $ac_f77_v_output in
4218  # If we are using xlf then replace all the commas with spaces.
4219  *xlfentry*)
4220    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4221
4222  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4223  # $LIBS confuse us, and the libraries appear later in the output anyway).
4224  *mGLOB_options_string*)
4225    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4226
4227  # If we are using Cray Fortran then delete quotes.
4228  # Use "\"" instead of '"' for font-lock-mode.
4229  # FIXME: a more general fix for quoted arguments with spaces?
4230  *cft90*)
4231    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4232esac
4233
4234
4235  # look for -l* and *.a constructs in the output
4236  for ac_arg in $ac_f77_v_output; do
4237     case $ac_arg in
4238        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4239          ac_cv_prog_f77_v=$ac_verb
4240          break 2 ;;
4241     esac
4242  done
4243done
4244if test -z "$ac_cv_prog_f77_v"; then
4245   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4246echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4247fi
4248else
4249  echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4253echo "$as_me: WARNING: compilation failed" >&2;}
4254fi
4255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256
4257fi
4258echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4259echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4260echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4261echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4262if test "${ac_cv_f77_libs+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  if test "x$FLIBS" != "x"; then
4266  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4267else
4268
4269cat >conftest.$ac_ext <<_ACEOF
4270      program main
4271
4272      end
4273_ACEOF
4274
4275# Compile and link our simple test program by passing a flag (argument
4276# 1 to this macro) to the Fortran compiler in order to get
4277# "verbose" output that we can then parse for the Fortran linker
4278# flags.
4279ac_save_FFLAGS=$FFLAGS
4280FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4281(eval echo $as_me:4281: \"$ac_link\") >&5
4282ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4283echo "$ac_f77_v_output" >&5
4284FFLAGS=$ac_save_FFLAGS
4285
4286rm -f conftest*
4287
4288# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4289# /foo, /bar, and /baz are search directories for the Fortran linker.
4290# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4291ac_f77_v_output="`echo $ac_f77_v_output |
4292        grep 'LPATH is:' |
4293        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4294
4295case $ac_f77_v_output in
4296  # If we are using xlf then replace all the commas with spaces.
4297  *xlfentry*)
4298    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4299
4300  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4301  # $LIBS confuse us, and the libraries appear later in the output anyway).
4302  *mGLOB_options_string*)
4303    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4304
4305  # If we are using Cray Fortran then delete quotes.
4306  # Use "\"" instead of '"' for font-lock-mode.
4307  # FIXME: a more general fix for quoted arguments with spaces?
4308  *cft90*)
4309    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4310esac
4311
4312
4313
4314ac_cv_f77_libs=
4315
4316# Save positional arguments (if any)
4317ac_save_positional="$@"
4318
4319set X $ac_f77_v_output
4320while test $# != 1; do
4321  shift
4322  ac_arg=$1
4323  case $ac_arg in
4324        [\\/]*.a | ?:[\\/]*.a)
4325            ac_exists=false
4326  for ac_i in $ac_cv_f77_libs; do
4327    if test x"$ac_arg" = x"$ac_i"; then
4328      ac_exists=true
4329      break
4330    fi
4331  done
4332
4333  if test x"$ac_exists" = xtrue; then
4334  :
4335else
4336  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4337fi
4338
4339          ;;
4340        -bI:*)
4341            ac_exists=false
4342  for ac_i in $ac_cv_f77_libs; do
4343    if test x"$ac_arg" = x"$ac_i"; then
4344      ac_exists=true
4345      break
4346    fi
4347  done
4348
4349  if test x"$ac_exists" = xtrue; then
4350  :
4351else
4352  if test "$ac_compiler_gnu" = yes; then
4353  for ac_link_opt in $ac_arg; do
4354    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4355  done
4356else
4357  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4358fi
4359fi
4360
4361          ;;
4362          # Ignore these flags.
4363        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4364          ;;
4365        -lkernel32)
4366          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4367          ;;
4368        -[LRuY])
4369          # These flags, when seen by themselves, take an argument.
4370          # We remove the space between option and argument and re-iterate
4371          # unless we find an empty arg or a new option (starting with -)
4372          case $2 in
4373             "" | -*);;
4374             *)
4375                ac_arg="$ac_arg$2"
4376                shift; shift
4377                set X $ac_arg "$@"
4378                ;;
4379          esac
4380          ;;
4381        -YP,*)
4382          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4383              ac_exists=false
4384  for ac_i in $ac_cv_f77_libs; do
4385    if test x"$ac_j" = x"$ac_i"; then
4386      ac_exists=true
4387      break
4388    fi
4389  done
4390
4391  if test x"$ac_exists" = xtrue; then
4392  :
4393else
4394  ac_arg="$ac_arg $ac_j"
4395                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4396fi
4397
4398          done
4399          ;;
4400        -[lLR]*)
4401            ac_exists=false
4402  for ac_i in $ac_cv_f77_libs; do
4403    if test x"$ac_arg" = x"$ac_i"; then
4404      ac_exists=true
4405      break
4406    fi
4407  done
4408
4409  if test x"$ac_exists" = xtrue; then
4410  :
4411else
4412  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4413fi
4414
4415          ;;
4416          # Ignore everything else.
4417  esac
4418done
4419# restore positional arguments
4420set X $ac_save_positional; shift
4421
4422# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4423# then we insist that the "run path" must be an absolute path (i.e. it
4424# must begin with a "/").
4425case `(uname -sr) 2>/dev/null` in
4426   "SunOS 5"*)
4427      ac_ld_run_path=`echo $ac_f77_v_output |
4428                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4429      test "x$ac_ld_run_path" != x &&
4430        if test "$ac_compiler_gnu" = yes; then
4431  for ac_link_opt in $ac_ld_run_path; do
4432    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4433  done
4434else
4435  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4436fi
4437      ;;
4438esac
4439fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4440
4441fi
4442echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4443echo "${ECHO_T}$ac_cv_f77_libs" >&6
4444FLIBS="$ac_cv_f77_libs"
4445
4446
4447ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453orig_FLIBS="$FLIBS"
4454
4455# If FLIBS has been set by the user, we just restore its value here
4456if test x"$save_FLIBS" != x; then
4457  FLIBS="$save_FLIBS"
4458else
4459  # This is to correct a missing exclusion in autoconf 2.59
4460  if test x"$FLIBS" != x; then
4461    my_flibs=
4462    for flag in $FLIBS; do
4463      case $flag in
4464        -lcrt*.o) ;;
4465        -lcygwin) ;;
4466               *) my_flibs="$my_flibs $flag" ;;
4467      esac
4468    done
4469    FLIBS="$my_flibs"
4470  fi
4471
4472  case $build in
4473  # The following is a fix to define FLIBS for ifort on Windows
4474  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4475  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4476  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4477  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4478  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4479     *-cygwin* | *-mingw*)
4480       case "$F77" in
4481#         ifort* | */ifort* | IFORT* | */IFORT*)
4482#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4483#           if "$coin_debug_compile" = true ; then
4484#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4485#           else
4486#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4487#           fi
4488#           ;;
4489         compile_f2c*)
4490           FLIBS=`$F77 -FLIBS` ;;
4491       esac;;
4492     *-hp-*)
4493         FLIBS="$FLIBS -lm";;
4494     *-ibm-*)
4495         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4496     *-linux-*)
4497       case "$F77" in
4498         pgf77* | */pgf77* | pgf90* | */pgf90*)
4499# ask linker to go through the archives multiple times
4500# (the Fortran compiler seems to do that automatically...)
4501           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4502       esac
4503  esac
4504  ac_cv_f77_libs="$FLIBS"
4505fi
4506
4507if test "x$orig_FLIBS" != "x$FLIBS" ; then
4508  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4509echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4510fi
4511
4512ac_ext=f
4513ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4514ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4516
4517echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4518echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4519if test "${ac_cv_f77_dummy_main+set}" = set; then
4520  echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522  ac_f77_dm_save_LIBS=$LIBS
4523 LIBS="$LIBS $FLIBS"
4524 ac_fortran_dm_var=F77_DUMMY_MAIN
4525 ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531 # First, try linking without a dummy main:
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538
4539#ifdef F77_DUMMY_MAIN
4540
4541#  ifdef __cplusplus
4542     extern "C"
4543#  endif
4544   int F77_DUMMY_MAIN() { return 1; }
4545
4546#endif
4547int
4548main ()
4549{
4550
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext conftest$ac_exeext
4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557  (eval $ac_link) 2>conftest.er1
4558  ac_status=$?
4559  grep -v '^ *+' conftest.er1 >conftest.err
4560  rm -f conftest.er1
4561  cat conftest.err >&5
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); } &&
4564         { ac_try='test -z "$ac_c_werror_flag"
4565                         || test ! -s conftest.err'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; } &&
4571         { ac_try='test -s conftest$ac_exeext'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; }; then
4577  ac_cv_fortran_dummy_main=none
4578else
4579  echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582ac_cv_fortran_dummy_main=unknown
4583fi
4584rm -f conftest.err conftest.$ac_objext \
4585      conftest$ac_exeext conftest.$ac_ext
4586
4587 if test $ac_cv_fortran_dummy_main = unknown; then
4588   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4589     cat >conftest.$ac_ext <<_ACEOF
4590/* confdefs.h.  */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h.  */
4595#define $ac_fortran_dm_var $ac_func
4596#ifdef F77_DUMMY_MAIN
4597
4598#  ifdef __cplusplus
4599     extern "C"
4600#  endif
4601   int F77_DUMMY_MAIN() { return 1; }
4602
4603#endif
4604int
4605main ()
4606{
4607
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614  (eval $ac_link) 2>conftest.er1
4615  ac_status=$?
4616  grep -v '^ *+' conftest.er1 >conftest.err
4617  rm -f conftest.er1
4618  cat conftest.err >&5
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); } &&
4621         { ac_try='test -z "$ac_c_werror_flag"
4622                         || test ! -s conftest.err'
4623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624  (eval $ac_try) 2>&5
4625  ac_status=$?
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); }; } &&
4628         { ac_try='test -s conftest$ac_exeext'
4629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630  (eval $ac_try) 2>&5
4631  ac_status=$?
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); }; }; then
4634  ac_cv_fortran_dummy_main=$ac_func; break
4635else
4636  echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639fi
4640rm -f conftest.err conftest.$ac_objext \
4641      conftest$ac_exeext conftest.$ac_ext
4642   done
4643 fi
4644 ac_ext=f
4645ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4646ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4648 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4649 rm -f conftest*
4650 LIBS=$ac_f77_dm_save_LIBS
4651
4652fi
4653echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4654echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4655F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4656if test "$F77_DUMMY_MAIN" != unknown; then
4657  if test $F77_DUMMY_MAIN != none; then
4658
4659cat >>confdefs.h <<_ACEOF
4660#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4661_ACEOF
4662
4663  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4664
4665cat >>confdefs.h <<\_ACEOF
4666#define FC_DUMMY_MAIN_EQ_F77 1
4667_ACEOF
4668
4669  fi
4670fi
4671else
4672  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4673See \`config.log' for more details." >&5
4674echo "$as_me: error: linking to Fortran libraries from C fails
4675See \`config.log' for more details." >&2;}
4676   { (exit 1); exit 1; }; }
4677fi
4678
4679
4680ac_ext=f
4681ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4682ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4684
4685ac_ext=f
4686ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4687ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4689echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4690echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4691if test "${ac_cv_f77_mangling+set}" = set; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694  cat >conftest.$ac_ext <<_ACEOF
4695      subroutine foobar()
4696      return
4697      end
4698      subroutine foo_bar()
4699      return
4700      end
4701_ACEOF
4702rm -f conftest.$ac_objext
4703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704  (eval $ac_compile) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } &&
4711         { ac_try='test -z "$ac_f77_werror_flag"
4712                         || test ! -s conftest.err'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; } &&
4718         { ac_try='test -s conftest.$ac_objext'
4719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720  (eval $ac_try) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  mv conftest.$ac_objext cfortran_test.$ac_objext
4725
4726  ac_save_LIBS=$LIBS
4727  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4728
4729  ac_ext=c
4730ac_cpp='$CPP $CPPFLAGS'
4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734  ac_success=no
4735  for ac_foobar in foobar FOOBAR; do
4736    for ac_underscore in "" "_"; do
4737      ac_func="$ac_foobar$ac_underscore"
4738      cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h.  */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h.  */
4744
4745/* Override any gcc2 internal prototype to avoid an error.  */
4746#ifdef __cplusplus
4747extern "C"
4748#endif
4749/* We use char because int might match the return type of a gcc2
4750   builtin and then its argument prototype would still apply.  */
4751char $ac_func ();
4752#ifdef F77_DUMMY_MAIN
4753
4754#  ifdef __cplusplus
4755     extern "C"
4756#  endif
4757   int F77_DUMMY_MAIN() { return 1; }
4758
4759#endif
4760int
4761main ()
4762{
4763$ac_func ();
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext conftest$ac_exeext
4769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770  (eval $ac_link) 2>conftest.er1
4771  ac_status=$?
4772  grep -v '^ *+' conftest.er1 >conftest.err
4773  rm -f conftest.er1
4774  cat conftest.err >&5
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); } &&
4777         { ac_try='test -z "$ac_c_werror_flag"
4778                         || test ! -s conftest.err'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; } &&
4784         { ac_try='test -s conftest$ac_exeext'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; }; then
4790  ac_success=yes; break 2
4791else
4792  echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795fi
4796rm -f conftest.err conftest.$ac_objext \
4797      conftest$ac_exeext conftest.$ac_ext
4798    done
4799  done
4800  ac_ext=f
4801ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4802ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4804
4805  if test "$ac_success" = "yes"; then
4806     case $ac_foobar in
4807        foobar)
4808           ac_case=lower
4809           ac_foo_bar=foo_bar
4810           ;;
4811        FOOBAR)
4812           ac_case=upper
4813           ac_foo_bar=FOO_BAR
4814           ;;
4815     esac
4816
4817     ac_ext=c
4818ac_cpp='$CPP $CPPFLAGS'
4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822     ac_success_extra=no
4823     for ac_extra in "" "_"; do
4824        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4825        cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h.  */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h.  */
4831
4832/* Override any gcc2 internal prototype to avoid an error.  */
4833#ifdef __cplusplus
4834extern "C"
4835#endif
4836/* We use char because int might match the return type of a gcc2
4837   builtin and then its argument prototype would still apply.  */
4838char $ac_func ();
4839#ifdef F77_DUMMY_MAIN
4840
4841#  ifdef __cplusplus
4842     extern "C"
4843#  endif
4844   int F77_DUMMY_MAIN() { return 1; }
4845
4846#endif
4847int
4848main ()
4849{
4850$ac_func ();
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext conftest$ac_exeext
4856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4857  (eval $ac_link) 2>conftest.er1
4858  ac_status=$?
4859  grep -v '^ *+' conftest.er1 >conftest.err
4860  rm -f conftest.er1
4861  cat conftest.err >&5
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); } &&
4864         { ac_try='test -z "$ac_c_werror_flag"
4865                         || test ! -s conftest.err'
4866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867  (eval $ac_try) 2>&5
4868  ac_status=$?
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); }; } &&
4871         { ac_try='test -s conftest$ac_exeext'
4872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873  (eval $ac_try) 2>&5
4874  ac_status=$?
4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876  (exit $ac_status); }; }; then
4877  ac_success_extra=yes; break
4878else
4879  echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882fi
4883rm -f conftest.err conftest.$ac_objext \
4884      conftest$ac_exeext conftest.$ac_ext
4885     done
4886     ac_ext=f
4887ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4888ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4890
4891     if test "$ac_success_extra" = "yes"; then
4892        ac_cv_f77_mangling="$ac_case case"
4893        if test -z "$ac_underscore"; then
4894           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4895        else
4896           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4897        fi
4898        if test -z "$ac_extra"; then
4899           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4900        else
4901           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4902        fi
4903      else
4904        ac_cv_f77_mangling="unknown"
4905      fi
4906  else
4907     ac_cv_f77_mangling="unknown"
4908  fi
4909
4910  LIBS=$ac_save_LIBS
4911  rm -f cfortran_test* conftest*
4912else
4913  echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4917See \`config.log' for more details." >&5
4918echo "$as_me: error: cannot compile a simple Fortran program
4919See \`config.log' for more details." >&2;}
4920   { (exit 1); exit 1; }; }
4921fi
4922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4923
4924fi
4925echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4926echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4927
4928ac_ext=f
4929ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4930ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4932
4933
4934ac_ext=f
4935ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4936ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4938
4939ac_ext=f
4940ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4941ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4943
4944
4945case $ac_cv_f77_mangling in
4946  "lower case, no underscore, no extra underscore")
4947          cat >>confdefs.h <<\_ACEOF
4948#define F77_FUNC(name,NAME) name
4949_ACEOF
4950
4951          cat >>confdefs.h <<\_ACEOF
4952#define F77_FUNC_(name,NAME) name
4953_ACEOF
4954 ;;
4955  "lower case, no underscore, extra underscore")
4956          cat >>confdefs.h <<\_ACEOF
4957#define F77_FUNC(name,NAME) name
4958_ACEOF
4959
4960          cat >>confdefs.h <<\_ACEOF
4961#define F77_FUNC_(name,NAME) name ## _
4962_ACEOF
4963 ;;
4964  "lower case, underscore, no extra underscore")
4965          cat >>confdefs.h <<\_ACEOF
4966#define F77_FUNC(name,NAME) name ## _
4967_ACEOF
4968
4969          cat >>confdefs.h <<\_ACEOF
4970#define F77_FUNC_(name,NAME) name ## _
4971_ACEOF
4972 ;;
4973  "lower case, underscore, extra underscore")
4974          cat >>confdefs.h <<\_ACEOF
4975#define F77_FUNC(name,NAME) name ## _
4976_ACEOF
4977
4978          cat >>confdefs.h <<\_ACEOF
4979#define F77_FUNC_(name,NAME) name ## __
4980_ACEOF
4981 ;;
4982  "upper case, no underscore, no extra underscore")
4983          cat >>confdefs.h <<\_ACEOF
4984#define F77_FUNC(name,NAME) NAME
4985_ACEOF
4986
4987          cat >>confdefs.h <<\_ACEOF
4988#define F77_FUNC_(name,NAME) NAME
4989_ACEOF
4990 ;;
4991  "upper case, no underscore, extra underscore")
4992          cat >>confdefs.h <<\_ACEOF
4993#define F77_FUNC(name,NAME) NAME
4994_ACEOF
4995
4996          cat >>confdefs.h <<\_ACEOF
4997#define F77_FUNC_(name,NAME) NAME ## _
4998_ACEOF
4999 ;;
5000  "upper case, underscore, no extra underscore")
5001          cat >>confdefs.h <<\_ACEOF
5002#define F77_FUNC(name,NAME) NAME ## _
5003_ACEOF
5004
5005          cat >>confdefs.h <<\_ACEOF
5006#define F77_FUNC_(name,NAME) NAME ## _
5007_ACEOF
5008 ;;
5009  "upper case, underscore, extra underscore")
5010          cat >>confdefs.h <<\_ACEOF
5011#define F77_FUNC(name,NAME) NAME ## _
5012_ACEOF
5013
5014          cat >>confdefs.h <<\_ACEOF
5015#define F77_FUNC_(name,NAME) NAME ## __
5016_ACEOF
5017 ;;
5018  *)
5019          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5020echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5021          ;;
5022esac
5023
5024ac_ext=f
5025ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5026ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5028
5029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035
5036
5037
5038# Check for Blas
5039
5040
5041# Check whether --enable-pkg-config or --disable-pkg-config was given.
5042if test "${enable_pkg_config+set}" = set; then
5043  enableval="$enable_pkg_config"
5044  use_pkgconfig="$enableval"
5045else
5046  use_pkgconfig=yes
5047fi;
5048
5049if test $use_pkgconfig = yes ; then
5050  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5051    if test -n "$ac_tool_prefix"; then
5052  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5053set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5054echo "$as_me:$LINENO: checking for $ac_word" >&5
5055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5056if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5057  echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059  case $PKG_CONFIG in
5060  [\\/]* | ?:[\\/]*)
5061  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5062  ;;
5063  *)
5064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067  IFS=$as_save_IFS
5068  test -z "$as_dir" && as_dir=.
5069  for ac_exec_ext in '' $ac_executable_extensions; do
5070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073    break 2
5074  fi
5075done
5076done
5077
5078  ;;
5079esac
5080fi
5081PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5082
5083if test -n "$PKG_CONFIG"; then
5084  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5085echo "${ECHO_T}$PKG_CONFIG" >&6
5086else
5087  echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089fi
5090
5091fi
5092if test -z "$ac_cv_path_PKG_CONFIG"; then
5093  ac_pt_PKG_CONFIG=$PKG_CONFIG
5094  # Extract the first word of "pkg-config", so it can be a program name with args.
5095set dummy pkg-config; ac_word=$2
5096echo "$as_me:$LINENO: checking for $ac_word" >&5
5097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5099  echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101  case $ac_pt_PKG_CONFIG in
5102  [\\/]* | ?:[\\/]*)
5103  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5104  ;;
5105  *)
5106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119
5120  ;;
5121esac
5122fi
5123ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5124
5125if test -n "$ac_pt_PKG_CONFIG"; then
5126  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5127echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
5128else
5129  echo "$as_me:$LINENO: result: no" >&5
5130echo "${ECHO_T}no" >&6
5131fi
5132
5133  PKG_CONFIG=$ac_pt_PKG_CONFIG
5134else
5135  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5136fi
5137
5138  fi
5139  if test -n "$PKG_CONFIG"; then
5140    _pkg_min_version=0.16.0
5141    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5142echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
5143    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5144      echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146    else
5147      echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149      PKG_CONFIG=""
5150    fi
5151  fi
5152
5153  # check if pkg-config supports the short-errors flag
5154  if test -n "$PKG_CONFIG" && \
5155    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5156    pkg_short_errors=" --short-errors "
5157  else
5158    pkg_short_errors=""
5159  fi
5160fi
5161
5162
5163
5164if test -n "$PKG_CONFIG"; then
5165  COIN_HAS_PKGCONFIG_TRUE=
5166  COIN_HAS_PKGCONFIG_FALSE='#'
5167else
5168  COIN_HAS_PKGCONFIG_TRUE='#'
5169  COIN_HAS_PKGCONFIG_FALSE=
5170fi
5171
5172
5173
5174# assemble pkg-config search path for installed projects
5175COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
5176
5177# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
5178# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
5179# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
5180if test "x${prefix}" = xNONE ; then
5181  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5182else
5183  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5184fi
5185
5186
5187# Check whether --with-coin-instdir or --without-coin-instdir was given.
5188if test "${with_coin_instdir+set}" = set; then
5189  withval="$with_coin_instdir"
5190  if test -d "$withval"; then : ; else
5191     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
5192echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
5193   { (exit 1); exit 1; }; }
5194   fi
5195   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5196
5197fi;
5198
5199
5200
5201# assemble additional pkg-config search paths for uninstalled projects
5202if test x$coin_projectdir = xyes ; then
5203  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
5204  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
5205  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
5206  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
5207  COIN_PKG_CONFIG_PATH_UNINSTALLED=
5208  if test -e ../coin_subdirs.txt ; then
5209    for i in `cat ../coin_subdirs.txt` ; do
5210      if test -d ../$i ; then
5211        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5212      fi
5213      if test -d ../$i/pkgconfig ; then
5214        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5215      fi
5216    done
5217  fi
5218
5219  if test -e ../../coin_subdirs.txt ; then
5220    for i in `cat ../../coin_subdirs.txt` ; do
5221      if test -d ../../$i ; then
5222        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5223      fi
5224      if test -d ../../$i/pkgconfig ; then
5225        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5226      fi
5227    done
5228  fi
5229
5230
5231fi
5232
5233if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5234  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
5235echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
5236fi
5237
5238
5239
5240
5241# Check whether --with-blas or --without-blas was given.
5242if test "${with_blas+set}" = set; then
5243  withval="$with_blas"
5244  use_blas="$withval"
5245else
5246  use_blas=
5247fi;
5248
5249# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
5250# preference
5251
5252# Check whether --with-blas-lib or --without-blas-lib was given.
5253if test "${with_blas_lib+set}" = set; then
5254  withval="$with_blas_lib"
5255  use_blas=BUILD
5256fi;
5257
5258# Check if user supplied option makes sense
5259if test x"$use_blas" != x; then
5260  if test "$use_blas" = "BUILD"; then
5261    # we come to this later
5262    :
5263  elif test "$use_blas" != "no"; then
5264    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
5265echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
5266    coin_need_flibs=no
5267    coin_save_LIBS="$LIBS"
5268    LIBS="$use_blas $LIBS"
5269    case $ac_ext in
5270  f)
5271    cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h.  */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h.  */
5277
5278#ifdef F77_DUMMY_MAIN
5279
5280#  ifdef __cplusplus
5281     extern "C"
5282#  endif
5283   int F77_DUMMY_MAIN() { return 1; }
5284
5285#endif
5286int
5287main ()
5288{
5289      call daxpy
5290  ;
5291  return 0;
5292}
5293_ACEOF
5294rm -f conftest.$ac_objext conftest$ac_exeext
5295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296  (eval $ac_link) 2>conftest.er1
5297  ac_status=$?
5298  grep -v '^ *+' conftest.er1 >conftest.err
5299  rm -f conftest.er1
5300  cat conftest.err >&5
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); } &&
5303         { ac_try='test -z "$ac_c_werror_flag"
5304                         || test ! -s conftest.err'
5305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306  (eval $ac_try) 2>&5
5307  ac_status=$?
5308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309  (exit $ac_status); }; } &&
5310         { ac_try='test -s conftest$ac_exeext'
5311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312  (eval $ac_try) 2>&5
5313  ac_status=$?
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); }; }; then
5316  if test $coin_need_flibs = yes ; then
5317                         use_blas="$use_blas $FLIBS"
5318                       fi
5319                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5320echo "${ECHO_T}yes: $use_blas" >&6
5321else
5322  echo "$as_me: failed program was:" >&5
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
5325echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
5327                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5328echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5329   { (exit 1); exit 1; }; }
5330fi
5331rm -f conftest.err conftest.$ac_objext \
5332      conftest$ac_exeext conftest.$ac_ext
5333    ;;
5334  c)
5335    ac_ext=f
5336ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5337ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5339case $ac_cv_f77_mangling in
5340  upper*) ac_val="DAXPY" ;;
5341  lower*) ac_val="daxpy" ;;
5342  *)      ac_val="unknown" ;;
5343esac
5344case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5345
5346cfuncdaxpy="$ac_val"
5347
5348ac_ext=c
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354    if test x"$coin_need_flibs" = xyes; then
5355      flink_try=no;
5356    else
5357      cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h.  */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
5362/* end confdefs.h.  */
5363void $cfuncdaxpy();
5364#ifdef F77_DUMMY_MAIN
5365
5366#  ifdef __cplusplus
5367     extern "C"
5368#  endif
5369   int F77_DUMMY_MAIN() { return 1; }
5370
5371#endif
5372int
5373main ()
5374{
5375$cfuncdaxpy()
5376  ;
5377  return 0;
5378}
5379_ACEOF
5380rm -f conftest.$ac_objext conftest$ac_exeext
5381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5382  (eval $ac_link) 2>conftest.er1
5383  ac_status=$?
5384  grep -v '^ *+' conftest.er1 >conftest.err
5385  rm -f conftest.er1
5386  cat conftest.err >&5
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); } &&
5389         { ac_try='test -z "$ac_c_werror_flag"
5390                         || test ! -s conftest.err'
5391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392  (eval $ac_try) 2>&5
5393  ac_status=$?
5394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395  (exit $ac_status); }; } &&
5396         { ac_try='test -s conftest$ac_exeext'
5397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398  (eval $ac_try) 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }; }; then
5402  flink_try=yes
5403else
5404  echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407flink_try=no
5408fi
5409rm -f conftest.err conftest.$ac_objext \
5410      conftest$ac_exeext conftest.$ac_ext
5411    fi
5412    if test $flink_try = yes; then
5413      if test $coin_need_flibs = yes ; then
5414                         use_blas="$use_blas $FLIBS"
5415                       fi
5416                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5417echo "${ECHO_T}yes: $use_blas" >&6
5418    else
5419      if test x"$FLIBS" != x; then
5420        flink_save_libs="$LIBS"
5421        LIBS="$LIBS $FLIBS"
5422        cat >conftest.$ac_ext <<_ACEOF
5423/* confdefs.h.  */
5424_ACEOF
5425cat confdefs.h >>conftest.$ac_ext
5426cat >>conftest.$ac_ext <<_ACEOF
5427/* end confdefs.h.  */
5428void $cfuncdaxpy();
5429#ifdef F77_DUMMY_MAIN
5430
5431#  ifdef __cplusplus
5432     extern "C"
5433#  endif
5434   int F77_DUMMY_MAIN() { return 1; }
5435
5436#endif
5437int
5438main ()
5439{
5440$cfuncdaxpy()
5441  ;
5442  return 0;
5443}
5444_ACEOF
5445rm -f conftest.$ac_objext conftest$ac_exeext
5446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5447  (eval $ac_link) 2>conftest.er1
5448  ac_status=$?
5449  grep -v '^ *+' conftest.er1 >conftest.err
5450  rm -f conftest.er1
5451  cat conftest.err >&5
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } &&
5454         { ac_try='test -z "$ac_c_werror_flag"
5455                         || test ! -s conftest.err'
5456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457  (eval $ac_try) 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }; } &&
5461         { ac_try='test -s conftest$ac_exeext'
5462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463  (eval $ac_try) 2>&5
5464  ac_status=$?
5465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466  (exit $ac_status); }; }; then
5467  LIBS="$flink_save_libs"
5468                     coin_need_flibs=yes
5469                     if test $coin_need_flibs = yes ; then
5470                         use_blas="$use_blas $FLIBS"
5471                       fi
5472                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5473echo "${ECHO_T}yes: $use_blas" >&6
5474
5475else
5476  echo "$as_me: failed program was:" >&5
5477sed 's/^/| /' conftest.$ac_ext >&5
5478
5479LIBS="$flink_save_libs"
5480                     echo "$as_me:$LINENO: result: no" >&5
5481echo "${ECHO_T}no" >&6
5482                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5483echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5484   { (exit 1); exit 1; }; }
5485fi
5486rm -f conftest.err conftest.$ac_objext \
5487      conftest$ac_exeext conftest.$ac_ext
5488      else
5489        echo "$as_me:$LINENO: result: no" >&5
5490echo "${ECHO_T}no" >&6
5491                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5492echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5493   { (exit 1); exit 1; }; }
5494      fi
5495    fi
5496    ;;
5497  cc|cpp)
5498    ac_ext=f
5499ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5500ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5502case $ac_cv_f77_mangling in
5503  upper*) ac_val="DAXPY" ;;
5504  lower*) ac_val="daxpy" ;;
5505  *)      ac_val="unknown" ;;
5506esac
5507case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5508
5509cfuncdaxpy="$ac_val"
5510
5511ac_ext=c
5512ac_cpp='$CPP $CPPFLAGS'
5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516
5517    if test x"$coin_need_flibs" = xyes; then
5518      flink_try=no;
5519    else
5520      cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h.  */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h.  */
5526extern "C" {void $cfuncdaxpy();}
5527#ifdef F77_DUMMY_MAIN
5528
5529#  ifdef __cplusplus
5530     extern "C"
5531#  endif
5532   int F77_DUMMY_MAIN() { return 1; }
5533
5534#endif
5535int
5536main ()
5537{
5538$cfuncdaxpy()
5539  ;
5540  return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext conftest$ac_exeext
5544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545  (eval $ac_link) 2>conftest.er1
5546  ac_status=$?
5547  grep -v '^ *+' conftest.er1 >conftest.err
5548  rm -f conftest.er1
5549  cat conftest.err >&5
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); } &&
5552         { ac_try='test -z "$ac_c_werror_flag"
5553                         || test ! -s conftest.err'
5554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555  (eval $ac_try) 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); }; } &&
5559         { ac_try='test -s conftest$ac_exeext'
5560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561  (eval $ac_try) 2>&5
5562  ac_status=$?
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }; }; then
5565  flink_try=yes
5566else
5567  echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570flink_try=no
5571fi
5572rm -f conftest.err conftest.$ac_objext \
5573      conftest$ac_exeext conftest.$ac_ext
5574    fi
5575    if test $flink_try = yes; then
5576      if test $coin_need_flibs = yes ; then
5577                         use_blas="$use_blas $FLIBS"
5578                       fi
5579                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5580echo "${ECHO_T}yes: $use_blas" >&6
5581    else
5582      if test x"$FLIBS" != x; then
5583        flink_save_libs="$LIBS"
5584        LIBS="$LIBS $FLIBS"
5585        cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h.  */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h.  */
5591extern "C" {void $cfuncdaxpy();}
5592#ifdef F77_DUMMY_MAIN
5593
5594#  ifdef __cplusplus
5595     extern "C"
5596#  endif
5597   int F77_DUMMY_MAIN() { return 1; }
5598
5599#endif
5600int
5601main ()
5602{
5603$cfuncdaxpy()
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext conftest$ac_exeext
5609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610  (eval $ac_link) 2>conftest.er1
5611  ac_status=$?
5612  grep -v '^ *+' conftest.er1 >conftest.err
5613  rm -f conftest.er1
5614  cat conftest.err >&5
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); } &&
5617         { ac_try='test -z "$ac_c_werror_flag"
5618                         || test ! -s conftest.err'
5619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620  (eval $ac_try) 2>&5
5621  ac_status=$?
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); }; } &&
5624         { ac_try='test -s conftest$ac_exeext'
5625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626  (eval $ac_try) 2>&5
5627  ac_status=$?
5628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629  (exit $ac_status); }; }; then
5630  LIBS="$flink_save_libs"
5631                     coin_need_flibs=yes
5632                     if test $coin_need_flibs = yes ; then
5633                         use_blas="$use_blas $FLIBS"
5634                       fi
5635                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5636echo "${ECHO_T}yes: $use_blas" >&6
5637
5638else
5639  echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642LIBS="$flink_save_libs"
5643                     echo "$as_me:$LINENO: result: no" >&5
5644echo "${ECHO_T}no" >&6
5645                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5646echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5647   { (exit 1); exit 1; }; }
5648fi
5649rm -f conftest.err conftest.$ac_objext \
5650      conftest$ac_exeext conftest.$ac_ext
5651      else
5652        echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6
5654                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5655echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5656   { (exit 1); exit 1; }; }
5657      fi
5658    fi
5659    ;;
5660esac
5661
5662    LIBS="$coin_save_LIBS"
5663  fi
5664else
5665# Try to autodetect the library for blas based on build system
5666  #AC_MSG_CHECKING([default locations for BLAS])
5667  skip_lblas_check=no
5668  case $build in
5669    *-sgi-*)
5670      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5671echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5672      coin_need_flibs=no
5673      coin_save_LIBS="$LIBS"
5674      LIBS="-lcomplib.sgimath $LIBS"
5675      case $ac_ext in
5676  f)
5677    cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683
5684#ifdef F77_DUMMY_MAIN
5685
5686#  ifdef __cplusplus
5687     extern "C"
5688#  endif
5689   int F77_DUMMY_MAIN() { return 1; }
5690
5691#endif
5692int
5693main ()
5694{
5695      call daxpy
5696  ;
5697  return 0;
5698}
5699_ACEOF
5700rm -f conftest.$ac_objext conftest$ac_exeext
5701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702  (eval $ac_link) 2>conftest.er1
5703  ac_status=$?
5704  grep -v '^ *+' conftest.er1 >conftest.err
5705  rm -f conftest.er1
5706  cat conftest.err >&5
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); } &&
5709         { ac_try='test -z "$ac_c_werror_flag"
5710                         || test ! -s conftest.err'
5711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712  (eval $ac_try) 2>&5
5713  ac_status=$?
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); }; } &&
5716         { ac_try='test -s conftest$ac_exeext'
5717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718  (eval $ac_try) 2>&5
5719  ac_status=$?
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); }; }; then
5722  use_blas="-lcomplib.sgimath"
5723                         if test $coin_need_flibs = yes ; then
5724                           use_blas="$use_blas $FLIBS"
5725                         fi
5726                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5727echo "${ECHO_T}yes: $use_blas" >&6
5728
5729else
5730  echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
5735fi
5736rm -f conftest.err conftest.$ac_objext \
5737      conftest$ac_exeext conftest.$ac_ext
5738    ;;
5739  c)
5740    ac_ext=f
5741ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5742ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5744case $ac_cv_f77_mangling in
5745  upper*) ac_val="DAXPY" ;;
5746  lower*) ac_val="daxpy" ;;
5747  *)      ac_val="unknown" ;;
5748esac
5749case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5750
5751cfuncdaxpy="$ac_val"
5752
5753ac_ext=c
5754ac_cpp='$CPP $CPPFLAGS'
5755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758
5759    if test x"$coin_need_flibs" = xyes; then
5760      flink_try=no;
5761    else
5762      cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h.  */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h.  */
5768void $cfuncdaxpy();
5769#ifdef F77_DUMMY_MAIN
5770
5771#  ifdef __cplusplus
5772     extern "C"
5773#  endif
5774   int F77_DUMMY_MAIN() { return 1; }
5775
5776#endif
5777int
5778main ()
5779{
5780$cfuncdaxpy()
5781  ;
5782  return 0;
5783}
5784_ACEOF
5785rm -f conftest.$ac_objext conftest$ac_exeext
5786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5787  (eval $ac_link) 2>conftest.er1
5788  ac_status=$?
5789  grep -v '^ *+' conftest.er1 >conftest.err
5790  rm -f conftest.er1
5791  cat conftest.err >&5
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); } &&
5794         { ac_try='test -z "$ac_c_werror_flag"
5795                         || test ! -s conftest.err'
5796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797  (eval $ac_try) 2>&5
5798  ac_status=$?
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); }; } &&
5801         { ac_try='test -s conftest$ac_exeext'
5802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803  (eval $ac_try) 2>&5
5804  ac_status=$?
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); }; }; then
5807  flink_try=yes
5808else
5809  echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812flink_try=no
5813fi
5814rm -f conftest.err conftest.$ac_objext \
5815      conftest$ac_exeext conftest.$ac_ext
5816    fi
5817    if test $flink_try = yes; then
5818      use_blas="-lcomplib.sgimath"
5819                         if test $coin_need_flibs = yes ; then
5820                           use_blas="$use_blas $FLIBS"
5821                         fi
5822                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5823echo "${ECHO_T}yes: $use_blas" >&6
5824
5825    else
5826      if test x"$FLIBS" != x; then
5827        flink_save_libs="$LIBS"
5828        LIBS="$LIBS $FLIBS"
5829        cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h.  */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h.  */
5835void $cfuncdaxpy();
5836#ifdef F77_DUMMY_MAIN
5837
5838#  ifdef __cplusplus
5839     extern "C"
5840#  endif
5841   int F77_DUMMY_MAIN() { return 1; }
5842
5843#endif
5844int
5845main ()
5846{
5847$cfuncdaxpy()
5848  ;
5849  return 0;
5850}
5851_ACEOF
5852rm -f conftest.$ac_objext conftest$ac_exeext
5853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854  (eval $ac_link) 2>conftest.er1
5855  ac_status=$?
5856  grep -v '^ *+' conftest.er1 >conftest.err
5857  rm -f conftest.er1
5858  cat conftest.err >&5
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); } &&
5861         { ac_try='test -z "$ac_c_werror_flag"
5862                         || test ! -s conftest.err'
5863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864  (eval $ac_try) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); }; } &&
5868         { ac_try='test -s conftest$ac_exeext'
5869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870  (eval $ac_try) 2>&5
5871  ac_status=$?
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); }; }; then
5874  LIBS="$flink_save_libs"
5875                     coin_need_flibs=yes
5876                     use_blas="-lcomplib.sgimath"
5877                         if test $coin_need_flibs = yes ; then
5878                           use_blas="$use_blas $FLIBS"
5879                         fi
5880                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5881echo "${ECHO_T}yes: $use_blas" >&6
5882
5883
5884else
5885  echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888LIBS="$flink_save_libs"
5889                     echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892rm -f conftest.err conftest.$ac_objext \
5893      conftest$ac_exeext conftest.$ac_ext
5894      else
5895        echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
5897      fi
5898    fi
5899    ;;
5900  cc|cpp)
5901    ac_ext=f
5902ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5903ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5905case $ac_cv_f77_mangling in
5906  upper*) ac_val="DAXPY" ;;
5907  lower*) ac_val="daxpy" ;;
5908  *)      ac_val="unknown" ;;
5909esac
5910case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5911
5912cfuncdaxpy="$ac_val"
5913
5914ac_ext=c
5915ac_cpp='$CPP $CPPFLAGS'
5916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918ac_compiler_gnu=$ac_cv_c_compiler_gnu
5919
5920    if test x"$coin_need_flibs" = xyes; then
5921      flink_try=no;
5922    else
5923      cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h.  */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h.  */
5929extern "C" {void $cfuncdaxpy();}
5930#ifdef F77_DUMMY_MAIN
5931
5932#  ifdef __cplusplus
5933     extern "C"
5934#  endif
5935   int F77_DUMMY_MAIN() { return 1; }
5936
5937#endif
5938int
5939main ()
5940{
5941$cfuncdaxpy()
5942  ;
5943  return 0;
5944}
5945_ACEOF
5946rm -f conftest.$ac_objext conftest$ac_exeext
5947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948  (eval $ac_link) 2>conftest.er1
5949  ac_status=$?
5950  grep -v '^ *+' conftest.er1 >conftest.err
5951  rm -f conftest.er1
5952  cat conftest.err >&5
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); } &&
5955         { ac_try='test -z "$ac_c_werror_flag"
5956                         || test ! -s conftest.err'
5957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958  (eval $ac_try) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }; } &&
5962         { ac_try='test -s conftest$ac_exeext'
5963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964  (eval $ac_try) 2>&5
5965  ac_status=$?
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); }; }; then
5968  flink_try=yes
5969else
5970  echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973flink_try=no
5974fi
5975rm -f conftest.err conftest.$ac_objext \
5976      conftest$ac_exeext conftest.$ac_ext
5977    fi
5978    if test $flink_try = yes; then
5979      use_blas="-lcomplib.sgimath"
5980                         if test $coin_need_flibs = yes ; then
5981                           use_blas="$use_blas $FLIBS"
5982                         fi
5983                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5984echo "${ECHO_T}yes: $use_blas" >&6
5985
5986    else
5987      if test x"$FLIBS" != x; then
5988        flink_save_libs="$LIBS"
5989        LIBS="$LIBS $FLIBS"
5990        cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h.  */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h.  */
5996extern "C" {void $cfuncdaxpy();}
5997#ifdef F77_DUMMY_MAIN
5998
5999#  ifdef __cplusplus
6000     extern "C"
6001#  endif
6002   int F77_DUMMY_MAIN() { return 1; }
6003
6004#endif
6005int
6006main ()
6007{
6008$cfuncdaxpy()
6009  ;
6010  return 0;
6011}
6012_ACEOF
6013rm -f conftest.$ac_objext conftest$ac_exeext
6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015  (eval $ac_link) 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } &&
6022         { ac_try='test -z "$ac_c_werror_flag"
6023                         || test ! -s conftest.err'
6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025  (eval $ac_try) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; } &&
6029         { ac_try='test -s conftest$ac_exeext'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; }; then
6035  LIBS="$flink_save_libs"
6036                     coin_need_flibs=yes
6037                     use_blas="-lcomplib.sgimath"
6038                         if test $coin_need_flibs = yes ; then
6039                           use_blas="$use_blas $FLIBS"
6040                         fi
6041                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6042echo "${ECHO_T}yes: $use_blas" >&6
6043
6044
6045else
6046  echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049LIBS="$flink_save_libs"
6050                     echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052fi
6053rm -f conftest.err conftest.$ac_objext \
6054      conftest$ac_exeext conftest.$ac_ext
6055      else
6056        echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058      fi
6059    fi
6060    ;;
6061esac
6062
6063      LIBS="$coin_save_LIBS"
6064      ;;
6065
6066# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
6067# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
6068# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
6069# that CC and cc will understand -library in Studio 13. The main extra
6070# function of -xlic_lib and -library is to arrange for the Fortran run-time
6071# libraries to be linked for C++ and C. We can arrange that explicitly.
6072    *-*-solaris*)
6073      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
6074echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
6075      coin_need_flibs=no
6076      coin_save_LIBS="$LIBS"
6077      LIBS="-lsunperf $FLIBS $LIBS"
6078      case $ac_ext in
6079  f)
6080    cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h.  */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h.  */
6086
6087#ifdef F77_DUMMY_MAIN
6088
6089#  ifdef __cplusplus
6090     extern "C"
6091#  endif
6092   int F77_DUMMY_MAIN() { return 1; }
6093
6094#endif
6095int
6096main ()
6097{
6098      call daxpy
6099  ;
6100  return 0;
6101}
6102_ACEOF
6103rm -f conftest.$ac_objext conftest$ac_exeext
6104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105  (eval $ac_link) 2>conftest.er1
6106  ac_status=$?
6107  grep -v '^ *+' conftest.er1 >conftest.err
6108  rm -f conftest.er1
6109  cat conftest.err >&5
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); } &&
6112         { ac_try='test -z "$ac_c_werror_flag"
6113                         || test ! -s conftest.err'
6114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115  (eval $ac_try) 2>&5
6116  ac_status=$?
6117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); }; } &&
6119         { ac_try='test -s conftest$ac_exeext'
6120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121  (eval $ac_try) 2>&5
6122  ac_status=$?
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); }; }; then
6125  use_blas='-lsunperf'
6126                         if test $coin_need_flibs = yes ; then
6127                           use_blas="$use_blas $FLIBS"
6128                         fi
6129                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6130echo "${ECHO_T}yes: $use_blas" >&6
6131
6132else
6133  echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
6138fi
6139rm -f conftest.err conftest.$ac_objext \
6140      conftest$ac_exeext conftest.$ac_ext
6141    ;;
6142  c)
6143    ac_ext=f
6144ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6145ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6147case $ac_cv_f77_mangling in
6148  upper*) ac_val="DAXPY" ;;
6149  lower*) ac_val="daxpy" ;;
6150  *)      ac_val="unknown" ;;
6151esac
6152case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6153
6154cfuncdaxpy="$ac_val"
6155
6156ac_ext=c
6157ac_cpp='$CPP $CPPFLAGS'
6158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162    if test x"$coin_need_flibs" = xyes; then
6163      flink_try=no;
6164    else
6165      cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h.  */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h.  */
6171void $cfuncdaxpy();
6172#ifdef F77_DUMMY_MAIN
6173
6174#  ifdef __cplusplus
6175     extern "C"
6176#  endif
6177   int F77_DUMMY_MAIN() { return 1; }
6178
6179#endif
6180int
6181main ()
6182{
6183$cfuncdaxpy()
6184  ;
6185  return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext conftest$ac_exeext
6189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190  (eval $ac_link) 2>conftest.er1
6191  ac_status=$?
6192  grep -v '^ *+' conftest.er1 >conftest.err
6193  rm -f conftest.er1
6194  cat conftest.err >&5
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } &&
6197         { ac_try='test -z "$ac_c_werror_flag"
6198                         || test ! -s conftest.err'
6199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200  (eval $ac_try) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }; } &&
6204         { ac_try='test -s conftest$ac_exeext'
6205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206  (eval $ac_try) 2>&5
6207  ac_status=$?
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); }; }; then
6210  flink_try=yes
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215flink_try=no
6216fi
6217rm -f conftest.err conftest.$ac_objext \
6218      conftest$ac_exeext conftest.$ac_ext
6219    fi
6220    if test $flink_try = yes; then
6221      use_blas='-lsunperf'
6222                         if test $coin_need_flibs = yes ; then
6223                           use_blas="$use_blas $FLIBS"
6224                         fi
6225                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6226echo "${ECHO_T}yes: $use_blas" >&6
6227
6228    else
6229      if test x"$FLIBS" != x; then
6230        flink_save_libs="$LIBS"
6231        LIBS="$LIBS $FLIBS"
6232        cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h.  */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h.  */
6238void $cfuncdaxpy();
6239#ifdef F77_DUMMY_MAIN
6240
6241#  ifdef __cplusplus
6242     extern "C"
6243#  endif
6244   int F77_DUMMY_MAIN() { return 1; }
6245
6246#endif
6247int
6248main ()
6249{
6250$cfuncdaxpy()
6251  ;
6252  return 0;
6253}
6254_ACEOF
6255rm -f conftest.$ac_objext conftest$ac_exeext
6256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6257  (eval $ac_link) 2>conftest.er1
6258  ac_status=$?
6259  grep -v '^ *+' conftest.er1 >conftest.err
6260  rm -f conftest.er1
6261  cat conftest.err >&5
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); } &&
6264         { ac_try='test -z "$ac_c_werror_flag"
6265                         || test ! -s conftest.err'
6266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267  (eval $ac_try) 2>&5
6268  ac_status=$?
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); }; } &&
6271         { ac_try='test -s conftest$ac_exeext'
6272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273  (eval $ac_try) 2>&5
6274  ac_status=$?
6275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); }; }; then
6277  LIBS="$flink_save_libs"
6278                     coin_need_flibs=yes
6279                     use_blas='-lsunperf'
6280                         if test $coin_need_flibs = yes ; then
6281                           use_blas="$use_blas $FLIBS"
6282                         fi
6283                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6284echo "${ECHO_T}yes: $use_blas" >&6
6285
6286
6287else
6288  echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291LIBS="$flink_save_libs"
6292                     echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
6294fi
6295rm -f conftest.err conftest.$ac_objext \
6296      conftest$ac_exeext conftest.$ac_ext
6297      else
6298        echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300      fi
6301    fi
6302    ;;
6303  cc|cpp)
6304    ac_ext=f
6305ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6306ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6308case $ac_cv_f77_mangling in
6309  upper*) ac_val="DAXPY" ;;
6310  lower*) ac_val="daxpy" ;;
6311  *)      ac_val="unknown" ;;
6312esac
6313case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6314
6315cfuncdaxpy="$ac_val"
6316
6317ac_ext=c
6318ac_cpp='$CPP $CPPFLAGS'
6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323    if test x"$coin_need_flibs" = xyes; then
6324      flink_try=no;
6325    else
6326      cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h.  */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h.  */
6332extern "C" {void $cfuncdaxpy();}
6333#ifdef F77_DUMMY_MAIN
6334
6335#  ifdef __cplusplus
6336     extern "C"
6337#  endif
6338   int F77_DUMMY_MAIN() { return 1; }
6339
6340#endif
6341int
6342main ()
6343{
6344$cfuncdaxpy()
6345  ;
6346  return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext conftest$ac_exeext
6350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351  (eval $ac_link) 2>conftest.er1
6352  ac_status=$?
6353  grep -v '^ *+' conftest.er1 >conftest.err
6354  rm -f conftest.er1
6355  cat conftest.err >&5
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); } &&
6358         { ac_try='test -z "$ac_c_werror_flag"
6359                         || test ! -s conftest.err'
6360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361  (eval $ac_try) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }; } &&
6365         { ac_try='test -s conftest$ac_exeext'
6366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367  (eval $ac_try) 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); }; }; then
6371  flink_try=yes
6372else
6373  echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376flink_try=no
6377fi
6378rm -f conftest.err conftest.$ac_objext \
6379      conftest$ac_exeext conftest.$ac_ext
6380    fi
6381    if test $flink_try = yes; then
6382      use_blas='-lsunperf'
6383                         if test $coin_need_flibs = yes ; then
6384                           use_blas="$use_blas $FLIBS"
6385                         fi
6386                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6387echo "${ECHO_T}yes: $use_blas" >&6
6388
6389    else
6390      if test x"$FLIBS" != x; then
6391        flink_save_libs="$LIBS"
6392        LIBS="$LIBS $FLIBS"
6393        cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399extern "C" {void $cfuncdaxpy();}
6400#ifdef F77_DUMMY_MAIN
6401
6402#  ifdef __cplusplus
6403     extern "C"
6404#  endif
6405   int F77_DUMMY_MAIN() { return 1; }
6406
6407#endif
6408int
6409main ()
6410{
6411$cfuncdaxpy()
6412  ;
6413  return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext conftest$ac_exeext
6417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418  (eval $ac_link) 2>conftest.er1
6419  ac_status=$?
6420  grep -v '^ *+' conftest.er1 >conftest.err
6421  rm -f conftest.er1
6422  cat conftest.err >&5
6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424  (exit $ac_status); } &&
6425         { ac_try='test -z "$ac_c_werror_flag"
6426                         || test ! -s conftest.err'
6427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428  (eval $ac_try) 2>&5
6429  ac_status=$?
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); }; } &&
6432         { ac_try='test -s conftest$ac_exeext'
6433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434  (eval $ac_try) 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }; }; then
6438  LIBS="$flink_save_libs"
6439                     coin_need_flibs=yes
6440                     use_blas='-lsunperf'
6441                         if test $coin_need_flibs = yes ; then
6442                           use_blas="$use_blas $FLIBS"
6443                         fi
6444                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6445echo "${ECHO_T}yes: $use_blas" >&6
6446
6447
6448else
6449  echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452LIBS="$flink_save_libs"
6453                     echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6
6455fi
6456rm -f conftest.err conftest.$ac_objext \
6457      conftest$ac_exeext conftest.$ac_ext
6458      else
6459        echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461      fi
6462    fi
6463    ;;
6464esac
6465
6466      LIBS="$coin_save_LIBS"
6467      ;;
6468
6469    *-cygwin* | *-mingw*)
6470# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
6471# library will want to link with cygwin, hence won't run standalone in DOS.
6472      if test "$enable_doscompile" = mingw; then
6473        skip_lblas_check=yes
6474      fi
6475      case "$CC" in
6476        clang* ) ;;
6477        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6478          coin_save_LIBS="$LIBS"
6479          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6480echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6481          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6482          case $ac_ext in
6483  f)
6484    cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h.  */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h.  */
6490
6491#ifdef F77_DUMMY_MAIN
6492
6493#  ifdef __cplusplus
6494     extern "C"
6495#  endif
6496   int F77_DUMMY_MAIN() { return 1; }
6497
6498#endif
6499int
6500main ()
6501{
6502      call daxpy
6503  ;
6504  return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext conftest$ac_exeext
6508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6509  (eval $ac_link) 2>conftest.er1
6510  ac_status=$?
6511  grep -v '^ *+' conftest.er1 >conftest.err
6512  rm -f conftest.er1
6513  cat conftest.err >&5
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); } &&
6516         { ac_try='test -z "$ac_c_werror_flag"
6517                         || test ! -s conftest.err'
6518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519  (eval $ac_try) 2>&5
6520  ac_status=$?
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); }; } &&
6523         { ac_try='test -s conftest$ac_exeext'
6524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525  (eval $ac_try) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; }; then
6529  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6530                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6531echo "${ECHO_T}yes: $use_blas" >&6
6532
6533else
6534  echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539fi
6540rm -f conftest.err conftest.$ac_objext \
6541      conftest$ac_exeext conftest.$ac_ext
6542    ;;
6543  c)
6544    ac_ext=f
6545ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6546ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6548case $ac_cv_f77_mangling in
6549  upper*) ac_val="DAXPY" ;;
6550  lower*) ac_val="daxpy" ;;
6551  *)      ac_val="unknown" ;;
6552esac
6553case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6554
6555cfuncdaxpy="$ac_val"
6556
6557ac_ext=c
6558ac_cpp='$CPP $CPPFLAGS'
6559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563    if test x"$coin_need_flibs" = xyes; then
6564      flink_try=no;
6565    else
6566      cat >conftest.$ac_ext <<_ACEOF
6567/* confdefs.h.  */
6568_ACEOF
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>conftest.$ac_ext <<_ACEOF
6571/* end confdefs.h.  */
6572void $cfuncdaxpy();
6573#ifdef F77_DUMMY_MAIN
6574
6575#  ifdef __cplusplus
6576     extern "C"
6577#  endif
6578   int F77_DUMMY_MAIN() { return 1; }
6579
6580#endif
6581int
6582main ()
6583{
6584$cfuncdaxpy()
6585  ;
6586  return 0;
6587}
6588_ACEOF
6589rm -f conftest.$ac_objext conftest$ac_exeext
6590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591  (eval $ac_link) 2>conftest.er1
6592  ac_status=$?
6593  grep -v '^ *+' conftest.er1 >conftest.err
6594  rm -f conftest.er1
6595  cat conftest.err >&5
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); } &&
6598         { ac_try='test -z "$ac_c_werror_flag"
6599                         || test ! -s conftest.err'
6600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601  (eval $ac_try) 2>&5
6602  ac_status=$?
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); }; } &&
6605         { ac_try='test -s conftest$ac_exeext'
6606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607  (eval $ac_try) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }; }; then
6611  flink_try=yes
6612else
6613  echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616flink_try=no
6617fi
6618rm -f conftest.err conftest.$ac_objext \
6619      conftest$ac_exeext conftest.$ac_ext
6620    fi
6621    if test $flink_try = yes; then
6622      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6623                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6624echo "${ECHO_T}yes: $use_blas" >&6
6625
6626    else
6627      if test x"$FLIBS" != x; then
6628        flink_save_libs="$LIBS"
6629        LIBS="$LIBS $FLIBS"
6630        cat >conftest.$ac_ext <<_ACEOF
6631/* confdefs.h.  */
6632_ACEOF
6633cat confdefs.h >>conftest.$ac_ext
6634cat >>conftest.$ac_ext <<_ACEOF
6635/* end confdefs.h.  */
6636void $cfuncdaxpy();
6637#ifdef F77_DUMMY_MAIN
6638
6639#  ifdef __cplusplus
6640     extern "C"
6641#  endif
6642   int F77_DUMMY_MAIN() { return 1; }
6643
6644#endif
6645int
6646main ()
6647{
6648$cfuncdaxpy()
6649  ;
6650  return 0;
6651}
6652_ACEOF
6653rm -f conftest.$ac_objext conftest$ac_exeext
6654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655  (eval $ac_link) 2>conftest.er1
6656  ac_status=$?
6657  grep -v '^ *+' conftest.er1 >conftest.err
6658  rm -f conftest.er1
6659  cat conftest.err >&5
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); } &&
6662         { ac_try='test -z "$ac_c_werror_flag"
6663                         || test ! -s conftest.err'
6664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665  (eval $ac_try) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; } &&
6669         { ac_try='test -s conftest$ac_exeext'
6670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671  (eval $ac_try) 2>&5
6672  ac_status=$?
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); }; }; then
6675  LIBS="$flink_save_libs"
6676                     coin_need_flibs=yes
6677                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6678                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6679echo "${ECHO_T}yes: $use_blas" >&6
6680
6681
6682else
6683  echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686LIBS="$flink_save_libs"
6687                     echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
6689fi
6690rm -f conftest.err conftest.$ac_objext \
6691      conftest$ac_exeext conftest.$ac_ext
6692      else
6693        echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6
6695      fi
6696    fi
6697    ;;
6698  cc|cpp)
6699    ac_ext=f
6700ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6701ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6703case $ac_cv_f77_mangling in
6704  upper*) ac_val="DAXPY" ;;
6705  lower*) ac_val="daxpy" ;;
6706  *)      ac_val="unknown" ;;
6707esac
6708case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6709
6710cfuncdaxpy="$ac_val"
6711
6712ac_ext=c
6713ac_cpp='$CPP $CPPFLAGS'
6714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716ac_compiler_gnu=$ac_cv_c_compiler_gnu
6717
6718    if test x"$coin_need_flibs" = xyes; then
6719      flink_try=no;
6720    else
6721      cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h.  */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h.  */
6727extern "C" {void $cfuncdaxpy();}
6728#ifdef F77_DUMMY_MAIN
6729
6730#  ifdef __cplusplus
6731     extern "C"
6732#  endif
6733   int F77_DUMMY_MAIN() { return 1; }
6734
6735#endif
6736int
6737main ()
6738{
6739$cfuncdaxpy()
6740  ;
6741  return 0;
6742}
6743_ACEOF
6744rm -f conftest.$ac_objext conftest$ac_exeext
6745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746  (eval $ac_link) 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } &&
6753         { ac_try='test -z "$ac_c_werror_flag"
6754                         || test ! -s conftest.err'
6755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756  (eval $ac_try) 2>&5
6757  ac_status=$?
6758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759  (exit $ac_status); }; } &&
6760         { ac_try='test -s conftest$ac_exeext'
6761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762  (eval $ac_try) 2>&5
6763  ac_status=$?
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); }; }; then
6766  flink_try=yes
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771flink_try=no
6772fi
6773rm -f conftest.err conftest.$ac_objext \
6774      conftest$ac_exeext conftest.$ac_ext
6775    fi
6776    if test $flink_try = yes; then
6777      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6778                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6779echo "${ECHO_T}yes: $use_blas" >&6
6780
6781    else
6782      if test x"$FLIBS" != x; then
6783        flink_save_libs="$LIBS"
6784        LIBS="$LIBS $FLIBS"
6785        cat >conftest.$ac_ext <<_ACEOF
6786/* confdefs.h.  */
6787_ACEOF
6788cat confdefs.h >>conftest.$ac_ext
6789cat >>conftest.$ac_ext <<_ACEOF
6790/* end confdefs.h.  */
6791extern "C" {void $cfuncdaxpy();}
6792#ifdef F77_DUMMY_MAIN
6793
6794#  ifdef __cplusplus
6795     extern "C"
6796#  endif
6797   int F77_DUMMY_MAIN() { return 1; }
6798
6799#endif
6800int
6801main ()
6802{
6803$cfuncdaxpy()
6804  ;
6805  return 0;
6806}
6807_ACEOF
6808rm -f conftest.$ac_objext conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810  (eval $ac_link) 2>conftest.er1
6811  ac_status=$?
6812  grep -v '^ *+' conftest.er1 >conftest.err
6813  rm -f conftest.er1
6814  cat conftest.err >&5
6815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816  (exit $ac_status); } &&
6817         { ac_try='test -z "$ac_c_werror_flag"
6818                         || test ! -s conftest.err'
6819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820  (eval $ac_try) 2>&5
6821  ac_status=$?
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); }; } &&
6824         { ac_try='test -s conftest$ac_exeext'
6825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826  (eval $ac_try) 2>&5
6827  ac_status=$?
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); }; }; then
6830  LIBS="$flink_save_libs"
6831                     coin_need_flibs=yes
6832                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6833                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6834echo "${ECHO_T}yes: $use_blas" >&6
6835
6836
6837else
6838  echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841LIBS="$flink_save_libs"
6842                     echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
6844fi
6845rm -f conftest.err conftest.$ac_objext \
6846      conftest$ac_exeext conftest.$ac_ext
6847      else
6848        echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6
6850      fi
6851    fi
6852    ;;
6853esac
6854
6855          LIBS="$coin_save_LIBS"
6856
6857          if test "x$use_blas" = x ; then
6858            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6859echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6860            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6861            case $ac_ext in
6862  f)
6863    cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h.  */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h.  */
6869
6870#ifdef F77_DUMMY_MAIN
6871
6872#  ifdef __cplusplus
6873     extern "C"
6874#  endif
6875   int F77_DUMMY_MAIN() { return 1; }
6876
6877#endif
6878int
6879main ()
6880{
6881      call daxpy
6882  ;
6883  return 0;
6884}
6885_ACEOF
6886rm -f conftest.$ac_objext conftest$ac_exeext
6887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888  (eval $ac_link) 2>conftest.er1
6889  ac_status=$?
6890  grep -v '^ *+' conftest.er1 >conftest.err
6891  rm -f conftest.er1
6892  cat conftest.err >&5
6893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894  (exit $ac_status); } &&
6895         { ac_try='test -z "$ac_c_werror_flag"
6896                         || test ! -s conftest.err'
6897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898  (eval $ac_try) 2>&5
6899  ac_status=$?
6900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901  (exit $ac_status); }; } &&
6902         { ac_try='test -s conftest$ac_exeext'
6903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904  (eval $ac_try) 2>&5
6905  ac_status=$?
6906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907  (exit $ac_status); }; }; then
6908  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6909                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6910echo "${ECHO_T}yes: $use_blas" >&6
6911
6912else
6913  echo "$as_me: failed program was:" >&5
6914sed 's/^/| /' conftest.$ac_ext >&5
6915
6916echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
6918fi
6919rm -f conftest.err conftest.$ac_objext \
6920      conftest$ac_exeext conftest.$ac_ext
6921    ;;
6922  c)
6923    ac_ext=f
6924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6927case $ac_cv_f77_mangling in
6928  upper*) ac_val="DAXPY" ;;
6929  lower*) ac_val="daxpy" ;;
6930  *)      ac_val="unknown" ;;
6931esac
6932case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6933
6934cfuncdaxpy="$ac_val"
6935
6936ac_ext=c
6937ac_cpp='$CPP $CPPFLAGS'
6938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941
6942    if test x"$coin_need_flibs" = xyes; then
6943      flink_try=no;
6944    else
6945      cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h.  */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h.  */
6951void $cfuncdaxpy();
6952#ifdef F77_DUMMY_MAIN
6953
6954#  ifdef __cplusplus
6955     extern "C"
6956#  endif
6957   int F77_DUMMY_MAIN() { return 1; }
6958
6959#endif
6960int
6961main ()
6962{
6963$cfuncdaxpy()
6964  ;
6965  return 0;
6966}
6967_ACEOF
6968rm -f conftest.$ac_objext conftest$ac_exeext
6969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970  (eval $ac_link) 2>conftest.er1
6971  ac_status=$?
6972  grep -v '^ *+' conftest.er1 >conftest.err
6973  rm -f conftest.er1
6974  cat conftest.err >&5
6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976  (exit $ac_status); } &&
6977         { ac_try='test -z "$ac_c_werror_flag"
6978                         || test ! -s conftest.err'
6979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980  (eval $ac_try) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }; } &&
6984         { ac_try='test -s conftest$ac_exeext'
6985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986  (eval $ac_try) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }; }; then
6990  flink_try=yes
6991else
6992  echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995flink_try=no
6996fi
6997rm -f conftest.err conftest.$ac_objext \
6998      conftest$ac_exeext conftest.$ac_ext
6999    fi
7000    if test $flink_try = yes; then
7001      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7002                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7003echo "${ECHO_T}yes: $use_blas" >&6
7004
7005    else
7006      if test x"$FLIBS" != x; then
7007        flink_save_libs="$LIBS"
7008        LIBS="$LIBS $FLIBS"
7009        cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015void $cfuncdaxpy();
7016#ifdef F77_DUMMY_MAIN
7017
7018#  ifdef __cplusplus
7019     extern "C"
7020#  endif
7021   int F77_DUMMY_MAIN() { return 1; }
7022
7023#endif
7024int
7025main ()
7026{
7027$cfuncdaxpy()
7028  ;
7029  return 0;
7030}
7031_ACEOF
7032rm -f conftest.$ac_objext conftest$ac_exeext
7033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034  (eval $ac_link) 2>conftest.er1
7035  ac_status=$?
7036  grep -v '^ *+' conftest.er1 >conftest.err
7037  rm -f conftest.er1
7038  cat conftest.err >&5
7039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040  (exit $ac_status); } &&
7041         { ac_try='test -z "$ac_c_werror_flag"
7042                         || test ! -s conftest.err'
7043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044  (eval $ac_try) 2>&5
7045  ac_status=$?
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); }; } &&
7048         { ac_try='test -s conftest$ac_exeext'
7049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050  (eval $ac_try) 2>&5
7051  ac_status=$?
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); }; }; then
7054  LIBS="$flink_save_libs"
7055                     coin_need_flibs=yes
7056                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7057                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7058echo "${ECHO_T}yes: $use_blas" >&6
7059
7060
7061else
7062  echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065LIBS="$flink_save_libs"
7066                     echo "$as_me:$LINENO: result: no" >&5
7067echo "${ECHO_T}no" >&6
7068fi
7069rm -f conftest.err conftest.$ac_objext \
7070      conftest$ac_exeext conftest.$ac_ext
7071      else
7072        echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6
7074      fi
7075    fi
7076    ;;
7077  cc|cpp)
7078    ac_ext=f
7079ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7080ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7082case $ac_cv_f77_mangling in
7083  upper*) ac_val="DAXPY" ;;
7084  lower*) ac_val="daxpy" ;;
7085  *)      ac_val="unknown" ;;
7086esac
7087case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7088
7089cfuncdaxpy="$ac_val"
7090
7091ac_ext=c
7092ac_cpp='$CPP $CPPFLAGS'
7093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096
7097    if test x"$coin_need_flibs" = xyes; then
7098      flink_try=no;
7099    else
7100      cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h.  */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h.  */
7106extern "C" {void $cfuncdaxpy();}
7107#ifdef F77_DUMMY_MAIN
7108
7109#  ifdef __cplusplus
7110     extern "C"
7111#  endif
7112   int F77_DUMMY_MAIN() { return 1; }
7113
7114#endif
7115int
7116main ()
7117{
7118$cfuncdaxpy()
7119  ;
7120  return 0;
7121}
7122_ACEOF
7123rm -f conftest.$ac_objext conftest$ac_exeext
7124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125  (eval $ac_link) 2>conftest.er1
7126  ac_status=$?
7127  grep -v '^ *+' conftest.er1 >conftest.err
7128  rm -f conftest.er1
7129  cat conftest.err >&5
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); } &&
7132         { ac_try='test -z "$ac_c_werror_flag"
7133                         || test ! -s conftest.err'
7134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135  (eval $ac_try) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); }; } &&
7139         { ac_try='test -s conftest$ac_exeext'
7140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141  (eval $ac_try) 2>&5
7142  ac_status=$?
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); }; }; then
7145  flink_try=yes
7146else
7147  echo "$as_me: failed program was:" >&5
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7150flink_try=no
7151fi
7152rm -f conftest.err conftest.$ac_objext \
7153      conftest$ac_exeext conftest.$ac_ext
7154    fi
7155    if test $flink_try = yes; then
7156      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7157                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7158echo "${ECHO_T}yes: $use_blas" >&6
7159
7160    else
7161      if test x"$FLIBS" != x; then
7162        flink_save_libs="$LIBS"
7163        LIBS="$LIBS $FLIBS"
7164        cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h.  */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h.  */
7170extern "C" {void $cfuncdaxpy();}
7171#ifdef F77_DUMMY_MAIN
7172
7173#  ifdef __cplusplus
7174     extern "C"
7175#  endif
7176   int F77_DUMMY_MAIN() { return 1; }
7177
7178#endif
7179int
7180main ()
7181{
7182$cfuncdaxpy()
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187rm -f conftest.$ac_objext conftest$ac_exeext
7188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189  (eval $ac_link) 2>conftest.er1
7190  ac_status=$?
7191  grep -v '^ *+' conftest.er1 >conftest.err
7192  rm -f conftest.er1
7193  cat conftest.err >&5
7194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195  (exit $ac_status); } &&
7196         { ac_try='test -z "$ac_c_werror_flag"
7197                         || test ! -s conftest.err'
7198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199  (eval $ac_try) 2>&5
7200  ac_status=$?
7201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202  (exit $ac_status); }; } &&
7203         { ac_try='test -s conftest$ac_exeext'
7204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205  (eval $ac_try) 2>&5
7206  ac_status=$?
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); }; }; then
7209  LIBS="$flink_save_libs"
7210                     coin_need_flibs=yes
7211                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
7212                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7213echo "${ECHO_T}yes: $use_blas" >&6
7214
7215
7216else
7217  echo "$as_me: failed program was:" >&5
7218sed 's/^/| /' conftest.$ac_ext >&5
7219
7220LIBS="$flink_save_libs"
7221                     echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6
7223fi
7224rm -f conftest.err conftest.$ac_objext \
7225      conftest$ac_exeext conftest.$ac_ext
7226      else
7227        echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
7229      fi
7230    fi
7231    ;;
7232esac
7233
7234            LIBS="$coin_save_LIBS"
7235          fi
7236          ;;
7237      esac
7238      ;;
7239
7240     *-darwin*)
7241      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
7242echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
7243      coin_need_flibs=no
7244      coin_save_LIBS="$LIBS"
7245      LIBS="-framework vecLib $LIBS"
7246      case $ac_ext in
7247  f)
7248    cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h.  */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h.  */
7254
7255#ifdef F77_DUMMY_MAIN
7256
7257#  ifdef __cplusplus
7258     extern "C"
7259#  endif
7260   int F77_DUMMY_MAIN() { return 1; }
7261
7262#endif
7263int
7264main ()
7265{
7266      call daxpy
7267  ;
7268  return 0;
7269}
7270_ACEOF
7271rm -f conftest.$ac_objext conftest$ac_exeext
7272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273  (eval $ac_link) 2>conftest.er1
7274  ac_status=$?
7275  grep -v '^ *+' conftest.er1 >conftest.err
7276  rm -f conftest.er1
7277  cat conftest.err >&5
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); } &&
7280         { ac_try='test -z "$ac_c_werror_flag"
7281                         || test ! -s conftest.err'
7282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283  (eval $ac_try) 2>&5
7284  ac_status=$?
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); }; } &&
7287         { ac_try='test -s conftest$ac_exeext'
7288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289  (eval $ac_try) 2>&5
7290  ac_status=$?
7291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292  (exit $ac_status); }; }; then
7293  use_blas='-framework vecLib'
7294                         if test $coin_need_flibs = yes ; then
7295                           use_blas="$use_blas $FLIBS"
7296                         fi
7297                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7298echo "${ECHO_T}yes: $use_blas" >&6
7299
7300else
7301  echo "$as_me: failed program was:" >&5
7302sed 's/^/| /' conftest.$ac_ext >&5
7303
7304echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
7306fi
7307rm -f conftest.err conftest.$ac_objext \
7308      conftest$ac_exeext conftest.$ac_ext
7309    ;;
7310  c)
7311    ac_ext=f
7312ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7313ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7315case $ac_cv_f77_mangling in
7316  upper*) ac_val="DAXPY" ;;
7317  lower*) ac_val="daxpy" ;;
7318  *)      ac_val="unknown" ;;
7319esac
7320case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7321
7322cfuncdaxpy="$ac_val"
7323
7324ac_ext=c
7325ac_cpp='$CPP $CPPFLAGS'
7326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330    if test x"$coin_need_flibs" = xyes; then
7331      flink_try=no;
7332    else
7333      cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h.  */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h.  */
7339void $cfuncdaxpy();
7340#ifdef F77_DUMMY_MAIN
7341
7342#  ifdef __cplusplus
7343     extern "C"
7344#  endif
7345   int F77_DUMMY_MAIN() { return 1; }
7346
7347#endif
7348int
7349main ()
7350{
7351$cfuncdaxpy()
7352  ;
7353  return 0;
7354}
7355_ACEOF
7356rm -f conftest.$ac_objext conftest$ac_exeext
7357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358  (eval $ac_link) 2>conftest.er1
7359  ac_status=$?
7360  grep -v '^ *+' conftest.er1 >conftest.err
7361  rm -f conftest.er1
7362  cat conftest.err >&5
7363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364  (exit $ac_status); } &&
7365         { ac_try='test -z "$ac_c_werror_flag"
7366                         || test ! -s conftest.err'
7367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368  (eval $ac_try) 2>&5
7369  ac_status=$?
7370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371  (exit $ac_status); }; } &&
7372         { ac_try='test -s conftest$ac_exeext'
7373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374  (eval $ac_try) 2>&5
7375  ac_status=$?
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); }; }; then
7378  flink_try=yes
7379else
7380  echo "$as_me: failed program was:" >&5
7381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383flink_try=no
7384fi
7385rm -f conftest.err conftest.$ac_objext \
7386      conftest$ac_exeext conftest.$ac_ext
7387    fi
7388    if test $flink_try = yes; then
7389      use_blas='-framework vecLib'
7390                         if test $coin_need_flibs = yes ; then
7391                           use_blas="$use_blas $FLIBS"
7392                         fi
7393                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7394echo "${ECHO_T}yes: $use_blas" >&6
7395
7396    else
7397      if test x"$FLIBS" != x; then
7398        flink_save_libs="$LIBS"
7399        LIBS="$LIBS $FLIBS"
7400        cat >conftest.$ac_ext <<_ACEOF
7401/* confdefs.h.  */
7402_ACEOF
7403cat confdefs.h >>conftest.$ac_ext
7404cat >>conftest.$ac_ext <<_ACEOF
7405/* end confdefs.h.  */
7406void $cfuncdaxpy();
7407#ifdef F77_DUMMY_MAIN
7408
7409#  ifdef __cplusplus
7410     extern "C"
7411#  endif
7412   int F77_DUMMY_MAIN() { return 1; }
7413
7414#endif
7415int
7416main ()
7417{
7418$cfuncdaxpy()
7419  ;
7420  return 0;
7421}
7422_ACEOF
7423rm -f conftest.$ac_objext conftest$ac_exeext
7424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425  (eval $ac_link) 2>conftest.er1
7426  ac_status=$?
7427  grep -v '^ *+' conftest.er1 >conftest.err
7428  rm -f conftest.er1
7429  cat conftest.err >&5
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); } &&
7432         { ac_try='test -z "$ac_c_werror_flag"
7433                         || test ! -s conftest.err'
7434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435  (eval $ac_try) 2>&5
7436  ac_status=$?
7437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); }; } &&
7439         { ac_try='test -s conftest$ac_exeext'
7440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441  (eval $ac_try) 2>&5
7442  ac_status=$?
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); }; }; then
7445  LIBS="$flink_save_libs"
7446                     coin_need_flibs=yes
7447                     use_blas='-framework vecLib'
7448                         if test $coin_need_flibs = yes ; then
7449                           use_blas="$use_blas $FLIBS"
7450                         fi
7451                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7452echo "${ECHO_T}yes: $use_blas" >&6
7453
7454
7455else
7456  echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459LIBS="$flink_save_libs"
7460                     echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462fi
7463rm -f conftest.err conftest.$ac_objext \
7464      conftest$ac_exeext conftest.$ac_ext
7465      else
7466        echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468      fi
7469    fi
7470    ;;
7471  cc|cpp)
7472    ac_ext=f
7473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7476case $ac_cv_f77_mangling in
7477  upper*) ac_val="DAXPY" ;;
7478  lower*) ac_val="daxpy" ;;
7479  *)      ac_val="unknown" ;;
7480esac
7481case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7482
7483cfuncdaxpy="$ac_val"
7484
7485ac_ext=c
7486ac_cpp='$CPP $CPPFLAGS'
7487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491    if test x"$coin_need_flibs" = xyes; then
7492      flink_try=no;
7493    else
7494      cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h.  */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h.  */
7500extern "C" {void $cfuncdaxpy();}
7501#ifdef F77_DUMMY_MAIN
7502
7503#  ifdef __cplusplus
7504     extern "C"
7505#  endif
7506   int F77_DUMMY_MAIN() { return 1; }
7507
7508#endif
7509int
7510main ()
7511{
7512$cfuncdaxpy()
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext conftest$ac_exeext
7518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519  (eval $ac_link) 2>conftest.er1
7520  ac_status=$?
7521  grep -v '^ *+' conftest.er1 >conftest.err
7522  rm -f conftest.er1
7523  cat conftest.err >&5
7524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525  (exit $ac_status); } &&
7526         { ac_try='test -z "$ac_c_werror_flag"
7527                         || test ! -s conftest.err'
7528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529  (eval $ac_try) 2>&5
7530  ac_status=$?
7531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532  (exit $ac_status); }; } &&
7533         { ac_try='test -s conftest$ac_exeext'
7534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535  (eval $ac_try) 2>&5
7536  ac_status=$?
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); }; }; then
7539  flink_try=yes
7540else
7541  echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544flink_try=no
7545fi
7546rm -f conftest.err conftest.$ac_objext \
7547      conftest$ac_exeext conftest.$ac_ext
7548    fi
7549    if test $flink_try = yes; then
7550      use_blas='-framework vecLib'
7551                         if test $coin_need_flibs = yes ; then
7552                           use_blas="$use_blas $FLIBS"
7553                         fi
7554                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7555echo "${ECHO_T}yes: $use_blas" >&6
7556
7557    else
7558      if test x"$FLIBS" != x; then
7559        flink_save_libs="$LIBS"
7560        LIBS="$LIBS $FLIBS"
7561        cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h.  */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
7566/* end confdefs.h.  */
7567extern "C" {void $cfuncdaxpy();}
7568#ifdef F77_DUMMY_MAIN
7569
7570#  ifdef __cplusplus
7571     extern "C"
7572#  endif
7573   int F77_DUMMY_MAIN() { return 1; }
7574
7575#endif
7576int
7577main ()
7578{
7579$cfuncdaxpy()
7580  ;
7581  return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext conftest$ac_exeext
7585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586  (eval $ac_link) 2>conftest.er1
7587  ac_status=$?
7588  grep -v '^ *+' conftest.er1 >conftest.err
7589  rm -f conftest.er1
7590  cat conftest.err >&5
7591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592  (exit $ac_status); } &&
7593         { ac_try='test -z "$ac_c_werror_flag"
7594                         || test ! -s conftest.err'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; } &&
7600         { ac_try='test -s conftest$ac_exeext'
7601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602  (eval $ac_try) 2>&5
7603  ac_status=$?
7604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605  (exit $ac_status); }; }; then
7606  LIBS="$flink_save_libs"
7607                     coin_need_flibs=yes
7608                     use_blas='-framework vecLib'
7609                         if test $coin_need_flibs = yes ; then
7610                           use_blas="$use_blas $FLIBS"
7611                         fi
7612                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7613echo "${ECHO_T}yes: $use_blas" >&6
7614
7615
7616else
7617  echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620LIBS="$flink_save_libs"
7621                     echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624rm -f conftest.err conftest.$ac_objext \
7625      conftest$ac_exeext conftest.$ac_ext
7626      else
7627        echo "$as_me:$LINENO: result: no" >&5
7628echo "${ECHO_T}no" >&6
7629      fi
7630    fi
7631    ;;
7632esac
7633
7634      LIBS="$coin_save_LIBS"
7635      ;;
7636  esac
7637
7638  if test -z "$use_blas" && test $skip_lblas_check = no; then
7639    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7640echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7641    coin_need_flibs=no
7642    coin_save_LIBS="$LIBS"
7643    LIBS="-lblas $LIBS"
7644    case $ac_ext in
7645  f)
7646    cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h.  */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h.  */
7652
7653#ifdef F77_DUMMY_MAIN
7654
7655#  ifdef __cplusplus
7656     extern "C"
7657#  endif
7658   int F77_DUMMY_MAIN() { return 1; }
7659
7660#endif
7661int
7662main ()
7663{
7664      call daxpy
7665  ;
7666  return 0;
7667}
7668_ACEOF
7669rm -f conftest.$ac_objext conftest$ac_exeext
7670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671  (eval $ac_link) 2>conftest.er1
7672  ac_status=$?
7673  grep -v '^ *+' conftest.er1 >conftest.err
7674  rm -f conftest.er1
7675  cat conftest.err >&5
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); } &&
7678         { ac_try='test -z "$ac_c_werror_flag"
7679                         || test ! -s conftest.err'
7680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681  (eval $ac_try) 2>&5
7682  ac_status=$?
7683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684  (exit $ac_status); }; } &&
7685         { ac_try='test -s conftest$ac_exeext'
7686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687  (eval $ac_try) 2>&5
7688  ac_status=$?
7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); }; }; then
7691  use_blas='-lblas'
7692                       if test $coin_need_flibs = yes ; then
7693                         use_blas="$use_blas $FLIBS"
7694                       fi
7695                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7696echo "${ECHO_T}yes: $use_blas" >&6
7697
7698else
7699  echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704fi
7705rm -f conftest.err conftest.$ac_objext \
7706      conftest$ac_exeext conftest.$ac_ext
7707    ;;
7708  c)
7709    ac_ext=f
7710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7713case $ac_cv_f77_mangling in
7714  upper*) ac_val="DAXPY" ;;
7715  lower*) ac_val="daxpy" ;;
7716  *)      ac_val="unknown" ;;
7717esac
7718case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7719
7720cfuncdaxpy="$ac_val"
7721
7722ac_ext=c
7723ac_cpp='$CPP $CPPFLAGS'
7724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726ac_compiler_gnu=$ac_cv_c_compiler_gnu
7727
7728    if test x"$coin_need_flibs" = xyes; then
7729      flink_try=no;
7730    else
7731      cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h.  */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h.  */
7737void $cfuncdaxpy();
7738#ifdef F77_DUMMY_MAIN
7739
7740#  ifdef __cplusplus
7741     extern "C"
7742#  endif
7743   int F77_DUMMY_MAIN() { return 1; }
7744
7745#endif
7746int
7747main ()
7748{
7749$cfuncdaxpy()
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754rm -f conftest.$ac_objext conftest$ac_exeext
7755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756  (eval $ac_link) 2>conftest.er1
7757  ac_status=$?
7758  grep -v '^ *+' conftest.er1 >conftest.err
7759  rm -f conftest.er1
7760  cat conftest.err >&5
7761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762  (exit $ac_status); } &&
7763         { ac_try='test -z "$ac_c_werror_flag"
7764                         || test ! -s conftest.err'
7765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766  (eval $ac_try) 2>&5
7767  ac_status=$?
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); }; } &&
7770         { ac_try='test -s conftest$ac_exeext'
7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772  (eval $ac_try) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }; }; then
7776  flink_try=yes
7777else
7778  echo "$as_me: failed program was:" >&5
7779sed 's/^/| /' conftest.$ac_ext >&5
7780
7781flink_try=no
7782fi
7783rm -f conftest.err conftest.$ac_objext \
7784      conftest$ac_exeext conftest.$ac_ext
7785    fi
7786    if test $flink_try = yes; then
7787      use_blas='-lblas'
7788                       if test $coin_need_flibs = yes ; then
7789                         use_blas="$use_blas $FLIBS"
7790                       fi
7791                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7792echo "${ECHO_T}yes: $use_blas" >&6
7793
7794    else
7795      if test x"$FLIBS" != x; then
7796        flink_save_libs="$LIBS"
7797        LIBS="$LIBS $FLIBS"
7798        cat >conftest.$ac_ext <<_ACEOF
7799/* confdefs.h.  */
7800_ACEOF
7801cat confdefs.h >>conftest.$ac_ext
7802cat >>conftest.$ac_ext <<_ACEOF
7803/* end confdefs.h.  */
7804void $cfuncdaxpy();
7805#ifdef F77_DUMMY_MAIN
7806
7807#  ifdef __cplusplus
7808     extern "C"
7809#  endif
7810   int F77_DUMMY_MAIN() { return 1; }
7811
7812#endif
7813int
7814main ()
7815{
7816$cfuncdaxpy()
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821rm -f conftest.$ac_objext conftest$ac_exeext
7822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7823  (eval $ac_link) 2>conftest.er1
7824  ac_status=$?
7825  grep -v '^ *+' conftest.er1 >conftest.err
7826  rm -f conftest.er1
7827  cat conftest.err >&5
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); } &&
7830         { ac_try='test -z "$ac_c_werror_flag"
7831                         || test ! -s conftest.err'
7832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833  (eval $ac_try) 2>&5
7834  ac_status=$?
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); }; } &&
7837         { ac_try='test -s conftest$ac_exeext'
7838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839  (eval $ac_try) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); }; }; then
7843  LIBS="$flink_save_libs"
7844                     coin_need_flibs=yes
7845                     use_blas='-lblas'
7846                       if test $coin_need_flibs = yes ; then
7847                         use_blas="$use_blas $FLIBS"
7848                       fi
7849                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7850echo "${ECHO_T}yes: $use_blas" >&6
7851
7852
7853else
7854  echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857LIBS="$flink_save_libs"
7858                     echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6
7860fi
7861rm -f conftest.err conftest.$ac_objext \
7862      conftest$ac_exeext conftest.$ac_ext
7863      else
7864        echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866      fi
7867    fi
7868    ;;
7869  cc|cpp)
7870    ac_ext=f
7871ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7872ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7873ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7874case $ac_cv_f77_mangling in
7875  upper*) ac_val="DAXPY" ;;
7876  lower*) ac_val="daxpy" ;;
7877  *)      ac_val="unknown" ;;
7878esac
7879case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7880
7881cfuncdaxpy="$ac_val"
7882
7883ac_ext=c
7884ac_cpp='$CPP $CPPFLAGS'
7885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889    if test x"$coin_need_flibs" = xyes; then
7890      flink_try=no;
7891    else
7892      cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h.  */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h.  */
7898extern "C" {void $cfuncdaxpy();}
7899#ifdef F77_DUMMY_MAIN
7900
7901#  ifdef __cplusplus
7902     extern "C"
7903#  endif
7904   int F77_DUMMY_MAIN() { return 1; }
7905
7906#endif
7907int
7908main ()
7909{
7910$cfuncdaxpy()
7911  ;
7912  return 0;
7913}
7914_ACEOF
7915rm -f conftest.$ac_objext conftest$ac_exeext
7916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917  (eval $ac_link) 2>conftest.er1
7918  ac_status=$?
7919  grep -v '^ *+' conftest.er1 >conftest.err
7920  rm -f conftest.er1
7921  cat conftest.err >&5
7922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923  (exit $ac_status); } &&
7924         { ac_try='test -z "$ac_c_werror_flag"
7925                         || test ! -s conftest.err'
7926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927  (eval $ac_try) 2>&5
7928  ac_status=$?
7929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930  (exit $ac_status); }; } &&
7931         { ac_try='test -s conftest$ac_exeext'
7932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933  (eval $ac_try) 2>&5
7934  ac_status=$?
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); }; }; then
7937  flink_try=yes
7938else
7939  echo "$as_me: failed program was:" >&5
7940sed 's/^/| /' conftest.$ac_ext >&5
7941
7942flink_try=no
7943fi
7944rm -f conftest.err conftest.$ac_objext \
7945      conftest$ac_exeext conftest.$ac_ext
7946    fi
7947    if test $flink_try = yes; then
7948      use_blas='-lblas'
7949                       if test $coin_need_flibs = yes ; then
7950                         use_blas="$use_blas $FLIBS"
7951                       fi
7952                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7953echo "${ECHO_T}yes: $use_blas" >&6
7954
7955    else
7956      if test x"$FLIBS" != x; then
7957        flink_save_libs="$LIBS"
7958        LIBS="$LIBS $FLIBS"
7959        cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h.  */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h.  */
7965extern "C" {void $cfuncdaxpy();}
7966#ifdef F77_DUMMY_MAIN
7967
7968#  ifdef __cplusplus
7969     extern "C"
7970#  endif
7971   int F77_DUMMY_MAIN() { return 1; }
7972
7973#endif
7974int
7975main ()
7976{
7977$cfuncdaxpy()
7978  ;
7979  return 0;
7980}
7981_ACEOF
7982rm -f conftest.$ac_objext conftest$ac_exeext
7983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984  (eval $ac_link) 2>conftest.er1
7985  ac_status=$?
7986  grep -v '^ *+' conftest.er1 >conftest.err
7987  rm -f conftest.er1
7988  cat conftest.err >&5
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); } &&
7991         { ac_try='test -z "$ac_c_werror_flag"
7992                         || test ! -s conftest.err'
7993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994  (eval $ac_try) 2>&5
7995  ac_status=$?
7996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997  (exit $ac_status); }; } &&
7998         { ac_try='test -s conftest$ac_exeext'
7999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000  (eval $ac_try) 2>&5
8001  ac_status=$?
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); }; }; then
8004  LIBS="$flink_save_libs"
8005                     coin_need_flibs=yes
8006                     use_blas='-lblas'
8007                       if test $coin_need_flibs = yes ; then
8008                         use_blas="$use_blas $FLIBS"
8009                       fi
8010                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
8011echo "${ECHO_T}yes: $use_blas" >&6
8012
8013
8014else
8015  echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018LIBS="$flink_save_libs"
8019                     echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6
8021fi
8022rm -f conftest.err conftest.$ac_objext \
8023      conftest$ac_exeext conftest.$ac_ext
8024      else
8025        echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6
8027      fi
8028    fi
8029    ;;
8030esac
8031
8032    LIBS="$coin_save_LIBS"
8033  fi
8034
8035  # If we have no other ideas, consider building BLAS.
8036  if test -z "$use_blas" ; then
8037    use_blas=BUILD
8038  fi
8039fi
8040
8041if test "x$use_blas" = xBUILD ; then
8042
8043echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
8044echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
8045
8046coin_has_blas=notGiven
8047
8048# check if user wants to skip package in any case
8049if test x"$COIN_SKIP_PROJECTS" != x; then
8050  for dir in $COIN_SKIP_PROJECTS; do
8051    if test $dir = "Blas"; then
8052      coin_has_blas=skipping
8053    fi
8054  done
8055fi
8056
8057if test "$coin_has_blas" != skipping; then
8058
8059# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
8060if test "${with_blas+set}" = set; then
8061  withval="$with_blas"
8062  if test "$withval" = no ; then
8063       coin_has_blas=skipping
8064     fi
8065
8066fi;
8067fi
8068
8069BLAS_LIBS=
8070BLAS_CFLAGS=
8071BLAS_DATA=
8072BLAS_DEPENDENCIES=
8073BLAS_PCLIBS=
8074BLAS_PCREQUIRES=
8075BLAS_DATA=
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
8094if test $coin_has_blas != skipping; then
8095
8096# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
8097if test "${with_blas_lib+set}" = set; then
8098  withval="$with_blas_lib"
8099  if test "$withval" = no ; then
8100       coin_has_blas=skipping
8101     else
8102       coin_has_blas=yes
8103       BLAS_LIBS="$withval"
8104       BLAS_PCLIBS="$withval"
8105
8106         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
8107         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
8108
8109       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8110       if test -z "$PKG_CONFIG" ; then
8111         BLAS_LIBS_INSTALLED="$withval"
8112         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
8113       fi
8114     fi
8115
8116fi;
8117fi
8118
8119if test $coin_has_blas != skipping; then
8120
8121# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
8122if test "${with_blas_incdir+set}" = set; then
8123  withval="$with_blas_incdir"
8124  if test "$withval" = no ; then
8125       coin_has_blas=skipping
8126     else
8127       coin_has_blas=yes
8128       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
8129       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
8130       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8131       if test -z "$PKG_CONFIG" ; then
8132         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
8133         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
8134       fi
8135     fi
8136
8137fi;
8138fi
8139
8140if test $coin_has_blas != skipping; then
8141
8142# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
8143if test "${with_blas_datadir+set}" = set; then
8144  withval="$with_blas_datadir"
8145  if test "$withval" = no ; then
8146       coin_has_blas=skipping
8147     else
8148       coin_has_blas=yes
8149       BLAS_DATA="$withval"
8150       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
8151       if test -z "$PKG_CONFIG" ; then
8152         BLAS_DATA_INSTALLED="$withval"
8153       fi
8154     fi
8155
8156fi;
8157fi
8158
8159if test $coin_has_blas = notGiven; then
8160  if test -n "$PKG_CONFIG" ; then
8161    # set search path for pkg-config
8162    # need to export variable to be sure that the following pkg-config gets these values
8163    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
8164    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
8165    export PKG_CONFIG_PATH
8166
8167    # let pkg-config do it's magic
8168
8169
8170
8171if test -n "$PKG_CONFIG" ; then
8172  if $PKG_CONFIG --exists "coinblas"; then
8173    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
8174     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
8175    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
8176        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
8177        # but only do this if is not trivial
8178    if test "$CYGPATH_W" != "echo" ; then
8179      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
8180      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8181    fi
8182    BLAS_CFLAGS="$cflags"
8183    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
8184    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
8185     coin_has_blas=yes
8186        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
8187echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
8188
8189        # adjust linker flags for (i)cl compiler
8190        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
8191        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8192        then
8193          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8194        fi
8195        BLAS_PCREQUIRES="coinblas"
8196
8197        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
8198
8199          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8200          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8201          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8202
8203
8204
8205  else
8206    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
8207      coin_has_blas=notGiven
8208        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
8209echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
8210
8211  fi
8212else
8213  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
8214echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
8215   { (exit 1); exit 1; }; }
8216fi
8217
8218
8219
8220
8221    # reset PKG_CONFIG_PATH variable
8222    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
8223    export PKG_CONFIG_PATH
8224
8225  else
8226    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
8227echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
8228
8229echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
8230echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
8231
8232coin_has_blas=notGiven
8233BLAS_LIBS=
8234BLAS_LIBS_INSTALLED=
8235BLAS_CFLAGS=
8236BLAS_CFLAGS_INSTALLED=
8237BLAS_DATA=
8238BLAS_DATA_INSTALLED=
8239BLAS_PCLIBS=
8240BLAS_PCREQUIRES=
8241
8242# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
8243projtoprocess="coinblas"
8244
8245# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
8246# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
8247# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
8248# also, we setup the DATA variable
8249allproj=""
8250allpcfiles=""
8251allpcifiles=""
8252while test "x$projtoprocess" != x ; do
8253
8254  for proj in $projtoprocess ; do
8255    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
8256    pcfile=""
8257    save_IFS="$IFS"
8258    IFS=":"
8259    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
8260      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
8261      if test -r "$dir/${proj}-uninstalled.pc" ; then
8262        pcfile="$dir/$proj-uninstalled.pc"
8263        if test -r "$dir/${proj}.pc" ; then
8264          pcifile="$dir/${proj}.pc"
8265        else
8266          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
8267echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
8268          pcifile=
8269        fi
8270        break
8271      fi
8272    done
8273    IFS="$save_IFS"
8274
8275    if test "x$pcfile" != x ; then
8276      # read dependencies from $pcfile and filter it
8277      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
8278
8279      # add projrequires to the front of the list of projects that have to be processed next
8280      # at the same time, remove $proj from this list
8281      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
8282
8283      # read DATA from $pcfile, if _DATA is still empty
8284      if test "x$BLAS_DATA" = x ; then
8285        projdatadir=
8286        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
8287        eval `sh -c "$pcfilemod"`
8288        BLAS_DATA="$projdatadir"
8289      fi
8290
8291      allproj="$allproj $proj"
8292      allpcfiles="$pcfile:$allpcfiles"
8293
8294    else
8295      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
8296echo "${ECHO_T}no, dependency $proj not available" >&6
8297      allproj=fail
8298      break 2
8299    fi
8300
8301    if test "x$pcifile" != x ; then
8302      allpcifiles="$pcifile:$allpcifiles"
8303
8304      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
8305      if test "x$BLAS_DATA_INSTALLED" = x ; then
8306        projdatadir=
8307        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
8308        eval `sh -c "$pcifilemod"`
8309        if test "${CYGPATH_W}" != "echo"; then
8310          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8311        fi
8312        BLAS_DATA_INSTALLED="$projdatadir"
8313      fi
8314
8315    fi
8316
8317    break
8318  done
8319
8320  # remove spaces on begin of $projtoprocess
8321  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8322
8323done
8324
8325if test "$allproj" != fail ; then
8326
8327  # now go through the list of .pc files and assemble compiler and linker flags
8328  # important is here to obey the reverse order that has been setup before,
8329  # since then libraries that are required by several others should be after these other libraries
8330  pcfilesprocessed=""
8331
8332  save_IFS="$IFS"
8333  IFS=":"
8334  for pcfile in $allpcfiles ; do
8335
8336    # if $pcfile has been processed already, skip this round
8337    if test "x$pcfilesprocessed" != x ; then
8338      for pcfiledone in $pcfilesprocessed ; do
8339        if test "$pcfiledone" = "$pcfile" ; then
8340          continue 2
8341        fi
8342      done
8343    fi
8344
8345    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8346    #   replace "Libs:" by "echo projlibs="
8347    #   replace "Cflags:" by "echo projcflags="
8348    #   remove every line starting with <some word>:
8349    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8350
8351    # set projcflags and projlibs variables by running $pcfilemod
8352    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8353    projcflags=
8354    projlibs=
8355    IFS="$save_IFS"
8356    eval `sh -c "$pcfilemod"`
8357    IFS=":"
8358
8359    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8360    if test "${CYGPATH_W}" != "echo"; then
8361      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8362    fi
8363    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8364
8365    # set LIBS variable
8366    BLAS_LIBS="$projlibs $BLAS_LIBS"
8367
8368    # remember that we have processed $pcfile
8369    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8370
8371  done
8372  IFS="$save_IFS"
8373
8374
8375  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8376  # important is here again to obey the reverse order that has been setup before,
8377  # since then libraries that are required by several others should be after these other libraries
8378  pcfilesprocessed=""
8379
8380  save_IFS="$IFS"
8381  IFS=":"
8382  for pcfile in $allpcifiles ; do
8383
8384    # if $pcfile has been processed already, skip this round
8385    if test "x$pcfilesprocessed" != x ; then
8386      for pcfiledone in $pcfilesprocessed ; do
8387        if test "$pcfiledone" = "$pcfile" ; then
8388          continue 2
8389        fi
8390      done
8391    fi
8392
8393    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8394    #   replace "Libs:" by "echo projlibs="
8395    #   replace "Cflags:" by "echo projcflags="
8396    #   remove every line starting with <some word>:
8397    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8398
8399    # set projcflags and projlibs variables by running $pcfilemod
8400    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8401    projcflags=
8402    projlibs=
8403    IFS="$save_IFS"
8404    eval `sh -c "$pcfilemod"`
8405    IFS=":"
8406
8407    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8408    if test "${CYGPATH_W}" != "echo"; then
8409      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8410    fi
8411    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8412
8413    # set LIBS variable
8414    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8415
8416    # remember that we have processed $pcfile
8417    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8418
8419  done
8420  IFS="$save_IFS"
8421
8422
8423  # finish up
8424  coin_has_blas=yes
8425  echo "$as_me:$LINENO: result: yes" >&5
8426echo "${ECHO_T}yes" >&6
8427
8428cat >>confdefs.h <<\_ACEOF
8429#define COIN_HAS_BLAS 1
8430_ACEOF
8431
8432
8433  # adjust linker flags for (i)cl compiler
8434  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
8435  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8436  #    everything of the form "-lname" by "libname.lib", and
8437  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8438  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8439  then
8440    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8441    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
8442  fi
8443
8444  BLAS_PCREQUIRES="coinblas"
8445
8446    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8447    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8448    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8449    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8450    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8451
8452
8453fi
8454
8455
8456
8457if test $coin_has_blas != notGiven &&
8458                test $coin_has_blas != skipping; then
8459  COIN_HAS_BLAS_TRUE=
8460  COIN_HAS_BLAS_FALSE='#'
8461else
8462  COIN_HAS_BLAS_TRUE='#'
8463  COIN_HAS_BLAS_FALSE=
8464fi
8465
8466
8467
8468  fi
8469
8470else
8471  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8472echo "${ECHO_T}$coin_has_blas" >&6
8473fi
8474
8475if test $coin_has_blas != skipping &&
8476   test $coin_has_blas != notGiven ; then
8477
8478cat >>confdefs.h <<\_ACEOF
8479#define COIN_HAS_BLAS 1
8480_ACEOF
8481
8482
8483  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8484if test "${enable_interpackage_dependencies+set}" = set; then
8485  enableval="$enable_interpackage_dependencies"
8486
8487else
8488  enable_interpackage_dependencies=yes
8489fi;
8490
8491  if test $enable_interpackage_dependencies = yes ; then
8492     # construct dependencies variables from LIBS variables
8493     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8494     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
8495     # then remove everything of the form -xxx
8496     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8497     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8498
8499       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8500
8501  fi
8502
8503  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8504    if test -n "$BLAS_CFLAGS" ; then
8505      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8506echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8507    fi
8508    if test -n "$BLAS_LIBS" ; then
8509      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8510echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8511    fi
8512    if test -n "$BLAS_DEPENDENCIES" ; then
8513      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8514echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8515    fi
8516    if test -n "$BLAS_DATA" ; then
8517      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8518echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8519    fi
8520    if test -n "$BLAS_PCLIBS" ; then
8521      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8522echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8523    fi
8524    if test -n "$BLAS_PCREQUIRES" ; then
8525      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8526echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8527    fi
8528
8529      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8530echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8531      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8532echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8533      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8534echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8535
8536  fi
8537fi
8538
8539# Define the Makefile conditional
8540
8541
8542if test $coin_has_blas != notGiven &&
8543                test $coin_has_blas != skipping; then
8544  COIN_HAS_BLAS_TRUE=
8545  COIN_HAS_BLAS_FALSE='#'
8546else
8547  COIN_HAS_BLAS_TRUE='#'
8548  COIN_HAS_BLAS_FALSE=
8549fi
8550
8551
8552
8553
8554elif test "x$use_blas" != x && test "$use_blas" != no; then
8555  coin_has_blas=yes
8556
8557
8558if test 0 = 0; then
8559  COIN_HAS_BLAS_TRUE=
8560  COIN_HAS_BLAS_FALSE='#'
8561else
8562  COIN_HAS_BLAS_TRUE='#'
8563  COIN_HAS_BLAS_FALSE=
8564fi
8565
8566
8567cat >>confdefs.h <<\_ACEOF
8568#define COIN_HAS_BLAS 1
8569_ACEOF
8570
8571  BLAS_LIBS="$use_blas"
8572  BLAS_CFLAGS=
8573  BLAS_DATA=
8574
8575
8576
8577
8578    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8579    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8580    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8581
8582
8583else
8584  coin_has_blas=no
8585
8586
8587if test 0 = 1; then
8588  COIN_HAS_BLAS_TRUE=
8589  COIN_HAS_BLAS_FALSE='#'
8590else
8591  COIN_HAS_BLAS_TRUE='#'
8592  COIN_HAS_BLAS_FALSE=
8593fi
8594
8595fi
8596
8597
8598
8599
8600
8601
8602
8603
8604if test $coin_has_blas != yes; then
8605  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8606echo "$as_me: error: Required package BLAS not found." >&2;}
8607   { (exit 1); exit 1; }; }
8608fi
8609
8610# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8611LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8612
8613# Take care that optimization is disbled for DLAMCH.F
8614
8615if test "x$DLAMCH_FFLAGS" = x ; then
8616  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8617  case $F77 in
8618    ifort* | */ifort* | IFORT* | */IFORT* )
8619      case $build in
8620        *-cygwin* | *-mingw*)
8621          DLAMCH_FFLAGS="$FFLAGS -Od"
8622          ;;
8623        *)
8624          DLAMCH_FFLAGS="$FFLAGS -O0"
8625          ;;
8626      esac
8627      ;;
8628    compile_f2c*)
8629      case "$CC" in
8630        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8631          DLAMCH_FFLAGS="$FFLAGS -Od"
8632        ;;
8633        *)
8634          DLAMCH_FFLAGS="$FFLAGS -O0"
8635        ;;
8636      esac
8637      ;;
8638    *)
8639      DLAMCH_FFLAGS="$FFLAGS -O0"
8640      ;;
8641  esac
8642fi
8643
8644
8645# Initialize autotools
8646{
8647
8648
8649
8650# START
8651
8652# Test if force_shared has been set
8653if test "x" = xforce_shared; then
8654  if test x$enable_shared = xno; then
8655    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8656echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8657   { (exit 1); exit 1; }; }
8658  fi
8659  enable_shared=yes;
8660else
8661  # On Cygwin and AIX, building DLLs doesn't work
8662  case $build in
8663    *-cygwin*)
8664      coin_disable_shared=yes
8665      platform=Cygwin
8666    ;;
8667    *-aix*)
8668      coin_disable_shared=yes
8669      platform=AIX
8670    ;;
8671    *-mingw*)
8672      coin_disable_shared=yes
8673      platform="Msys"
8674#      case "$CXX" in
8675#        cl*)
8676#          coin_disable_shared=yes
8677#          platform="Msys with cl"
8678#      ;;
8679#      esac
8680    ;;
8681  esac
8682fi
8683if test x"$coin_disable_shared" = xyes; then
8684  if test x"$enable_shared" = xyes; then
8685    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
8686echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
8687  fi
8688  enable_shared=no
8689fi
8690# By default, we only want the shared objects to be compiled
8691# Check whether --enable-static or --disable-static was given.
8692if test "${enable_static+set}" = set; then
8693  enableval="$enable_static"
8694  p=${PACKAGE-default}
8695    case $enableval in
8696    yes) enable_static=yes ;;
8697    no) enable_static=no ;;
8698    *)
8699     enable_static=no
8700      # Look at the argument we got.  We use all the common list separators.
8701      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8702      for pkg in $enableval; do
8703        IFS="$lt_save_ifs"
8704        if test "X$pkg" = "X$p"; then
8705          enable_static=yes
8706        fi
8707      done
8708      IFS="$lt_save_ifs"
8709      ;;
8710    esac
8711else
8712  enable_static=no
8713fi;
8714
8715
8716
8717
8718# Initialize automake
8719echo "$as_me:$LINENO: checking for egrep" >&5
8720echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8721if test "${ac_cv_prog_egrep+set}" = set; then
8722  echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8725    then ac_cv_prog_egrep='grep -E'
8726    else ac_cv_prog_egrep='egrep'
8727    fi
8728fi
8729echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8730echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8731 EGREP=$ac_cv_prog_egrep
8732
8733
8734echo "$as_me:$LINENO: checking whether ln -s works" >&5
8735echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8736LN_S=$as_ln_s
8737if test "$LN_S" = "ln -s"; then
8738  echo "$as_me:$LINENO: result: yes" >&5
8739echo "${ECHO_T}yes" >&6
8740else
8741  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8742echo "${ECHO_T}no, using $LN_S" >&6
8743fi
8744
8745am__api_version="1.9"
8746# Find a good install program.  We prefer a C program (faster),
8747# so one script is as good as another.  But avoid the broken or
8748# incompatible versions:
8749# SysV /etc/install, /usr/sbin/install
8750# SunOS /usr/etc/install
8751# IRIX /sbin/install
8752# AIX /bin/install
8753# AmigaOS /C/install, which installs bootblocks on floppy discs
8754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8757# OS/2's system install, which has a completely different semantic
8758# ./install, which can be erroneously created by make from ./install.sh.
8759echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8760echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8761if test -z "$INSTALL"; then
8762if test "${ac_cv_path_install+set}" = set; then
8763  echo $ECHO_N "(cached) $ECHO_C" >&6
8764else
8765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768  IFS=$as_save_IFS
8769  test -z "$as_dir" && as_dir=.
8770  # Account for people who put trailing slashes in PATH elements.
8771case $as_dir/ in
8772  ./ | .// | /cC/* | \
8773  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8774  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8775  /usr/ucb/* ) ;;
8776  *)
8777    # OSF1 and SCO ODT 3.0 have their own names for install.
8778    # Don't use installbsd from OSF since it installs stuff as root
8779    # by default.
8780    for ac_prog in ginstall scoinst install; do
8781      for ac_exec_ext in '' $ac_executable_extensions; do
8782        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8783          if test $ac_prog = install &&
8784            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8785            # AIX install.  It has an incompatible calling convention.
8786            :
8787          elif test $ac_prog = install &&
8788            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8789            # program-specific install script used by HP pwplus--don't use.
8790            :
8791          else
8792            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8793            break 3
8794          fi
8795        fi
8796      done
8797    done
8798    ;;
8799esac
8800done
8801
8802
8803fi
8804  if test "${ac_cv_path_install+set}" = set; then
8805    INSTALL=$ac_cv_path_install
8806  else
8807    # As a last resort, use the slow shell script.  We don't cache a
8808    # path for INSTALL within a source directory, because that will
8809    # break other packages using the cache if that directory is
8810    # removed, or if the path is relative.
8811    INSTALL=$ac_install_sh
8812  fi
8813fi
8814echo "$as_me:$LINENO: result: $INSTALL" >&5
8815echo "${ECHO_T}$INSTALL" >&6
8816
8817# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8818# It thinks the first close brace ends the variable substitution.
8819test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8820
8821test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8822
8823test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8824
8825echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8826echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8827# Just in case
8828sleep 1
8829echo timestamp > conftest.file
8830# Do `set' in a subshell so we don't clobber the current shell's
8831# arguments.  Must try -L first in case configure is actually a
8832# symlink; some systems play weird games with the mod time of symlinks
8833# (eg FreeBSD returns the mod time of the symlink's containing
8834# directory).
8835if (
8836   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8837   if test "$*" = "X"; then
8838      # -L didn't work.
8839      set X `ls -t $srcdir/configure conftest.file`
8840   fi
8841   rm -f conftest.file
8842   if test "$*" != "X $srcdir/configure conftest.file" \
8843      && test "$*" != "X conftest.file $srcdir/configure"; then
8844
8845      # If neither matched, then we have a broken ls.  This can happen
8846      # if, for instance, CONFIG_SHELL is bash and it inherits a
8847      # broken ls alias from the environment.  This has actually
8848      # happened.  Such a system could not be considered "sane".
8849      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8850alias in your environment" >&5
8851echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8852alias in your environment" >&2;}
8853   { (exit 1); exit 1; }; }
8854   fi
8855
8856   test "$2" = conftest.file
8857   )
8858then
8859   # Ok.
8860   :
8861else
8862   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8863Check your system clock" >&5
8864echo "$as_me: error: newly created file is older than distributed files!
8865Check your system clock" >&2;}
8866   { (exit 1); exit 1; }; }
8867fi
8868echo "$as_me:$LINENO: result: yes" >&5
8869echo "${ECHO_T}yes" >&6
8870test "$program_prefix" != NONE &&
8871  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8872# Use a double $ so make ignores it.
8873test "$program_suffix" != NONE &&
8874  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8875# Double any \ or $.  echo might interpret backslashes.
8876# By default was `s,x,x', remove it if useless.
8877cat <<\_ACEOF >conftest.sed
8878s/[\\$]/&&/g;s/;s,x,x,$//
8879_ACEOF
8880program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8881rm conftest.sed
8882
8883# expand $ac_aux_dir to an absolute path
8884am_aux_dir=`cd $ac_aux_dir && pwd`
8885
8886test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8887# Use eval to expand $SHELL
8888if eval "$MISSING --run true"; then
8889  am_missing_run="$MISSING --run "
8890else
8891  am_missing_run=
8892  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8893echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8894fi
8895
8896if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8897  # We used to keeping the `.' as first argument, in order to
8898  # allow $(mkdir_p) to be used without argument.  As in
8899  #   $(mkdir_p) $(somedir)
8900  # where $(somedir) is conditionally defined.  However this is wrong
8901  # for two reasons:
8902  #  1. if the package is installed by a user who cannot write `.'
8903  #     make install will fail,
8904  #  2. the above comment should most certainly read
8905  #     $(mkdir_p) $(DESTDIR)$(somedir)
8906  #     so it does not work when $(somedir) is undefined and
8907  #     $(DESTDIR) is not.
8908  #  To support the latter case, we have to write
8909  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8910  #  so the `.' trick is pointless.
8911  mkdir_p='mkdir -p --'
8912else
8913  # On NextStep and OpenStep, the `mkdir' command does not
8914  # recognize any option.  It will interpret all options as
8915  # directories to create, and then abort because `.' already
8916  # exists.
8917  for d in ./-p ./--version;
8918  do
8919    test -d $d && rmdir $d
8920  done
8921  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8922  if test -f "$ac_aux_dir/mkinstalldirs"; then
8923    mkdir_p='$(mkinstalldirs)'
8924  else
8925    mkdir_p='$(install_sh) -d'
8926  fi
8927fi
8928
8929for ac_prog in gawk mawk nawk awk
8930do
8931  # Extract the first word of "$ac_prog", so it can be a program name with args.
8932set dummy $ac_prog; ac_word=$2
8933echo "$as_me:$LINENO: checking for $ac_word" >&5
8934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935if test "${ac_cv_prog_AWK+set}" = set; then
8936  echo $ECHO_N "(cached) $ECHO_C" >&6
8937else
8938  if test -n "$AWK"; then
8939  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8940else
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944  IFS=$as_save_IFS
8945  test -z "$as_dir" && as_dir=.
8946  for ac_exec_ext in '' $ac_executable_extensions; do
8947  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948    ac_cv_prog_AWK="$ac_prog"
8949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8950    break 2
8951  fi
8952done
8953done
8954
8955fi
8956fi
8957AWK=$ac_cv_prog_AWK
8958if test -n "$AWK"; then
8959  echo "$as_me:$LINENO: result: $AWK" >&5
8960echo "${ECHO_T}$AWK" >&6
8961else
8962  echo "$as_me:$LINENO: result: no" >&5
8963echo "${ECHO_T}no" >&6
8964fi
8965
8966  test -n "$AWK" && break
8967done
8968
8969echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8970echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8972if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8973  echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975  cat >conftest.make <<\_ACEOF
8976all:
8977        @echo 'ac_maketemp="$(MAKE)"'
8978_ACEOF
8979# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8980eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8981if test -n "$ac_maketemp"; then
8982  eval ac_cv_prog_make_${ac_make}_set=yes
8983else
8984  eval ac_cv_prog_make_${ac_make}_set=no
8985fi
8986rm -f conftest.make
8987fi
8988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8989  echo "$as_me:$LINENO: result: yes" >&5
8990echo "${ECHO_T}yes" >&6
8991  SET_MAKE=
8992else
8993  echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
8995  SET_MAKE="MAKE=${MAKE-make}"
8996fi
8997
8998rm -rf .tst 2>/dev/null
8999mkdir .tst 2>/dev/null
9000if test -d .tst; then
9001  am__leading_dot=.
9002else
9003  am__leading_dot=_
9004fi
9005rmdir .tst 2>/dev/null
9006
9007DEPDIR="${am__leading_dot}deps"
9008
9009          ac_config_commands="$ac_config_commands depfiles"
9010
9011
9012am_make=${MAKE-make}
9013cat > confinc << 'END'
9014am__doit:
9015        @echo done
9016.PHONY: am__doit
9017END
9018# If we don't find an include directive, just comment out the code.
9019echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
9020echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
9021am__include="#"
9022am__quote=
9023_am_result=none
9024# First try GNU make style include.
9025echo "include confinc" > confmf
9026# We grep out `Entering directory' and `Leaving directory'
9027# messages which can occur if `w' ends up in MAKEFLAGS.
9028# In particular we don't look at `^make:' because GNU make might
9029# be invoked under some other name (usually "gmake"), in which
9030# case it prints its new name instead of `make'.
9031if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9032   am__include=include
9033   am__quote=
9034   _am_result=GNU
9035fi
9036# Now try BSD make style include.
9037if test "$am__include" = "#"; then
9038   echo '.include "confinc"' > confmf
9039   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9040      am__include=.include
9041      am__quote="\""
9042      _am_result=BSD
9043   fi
9044fi
9045
9046
9047echo "$as_me:$LINENO: result: $_am_result" >&5
9048echo "${ECHO_T}$_am_result" >&6
9049rm -f confinc confmf
9050
9051# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
9052if test "${enable_dependency_tracking+set}" = set; then
9053  enableval="$enable_dependency_tracking"
9054
9055fi;
9056if test "x$enable_dependency_tracking" != xno; then
9057  am_depcomp="$ac_aux_dir/depcomp"
9058  AMDEPBACKSLASH='\'
9059fi
9060
9061
9062if test "x$enable_dependency_tracking" != xno; then
9063  AMDEP_TRUE=
9064  AMDEP_FALSE='#'
9065else
9066  AMDEP_TRUE='#'
9067  AMDEP_FALSE=
9068fi
9069
9070
9071
9072
9073
9074
9075# AC_MSG_NOTICE([Beginning automake initialisation.])
9076# Stuff for automake
9077# test to see if srcdir already configured
9078if test "`cd $srcdir && pwd`" != "`pwd`" &&
9079   test -f $srcdir/config.status; then
9080  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
9081echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
9082   { (exit 1); exit 1; }; }
9083fi
9084
9085# test whether we have cygpath
9086if test -z "$CYGPATH_W"; then
9087  if (cygpath --version) >/dev/null 2>/dev/null; then
9088    CYGPATH_W='cygpath -w'
9089  else
9090    CYGPATH_W=echo
9091  fi
9092fi
9093
9094
9095# Define the identity of the package.
9096 PACKAGE='thirdpartylapack'
9097 VERSION='trunk'
9098
9099
9100cat >>confdefs.h <<_ACEOF
9101#define PACKAGE "$PACKAGE"
9102_ACEOF
9103
9104
9105cat >>confdefs.h <<_ACEOF
9106#define VERSION "$VERSION"
9107_ACEOF
9108
9109# Some tools Automake needs.
9110
9111ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9112
9113
9114AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9115
9116
9117AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9118
9119
9120AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9121
9122
9123MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9124
9125install_sh=${install_sh-"$am_aux_dir/install-sh"}
9126
9127# Installed binaries are usually stripped using `strip' when the user
9128# run `make install-strip'.  However `strip' might not be the right
9129# tool to use in cross-compilation environments, therefore Automake
9130# will honor the `STRIP' environment variable to overrule this program.
9131if test "$cross_compiling" != no; then
9132  if test -n "$ac_tool_prefix"; then
9133  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9134set dummy ${ac_tool_prefix}strip; ac_word=$2
9135echo "$as_me:$LINENO: checking for $ac_word" >&5
9136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9137if test "${ac_cv_prog_STRIP+set}" = set; then
9138  echo $ECHO_N "(cached) $ECHO_C" >&6
9139else
9140  if test -n "$STRIP"; then
9141  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9142else
9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144for as_dir in $PATH
9145do
9146  IFS=$as_save_IFS
9147  test -z "$as_dir" && as_dir=.
9148  for ac_exec_ext in '' $ac_executable_extensions; do
9149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9150    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9152    break 2
9153  fi
9154done
9155done
9156
9157fi
9158fi
9159STRIP=$ac_cv_prog_STRIP
9160if test -n "$STRIP"; then
9161  echo "$as_me:$LINENO: result: $STRIP" >&5
9162echo "${ECHO_T}$STRIP" >&6
9163else
9164  echo "$as_me:$LINENO: result: no" >&5
9165echo "${ECHO_T}no" >&6
9166fi
9167
9168fi
9169if test -z "$ac_cv_prog_STRIP"; then
9170  ac_ct_STRIP=$STRIP
9171  # Extract the first word of "strip", so it can be a program name with args.
9172set dummy strip; ac_word=$2
9173echo "$as_me:$LINENO: checking for $ac_word" >&5
9174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9175if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9176  echo $ECHO_N "(cached) $ECHO_C" >&6
9177else
9178  if test -n "$ac_ct_STRIP"; then
9179  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9180else
9181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9182for as_dir in $PATH
9183do
9184  IFS=$as_save_IFS
9185  test -z "$as_dir" && as_dir=.
9186  for ac_exec_ext in '' $ac_executable_extensions; do
9187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9188    ac_cv_prog_ac_ct_STRIP="strip"
9189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9190    break 2
9191  fi
9192done
9193done
9194
9195  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9196fi
9197fi
9198ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9199if test -n "$ac_ct_STRIP"; then
9200  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9201echo "${ECHO_T}$ac_ct_STRIP" >&6
9202else
9203  echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
9205fi
9206
9207  STRIP=$ac_ct_STRIP
9208else
9209  STRIP="$ac_cv_prog_STRIP"
9210fi
9211
9212fi
9213INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9214
9215# We need awk for the "check" target.  The system "awk" is bad on
9216# some platforms.
9217# Always define AMTAR for backward compatibility.
9218
9219AMTAR=${AMTAR-"${am_missing_run}tar"}
9220
9221am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9222
9223
9224
9225
9226depcc="$CC"   am_compiler_list=
9227
9228echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9229echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9230if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9231  echo $ECHO_N "(cached) $ECHO_C" >&6
9232else
9233  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9234  # We make a subdir and do the tests there.  Otherwise we can end up
9235  # making bogus files that we don't know about and never remove.  For
9236  # instance it was reported that on HP-UX the gcc test will end up
9237  # making a dummy file named `D' -- because `-MD' means `put the output
9238  # in D'.
9239  mkdir conftest.dir
9240  # Copy depcomp to subdir because otherwise we won't find it if we're
9241  # using a relative directory.
9242  cp "$am_depcomp" conftest.dir
9243  cd conftest.dir
9244  # We will build objects and dependencies in a subdirectory because
9245  # it helps to detect inapplicable dependency modes.  For instance
9246  # both Tru64's cc and ICC support -MD to output dependencies as a
9247  # side effect of compilation, but ICC will put the dependencies in
9248  # the current directory while Tru64 will put them in the object
9249  # directory.
9250  mkdir sub
9251
9252  am_cv_CC_dependencies_compiler_type=none
9253  if test "$am_compiler_list" = ""; then
9254     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9255  fi
9256  for depmode in $am_compiler_list; do
9257    # Setup a source with many dependencies, because some compilers
9258    # like to wrap large dependency lists on column 80 (with \), and
9259    # we should not choose a depcomp mode which is confused by this.
9260    #
9261    # We need to recreate these files for each test, as the compiler may
9262    # overwrite some of them when testing with obscure command lines.
9263    # This happens at least with the AIX C compiler.
9264    : > sub/conftest.c
9265    for i in 1 2 3 4 5 6; do
9266      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9267      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9268      # Solaris 8's {/usr,}/bin/sh.
9269      touch sub/conftst$i.h
9270    done
9271    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9272
9273    case $depmode in
9274    nosideeffect)
9275      # after this tag, mechanisms are not by side-effect, so they'll
9276      # only be used when explicitly requested
9277      if test "x$enable_dependency_tracking" = xyes; then
9278        continue
9279      else
9280        break
9281      fi
9282      ;;
9283    none) break ;;
9284    esac
9285    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9286    # mode.  It turns out that the SunPro C++ compiler does not properly
9287    # handle `-M -o', and we need to detect this.
9288    if depmode=$depmode \
9289       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9290       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9291       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9292         >/dev/null 2>conftest.err &&
9293       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9294       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9295       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9296      # icc doesn't choke on unknown options, it will just issue warnings
9297      # or remarks (even with -Werror).  So we grep stderr for any message
9298      # that says an option was ignored or not supported.
9299      # When given -MP, icc 7.0 and 7.1 complain thusly:
9300      #   icc: Command line warning: ignoring option '-M'; no argument required
9301      # The diagnosis changed in icc 8.0:
9302      #   icc: Command line remark: option '-MP' not supported
9303      if (grep 'ignoring option' conftest.err ||
9304          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9305        am_cv_CC_dependencies_compiler_type=$depmode
9306        break
9307      fi
9308    fi
9309  done
9310
9311  cd ..
9312  rm -rf conftest.dir
9313else
9314  am_cv_CC_dependencies_compiler_type=none
9315fi
9316
9317fi
9318echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9319echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9320CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9321
9322
9323
9324if
9325  test "x$enable_dependency_tracking" != xno \
9326  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9327  am__fastdepCC_TRUE=
9328  am__fastdepCC_FALSE='#'
9329else
9330  am__fastdepCC_TRUE='#'
9331  am__fastdepCC_FALSE=
9332fi
9333
9334
9335
9336echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9337echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9338    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9339if test "${enable_maintainer_mode+set}" = set; then
9340  enableval="$enable_maintainer_mode"
9341  USE_MAINTAINER_MODE=$enableval
9342else
9343  USE_MAINTAINER_MODE=no
9344fi;
9345  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9346echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9347
9348
9349if test $USE_MAINTAINER_MODE = yes; then
9350  MAINTAINER_MODE_TRUE=
9351  MAINTAINER_MODE_FALSE='#'
9352else
9353  MAINTAINER_MODE_TRUE='#'
9354  MAINTAINER_MODE_FALSE=
9355fi
9356
9357  MAINT=$MAINTAINER_MODE_TRUE
9358
9359
9360
9361coin_have_externals=no
9362if test "$enable_maintainer_mode" = yes; then
9363
9364  # If maintainer mode is chosen, we make sure that the correct versions
9365  # of the tools are used, and that we know where libtool.m4 is (to
9366  # recreate acinclude.m4)
9367
9368
9369  LIBTOOLM4=
9370  # Normally, $HOME
9371  AUTOTOOLS_DFLT=$HOME
9372
9373  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9374echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9375if test "${ac_cv_use_correct_autotools+set}" = set; then
9376  echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378  ac_cv_use_correct_autotools=check
9379fi
9380echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9381echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9382
9383  if test $ac_cv_use_correct_autotools = check; then
9384    ac_cv_use_correct_autotools=yes
9385    # Check if we have autoconf
9386    # Extract the first word of "autoconf", so it can be a program name with args.
9387set dummy autoconf; ac_word=$2
9388echo "$as_me:$LINENO: checking for $ac_word" >&5
9389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9390if test "${ac_cv_prog_have_autoconf+set}" = set; then
9391  echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393  if test -n "$have_autoconf"; then
9394  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399  IFS=$as_save_IFS
9400  test -z "$as_dir" && as_dir=.
9401  for ac_exec_ext in '' $ac_executable_extensions; do
9402  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9403    ac_cv_prog_have_autoconf="yes"
9404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9405    break 2
9406  fi
9407done
9408done
9409
9410  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9411fi
9412fi
9413have_autoconf=$ac_cv_prog_have_autoconf
9414if test -n "$have_autoconf"; then
9415  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9416echo "${ECHO_T}$have_autoconf" >&6
9417else
9418  echo "$as_me:$LINENO: result: no" >&5
9419echo "${ECHO_T}no" >&6
9420fi
9421
9422    if test $have_autoconf = no; then
9423      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9424echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9425   { (exit 1); exit 1; }; }
9426    fi
9427
9428    # Check whether autoconf is the correct version
9429    correct_version='2.59'
9430    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9431    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9432echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9433    autoconf --version > confauto.out 2>&1
9434    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9435      echo "$as_me:$LINENO: result: yes" >&5
9436echo "${ECHO_T}yes" >&6
9437    else
9438      rm -f confauto.out
9439      echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6
9441      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9442echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9443   { (exit 1); exit 1; }; }
9444    fi
9445    rm -f confauto.out
9446
9447    # Check if the executable autoconf is picked up from the correct location
9448    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9449echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9450    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9451    autoconf_dir=`cd $autoconf_dir; pwd`
9452    if test x$AUTOTOOLS_DIR = x; then
9453      want_dir=$AUTOTOOLS_DFLT/bin
9454    else
9455      want_dir=$AUTOTOOLS_DIR/bin
9456    fi
9457    if test $autoconf_dir = `cd $want_dir; pwd`; then
9458      echo "$as_me:$LINENO: result: yes" >&5
9459echo "${ECHO_T}yes" >&6
9460    else
9461      rm -f confauto.out
9462      echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9465echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9466   { (exit 1); exit 1; }; }
9467    fi
9468
9469    # Check if we have automake
9470    # Extract the first word of "automake", so it can be a program name with args.
9471set dummy automake; ac_word=$2
9472echo "$as_me:$LINENO: checking for $ac_word" >&5
9473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9474if test "${ac_cv_prog_have_automake+set}" = set; then
9475  echo $ECHO_N "(cached) $ECHO_C" >&6
9476else
9477  if test -n "$have_automake"; then
9478  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483  IFS=$as_save_IFS
9484  test -z "$as_dir" && as_dir=.
9485  for ac_exec_ext in '' $ac_executable_extensions; do
9486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487    ac_cv_prog_have_automake="yes"
9488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489    break 2
9490  fi
9491done
9492done
9493
9494  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9495fi
9496fi
9497have_automake=$ac_cv_prog_have_automake
9498if test -n "$have_automake"; then
9499  echo "$as_me:$LINENO: result: $have_automake" >&5
9500echo "${ECHO_T}$have_automake" >&6
9501else
9502  echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
9504fi
9505
9506    if test $have_automake = no; then
9507      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9508echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9509   { (exit 1); exit 1; }; }
9510    fi
9511
9512    # Check whether automake is the correct version
9513    correct_version='1.9.6'
9514    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9515    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9516echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9517    automake --version > confauto.out 2>&1
9518    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9519      echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
9521    else
9522      rm -f confauto.out
9523      echo "$as_me:$LINENO: result: no" >&5
9524echo "${ECHO_T}no" >&6
9525      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9526echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9527   { (exit 1); exit 1; }; }
9528    fi
9529    rm -f confauto.out
9530
9531    # Check if the executable automake is picked up from the correct location
9532    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9533echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9534    automake_dir=`which automake | sed -e 's=/automake=='`
9535    automake_dir=`cd $automake_dir; pwd`
9536    if test x$AUTOTOOLS_DIR = x; then
9537      want_dir=$AUTOTOOLS_DFLT/bin
9538    else
9539      want_dir=$AUTOTOOLS_DIR/bin
9540    fi
9541    if test $automake_dir = `cd $want_dir; pwd`; then
9542      echo "$as_me:$LINENO: result: yes" >&5
9543echo "${ECHO_T}yes" >&6
9544    else
9545      rm -f confauto.out
9546      echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9549echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9550   { (exit 1); exit 1; }; }
9551    fi
9552
9553    # Check if this is the correct version of libtool (with escaped dots)
9554    if test x$AUTOTOOLS_DIR = x; then
9555      want_dir=$AUTOTOOLS_DFLT/share
9556    else
9557      want_dir=$AUTOTOOLS_DIR/share
9558    fi
9559    correct_version='1.5.22'
9560    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9561    if test -r $want_dir/libtool/ltmain.sh; then
9562  have_ltmain=yes
9563  :
9564else
9565  have_ltmain=no
9566  :
9567fi
9568
9569    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9570echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9571    if test $have_ltmain = yes; then
9572    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9573        echo "$as_me:$LINENO: result: yes" >&5
9574echo "${ECHO_T}yes" >&6
9575      else
9576        echo "$as_me:$LINENO: result: no" >&5
9577echo "${ECHO_T}no" >&6
9578        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9579echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9580   { (exit 1); exit 1; }; }
9581      fi
9582    else
9583      echo "$as_me:$LINENO: result: no" >&5
9584echo "${ECHO_T}no" >&6
9585      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9586echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9587   { (exit 1); exit 1; }; }
9588    fi
9589  fi
9590
9591  # Check if we can find the libtool file
9592  if test x$AUTOTOOLS_DIR = x; then
9593    want_dir=$AUTOTOOLS_DFLT/share
9594  else
9595    want_dir=$AUTOTOOLS_DIR/share
9596  fi
9597  if test -r $want_dir/aclocal/libtool.m4; then
9598  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9599  :
9600else
9601  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9602echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9603   { (exit 1); exit 1; }; }
9604  :
9605fi
9606
9607
9608  # Check if we have an Dependencies file
9609  if test -r $srcdir/Dependencies; then
9610    coin_have_externals=yes
9611  fi
9612  # Check if subversion is installed and understands https
9613  # Extract the first word of "svn", so it can be a program name with args.
9614set dummy svn; ac_word=$2
9615echo "$as_me:$LINENO: checking for $ac_word" >&5
9616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9617if test "${ac_cv_prog_have_svn+set}" = set; then
9618  echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620  if test -n "$have_svn"; then
9621  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9622else
9623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624for as_dir in $PATH
9625do
9626  IFS=$as_save_IFS
9627  test -z "$as_dir" && as_dir=.
9628  for ac_exec_ext in '' $ac_executable_extensions; do
9629  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9630    ac_cv_prog_have_svn="yes"
9631    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9632    break 2
9633  fi
9634done
9635done
9636
9637  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9638fi
9639fi
9640have_svn=$ac_cv_prog_have_svn
9641if test -n "$have_svn"; then
9642  echo "$as_me:$LINENO: result: $have_svn" >&5
9643echo "${ECHO_T}$have_svn" >&6
9644else
9645  echo "$as_me:$LINENO: result: no" >&5
9646echo "${ECHO_T}no" >&6
9647fi
9648
9649  if test x$have_svn = xyes; then
9650    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9651echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9652if test "${ac_cv_svn_understands_https+set}" = set; then
9653  echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
9655  svn --version > confauto.out 2>&1
9656                    if $EGREP https confauto.out >/dev/null 2>&1; then
9657                      ac_cv_svn_understands_https=yes
9658                    else
9659                      ac_cv_svn_understands_https=no
9660                      have_svn=no
9661                      ac_cv_prog_have_svn=no
9662                    fi
9663                    rm -f confauto.out
9664fi
9665echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9666echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9667  fi
9668
9669  # Find the location of the BuildTools directory
9670  BUILDTOOLSDIR=
9671  if test -r $srcdir/BuildTools/coin.m4; then
9672    BUILDTOOLSDIR=$srcdir/BuildTools
9673  else
9674    if test -r $srcdir/../BuildTools/coin.m4; then
9675      BUILDTOOLSDIR=$srcdir/../BuildTools
9676    else
9677      if test -r $srcdir/../../BuildTools/coin.m4; then
9678        BUILDTOOLSDIR=$srcdir/../../BuildTools
9679      else
9680        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9681echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9682   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9683      fi
9684    fi
9685  fi
9686
9687
9688  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9689  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9690    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9691  fi
9692
9693  # The following variable is set to the name of the directory where
9694  # the autotool scripts are located
9695
9696  AUX_DIR=$ac_aux_dir
9697fi
9698
9699# helpful variable for the base directory of this package
9700abs_source_dir=`cd $srcdir; pwd`
9701
9702
9703# Stuff for example Makefiles
9704if test x$prefix = xNONE; then
9705  full_prefix=$ac_default_prefix
9706else
9707  full_prefix=$prefix
9708fi
9709full_prefix=`cd $full_prefix ; pwd`
9710
9711abs_lib_dir=$full_prefix/lib
9712
9713abs_include_dir=$full_prefix/include
9714
9715abs_bin_dir=$full_prefix/bin
9716
9717
9718
9719if test $coin_have_externals = yes && test x$have_svn = xyes; then
9720  HAVE_EXTERNALS_TRUE=
9721  HAVE_EXTERNALS_FALSE='#'
9722else
9723  HAVE_EXTERNALS_TRUE='#'
9724  HAVE_EXTERNALS_FALSE=
9725fi
9726
9727
9728# AC_MSG_NOTICE([End automake initialisation.])
9729
9730
9731
9732LIBTOOL=
9733if test -r ../libtool; then
9734  coin_config_dir=..
9735  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9736fi
9737if test "x$LIBTOOL" = x; then
9738  if test -r ../../libtool; then
9739    coin_config_dir=../..
9740    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9741  fi
9742fi
9743
9744if test "x$LIBTOOL" = x; then
9745# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9746  # Stuff for libtool
9747  # Check whether --enable-shared or --disable-shared was given.
9748if test "${enable_shared+set}" = set; then
9749  enableval="$enable_shared"
9750  p=${PACKAGE-default}
9751    case $enableval in
9752    yes) enable_shared=yes ;;
9753    no) enable_shared=no ;;
9754    *)
9755      enable_shared=no
9756      # Look at the argument we got.  We use all the common list separators.
9757      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9758      for pkg in $enableval; do
9759        IFS="$lt_save_ifs"
9760        if test "X$pkg" = "X$p"; then
9761          enable_shared=yes
9762        fi
9763      done
9764      IFS="$lt_save_ifs"
9765      ;;
9766    esac
9767else
9768  enable_shared=yes
9769fi;
9770
9771# Check whether --enable-fast-install or --disable-fast-install was given.
9772if test "${enable_fast_install+set}" = set; then
9773  enableval="$enable_fast_install"
9774  p=${PACKAGE-default}
9775    case $enableval in
9776    yes) enable_fast_install=yes ;;
9777    no) enable_fast_install=no ;;
9778    *)
9779      enable_fast_install=no
9780      # Look at the argument we got.  We use all the common list separators.
9781      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9782      for pkg in $enableval; do
9783        IFS="$lt_save_ifs"
9784        if test "X$pkg" = "X$p"; then
9785          enable_fast_install=yes
9786        fi
9787      done
9788      IFS="$lt_save_ifs"
9789      ;;
9790    esac
9791else
9792  enable_fast_install=yes
9793fi;
9794
9795echo "$as_me:$LINENO: checking host system type" >&5
9796echo $ECHO_N "checking host system type... $ECHO_C" >&6
9797if test "${ac_cv_host+set}" = set; then
9798  echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800  ac_cv_host_alias=$host_alias
9801test -z "$ac_cv_host_alias" &&
9802  ac_cv_host_alias=$ac_cv_build_alias
9803ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9804  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9805echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9806   { (exit 1); exit 1; }; }
9807
9808fi
9809echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9810echo "${ECHO_T}$ac_cv_host" >&6
9811host=$ac_cv_host
9812host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9813host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9814host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9815
9816
9817echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9818echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9819if test "${lt_cv_path_SED+set}" = set; then
9820  echo $ECHO_N "(cached) $ECHO_C" >&6
9821else
9822  # Loop through the user's path and test for sed and gsed.
9823# Then use that list of sed's as ones to test for truncation.
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827  IFS=$as_save_IFS
9828  test -z "$as_dir" && as_dir=.
9829  for lt_ac_prog in sed gsed; do
9830    for ac_exec_ext in '' $ac_executable_extensions; do
9831      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9832        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9833      fi
9834    done
9835  done
9836done
9837lt_ac_max=0
9838lt_ac_count=0
9839# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9840# along with /bin/sed that truncates output.
9841for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9842  test ! -f $lt_ac_sed && continue
9843  cat /dev/null > conftest.in
9844  lt_ac_count=0
9845  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9846  # Check for GNU sed and select it if it is found.
9847  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9848    lt_cv_path_SED=$lt_ac_sed
9849    break
9850  fi
9851  while true; do
9852    cat conftest.in conftest.in >conftest.tmp
9853    mv conftest.tmp conftest.in
9854    cp conftest.in conftest.nl
9855    echo >>conftest.nl
9856    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9857    cmp -s conftest.out conftest.nl || break
9858    # 10000 chars as input seems more than enough
9859    test $lt_ac_count -gt 10 && break
9860    lt_ac_count=`expr $lt_ac_count + 1`
9861    if test $lt_ac_count -gt $lt_ac_max; then
9862      lt_ac_max=$lt_ac_count
9863      lt_cv_path_SED=$lt_ac_sed
9864    fi
9865  done
9866done
9867
9868fi
9869
9870SED=$lt_cv_path_SED
9871echo "$as_me:$LINENO: result: $SED" >&5
9872echo "${ECHO_T}$SED" >&6
9873
9874
9875# Check whether --with-gnu-ld or --without-gnu-ld was given.
9876if test "${with_gnu_ld+set}" = set; then
9877  withval="$with_gnu_ld"
9878  test "$withval" = no || with_gnu_ld=yes
9879else
9880  with_gnu_ld=no
9881fi;
9882ac_prog=ld
9883if test "$GCC" = yes; then
9884  # Check if gcc -print-prog-name=ld gives a path.
9885  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9886echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9887  case $host in
9888  *-*-mingw*)
9889    # gcc leaves a trailing carriage return which upsets mingw
9890    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9891  *)
9892    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9893  esac
9894  case $ac_prog in
9895    # Accept absolute paths.
9896    [\\/]* | ?:[\\/]*)
9897      re_direlt='/[^/][^/]*/\.\./'
9898      # Canonicalize the pathname of ld
9899      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9900      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9901        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9902      done
9903      test -z "$LD" && LD="$ac_prog"
9904      ;;
9905  "")
9906    # If it fails, then pretend we aren't using GCC.
9907    ac_prog=ld
9908    ;;
9909  *)
9910    # If it is relative, then search for the first ld in PATH.
9911    with_gnu_ld=unknown
9912    ;;
9913  esac
9914elif test "$with_gnu_ld" = yes; then
9915  echo "$as_me:$LINENO: checking for GNU ld" >&5
9916echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9917else
9918  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9919echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9920fi
9921if test "${lt_cv_path_LD+set}" = set; then
9922  echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924  if test -z "$LD"; then
9925  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9926  for ac_dir in $PATH; do
9927    IFS="$lt_save_ifs"
9928    test -z "$ac_dir" && ac_dir=.
9929    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9930      lt_cv_path_LD="$ac_dir/$ac_prog"
9931      # Check to see if the program is GNU ld.  I'd rather use --version,
9932      # but apparently some variants of GNU ld only accept -v.
9933      # Break only if it was the GNU/non-GNU ld that we prefer.
9934      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9935      *GNU* | *'with BFD'*)
9936        test "$with_gnu_ld" != no && break
9937        ;;
9938      *)
9939        test "$with_gnu_ld" != yes && break
9940        ;;
9941      esac
9942    fi
9943  done
9944  IFS="$lt_save_ifs"
9945else
9946  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9947fi
9948fi
9949
9950LD="$lt_cv_path_LD"
9951if test -n "$LD"; then
9952  echo "$as_me:$LINENO: result: $LD" >&5
9953echo "${ECHO_T}$LD" >&6
9954else
9955  echo "$as_me:$LINENO: result: no" >&5
9956echo "${ECHO_T}no" >&6
9957fi
9958test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9959echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9960   { (exit 1); exit 1; }; }
9961echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9962echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9963if test "${lt_cv_prog_gnu_ld+set}" = set; then
9964  echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9967case `$LD -v 2>&1 </dev/null` in
9968*GNU* | *'with BFD'*)
9969  lt_cv_prog_gnu_ld=yes
9970  ;;
9971*)
9972  lt_cv_prog_gnu_ld=no
9973  ;;
9974esac
9975fi
9976echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9977echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9978with_gnu_ld=$lt_cv_prog_gnu_ld
9979
9980
9981echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9982echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9983if test "${lt_cv_ld_reload_flag+set}" = set; then
9984  echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986  lt_cv_ld_reload_flag='-r'
9987fi
9988echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9989echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9990reload_flag=$lt_cv_ld_reload_flag
9991case $reload_flag in
9992"" | " "*) ;;
9993*) reload_flag=" $reload_flag" ;;
9994esac
9995reload_cmds='$LD$reload_flag -o $output$reload_objs'
9996case $host_os in
9997  darwin*)
9998    if test "$GCC" = yes; then
9999      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10000    else
10001      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002    fi
10003    ;;
10004esac
10005
10006echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10007echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10008if test "${lt_cv_path_NM+set}" = set; then
10009  echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011  if test -n "$NM"; then
10012  # Let the user override the test.
10013  lt_cv_path_NM="$NM"
10014else
10015  lt_nm_to_check="${ac_tool_prefix}nm"
10016  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10017    lt_nm_to_check="$lt_nm_to_check nm"
10018  fi
10019  for lt_tmp_nm in $lt_nm_to_check; do
10020    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10021    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10022      IFS="$lt_save_ifs"
10023      test -z "$ac_dir" && ac_dir=.
10024      tmp_nm="$ac_dir/$lt_tmp_nm"
10025      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10026        # Check to see if the nm accepts a BSD-compat flag.
10027        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10028        #   nm: unknown option "B" ignored
10029        # Tru64's nm complains that /dev/null is an invalid object file
10030        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10031        */dev/null* | *'Invalid file or object type'*)
10032          lt_cv_path_NM="$tmp_nm -B"
10033          break
10034          ;;
10035        *)
10036          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10037          */dev/null*)
10038            lt_cv_path_NM="$tmp_nm -p"
10039            break
10040            ;;
10041          *)
10042            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10043            continue # so that we can try to find one that supports BSD flags
10044            ;;
10045          esac
10046          ;;
10047        esac
10048      fi
10049    done
10050    IFS="$lt_save_ifs"
10051  done
10052  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10053fi
10054fi
10055echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10056echo "${ECHO_T}$lt_cv_path_NM" >&6
10057NM="$lt_cv_path_NM"
10058
10059echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10060echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10061if test "${lt_cv_deplibs_check_method+set}" = set; then
10062  echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064  lt_cv_file_magic_cmd='$MAGIC_CMD'
10065lt_cv_file_magic_test_file=
10066lt_cv_deplibs_check_method='unknown'
10067# Need to set the preceding variable on all platforms that support
10068# interlibrary dependencies.
10069# 'none' -- dependencies not supported.
10070# `unknown' -- same as none, but documents that we really don't know.
10071# 'pass_all' -- all dependencies passed with no checks.
10072# 'test_compile' -- check by making test program.
10073# 'file_magic [[regex]]' -- check by looking for files in library path
10074# which responds to the $file_magic_cmd with a given extended regex.
10075# If you have `file' or equivalent on your system and you're not sure
10076# whether `pass_all' will *always* work, you probably want this one.
10077
10078case $host_os in
10079aix4* | aix5*)
10080  lt_cv_deplibs_check_method=pass_all
10081  ;;
10082
10083beos*)
10084  lt_cv_deplibs_check_method=pass_all
10085  ;;
10086
10087bsdi[45]*)
10088  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10089  lt_cv_file_magic_cmd='/usr/bin/file -L'
10090  lt_cv_file_magic_test_file=/shlib/libc.so
10091  ;;
10092
10093cygwin*)
10094  # func_win32_libid is a shell function defined in ltmain.sh
10095  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10096  lt_cv_file_magic_cmd='func_win32_libid'
10097  ;;
10098
10099mingw* | pw32*)
10100  # Base MSYS/MinGW do not provide the 'file' command needed by
10101  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10102  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10103  lt_cv_file_magic_cmd='$OBJDUMP -f'
10104  ;;
10105
10106darwin* | rhapsody*)
10107  lt_cv_deplibs_check_method=pass_all
10108  ;;
10109
10110freebsd* | kfreebsd*-gnu | dragonfly*)
10111  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10112    case $host_cpu in
10113    i*86 )
10114      # Not sure whether the presence of OpenBSD here was a mistake.
10115      # Let's accept both of them until this is cleared up.
10116      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10117      lt_cv_file_magic_cmd=/usr/bin/file
10118      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10119      ;;
10120    esac
10121  else
10122    lt_cv_deplibs_check_method=pass_all
10123  fi
10124  ;;
10125
10126gnu*)
10127  lt_cv_deplibs_check_method=pass_all
10128  ;;
10129
10130hpux10.20* | hpux11*)
10131  lt_cv_file_magic_cmd=/usr/bin/file
10132  case $host_cpu in
10133  ia64*)
10134    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10135    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10136    ;;
10137  hppa*64*)
10138    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10139    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10140    ;;
10141  *)
10142    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10143    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10144    ;;
10145  esac
10146  ;;
10147
10148interix3*)
10149  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10150  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10151  ;;
10152
10153irix5* | irix6* | nonstopux*)
10154  case $LD in
10155  *-32|*"-32 ") libmagic=32-bit;;
10156  *-n32|*"-n32 ") libmagic=N32;;
10157  *-64|*"-64 ") libmagic=64-bit;;
10158  *) libmagic=never-match;;
10159  esac
10160  lt_cv_deplibs_check_method=pass_all
10161  ;;
10162
10163# This must be Linux ELF.
10164linux*)
10165  lt_cv_deplibs_check_method=pass_all
10166  ;;
10167
10168netbsd*)
10169  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10170    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10171  else
10172    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10173  fi
10174  ;;
10175
10176newos6*)
10177  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10178  lt_cv_file_magic_cmd=/usr/bin/file
10179  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10180  ;;
10181
10182nto-qnx*)
10183  lt_cv_deplibs_check_method=unknown
10184  ;;
10185
10186openbsd*)
10187  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10188    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10189  else
10190    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10191  fi
10192  ;;
10193
10194osf3* | osf4* | osf5*)
10195  lt_cv_deplibs_check_method=pass_all
10196  ;;
10197
10198solaris*)
10199  lt_cv_deplibs_check_method=pass_all
10200  ;;
10201
10202sysv4 | sysv4.3*)
10203  case $host_vendor in
10204  motorola)
10205    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10206    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10207    ;;
10208  ncr)
10209    lt_cv_deplibs_check_method=pass_all
10210    ;;
10211  sequent)
10212    lt_cv_file_magic_cmd='/bin/file'
10213    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10214    ;;
10215  sni)
10216    lt_cv_file_magic_cmd='/bin/file'
10217    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10218    lt_cv_file_magic_test_file=/lib/libc.so
10219    ;;
10220  siemens)
10221    lt_cv_deplibs_check_method=pass_all
10222    ;;
10223  pc)
10224    lt_cv_deplibs_check_method=pass_all
10225    ;;
10226  esac
10227  ;;
10228
10229sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10230  lt_cv_deplibs_check_method=pass_all
10231  ;;
10232esac
10233
10234fi
10235echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10236echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10237file_magic_cmd=$lt_cv_file_magic_cmd
10238deplibs_check_method=$lt_cv_deplibs_check_method
10239test -z "$deplibs_check_method" && deplibs_check_method=unknown
10240
10241
10242
10243
10244# If no C compiler was specified, use CC.
10245LTCC=${LTCC-"$CC"}
10246
10247# If no C compiler flags were specified, use CFLAGS.
10248LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10249
10250# Allow CC to be a program name with arguments.
10251compiler=$CC
10252
10253# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10254if test "${enable_libtool_lock+set}" = set; then
10255  enableval="$enable_libtool_lock"
10256
10257fi;
10258test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10259
10260# Some flags need to be propagated to the compiler or linker for good
10261# libtool support.
10262case $host in
10263ia64-*-hpux*)
10264  # Find out which ABI we are using.
10265  echo 'int i;' > conftest.$ac_ext
10266  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267  (eval $ac_compile) 2>&5
10268  ac_status=$?
10269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270  (exit $ac_status); }; then
10271    case `/usr/bin/file conftest.$ac_objext` in
10272    *ELF-32*)
10273      HPUX_IA64_MODE="32"
10274      ;;
10275    *ELF-64*)
10276      HPUX_IA64_MODE="64"
10277      ;;
10278    esac
10279  fi
10280  rm -rf conftest*
10281  ;;
10282*-*-irix6*)
10283  # Find out which ABI we are using.
10284  echo '#line 10284 "configure"' > conftest.$ac_ext
10285  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286  (eval $ac_compile) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; then
10290   if test "$lt_cv_prog_gnu_ld" = yes; then
10291    case `/usr/bin/file conftest.$ac_objext` in
10292    *32-bit*)
10293      LD="${LD-ld} -melf32bsmip"
10294      ;;
10295    *N32*)
10296      LD="${LD-ld} -melf32bmipn32"
10297      ;;
10298    *64-bit*)
10299      LD="${LD-ld} -melf64bmip"
10300      ;;
10301    esac
10302   else
10303    case `/usr/bin/file conftest.$ac_objext` in
10304    *32-bit*)
10305      LD="${LD-ld} -32"
10306      ;;
10307    *N32*)
10308      LD="${LD-ld} -n32"
10309      ;;
10310    *64-bit*)
10311      LD="${LD-ld} -64"
10312      ;;
10313    esac
10314   fi
10315  fi
10316  rm -rf conftest*
10317  ;;
10318
10319x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10320  # Find out which ABI we are using.
10321  echo 'int i;' > conftest.$ac_ext
10322  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10323  (eval $ac_compile) 2>&5
10324  ac_status=$?
10325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326  (exit $ac_status); }; then
10327    case `/usr/bin/file conftest.o` in
10328    *32-bit*)
10329      case $host in
10330        x86_64-*linux*)
10331          LD="${LD-ld} -m elf_i386"
10332          ;;
10333        ppc64-*linux*|powerpc64-*linux*)
10334          LD="${LD-ld} -m elf32ppclinux"
10335          ;;
10336        s390x-*linux*)
10337          LD="${LD-ld} -m elf_s390"
10338          ;;
10339        sparc64-*linux*)
10340          LD="${LD-ld} -m elf32_sparc"
10341          ;;
10342      esac
10343      ;;
10344    *64-bit*)
10345      case $host in
10346        x86_64-*linux*)
10347          LD="${LD-ld} -m elf_x86_64"
10348          ;;
10349        ppc*-*linux*|powerpc*-*linux*)
10350          LD="${LD-ld} -m elf64ppc"
10351          ;;
10352        s390*-*linux*)
10353          LD="${LD-ld} -m elf64_s390"
10354          ;;
10355        sparc*-*linux*)
10356          LD="${LD-ld} -m elf64_sparc"
10357          ;;
10358      esac
10359      ;;
10360    esac
10361  fi
10362  rm -rf conftest*
10363  ;;
10364
10365*-*-sco3.2v5*)
10366  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10367  SAVE_CFLAGS="$CFLAGS"
10368  CFLAGS="$CFLAGS -belf"
10369  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10370echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10371if test "${lt_cv_cc_needs_belf+set}" = set; then
10372  echo $ECHO_N "(cached) $ECHO_C" >&6
10373else
10374  ac_ext=c
10375ac_cpp='$CPP $CPPFLAGS'
10376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378ac_compiler_gnu=$ac_cv_c_compiler_gnu
10379
10380     cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h.  */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h.  */
10386
10387#ifdef F77_DUMMY_MAIN
10388
10389#  ifdef __cplusplus
10390     extern "C"
10391#  endif
10392   int F77_DUMMY_MAIN() { return 1; }
10393
10394#endif
10395int
10396main ()
10397{
10398
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403rm -f conftest.$ac_objext conftest$ac_exeext
10404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405  (eval $ac_link) 2>conftest.er1
10406  ac_status=$?
10407  grep -v '^ *+' conftest.er1 >conftest.err
10408  rm -f conftest.er1
10409  cat conftest.err >&5
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); } &&
10412         { ac_try='test -z "$ac_c_werror_flag"
10413                         || test ! -s conftest.err'
10414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415  (eval $ac_try) 2>&5
10416  ac_status=$?
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); }; } &&
10419         { ac_try='test -s conftest$ac_exeext'
10420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421  (eval $ac_try) 2>&5
10422  ac_status=$?
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); }; }; then
10425  lt_cv_cc_needs_belf=yes
10426else
10427  echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430lt_cv_cc_needs_belf=no
10431fi
10432rm -f conftest.err conftest.$ac_objext \
10433      conftest$ac_exeext conftest.$ac_ext
10434     ac_ext=c
10435ac_cpp='$CPP $CPPFLAGS'
10436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10438ac_compiler_gnu=$ac_cv_c_compiler_gnu
10439
10440fi
10441echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10442echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10443  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10444    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10445    CFLAGS="$SAVE_CFLAGS"
10446  fi
10447  ;;
10448sparc*-*solaris*)
10449  # Find out which ABI we are using.
10450  echo 'int i;' > conftest.$ac_ext
10451  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452  (eval $ac_compile) 2>&5
10453  ac_status=$?
10454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455  (exit $ac_status); }; then
10456    case `/usr/bin/file conftest.o` in
10457    *64-bit*)
10458      case $lt_cv_prog_gnu_ld in
10459      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10460      *)    LD="${LD-ld} -64" ;;
10461      esac
10462      ;;
10463    esac
10464  fi
10465  rm -rf conftest*
10466  ;;
10467
10468
10469esac
10470
10471need_locks="$enable_libtool_lock"
10472
10473
10474ac_ext=c
10475ac_cpp='$CPP $CPPFLAGS'
10476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10478ac_compiler_gnu=$ac_cv_c_compiler_gnu
10479echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10480echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10481# On Suns, sometimes $CPP names a directory.
10482if test -n "$CPP" && test -d "$CPP"; then
10483  CPP=
10484fi
10485if test -z "$CPP"; then
10486  if test "${ac_cv_prog_CPP+set}" = set; then
10487  echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489      # Double quotes because CPP needs to be expanded
10490    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10491    do
10492      ac_preproc_ok=false
10493for ac_c_preproc_warn_flag in '' yes
10494do
10495  # Use a header file that comes with gcc, so configuring glibc
10496  # with a fresh cross-compiler works.
10497  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498  # <limits.h> exists even on freestanding compilers.
10499  # On the NeXT, cc -E runs the code through the compiler's parser,
10500  # not just through cpp. "Syntax error" is here to catch this case.
10501  cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h.  */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h.  */
10507#ifdef __STDC__
10508# include <limits.h>
10509#else
10510# include <assert.h>
10511#endif
10512                     Syntax error
10513_ACEOF
10514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10515  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10516  ac_status=$?
10517  grep -v '^ *+' conftest.er1 >conftest.err
10518  rm -f conftest.er1
10519  cat conftest.err >&5
10520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } >/dev/null; then
10522  if test -s conftest.err; then
10523    ac_cpp_err=$ac_c_preproc_warn_flag
10524    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10525  else
10526    ac_cpp_err=
10527  fi
10528else
10529  ac_cpp_err=yes
10530fi
10531if test -z "$ac_cpp_err"; then
10532  :
10533else
10534  echo "$as_me: failed program was:" >&5
10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537  # Broken: fails on valid input.
10538continue
10539fi
10540rm -f conftest.err conftest.$ac_ext
10541
10542  # OK, works on sane cases.  Now check whether non-existent headers
10543  # can be detected and how.
10544  cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h.  */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h.  */
10550#include <ac_nonexistent.h>
10551_ACEOF
10552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554  ac_status=$?
10555  grep -v '^ *+' conftest.er1 >conftest.err
10556  rm -f conftest.er1
10557  cat conftest.err >&5
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); } >/dev/null; then
10560  if test -s conftest.err; then
10561    ac_cpp_err=$ac_c_preproc_warn_flag
10562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10563  else
10564    ac_cpp_err=
10565  fi
10566else
10567  ac_cpp_err=yes
10568fi
10569if test -z "$ac_cpp_err"; then
10570  # Broken: success on invalid input.
10571continue
10572else
10573  echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576  # Passes both tests.
10577ac_preproc_ok=:
10578break
10579fi
10580rm -f conftest.err conftest.$ac_ext
10581
10582done
10583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10584rm -f conftest.err conftest.$ac_ext
10585if $ac_preproc_ok; then
10586  break
10587fi
10588
10589    done
10590    ac_cv_prog_CPP=$CPP
10591
10592fi
10593  CPP=$ac_cv_prog_CPP
10594else
10595  ac_cv_prog_CPP=$CPP
10596fi
10597echo "$as_me:$LINENO: result: $CPP" >&5
10598echo "${ECHO_T}$CPP" >&6
10599ac_preproc_ok=false
10600for ac_c_preproc_warn_flag in '' yes
10601do
10602  # Use a header file that comes with gcc, so configuring glibc
10603  # with a fresh cross-compiler works.
10604  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605  # <limits.h> exists even on freestanding compilers.
10606  # On the NeXT, cc -E runs the code through the compiler's parser,
10607  # not just through cpp. "Syntax error" is here to catch this case.
10608  cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h.  */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h.  */
10614#ifdef __STDC__
10615# include <limits.h>
10616#else
10617# include <assert.h>
10618#endif
10619                     Syntax error
10620_ACEOF
10621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10622  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10623  ac_status=$?
10624  grep -v '^ *+' conftest.er1 >conftest.err
10625  rm -f conftest.er1
10626  cat conftest.err >&5
10627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628  (exit $ac_status); } >/dev/null; then
10629  if test -s conftest.err; then
10630    ac_cpp_err=$ac_c_preproc_warn_flag
10631    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10632  else
10633    ac_cpp_err=
10634  fi
10635else
10636  ac_cpp_err=yes
10637fi
10638if test -z "$ac_cpp_err"; then
10639  :
10640else
10641  echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644  # Broken: fails on valid input.
10645continue
10646fi
10647rm -f conftest.err conftest.$ac_ext
10648
10649  # OK, works on sane cases.  Now check whether non-existent headers
10650  # can be detected and how.
10651  cat >conftest.$ac_ext <<_ACEOF
10652/* confdefs.h.  */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h.  */
10657#include <ac_nonexistent.h>
10658_ACEOF
10659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10661  ac_status=$?
10662  grep -v '^ *+' conftest.er1 >conftest.err
10663  rm -f conftest.er1
10664  cat conftest.err >&5
10665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666  (exit $ac_status); } >/dev/null; then
10667  if test -s conftest.err; then
10668    ac_cpp_err=$ac_c_preproc_warn_flag
10669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10670  else
10671    ac_cpp_err=
10672  fi
10673else
10674  ac_cpp_err=yes
10675fi
10676if test -z "$ac_cpp_err"; then
10677  # Broken: success on invalid input.
10678continue
10679else
10680  echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683  # Passes both tests.
10684ac_preproc_ok=:
10685break
10686fi
10687rm -f conftest.err conftest.$ac_ext
10688
10689done
10690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10691rm -f conftest.err conftest.$ac_ext
10692if $ac_preproc_ok; then
10693  :
10694else
10695  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10696See \`config.log' for more details." >&5
10697echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10698See \`config.log' for more details." >&2;}
10699   { (exit 1); exit 1; }; }
10700fi
10701
10702ac_ext=c
10703ac_cpp='$CPP $CPPFLAGS'
10704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707
10708
10709echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10710echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10711if test "${ac_cv_header_stdc+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h.  */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h.  */
10720#include <stdlib.h>
10721#include <stdarg.h>
10722#include <string.h>
10723#include <float.h>
10724
10725#ifdef F77_DUMMY_MAIN
10726
10727#  ifdef __cplusplus
10728     extern "C"
10729#  endif
10730   int F77_DUMMY_MAIN() { return 1; }
10731
10732#endif
10733int
10734main ()
10735{
10736
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741rm -f conftest.$ac_objext
10742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743  (eval $ac_compile) 2>conftest.er1
10744  ac_status=$?
10745  grep -v '^ *+' conftest.er1 >conftest.err
10746  rm -f conftest.er1
10747  cat conftest.err >&5
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } &&
10750         { ac_try='test -z "$ac_c_werror_flag"
10751                         || test ! -s conftest.err'
10752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753  (eval $ac_try) 2>&5
10754  ac_status=$?
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); }; } &&
10757         { ac_try='test -s conftest.$ac_objext'
10758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759  (eval $ac_try) 2>&5
10760  ac_status=$?
10761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762  (exit $ac_status); }; }; then
10763  ac_cv_header_stdc=yes
10764else
10765  echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768ac_cv_header_stdc=no
10769fi
10770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10771
10772if test $ac_cv_header_stdc = yes; then
10773  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10774  cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h.  */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h.  */
10780#include <string.h>
10781
10782_ACEOF
10783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10784  $EGREP "memchr" >/dev/null 2>&1; then
10785  :
10786else
10787  ac_cv_header_stdc=no
10788fi
10789rm -f conftest*
10790
10791fi
10792
10793if test $ac_cv_header_stdc = yes; then
10794  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10795  cat >conftest.$ac_ext <<_ACEOF
10796/* confdefs.h.  */
10797_ACEOF
10798cat confdefs.h >>conftest.$ac_ext
10799cat >>conftest.$ac_ext <<_ACEOF
10800/* end confdefs.h.  */
10801#include <stdlib.h>
10802
10803_ACEOF
10804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10805  $EGREP "free" >/dev/null 2>&1; then
10806  :
10807else
10808  ac_cv_header_stdc=no
10809fi
10810rm -f conftest*
10811
10812fi
10813
10814if test $ac_cv_header_stdc = yes; then
10815  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10816  if test "$cross_compiling" = yes; then
10817  :
10818else
10819  cat >conftest.$ac_ext <<_ACEOF
10820/* confdefs.h.  */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h.  */
10825#include <ctype.h>
10826#if ((' ' & 0x0FF) == 0x020)
10827# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10828# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10829#else
10830# define ISLOWER(c) \
10831                   (('a' <= (c) && (c) <= 'i') \
10832                     || ('j' <= (c) && (c) <= 'r') \
10833                     || ('s' <= (c) && (c) <= 'z'))
10834# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10835#endif
10836
10837#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10838int
10839main ()
10840{
10841  int i;
10842  for (i = 0; i < 256; i++)
10843    if (XOR (islower (i), ISLOWER (i))
10844        || toupper (i) != TOUPPER (i))
10845      exit(2);
10846  exit (0);
10847}
10848_ACEOF
10849rm -f conftest$ac_exeext
10850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851  (eval $ac_link) 2>&5
10852  ac_status=$?
10853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856  (eval $ac_try) 2>&5
10857  ac_status=$?
10858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859  (exit $ac_status); }; }; then
10860  :
10861else
10862  echo "$as_me: program exited with status $ac_status" >&5
10863echo "$as_me: failed program was:" >&5
10864sed 's/^/| /' conftest.$ac_ext >&5
10865
10866( exit $ac_status )
10867ac_cv_header_stdc=no
10868fi
10869rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10870fi
10871fi
10872fi
10873echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10874echo "${ECHO_T}$ac_cv_header_stdc" >&6
10875if test $ac_cv_header_stdc = yes; then
10876
10877cat >>confdefs.h <<\_ACEOF
10878#define STDC_HEADERS 1
10879_ACEOF
10880
10881fi
10882
10883# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10894                  inttypes.h stdint.h unistd.h
10895do
10896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10897echo "$as_me:$LINENO: checking for $ac_header" >&5
10898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10899if eval "test \"\${$as_ac_Header+set}\" = set"; then
10900  echo $ECHO_N "(cached) $ECHO_C" >&6
10901else
10902  cat >conftest.$ac_ext <<_ACEOF
10903/* confdefs.h.  */
10904_ACEOF
10905cat confdefs.h >>conftest.$ac_ext
10906cat >>conftest.$ac_ext <<_ACEOF
10907/* end confdefs.h.  */
10908$ac_includes_default
10909
10910#include <$ac_header>
10911_ACEOF
10912rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914  (eval $ac_compile) 2>conftest.er1
10915  ac_status=$?
10916  grep -v '^ *+' conftest.er1 >conftest.err
10917  rm -f conftest.er1
10918  cat conftest.err >&5
10919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920  (exit $ac_status); } &&
10921         { ac_try='test -z "$ac_c_werror_flag"
10922                         || test ! -s conftest.err'
10923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924  (eval $ac_try) 2>&5
10925  ac_status=$?
10926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927  (exit $ac_status); }; } &&
10928         { ac_try='test -s conftest.$ac_objext'
10929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930  (eval $ac_try) 2>&5
10931  ac_status=$?
10932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933  (exit $ac_status); }; }; then
10934  eval "$as_ac_Header=yes"
10935else
10936  echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
10938
10939eval "$as_ac_Header=no"
10940fi
10941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10942fi
10943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10945if test `eval echo '${'$as_ac_Header'}'` = yes; then
10946  cat >>confdefs.h <<_ACEOF
10947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10948_ACEOF
10949
10950fi
10951
10952done
10953
10954
10955
10956for ac_header in dlfcn.h
10957do
10958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10959if eval "test \"\${$as_ac_Header+set}\" = set"; then
10960  echo "$as_me:$LINENO: checking for $ac_header" >&5
10961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10962if eval "test \"\${$as_ac_Header+set}\" = set"; then
10963  echo $ECHO_N "(cached) $ECHO_C" >&6
10964fi
10965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10967else
10968  # Is the header compilable?
10969echo "$as_me:$LINENO: checking $ac_header usability" >&5
10970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h.  */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h.  */
10977$ac_includes_default
10978#include <$ac_header>
10979_ACEOF
10980rm -f conftest.$ac_objext
10981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10982  (eval $ac_compile) 2>conftest.er1
10983  ac_status=$?
10984  grep -v '^ *+' conftest.er1 >conftest.err
10985  rm -f conftest.er1
10986  cat conftest.err >&5
10987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988  (exit $ac_status); } &&
10989         { ac_try='test -z "$ac_c_werror_flag"
10990                         || test ! -s conftest.err'
10991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992  (eval $ac_try) 2>&5
10993  ac_status=$?