source: ThirdParty/Lapack/stable/1.5/configure @ 3536

Last change on this file since 3536 was 3536, checked in by stefan, 4 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 844.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.5.4.
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='1.5.4'
433PACKAGE_STRING='ThirdPartyLapack 1.5.4'
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_ct_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 DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE 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 1.5.4 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 1.5.4:";;
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
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --disable-interpackage-dependencies
1088                          disables deduction of Makefile dependencies from
1089                          package linker flags
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --disable-dependency-tracking  speeds up one-time build
1093  --enable-dependency-tracking   do not reject slow dependency extractors
1094  --enable-maintainer-mode  enable make rules and dependencies not useful
1095                          (and sometimes confusing) to the casual installer
1096  --enable-shared[=PKGS]
1097                          build shared libraries [default=yes]
1098  --enable-fast-install[=PKGS]
1099                          optimize for fast installation [default=yes]
1100  --disable-libtool-lock  avoid locking (might break parallel builds)
1101  --disable-dependency-linking
1102                          disable linking library dependencies into shared
1103                          libraries
1104
1105Optional Packages:
1106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1108  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1109  --with-lapack-checklevel
1110                          specify the sanity check level for project Lapack
1111  --with-blas             specify BLAS library (or BUILD to enforce use of
1112                          ThirdParty/Blas)
1113
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-blas-lib linker flags for using package Blas
1117  --with-blas-incdir directory with header files for using package Blas
1118  --with-blas-datadir directory with data files for using package Blas
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124
1125Some influential environment variables:
1126  CDEFS       Additional -D flags to be used when compiling C code.
1127  ADD_CFLAGS  Additional C compiler options
1128  DBG_CFLAGS  Debug C compiler options
1129  OPT_CFLAGS  Optimize C compiler options
1130  CC          C compiler command
1131  CFLAGS      C compiler flags
1132  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1133              nonstandard directory <lib dir>
1134  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1135              headers in a nonstandard directory <include dir>
1136  MPICC       C MPI Compiler
1137  ADD_FFLAGS  Additional Fortran compiler options
1138  DBG_FFLAGS  Debug Fortran compiler options
1139  OPT_FFLAGS  Optimize Fortran compiler options
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142  MPIF77      Fortran MPI Compiler
1143  PKG_CONFIG  path to pkg-config utility
1144  DLAMCH_FFLAGS
1145              Fortran compiler options for DLAMCH.F
1146  CPP         C preprocessor
1147  CXX         C++ compiler command
1148  CXXFLAGS    C++ compiler flags
1149  CXXCPP      C++ preprocessor
1150
1151Use these variables to override the choices made by `configure' or to help
1152it to find libraries and programs with nonstandard names/locations.
1153
1154Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1155_ACEOF
1156fi
1157
1158if test "$ac_init_help" = "recursive"; then
1159  # If there are subdirs, report their specific --help.
1160  ac_popdir=`pwd`
1161  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1162    test -d $ac_dir || continue
1163    ac_builddir=.
1164
1165if test "$ac_dir" != .; then
1166  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1167  # A "../" for each directory in $ac_dir_suffix.
1168  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1169else
1170  ac_dir_suffix= ac_top_builddir=
1171fi
1172
1173case $srcdir in
1174  .)  # No --srcdir option.  We are building in place.
1175    ac_srcdir=.
1176    if test -z "$ac_top_builddir"; then
1177       ac_top_srcdir=.
1178    else
1179       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1180    fi ;;
1181  [\\/]* | ?:[\\/]* )  # Absolute path.
1182    ac_srcdir=$srcdir$ac_dir_suffix;
1183    ac_top_srcdir=$srcdir ;;
1184  *) # Relative path.
1185    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1186    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1187esac
1188
1189# Do not use `cd foo && pwd` to compute absolute paths, because
1190# the directories may not exist.
1191case `pwd` in
1192.) ac_abs_builddir="$ac_dir";;
1193*)
1194  case "$ac_dir" in
1195  .) ac_abs_builddir=`pwd`;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1197  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1198  esac;;
1199esac
1200case $ac_abs_builddir in
1201.) ac_abs_top_builddir=${ac_top_builddir}.;;
1202*)
1203  case ${ac_top_builddir}. in
1204  .) ac_abs_top_builddir=$ac_abs_builddir;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1206  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_srcdir=$ac_srcdir;;
1211*)
1212  case $ac_srcdir in
1213  .) ac_abs_srcdir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1215  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_top_srcdir=$ac_top_srcdir;;
1220*)
1221  case $ac_top_srcdir in
1222  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1224  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1225  esac;;
1226esac
1227
1228    cd $ac_dir
1229    # Check for guested configure; otherwise get Cygnus style configure.
1230    if test -f $ac_srcdir/configure.gnu; then
1231      echo
1232      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1233    elif test -f $ac_srcdir/configure; then
1234      echo
1235      $SHELL $ac_srcdir/configure  --help=recursive
1236    elif test -f $ac_srcdir/configure.ac ||
1237           test -f $ac_srcdir/configure.in; then
1238      echo
1239      $ac_configure --help
1240    else
1241      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1242    fi
1243    cd $ac_popdir
1244  done
1245fi
1246
1247test -n "$ac_init_help" && exit 0
1248if $ac_init_version; then
1249  cat <<\_ACEOF
1250ThirdPartyLapack configure 1.5.4
1251generated by GNU Autoconf 2.59
1252
1253Copyright (C) 2003 Free Software Foundation, Inc.
1254This configure script is free software; the Free Software Foundation
1255gives unlimited permission to copy, distribute and modify it.
1256
1257
1258Copyright 2006 International Business Machines and others.
1259All Rights Reserved.
1260This file is part of the open source package Coin which is distributed
1261under the Eclipse Public License.
1262_ACEOF
1263  exit 0
1264fi
1265exec 5>config.log
1266cat >&5 <<_ACEOF
1267This file contains any messages produced by compilers while
1268running configure, to aid debugging if configure makes a mistake.
1269
1270It was created by ThirdPartyLapack $as_me 1.5.4, which was
1271generated by GNU Autoconf 2.59.  Invocation command line was
1272
1273  $ $0 $@
1274
1275_ACEOF
1276{
1277cat <<_ASUNAME
1278## --------- ##
1279## Platform. ##
1280## --------- ##
1281
1282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1283uname -m = `(uname -m) 2>/dev/null || echo unknown`
1284uname -r = `(uname -r) 2>/dev/null || echo unknown`
1285uname -s = `(uname -s) 2>/dev/null || echo unknown`
1286uname -v = `(uname -v) 2>/dev/null || echo unknown`
1287
1288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1289/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1290
1291/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1292/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1294hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1295/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1296/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1297/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1298
1299_ASUNAME
1300
1301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1302for as_dir in $PATH
1303do
1304  IFS=$as_save_IFS
1305  test -z "$as_dir" && as_dir=.
1306  echo "PATH: $as_dir"
1307done
1308
1309} >&5
1310
1311cat >&5 <<_ACEOF
1312
1313
1314## ----------- ##
1315## Core tests. ##
1316## ----------- ##
1317
1318_ACEOF
1319
1320
1321# Keep a trace of the command line.
1322# Strip out --no-create and --no-recursion so they do not pile up.
1323# Strip out --silent because we don't want to record it for future runs.
1324# Also quote any args containing shell meta-characters.
1325# Make two passes to allow for proper duplicate-argument suppression.
1326ac_configure_args=
1327ac_configure_args0=
1328ac_configure_args1=
1329ac_sep=
1330ac_must_keep_next=false
1331for ac_pass in 1 2
1332do
1333  for ac_arg
1334  do
1335    case $ac_arg in
1336    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1337    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338    | -silent | --silent | --silen | --sile | --sil)
1339      continue ;;
1340    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1342    esac
1343    case $ac_pass in
1344    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1345    2)
1346      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1347      if test $ac_must_keep_next = true; then
1348        ac_must_keep_next=false # Got value, back to normal.
1349      else
1350        case $ac_arg in
1351          *=* | --config-cache | -C | -disable-* | --disable-* \
1352          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1353          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1354          | -with-* | --with-* | -without-* | --without-* | --x)
1355            case "$ac_configure_args0 " in
1356              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1357            esac
1358            ;;
1359          -* ) ac_must_keep_next=true ;;
1360        esac
1361      fi
1362      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1363      # Get rid of the leading space.
1364      ac_sep=" "
1365      ;;
1366    esac
1367  done
1368done
1369$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1370$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1371
1372# When interrupted or exit'd, cleanup temporary files, and complete
1373# config.log.  We remove comments because anyway the quotes in there
1374# would cause problems or look ugly.
1375# WARNING: Be sure not to use single quotes in there, as some shells,
1376# such as our DU 5.0 friend, will then `close' the trap.
1377trap 'exit_status=$?
1378  # Save into config.log some information that might help in debugging.
1379  {
1380    echo
1381
1382    cat <<\_ASBOX
1383## ---------------- ##
1384## Cache variables. ##
1385## ---------------- ##
1386_ASBOX
1387    echo
1388    # The following way of writing the cache mishandles newlines in values,
1389{
1390  (set) 2>&1 |
1391    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1392    *ac_space=\ *)
1393      sed -n \
1394        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1395          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1396      ;;
1397    *)
1398      sed -n \
1399        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1400      ;;
1401    esac;
1402}
1403    echo
1404
1405    cat <<\_ASBOX
1406## ----------------- ##
1407## Output variables. ##
1408## ----------------- ##
1409_ASBOX
1410    echo
1411    for ac_var in $ac_subst_vars
1412    do
1413      eval ac_val=$`echo $ac_var`
1414      echo "$ac_var='"'"'$ac_val'"'"'"
1415    done | sort
1416    echo
1417
1418    if test -n "$ac_subst_files"; then
1419      cat <<\_ASBOX
1420## ------------- ##
1421## Output files. ##
1422## ------------- ##
1423_ASBOX
1424      echo
1425      for ac_var in $ac_subst_files
1426      do
1427        eval ac_val=$`echo $ac_var`
1428        echo "$ac_var='"'"'$ac_val'"'"'"
1429      done | sort
1430      echo
1431    fi
1432
1433    if test -s confdefs.h; then
1434      cat <<\_ASBOX
1435## ----------- ##
1436## confdefs.h. ##
1437## ----------- ##
1438_ASBOX
1439      echo
1440      sed "/^$/d" confdefs.h | sort
1441      echo
1442    fi
1443    test "$ac_signal" != 0 &&
1444      echo "$as_me: caught signal $ac_signal"
1445    echo "$as_me: exit $exit_status"
1446  } >&5
1447  rm -f core *.core &&
1448  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1449    exit $exit_status
1450     ' 0
1451for ac_signal in 1 2 13 15; do
1452  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1453done
1454ac_signal=0
1455
1456# confdefs.h avoids OS command line length limits that DEFS can exceed.
1457rm -rf conftest* confdefs.h
1458# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1459echo >confdefs.h
1460
1461# Predefined preprocessor variables.
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_NAME "$PACKAGE_NAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_VERSION "$PACKAGE_VERSION"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_STRING "$PACKAGE_STRING"
1480_ACEOF
1481
1482
1483cat >>confdefs.h <<_ACEOF
1484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1485_ACEOF
1486
1487
1488# Let the site file select an alternate cache file if it wants to.
1489# Prefer explicitly selected file to automatically selected ones.
1490if test -z "$CONFIG_SITE"; then
1491  if test "x$prefix" != xNONE; then
1492    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1493  else
1494    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1495  fi
1496fi
1497for ac_site_file in $CONFIG_SITE; do
1498  if test -r "$ac_site_file"; then
1499    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1500echo "$as_me: loading site script $ac_site_file" >&6;}
1501    sed 's/^/| /' "$ac_site_file" >&5
1502    . "$ac_site_file"
1503  fi
1504done
1505
1506if test -r "$cache_file"; then
1507  # Some versions of bash will fail to source /dev/null (special
1508  # files actually), so we avoid doing that.
1509  if test -f "$cache_file"; then
1510    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1511echo "$as_me: loading cache $cache_file" >&6;}
1512    case $cache_file in
1513      [\\/]* | ?:[\\/]* ) . $cache_file;;
1514      *)                      . ./$cache_file;;
1515    esac
1516  fi
1517else
1518  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1519echo "$as_me: creating cache $cache_file" >&6;}
1520  >$cache_file
1521fi
1522
1523# Check that the precious variables saved in the cache have kept the same
1524# value.
1525ac_cache_corrupted=false
1526for ac_var in `(set) 2>&1 |
1527               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1528  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1529  eval ac_new_set=\$ac_env_${ac_var}_set
1530  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1531  eval ac_new_val="\$ac_env_${ac_var}_value"
1532  case $ac_old_set,$ac_new_set in
1533    set,)
1534      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1535echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1536      ac_cache_corrupted=: ;;
1537    ,set)
1538      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1539echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1540      ac_cache_corrupted=: ;;
1541    ,);;
1542    *)
1543      if test "x$ac_old_val" != "x$ac_new_val"; then
1544        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1545echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1546        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1547echo "$as_me:   former value:  $ac_old_val" >&2;}
1548        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1549echo "$as_me:   current value: $ac_new_val" >&2;}
1550        ac_cache_corrupted=:
1551      fi;;
1552  esac
1553  # Pass precious variables to config.status.
1554  if test "$ac_new_set" = set; then
1555    case $ac_new_val in
1556    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1557      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1558    *) ac_arg=$ac_var=$ac_new_val ;;
1559    esac
1560    case " $ac_configure_args " in
1561      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1562      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1563    esac
1564  fi
1565done
1566if $ac_cache_corrupted; then
1567  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1568echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1569  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1570echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1571   { (exit 1); exit 1; }; }
1572fi
1573
1574ac_ext=c
1575ac_cpp='$CPP $CPPFLAGS'
1576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1578ac_compiler_gnu=$ac_cv_c_compiler_gnu
1579
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# List one file in the package so that the configure script can test
1610# whether the package is actually there
1611
1612
1613# Where should everything be installed by default?  Here, we want it
1614# to be installed directly in 'bin', 'lib', 'include' subdirectories
1615# of the directory where configure is run.  The default would be
1616# /usr/local.
1617
1618
1619
1620# As backup, we make sure we don't loose an FLIBS if it has been set
1621# by the user
1622save_FLIBS="$FLIBS"
1623
1624# A useful makefile conditional that is always false
1625
1626
1627if false; then
1628  ALWAYS_FALSE_TRUE=
1629  ALWAYS_FALSE_FALSE='#'
1630else
1631  ALWAYS_FALSE_TRUE='#'
1632  ALWAYS_FALSE_FALSE=
1633fi
1634
1635
1636# We set the following variable so that we know later in AC_COIN_FINALIZE
1637# that we are in a project main directory
1638coin_projectdir=yes
1639
1640# Set the project's version numbers
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define LAPACK_VERSION "$PACKAGE_VERSION"
1645_ACEOF
1646
1647
1648  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1649  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1650  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1651  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1652  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1653  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1654
1655cat >>confdefs.h <<_ACEOF
1656#define LAPACK_VERSION_MAJOR $coin_majorver
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define LAPACK_VERSION_MINOR $coin_minorver
1662_ACEOF
1663
1664
1665cat >>confdefs.h <<_ACEOF
1666#define LAPACK_VERSION_RELEASE $coin_releasever
1667_ACEOF
1668
1669
1670  # We use the following variable to have a string with the upper case
1671  # version of the project name
1672  COIN_PRJCT=LAPACK
1673
1674  # Set the project's SVN revision number. The complicated sed expression
1675  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1676  # as a single number.
1677  # Extract the first word of "svnversion", so it can be a program name with args.
1678set dummy svnversion; ac_word=$2
1679echo "$as_me:$LINENO: checking for $ac_word" >&5
1680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_have_svnversion+set}" = set; then
1682  echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684  if test -n "$have_svnversion"; then
1685  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1686else
1687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690  IFS=$as_save_IFS
1691  test -z "$as_dir" && as_dir=.
1692  for ac_exec_ext in '' $ac_executable_extensions; do
1693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694    ac_cv_prog_have_svnversion="yes"
1695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696    break 2
1697  fi
1698done
1699done
1700
1701  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1702fi
1703fi
1704have_svnversion=$ac_cv_prog_have_svnversion
1705if test -n "$have_svnversion"; then
1706  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1707echo "${ECHO_T}$have_svnversion" >&6
1708else
1709  echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713  if test "x$have_svnversion" = xyes; then
1714
1715    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1716    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1717      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1718
1719cat >>confdefs.h <<_ACEOF
1720#define LAPACK_SVN_REV $LAPACK_SVN_REV
1721_ACEOF
1722
1723    fi
1724  fi
1725
1726
1727
1728# Capture libtool library version, if given.
1729 coin_libversion=6:4:5
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
1892
1893
1894  # for backward compatibility
1895  # Check whether --enable-doscompile or --disable-doscompile was given.
1896if test "${enable_doscompile+set}" = set; then
1897  enableval="$enable_doscompile"
1898  enable_doscompile=$enableval
1899else
1900  enable_doscompile=no
1901fi;
1902
1903  # Check whether --enable-msvc or --disable-msvc was given.
1904if test "${enable_msvc+set}" = set; then
1905  enableval="$enable_msvc"
1906  enable_msvc=$enableval
1907else
1908  enable_msvc=no
1909     if test "$enable_doscompile" = msvc ; then
1910       enable_msvc=yes
1911     elif test "$enable_doscompile" != no ; then
1912       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1913echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1914   { (exit 1); exit 1; }; }
1915     fi
1916
1917fi;
1918
1919  if test "$enable_msvc" = MD; then
1920    enable_shared=yes
1921    enable_msvc=yes
1922  fi
1923
1924  if test "$enable_msvc" = yes; then
1925    case $build in
1926      *-cygwin* | *-mingw*) ;;
1927      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1928echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1929   { (exit 1); exit 1; }; } ;;
1930    esac
1931  fi
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942# For consistency, we set the C compiler to the same value of the C++
1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    clang* ) ;;
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957
1958
1959
1960
1961
1962coin_has_cc=yes
1963
1964save_cflags="$CFLAGS"
1965
1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1969# compiler. In this case, put cc after gcc.
1970
1971case $build in
1972  *-cygwin* | *-mingw*)
1973             if test "$enable_msvc" = yes ; then
1974               comps="icl cl gcc"
1975             else
1976               comps="gcc icl cl"
1977             fi ;;
1978  *-*-solaris*)
1979             # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$sol_cc_compiler"; then
1987  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1988else
1989  ac_prog_rejected=no
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993  IFS=$as_save_IFS
1994  test -z "$as_dir" && as_dir=.
1995  for ac_exec_ext in '' $ac_executable_extensions; do
1996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998       ac_prog_rejected=yes
1999       continue
2000     fi
2001    ac_cv_prog_sol_cc_compiler="cc"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008if test $ac_prog_rejected = yes; then
2009  # We found a bogon in the path, so make sure we never use it.
2010  set dummy $ac_cv_prog_sol_cc_compiler
2011  shift
2012  if test $# != 0; then
2013    # We chose a different compiler from the bogus one.
2014    # However, it has the same basename, so the bogon will be chosen
2015    # first if we set sol_cc_compiler to just the basename; use the full file name.
2016    shift
2017    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2018  fi
2019fi
2020fi
2021fi
2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2023if test -n "$sol_cc_compiler"; then
2024  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2025echo "${ECHO_T}$sol_cc_compiler" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031             if test "$sol_cc_compiler" = "cc" ; then
2032               comps="cc xlc gcc pgcc icc"
2033             else
2034               comps="xlc gcc pgcc icc cc"
2035             fi
2036             ;;
2037  *-*-darwin*) comps="clang gcc cc" ;;
2038  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2039  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2040  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2041esac
2042
2043# We delete the cached value, since the test might not have been
2044# performed with our choice of compilers earlier
2045$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2046# AC_MSG_NOTICE([C compiler candidates: $comps])
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052if test -n "$ac_tool_prefix"; then
2053  for ac_prog in $comps
2054  do
2055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070  for ac_exec_ext in '' $ac_executable_extensions; do
2071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078
2079fi
2080fi
2081CC=$ac_cv_prog_CC
2082if test -n "$CC"; then
2083  echo "$as_me:$LINENO: result: $CC" >&5
2084echo "${ECHO_T}$CC" >&6
2085else
2086  echo "$as_me:$LINENO: result: no" >&5
2087echo "${ECHO_T}no" >&6
2088fi
2089
2090    test -n "$CC" && break
2091  done
2092fi
2093if test -z "$CC"; then
2094  ac_ct_CC=$CC
2095  for ac_prog in $comps
2096do
2097  # Extract the first word of "$ac_prog", so it can be a program name with args.
2098set dummy $ac_prog; ac_word=$2
2099echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test -n "$ac_ct_CC"; then
2105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110  IFS=$as_save_IFS
2111  test -z "$as_dir" && as_dir=.
2112  for ac_exec_ext in '' $ac_executable_extensions; do
2113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114    ac_cv_prog_ac_ct_CC="$ac_prog"
2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116    break 2
2117  fi
2118done
2119done
2120
2121fi
2122fi
2123ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124if test -n "$ac_ct_CC"; then
2125  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126echo "${ECHO_T}$ac_ct_CC" >&6
2127else
2128  echo "$as_me:$LINENO: result: no" >&5
2129echo "${ECHO_T}no" >&6
2130fi
2131
2132  test -n "$ac_ct_CC" && break
2133done
2134
2135  CC=$ac_ct_CC
2136fi
2137
2138
2139test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140See \`config.log' for more details." >&5
2141echo "$as_me: error: no acceptable C compiler found in \$PATH
2142See \`config.log' for more details." >&2;}
2143   { (exit 1); exit 1; }; }
2144
2145# Provide some information about the compiler.
2146echo "$as_me:$LINENO:" \
2147     "checking for C compiler version" >&5
2148ac_compiler=`set X $ac_compile; echo $2`
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150  (eval $ac_compiler --version </dev/null >&5) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }
2154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155  (eval $ac_compiler -v </dev/null >&5) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160  (eval $ac_compiler -V </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164
2165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171
2172int
2173main ()
2174{
2175
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
2181ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
2185echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189  (eval $ac_link_default) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; then
2193  # Find the output, starting from the most likely.  This scheme is
2194# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195# resort.
2196
2197# Be careful to initialize this variable, since it used to be cached.
2198# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199ac_cv_exeext=
2200# b.out is created by i960 compilers.
2201for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202do
2203  test -f "$ac_file" || continue
2204  case $ac_file in
2205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206        ;;
2207    conftest.$ac_ext )
2208        # This is the source file.
2209        ;;
2210    [ab].out )
2211        # We found the default executable, but exeext='' is most
2212        # certainly right.
2213        break;;
2214    *.* )
2215        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216        # FIXME: I believe we export ac_cv_exeext for Libtool,
2217        # but it would be cool to find out if it's true.  Does anybody
2218        # maintain Libtool? --akim.
2219        export ac_cv_exeext
2220        break;;
2221    * )
2222        break;;
2223  esac
2224done
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230See \`config.log' for more details." >&5
2231echo "$as_me: error: C compiler cannot create executables
2232See \`config.log' for more details." >&2;}
2233   { (exit 77); exit 77; }; }
2234fi
2235
2236ac_exeext=$ac_cv_exeext
2237echo "$as_me:$LINENO: result: $ac_file" >&5
2238echo "${ECHO_T}$ac_file" >&6
2239
2240# Check the compiler produces executables we can run.  If not, either
2241# the compiler is broken, or we cross compile.
2242echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245# If not cross compiling, check that we can run a simple program.
2246if test "$cross_compiling" != yes; then
2247  if { ac_try='./$ac_file'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253    cross_compiling=no
2254  else
2255    if test "$cross_compiling" = maybe; then
2256        cross_compiling=yes
2257    else
2258        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259If you meant to cross compile, use \`--host'.
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&2;}
2264   { (exit 1); exit 1; }; }
2265    fi
2266  fi
2267fi
2268echo "$as_me:$LINENO: result: yes" >&5
2269echo "${ECHO_T}yes" >&6
2270
2271rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272ac_clean_files=$ac_clean_files_save
2273# Check the compiler produces executables we can run.  If not, either
2274# the compiler is broken, or we cross compile.
2275echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278echo "${ECHO_T}$cross_compiling" >&6
2279
2280echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283  (eval $ac_link) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; then
2287  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289# work properly (i.e., refer to `conftest.exe'), while it won't with
2290# `rm'.
2291for ac_file in conftest.exe conftest conftest.*; do
2292  test -f "$ac_file" || continue
2293  case $ac_file in
2294    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296          export ac_cv_exeext
2297          break;;
2298    * ) break;;
2299  esac
2300done
2301else
2302  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&2;}
2306   { (exit 1); exit 1; }; }
2307fi
2308
2309rm -f conftest$ac_cv_exeext
2310echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
2316echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318if test "${ac_cv_objext+set}" = set; then
2319  echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321  cat >conftest.$ac_ext <<_ACEOF
2322/* confdefs.h.  */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h.  */
2327
2328int
2329main ()
2330{
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338  (eval $ac_compile) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; then
2342  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343  case $ac_file in
2344    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346       break;;
2347  esac
2348done
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354See \`config.log' for more details." >&5
2355echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358fi
2359
2360rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361fi
2362echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363echo "${ECHO_T}$ac_cv_objext" >&6
2364OBJEXT=$ac_cv_objext
2365ac_objext=$OBJEXT
2366echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377
2378int
2379main ()
2380{
2381#ifndef __GNUC__
2382       choke me
2383#endif
2384
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_compiler_gnu=yes
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_compiler_gnu=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427CFLAGS="-g"
2428echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_g+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439
2440int
2441main ()
2442{
2443
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450  (eval $ac_compile) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457         { ac_try='test -z "$ac_c_werror_flag"
2458                         || test ! -s conftest.err'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; } &&
2464         { ac_try='test -s conftest.$ac_objext'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470  ac_cv_prog_cc_g=yes
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475ac_cv_prog_cc_g=no
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481if test "$ac_test_CFLAGS" = set; then
2482  CFLAGS=$ac_save_CFLAGS
2483elif test $ac_cv_prog_cc_g = yes; then
2484  if test "$GCC" = yes; then
2485    CFLAGS="-g -O2"
2486  else
2487    CFLAGS="-g"
2488  fi
2489else
2490  if test "$GCC" = yes; then
2491    CFLAGS="-O2"
2492  else
2493    CFLAGS=
2494  fi
2495fi
2496echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  ac_cv_prog_cc_stdc=no
2502ac_save_CC=$CC
2503cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509#include <stdarg.h>
2510#include <stdio.h>
2511#include <sys/types.h>
2512#include <sys/stat.h>
2513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514struct buf { int x; };
2515FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516static char *e (p, i)
2517     char **p;
2518     int i;
2519{
2520  return p[i];
2521}
2522static char *f (char * (*g) (char **, int), char **p, ...)
2523{
2524  char *s;
2525  va_list v;
2526  va_start (v,p);
2527  s = g (p, va_arg (v,int));
2528  va_end (v);
2529  return s;
2530}
2531
2532/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533   function prototypes and stuff, but not '\xHH' hex character constants.
2534   These don't provoke an error unfortunately, instead are silently treated
2535   as 'x'.  The following induces an error, until -std1 is added to get
2536   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537   array size at least.  It's necessary to write '\x00'==0 to get something
2538   that's true only with -std1.  */
2539int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541int test (int i, double x);
2542struct s1 {int (*f) (int a);};
2543struct s2 {int (*f) (double a);};
2544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545int argc;
2546char **argv;
2547int
2548main ()
2549{
2550return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555# Don't try gcc -ansi; that turns off useful extensions and
2556# breaks some systems' header files.
2557# AIX                   -qlanglvl=ansi
2558# Ultrix and OSF/1      -std1
2559# HP-UX 10.20 and later -Ae
2560# HP-UX older versions  -Aa -D_HPUX_SOURCE
2561# SVR4                  -Xc -D__EXTENSIONS__
2562for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563do
2564  CC="$ac_save_CC $ac_arg"
2565  rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  ac_cv_prog_cc_stdc=$ac_arg
2588break
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593fi
2594rm -f conftest.err conftest.$ac_objext
2595done
2596rm -f conftest.$ac_ext conftest.$ac_objext
2597CC=$ac_save_CC
2598
2599fi
2600
2601case "x$ac_cv_prog_cc_stdc" in
2602  x|xno)
2603    echo "$as_me:$LINENO: result: none needed" >&5
2604echo "${ECHO_T}none needed" >&6 ;;
2605  *)
2606    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608    CC="$CC $ac_cv_prog_cc_stdc" ;;
2609esac
2610
2611# Some people use a C++ compiler to compile C.  Since we use `exit',
2612# in C++ we need to declare it.  In case someone uses the same compiler
2613# for both compiling C and C++ we need to have the C++ compiler decide
2614# the declaration of exit, since it's the most demanding environment.
2615cat >conftest.$ac_ext <<_ACEOF
2616#ifndef __cplusplus
2617  choke me
2618#endif
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } &&
2629         { ac_try='test -z "$ac_c_werror_flag"
2630                         || test ! -s conftest.err'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  for ac_declaration in \
2643   '' \
2644   'extern "C" void std::exit (int) throw (); using std::exit;' \
2645   'extern "C" void std::exit (int); using std::exit;' \
2646   'extern "C" void exit (int) throw ();' \
2647   'extern "C" void exit (int);' \
2648   'void exit (int);'
2649do
2650  cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h.  */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h.  */
2656$ac_declaration
2657#include <stdlib.h>
2658int
2659main ()
2660{
2661exit (42);
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } &&
2675         { ac_try='test -z "$ac_c_werror_flag"
2676                         || test ! -s conftest.err'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; } &&
2682         { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  :
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693continue
2694fi
2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696  cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702$ac_declaration
2703int
2704main ()
2705{
2706exit (42);
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest.$ac_objext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  break
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740done
2741rm -f conftest*
2742if test -n "$ac_declaration"; then
2743  echo '#ifdef __cplusplus' >>confdefs.h
2744  echo $ac_declaration      >>confdefs.h
2745  echo '#endif'             >>confdefs.h
2746fi
2747
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760if test -z "$CC" ; then
2761  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2762echo "$as_me: error: Failed to find a C compiler!" >&2;}
2763   { (exit 1); exit 1; }; }
2764fi
2765# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2766case "$CC" in
2767  clang* ) ;;
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774  * )
2775    if test x"$CYGPATH_W" = x ; then
2776      CYGPATH_W=echo
2777    fi
2778    ;;
2779esac
2780CFLAGS="$save_cflags"
2781
2782# add automake conditional so we can recognize cl compiler in makefile
2783coin_cc_is_cl=false
2784case "$CC" in
2785  clang* ) ;;
2786  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2787    coin_cc_is_cl=true
2788    ;;
2789esac
2790
2791
2792if test $coin_cc_is_cl = true; then
2793  COIN_CC_IS_CL_TRUE=
2794  COIN_CC_IS_CL_FALSE='#'
2795else
2796  COIN_CC_IS_CL_TRUE='#'
2797  COIN_CC_IS_CL_FALSE=
2798fi
2799
2800
2801# Check if a project specific CFLAGS variable has been set
2802if test x$COIN_PRJCT != x; then
2803  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2804  if test x$coin_tmp = xset; then
2805    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2806  fi
2807fi
2808
2809if test x"$CFLAGS" = x; then
2810
2811  coin_add_cflags=
2812  coin_opt_cflags=
2813  coin_dbg_cflags=
2814  coin_warn_cflags=
2815
2816  if test "$GCC" = "yes"; then
2817    case "$CC" in
2818      icc* | */icc*)
2819        ;;
2820      *)
2821        coin_opt_cflags="-O3"
2822        coin_add_cflags="-pipe"
2823        coin_dbg_cflags="-g -O0"
2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2825        case $build in
2826          *-darwin*)
2827            ;;
2828          *)
2829            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2830            ;;
2831        esac
2832    esac
2833  fi
2834  if test -z "$coin_opt_cflags"; then
2835    case $build in
2836      *-cygwin* | *-mingw*)
2837        case "$CC" in
2838          clang* ) ;;
2839          cl* | */cl* | CL* | */CL*)
2840            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2841              coin_opt_cflags='-MD -O2'
2842              coin_dbg_cflags='-MDd'
2843            else
2844              coin_opt_cflags='-MT -O2'
2845              coin_dbg_cflags='-MTd'
2846            fi
2847            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2848            ;;
2849          icl* | */icl* | ICL* | */ICL*)
2850            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2851              coin_opt_cflags='-MD -Ox'
2852              coin_dbg_cflags='-MDd -debug'
2853            else
2854              coin_opt_cflags='-MT -Ox'
2855              coin_dbg_cflags='-MTd -debug'
2856            fi
2857            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2858            ;;
2859        esac
2860        ;;
2861      *-linux-*)
2862        case "$CC" in
2863          icc* | */icc*)
2864            coin_opt_cflags="-O3 -ip -mp1"
2865            coin_add_cflags=""
2866            coin_dbg_cflags="-g"
2867            # Check if -i_dynamic is necessary (for new glibc library)
2868            CFLAGS=
2869            cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879int i=0; i++;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886  (eval $ac_link) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893         { ac_try='test -z "$ac_c_werror_flag"
2894                         || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900         { ac_try='test -s conftest$ac_exeext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  :
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911coin_add_cflags="-i_dynamic $coin_add_cflags"
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915            ;;
2916          pgcc* | */pgcc*)
2917            coin_opt_cflags="-fast"
2918            coin_add_cflags="-Kieee -pc 64"
2919            coin_dbg_cflags="-g"
2920            ;;
2921        esac
2922        ;;
2923      *-ibm-*)
2924        case "$CC" in
2925          xlc* | */xlc* | mpxlc* | */mpxlc*)
2926            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2927            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2928            coin_dbg_cflags="-g"
2929          ;;
2930        esac
2931        ;;
2932      *-hp-*)
2933        coin_opt_cflags="-O"
2934        coin_add_cflags="-Ae"
2935        coin_dbg_cflags="-g"
2936        ;;
2937      *-*-solaris*)
2938        coin_opt_cflags="-xO4"
2939        coin_dbg_cflags="-g"
2940        ;;
2941      *-sgi-*)
2942        coin_opt_cflags="-O -OPT:Olimit=0"
2943        coin_dbg_cflags="-g"
2944        ;;
2945    esac
2946  fi
2947
2948  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2949    coin_dbg_cflags="-g"
2950  fi
2951
2952  if test -z "$coin_opt_cflags"; then
2953    # Try if -O option works if nothing else is set
2954    CFLAGS="-O"
2955    cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965int i=0; i++;
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext conftest$ac_exeext
2971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972  (eval $ac_link) 2>conftest.er1
2973  ac_status=$?
2974  grep -v '^ *+' conftest.er1 >conftest.err
2975  rm -f conftest.er1
2976  cat conftest.err >&5
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); } &&
2979         { ac_try='test -z "$ac_c_werror_flag"
2980                         || test ! -s conftest.err'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; } &&
2986         { ac_try='test -s conftest$ac_exeext'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; }; then
2992  coin_opt_cflags="-O"
2993else
2994  echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997fi
2998rm -f conftest.err conftest.$ac_objext \
2999      conftest$ac_exeext conftest.$ac_ext
3000  fi
3001
3002  # if PM doesn't want the warning messages, take them out
3003  if test x"$coin_skip_warn_cflags" = xyes; then
3004    coin_warn_cflags=
3005  fi
3006
3007  if test x${DBG_CFLAGS+set} != xset; then
3008    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3009  fi
3010  if test x${OPT_CFLAGS+set} != xset; then
3011    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3012  fi
3013
3014  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3015  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3016
3017  if test "$coin_debug_compile" = "true"; then
3018    CFLAGS="$DBG_CFLAGS"
3019  else
3020    CFLAGS="$OPT_CFLAGS"
3021  fi
3022else
3023  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3024  if test x${DBG_CFLAGS+set} != xset; then
3025    DBG_CFLAGS="$CFLAGS"
3026  fi
3027  if test x${OPT_CFLAGS+set} != xset; then
3028    OPT_CFLAGS="$CFLAGS"
3029  fi
3030fi
3031
3032# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3033if test x$COIN_PRJCT != x; then
3034  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3035fi
3036
3037# Try if CFLAGS works
3038save_CFLAGS="$CFLAGS"
3039cat >conftest.$ac_ext <<_ACEOF
3040/* confdefs.h.  */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h.  */
3045
3046int
3047main ()
3048{
3049int i=0; i++;
3050  ;
3051  return 0;
3052}
3053_ACEOF
3054rm -f conftest.$ac_objext conftest$ac_exeext
3055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056  (eval $ac_link) 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } &&
3063         { ac_try='test -z "$ac_c_werror_flag"
3064                         || test ! -s conftest.err'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; } &&
3070         { ac_try='test -s conftest$ac_exeext'
3071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072  (eval $ac_try) 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; }; then
3076  :
3077else
3078  echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081CFLAGS=
3082fi
3083rm -f conftest.err conftest.$ac_objext \
3084      conftest$ac_exeext conftest.$ac_ext
3085if test -z "$CFLAGS"; then
3086  { 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
3087echo "$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;}
3088  CFLAGS='-O'
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099int i=0; i++;
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext conftest$ac_exeext
3105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106  (eval $ac_link) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113         { ac_try='test -z "$ac_c_werror_flag"
3114                         || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120         { ac_try='test -s conftest$ac_exeext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  :
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131CFLAGS=
3132fi
3133rm -f conftest.err conftest.$ac_objext \
3134      conftest$ac_exeext conftest.$ac_ext
3135  if test -z "$CFLAGS"; then
3136    { 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
3137echo "$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;}
3138  fi
3139fi
3140
3141{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3142echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3143
3144
3145if test x"$MPICC" = x; then :; else
3146  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3147echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3148  CC="$MPICC"
3149fi
3150
3151# Correct the LD variable if we are using the MS or Intel-windows compiler
3152case "$CC" in
3153  clang* ) ;;
3154  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3155    LD=link
3156    ;;
3157esac
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165
3166case $build in
3167  *-cygwin* | *-mingw*)
3168     if test "$enable_msvc" = yes ; then
3169       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3170     else
3171       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3172     fi ;;
3173  *-*-solaris*)
3174     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3175  *-linux-gnu*)
3176     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3177  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3178 esac
3179
3180
3181
3182
3183
3184ac_ext=f
3185ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3186ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3188
3189
3190
3191
3192
3193
3194coin_has_f77=yes
3195
3196save_fflags="$FFLAGS"
3197
3198# We delete the cached value, since the test might not have been
3199# performed with our choice of compilers earlier
3200$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3201
3202# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3203# coin_f77_comps to see if there's a program that matches one of the names.
3204# If there's no such program, F77 = unavailable. If we match the name,
3205# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3206# compiler.
3207# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3208
3209
3210{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3211echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3212if test -n "$ac_tool_prefix"; then
3213  for ac_prog in $coin_f77_comps
3214  do
3215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3217echo "$as_me:$LINENO: checking for $ac_word" >&5
3218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219if test "${ac_cv_prog_F77+set}" = set; then
3220  echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222  if test -n "$F77"; then
3223  ac_cv_prog_F77="$F77" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230  for ac_exec_ext in '' $ac_executable_extensions; do
3231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237done
3238
3239fi
3240fi
3241F77=$ac_cv_prog_F77
3242if test -n "$F77"; then
3243  echo "$as_me:$LINENO: result: $F77" >&5
3244echo "${ECHO_T}$F77" >&6
3245else
3246  echo "$as_me:$LINENO: result: no" >&5
3247echo "${ECHO_T}no" >&6
3248fi
3249
3250    test -n "$F77" && break
3251  done
3252fi
3253if test -z "$F77"; then
3254  ac_ct_F77=$F77
3255  for ac_prog in $coin_f77_comps
3256do
3257  # Extract the first word of "$ac_prog", so it can be a program name with args.
3258set dummy $ac_prog; ac_word=$2
3259echo "$as_me:$LINENO: checking for $ac_word" >&5
3260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3262  echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264  if test -n "$ac_ct_F77"; then
3265  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270  IFS=$as_save_IFS
3271  test -z "$as_dir" && as_dir=.
3272  for ac_exec_ext in '' $ac_executable_extensions; do
3273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_ac_ct_F77="$ac_prog"
3275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279done
3280
3281fi
3282fi
3283ac_ct_F77=$ac_cv_prog_ac_ct_F77
3284if test -n "$ac_ct_F77"; then
3285  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3286echo "${ECHO_T}$ac_ct_F77" >&6
3287else
3288  echo "$as_me:$LINENO: result: no" >&5
3289echo "${ECHO_T}no" >&6
3290fi
3291
3292  test -n "$ac_ct_F77" && break
3293done
3294test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3295
3296  F77=$ac_ct_F77
3297fi
3298
3299
3300if test "$F77" != "unavailable" ; then
3301  ac_ext=f
3302ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3303ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3305if test -n "$ac_tool_prefix"; then
3306  for ac_prog in $coin_f77_comps
3307  do
3308    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3310echo "$as_me:$LINENO: checking for $ac_word" >&5
3311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312if test "${ac_cv_prog_F77+set}" = set; then
3313  echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315  if test -n "$F77"; then
3316  ac_cv_prog_F77="$F77" # Let the user override the test.
3317else
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323  for ac_exec_ext in '' $ac_executable_extensions; do
3324  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329done
3330done
3331
3332fi
3333fi
3334F77=$ac_cv_prog_F77
3335if test -n "$F77"; then
3336  echo "$as_me:$LINENO: result: $F77" >&5
3337echo "${ECHO_T}$F77" >&6
3338else
3339  echo "$as_me:$LINENO: result: no" >&5
3340echo "${ECHO_T}no" >&6
3341fi
3342
3343    test -n "$F77" && break
3344  done
3345fi
3346if test -z "$F77"; then
3347  ac_ct_F77=$F77
3348  for ac_prog in $coin_f77_comps
3349do
3350  # Extract the first word of "$ac_prog", so it can be a program name with args.
3351set dummy $ac_prog; ac_word=$2
3352echo "$as_me:$LINENO: checking for $ac_word" >&5
3353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  if test -n "$ac_ct_F77"; then
3358  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3359else
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363  IFS=$as_save_IFS
3364  test -z "$as_dir" && as_dir=.
3365  for ac_exec_ext in '' $ac_executable_extensions; do
3366  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367    ac_cv_prog_ac_ct_F77="$ac_prog"
3368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369    break 2
3370  fi
3371done
3372done
3373
3374fi
3375fi
3376ac_ct_F77=$ac_cv_prog_ac_ct_F77
3377if test -n "$ac_ct_F77"; then
3378  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3379echo "${ECHO_T}$ac_ct_F77" >&6
3380else
3381  echo "$as_me:$LINENO: result: no" >&5
3382echo "${ECHO_T}no" >&6
3383fi
3384
3385  test -n "$ac_ct_F77" && break
3386done
3387
3388  F77=$ac_ct_F77
3389fi
3390
3391
3392# Provide some information about the compiler.
3393echo "$as_me:3393:" \
3394     "checking for Fortran 77 compiler version" >&5
3395ac_compiler=`set X $ac_compile; echo $2`
3396{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3397  (eval $ac_compiler --version </dev/null >&5) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }
3401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3402  (eval $ac_compiler -v </dev/null >&5) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }
3406{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3407  (eval $ac_compiler -V </dev/null >&5) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }
3411rm -f a.out
3412
3413# If we don't use `.F' as extension, the preprocessor is not run on the
3414# input file.  (Note that this only needs to work for GNU compilers.)
3415ac_save_ext=$ac_ext
3416ac_ext=F
3417echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3418echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3419if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  cat >conftest.$ac_ext <<_ACEOF
3423      program main
3424#ifndef __GNUC__
3425       choke me
3426#endif
3427
3428      end
3429_ACEOF
3430rm -f conftest.$ac_objext
3431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432  (eval $ac_compile) 2>conftest.er1
3433  ac_status=$?
3434  grep -v '^ *+' conftest.er1 >conftest.err
3435  rm -f conftest.er1
3436  cat conftest.err >&5
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); } &&
3439         { ac_try='test -z "$ac_f77_werror_flag"
3440                         || test ! -s conftest.err'
3441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442  (eval $ac_try) 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; } &&
3446         { ac_try='test -s conftest.$ac_objext'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; }; then
3452  ac_compiler_gnu=yes
3453else
3454  echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457ac_compiler_gnu=no
3458fi
3459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3461
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3464echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3465ac_ext=$ac_save_ext
3466ac_test_FFLAGS=${FFLAGS+set}
3467ac_save_FFLAGS=$FFLAGS
3468FFLAGS=
3469echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3470echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3471if test "${ac_cv_prog_f77_g+set}" = set; then
3472  echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474  FFLAGS=-g
3475cat >conftest.$ac_ext <<_ACEOF
3476      program main
3477
3478      end
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482  (eval $ac_compile) 2>conftest.er1
3483  ac_status=$?
3484  grep -v '^ *+' conftest.er1 >conftest.err
3485  rm -f conftest.er1
3486  cat conftest.err >&5
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } &&
3489         { ac_try='test -z "$ac_f77_werror_flag"
3490                         || test ! -s conftest.err'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; } &&
3496         { ac_try='test -s conftest.$ac_objext'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; }; then
3502  ac_cv_prog_f77_g=yes
3503else
3504  echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_cv_prog_f77_g=no
3508fi
3509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510
3511fi
3512echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3513echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3514if test "$ac_test_FFLAGS" = set; then
3515  FFLAGS=$ac_save_FFLAGS
3516elif test $ac_cv_prog_f77_g = yes; then
3517  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3518    FFLAGS="-g -O2"
3519  else
3520    FFLAGS="-g"
3521  fi
3522else
3523  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3524    FFLAGS="-O2"
3525  else
3526    FFLAGS=
3527  fi
3528fi
3529
3530G77=`test $ac_compiler_gnu = yes && echo yes`
3531ac_ext=f
3532ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3533ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3535
3536else
3537  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3538echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3539fi
3540
3541FFLAGS="$save_fflags"
3542
3543# Check if a project specific FFLAGS variable has been set
3544if test x$COIN_PRJCT != x; then
3545  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3546  if test x$coin_tmp = xset; then
3547    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3548  fi
3549fi
3550
3551if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3552
3553  coin_add_fflags=
3554  coin_opt_fflags=
3555  coin_dbg_fflags=
3556  coin_warn_fflags=
3557
3558  if test "$G77" = "yes"; then
3559    coin_opt_fflags="-O3"
3560    coin_add_fflags="-pipe"
3561    coin_dbg_fflags="-g -O0"
3562  else
3563    case $build in
3564      *-cygwin* | *-mingw*)
3565        case $F77 in
3566          ifort* | */ifort* | IFORT* | */IFORT* )
3567            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3568              coin_opt_fflags='-MD -O3'
3569              coin_dbg_fflags='-MDd -debug'
3570            else
3571              coin_opt_fflags='-MT -O3'
3572              coin_dbg_fflags='-MTd -debug'
3573            fi
3574            coin_add_fflags='-fpp -nologo'
3575          ;;
3576          compile_f2c*)
3577            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3578              coin_opt_fflags='-MD -O2'
3579              coin_dbg_fflags='-MDd'
3580            else
3581              coin_opt_fflags='-MT -O2'
3582              coin_dbg_fflags='-MTd'
3583            fi
3584            coin_add_fflags='-nologo -wd4996'
3585          ;;
3586        esac
3587        ;;
3588      *-linux-*)
3589        case $F77 in
3590          ifc* | */ifc* | ifort* | */ifort*)
3591            coin_opt_fflags="-O3 -ip"
3592            coin_add_fflags="-cm -w90 -w95"
3593            coin_dbg_fflags="-g -CA -CB -CS"
3594            # Check if -i_dynamic is necessary (for new glibc library)
3595            FFLAGS=
3596            cat >conftest.$ac_ext <<_ACEOF
3597      program main
3598      write(*,*) 'Hello world'
3599      end
3600_ACEOF
3601rm -f conftest.$ac_objext conftest$ac_exeext
3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603  (eval $ac_link) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610         { ac_try='test -z "$ac_f77_werror_flag"
3611                         || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617         { ac_try='test -s conftest$ac_exeext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  :
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628coin_add_fflags="-i_dynamic $coin_add_fflags"
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631      conftest$ac_exeext conftest.$ac_ext
3632            ;;
3633          pgf77* | */pgf77* | pgf90* | */pgf90*)
3634            coin_opt_fflags="-fast"
3635            coin_add_fflags="-Kieee -pc 64"
3636            coin_dbg_fflags="-g"
3637          ;;
3638        esac
3639        ;;
3640      *-ibm-*)
3641        case "$F77" in
3642          xlf* | */xlf* | mpxlf* | */mpxlf* )
3643            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3644            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3645            coin_dbg_fflags="-g -C"
3646            ;;
3647        esac
3648        ;;
3649      *-hp-*)
3650        coin_opt_fflags="+O3"
3651        coin_add_fflags="+U77"
3652        coin_dbg_fflags="-C -g"
3653        ;;
3654      *-*-solaris*)
3655        coin_opt_fflags="-O4"
3656        coin_dbg_fflags="-g"
3657        ;;
3658      *-sgi-*)
3659        coin_opt_fflags="-O5 -OPT:Olimit=0"
3660        coin_dbg_fflags="-g"
3661        ;;
3662    esac
3663  fi
3664
3665  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3666    coin_dbg_fflags="-g"
3667  fi
3668
3669  if test -z "$coin_opt_fflags"; then
3670    # Try if -O option works if nothing else is set
3671    FFLAGS=-O
3672    cat >conftest.$ac_ext <<_ACEOF
3673      program main
3674      integer i
3675      end
3676_ACEOF
3677rm -f conftest.$ac_objext conftest$ac_exeext
3678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3679  (eval $ac_link) 2>conftest.er1
3680  ac_status=$?
3681  grep -v '^ *+' conftest.er1 >conftest.err
3682  rm -f conftest.er1
3683  cat conftest.err >&5
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); } &&
3686         { ac_try='test -z "$ac_f77_werror_flag"
3687                         || test ! -s conftest.err'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; } &&
3693         { ac_try='test -s conftest$ac_exeext'
3694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695  (eval $ac_try) 2>&5
3696  ac_status=$?
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); }; }; then
3699  coin_opt_fflags="-O"
3700else
3701  echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704fi
3705rm -f conftest.err conftest.$ac_objext \
3706      conftest$ac_exeext conftest.$ac_ext
3707  fi
3708
3709  # if PM doesn't want the warning messages, take them out
3710  if test x"$coin_skip_warn_fflags" = xyes; then
3711    coin_warn_fflags=
3712  fi
3713
3714  if test x${DBG_FFLAGS+set} != xset; then
3715    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3716  fi
3717  if test x${OPT_FFLAGS+set} != xset; then
3718    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3719  fi
3720
3721  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3722  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3723
3724  if test "$coin_debug_compile" = "true"; then
3725    FFLAGS="$DBG_FFLAGS"
3726  else
3727    FFLAGS="$OPT_FFLAGS"
3728  fi
3729else
3730  FFLAGS="$FFLAGS $ADD_FFLAGS"
3731  if test x${DBG_FFLAGS+set} != xset; then
3732    DBG_FFLAGS="$FFLAGS"
3733  fi
3734  if test x${OPT_FFLAGS+set} != xset; then
3735    OPT_FFLAGS="$FFLAGS"
3736  fi
3737fi
3738
3739# Try if FFLAGS works
3740if test "$F77" != "unavailable" ; then
3741  cat >conftest.$ac_ext <<_ACEOF
3742      program main
3743      integer i
3744      end
3745_ACEOF
3746rm -f conftest.$ac_objext conftest$ac_exeext
3747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748  (eval $ac_link) 2>conftest.er1
3749  ac_status=$?
3750  grep -v '^ *+' conftest.er1 >conftest.err
3751  rm -f conftest.er1
3752  cat conftest.err >&5
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); } &&
3755         { ac_try='test -z "$ac_f77_werror_flag"
3756                         || test ! -s conftest.err'
3757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758  (eval $ac_try) 2>&5
3759  ac_status=$?
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); }; } &&
3762         { ac_try='test -s conftest$ac_exeext'
3763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764  (eval $ac_try) 2>&5
3765  ac_status=$?
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); }; }; then
3768  :
3769else
3770  echo "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773FFLAGS=
3774fi
3775rm -f conftest.err conftest.$ac_objext \
3776      conftest$ac_exeext conftest.$ac_ext
3777  if test -z "$FFLAGS"; then
3778    { 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
3779echo "$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;}
3780    FFLAGS='-O'
3781    cat >conftest.$ac_ext <<_ACEOF
3782      program main
3783      integer i
3784      end
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
3787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3788  (eval $ac_link) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_f77_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest$ac_exeext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  :
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813FFLAGS=
3814fi
3815rm -f conftest.err conftest.$ac_objext \
3816      conftest$ac_exeext conftest.$ac_ext
3817    if test -z "$FFLAGS"; then
3818      { 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
3819echo "$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;}
3820    fi
3821  fi
3822fi
3823
3824{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3825echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3826
3827
3828if test x"$MPIF77" = x; then :; else
3829  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3830echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3831  F77="$MPIF77"
3832fi
3833
3834# correct the LD variable if we use the intel fortran compiler in windows
3835case $build in
3836  *-cygwin* | *-mingw*)
3837    case "$F77" in
3838      ifort* | */ifort* | IFORT* | */IFORT*)
3839        LD=link
3840      ;;
3841    esac
3842  ;;
3843esac
3844
3845ac_ext=c
3846ac_cpp='$CPP $CPPFLAGS'
3847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850
3851
3852
3853# Get the linker flags (FLIBS) that are required for linking against this library
3854
3855# get FLIBS
3856ac_ext=f
3857ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3858ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3860echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3861echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3862if test "${ac_cv_prog_f77_v+set}" = set; then
3863  echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865  cat >conftest.$ac_ext <<_ACEOF
3866      program main
3867
3868      end
3869_ACEOF
3870rm -f conftest.$ac_objext
3871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872  (eval $ac_compile) 2>conftest.er1
3873  ac_status=$?
3874  grep -v '^ *+' conftest.er1 >conftest.err
3875  rm -f conftest.er1
3876  cat conftest.err >&5
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); } &&
3879         { ac_try='test -z "$ac_f77_werror_flag"
3880                         || test ! -s conftest.err'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; } &&
3886         { ac_try='test -s conftest.$ac_objext'
3887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888  (eval $ac_try) 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; }; then
3892  ac_cv_prog_f77_v=
3893# Try some options frequently used verbose output
3894for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3895  cat >conftest.$ac_ext <<_ACEOF
3896      program main
3897
3898      end
3899_ACEOF
3900
3901# Compile and link our simple test program by passing a flag (argument
3902# 1 to this macro) to the Fortran compiler in order to get
3903# "verbose" output that we can then parse for the Fortran linker
3904# flags.
3905ac_save_FFLAGS=$FFLAGS
3906FFLAGS="$FFLAGS $ac_verb"
3907(eval echo $as_me:3907: \"$ac_link\") >&5
3908ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3909echo "$ac_f77_v_output" >&5
3910FFLAGS=$ac_save_FFLAGS
3911
3912rm -f conftest*
3913
3914# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3915# /foo, /bar, and /baz are search directories for the Fortran linker.
3916# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3917ac_f77_v_output="`echo $ac_f77_v_output |
3918        grep 'LPATH is:' |
3919        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3920
3921case $ac_f77_v_output in
3922  # If we are using xlf then replace all the commas with spaces.
3923  *xlfentry*)
3924    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3925
3926  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3927  # $LIBS confuse us, and the libraries appear later in the output anyway).
3928  *mGLOB_options_string*)
3929    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3930
3931  # If we are using Cray Fortran then delete quotes.
3932  # Use "\"" instead of '"' for font-lock-mode.
3933  # FIXME: a more general fix for quoted arguments with spaces?
3934  *cft90*)
3935    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3936esac
3937
3938
3939  # look for -l* and *.a constructs in the output
3940  for ac_arg in $ac_f77_v_output; do
3941     case $ac_arg in
3942        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3943          ac_cv_prog_f77_v=$ac_verb
3944          break 2 ;;
3945     esac
3946  done
3947done
3948if test -z "$ac_cv_prog_f77_v"; then
3949   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3950echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3951fi
3952else
3953  echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3957echo "$as_me: WARNING: compilation failed" >&2;}
3958fi
3959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3963echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3964echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3965echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3966if test "${ac_cv_f77_libs+set}" = set; then
3967  echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969  if test "x$FLIBS" != "x"; then
3970  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3971else
3972
3973cat >conftest.$ac_ext <<_ACEOF
3974      program main
3975
3976      end
3977_ACEOF
3978
3979# Compile and link our simple test program by passing a flag (argument
3980# 1 to this macro) to the Fortran compiler in order to get
3981# "verbose" output that we can then parse for the Fortran linker
3982# flags.
3983ac_save_FFLAGS=$FFLAGS
3984FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3985(eval echo $as_me:3985: \"$ac_link\") >&5
3986ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3987echo "$ac_f77_v_output" >&5
3988FFLAGS=$ac_save_FFLAGS
3989
3990rm -f conftest*
3991
3992# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3993# /foo, /bar, and /baz are search directories for the Fortran linker.
3994# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3995ac_f77_v_output="`echo $ac_f77_v_output |
3996        grep 'LPATH is:' |
3997        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3998
3999case $ac_f77_v_output in
4000  # If we are using xlf then replace all the commas with spaces.
4001  *xlfentry*)
4002    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4003
4004  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4005  # $LIBS confuse us, and the libraries appear later in the output anyway).
4006  *mGLOB_options_string*)
4007    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4008
4009  # If we are using Cray Fortran then delete quotes.
4010  # Use "\"" instead of '"' for font-lock-mode.
4011  # FIXME: a more general fix for quoted arguments with spaces?
4012  *cft90*)
4013    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4014esac
4015
4016
4017
4018ac_cv_f77_libs=
4019
4020# Save positional arguments (if any)
4021ac_save_positional="$@"
4022
4023set X $ac_f77_v_output
4024while test $# != 1; do
4025  shift
4026  ac_arg=$1
4027  case $ac_arg in
4028        [\\/]*.a | ?:[\\/]*.a)
4029            ac_exists=false
4030  for ac_i in $ac_cv_f77_libs; do
4031    if test x"$ac_arg" = x"$ac_i"; then
4032      ac_exists=true
4033      break
4034    fi
4035  done
4036
4037  if test x"$ac_exists" = xtrue; then
4038  :
4039else
4040  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4041fi
4042
4043          ;;
4044        -bI:*)
4045            ac_exists=false
4046  for ac_i in $ac_cv_f77_libs; do
4047    if test x"$ac_arg" = x"$ac_i"; then
4048      ac_exists=true
4049      break
4050    fi
4051  done
4052
4053  if test x"$ac_exists" = xtrue; then
4054  :
4055else
4056  if test "$ac_compiler_gnu" = yes; then
4057  for ac_link_opt in $ac_arg; do
4058    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4059  done
4060else
4061  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4062fi
4063fi
4064
4065          ;;
4066          # Ignore these flags.
4067        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4068          ;;
4069        -lkernel32)
4070          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4071          ;;
4072        -[LRuY])
4073          # These flags, when seen by themselves, take an argument.
4074          # We remove the space between option and argument and re-iterate
4075          # unless we find an empty arg or a new option (starting with -)
4076          case $2 in
4077             "" | -*);;
4078             *)
4079                ac_arg="$ac_arg$2"
4080                shift; shift
4081                set X $ac_arg "$@"
4082                ;;
4083          esac
4084          ;;
4085        -YP,*)
4086          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4087              ac_exists=false
4088  for ac_i in $ac_cv_f77_libs; do
4089    if test x"$ac_j" = x"$ac_i"; then
4090      ac_exists=true
4091      break
4092    fi
4093  done
4094
4095  if test x"$ac_exists" = xtrue; then
4096  :
4097else
4098  ac_arg="$ac_arg $ac_j"
4099                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4100fi
4101
4102          done
4103          ;;
4104        -[lLR]*)
4105            ac_exists=false
4106  for ac_i in $ac_cv_f77_libs; do
4107    if test x"$ac_arg" = x"$ac_i"; then
4108      ac_exists=true
4109      break
4110    fi
4111  done
4112
4113  if test x"$ac_exists" = xtrue; then
4114  :
4115else
4116  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4117fi
4118
4119          ;;
4120          # Ignore everything else.
4121  esac
4122done
4123# restore positional arguments
4124set X $ac_save_positional; shift
4125
4126# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4127# then we insist that the "run path" must be an absolute path (i.e. it
4128# must begin with a "/").
4129case `(uname -sr) 2>/dev/null` in
4130   "SunOS 5"*)
4131      ac_ld_run_path=`echo $ac_f77_v_output |
4132                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4133      test "x$ac_ld_run_path" != x &&
4134        if test "$ac_compiler_gnu" = yes; then
4135  for ac_link_opt in $ac_ld_run_path; do
4136    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4137  done
4138else
4139  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4140fi
4141      ;;
4142esac
4143fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4144
4145fi
4146echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4147echo "${ECHO_T}$ac_cv_f77_libs" >&6
4148FLIBS="$ac_cv_f77_libs"
4149
4150
4151ac_ext=c
4152ac_cpp='$CPP $CPPFLAGS'
4153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
4157orig_FLIBS="$FLIBS"
4158
4159# If FLIBS has been set by the user, we just restore its value here
4160if test x"$save_FLIBS" != x; then
4161  FLIBS="$save_FLIBS"
4162else
4163  # This is to correct a missing exclusion in autoconf 2.59
4164  if test x"$FLIBS" != x; then
4165    my_flibs=
4166    for flag in $FLIBS; do
4167      case $flag in
4168        -lcrt*.o) ;;
4169        -lcygwin) ;;
4170        -lgcc*)   ;;
4171               *) my_flibs="$my_flibs $flag" ;;
4172      esac
4173    done
4174    FLIBS="$my_flibs"
4175  fi
4176
4177  case $build in
4178  # The following is a fix to define FLIBS for ifort on Windows
4179  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4180  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4181  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4182  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4183  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4184     *-cygwin* | *-mingw*)
4185       case "$F77" in
4186#         ifort* | */ifort* | IFORT* | */IFORT*)
4187#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4188#           if "$coin_debug_compile" = true ; then
4189#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4190#           else
4191#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4192#           fi
4193#           ;;
4194         compile_f2c*)
4195           FLIBS=`$F77 -FLIBS` ;;
4196       esac;;
4197     *-hp-*)
4198         FLIBS="$FLIBS -lm";;
4199     *-ibm-*)
4200         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4201     *-linux-*)
4202       case "$F77" in
4203         pgf77* | */pgf77* | pgf90* | */pgf90*)
4204# ask linker to go through the archives multiple times
4205# (the Fortran compiler seems to do that automatically...)
4206           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4207       esac
4208  esac
4209  ac_cv_f77_libs="$FLIBS"
4210fi
4211
4212if test "x$orig_FLIBS" != "x$FLIBS" ; then
4213  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4214echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4215fi
4216
4217ac_ext=f
4218ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4219ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4221
4222echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4223echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4224if test "${ac_cv_f77_dummy_main+set}" = set; then
4225  echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227  ac_f77_dm_save_LIBS=$LIBS
4228 LIBS="$LIBS $FLIBS"
4229 ac_fortran_dm_var=F77_DUMMY_MAIN
4230 ac_ext=c
4231ac_cpp='$CPP $CPPFLAGS'
4232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
4236 # First, try linking without a dummy main:
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h.  */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h.  */
4243
4244#ifdef F77_DUMMY_MAIN
4245
4246#  ifdef __cplusplus
4247     extern "C"
4248#  endif
4249   int F77_DUMMY_MAIN() { return 1; }
4250
4251#endif
4252int
4253main ()
4254{
4255
4256  ;
4257  return 0;
4258}
4259_ACEOF
4260rm -f conftest.$ac_objext conftest$ac_exeext
4261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262  (eval $ac_link) 2>conftest.er1
4263  ac_status=$?
4264  grep -v '^ *+' conftest.er1 >conftest.err
4265  rm -f conftest.er1
4266  cat conftest.err >&5
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); } &&
4269         { ac_try='test -z "$ac_c_werror_flag"
4270                         || test ! -s conftest.err'
4271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272  (eval $ac_try) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); }; } &&
4276         { ac_try='test -s conftest$ac_exeext'
4277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278  (eval $ac_try) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }; }; then
4282  ac_cv_fortran_dummy_main=none
4283else
4284  echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287ac_cv_fortran_dummy_main=unknown
4288fi
4289rm -f conftest.err conftest.$ac_objext \
4290      conftest$ac_exeext conftest.$ac_ext
4291
4292 if test $ac_cv_fortran_dummy_main = unknown; then
4293   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4294     cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h.  */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h.  */
4300#define $ac_fortran_dm_var $ac_func
4301#ifdef F77_DUMMY_MAIN
4302
4303#  ifdef __cplusplus
4304     extern "C"
4305#  endif
4306   int F77_DUMMY_MAIN() { return 1; }
4307
4308#endif
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317rm -f conftest.$ac_objext conftest$ac_exeext
4318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4319  (eval $ac_link) 2>conftest.er1
4320  ac_status=$?
4321  grep -v '^ *+' conftest.er1 >conftest.err
4322  rm -f conftest.er1
4323  cat conftest.err >&5
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); } &&
4326         { ac_try='test -z "$ac_c_werror_flag"
4327                         || test ! -s conftest.err'
4328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329  (eval $ac_try) 2>&5
4330  ac_status=$?
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); }; } &&
4333         { ac_try='test -s conftest$ac_exeext'
4334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335  (eval $ac_try) 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); }; }; then
4339  ac_cv_fortran_dummy_main=$ac_func; break
4340else
4341  echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344fi
4345rm -f conftest.err conftest.$ac_objext \
4346      conftest$ac_exeext conftest.$ac_ext
4347   done
4348 fi
4349 ac_ext=f
4350ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4351ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4353 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4354 rm -f conftest*
4355 LIBS=$ac_f77_dm_save_LIBS
4356
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4359echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4360F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4361if test "$F77_DUMMY_MAIN" != unknown; then
4362  if test $F77_DUMMY_MAIN != none; then
4363
4364cat >>confdefs.h <<_ACEOF
4365#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4366_ACEOF
4367
4368  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4369
4370cat >>confdefs.h <<\_ACEOF
4371#define FC_DUMMY_MAIN_EQ_F77 1
4372_ACEOF
4373
4374  fi
4375fi
4376else
4377  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4378See \`config.log' for more details." >&5
4379echo "$as_me: error: linking to Fortran libraries from C fails
4380See \`config.log' for more details." >&2;}
4381   { (exit 1); exit 1; }; }
4382fi
4383
4384
4385ac_ext=f
4386ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4387ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4389
4390ac_ext=f
4391ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4392ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4394echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4395echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4396if test "${ac_cv_f77_mangling+set}" = set; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  cat >conftest.$ac_ext <<_ACEOF
4400      subroutine foobar()
4401      return
4402      end
4403      subroutine foo_bar()
4404      return
4405      end
4406_ACEOF
4407rm -f conftest.$ac_objext
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409  (eval $ac_compile) 2>conftest.er1
4410  ac_status=$?
4411  grep -v '^ *+' conftest.er1 >conftest.err
4412  rm -f conftest.er1
4413  cat conftest.err >&5
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); } &&
4416         { ac_try='test -z "$ac_f77_werror_flag"
4417                         || test ! -s conftest.err'
4418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419  (eval $ac_try) 2>&5
4420  ac_status=$?
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); }; } &&
4423         { ac_try='test -s conftest.$ac_objext'
4424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; }; then
4429  mv conftest.$ac_objext cfortran_test.$ac_objext
4430
4431  ac_save_LIBS=$LIBS
4432  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4433
4434  ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439  ac_success=no
4440  for ac_foobar in foobar FOOBAR; do
4441    for ac_underscore in "" "_"; do
4442      ac_func="$ac_foobar$ac_underscore"
4443      cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h.  */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h.  */
4449
4450/* Override any gcc2 internal prototype to avoid an error.  */
4451#ifdef __cplusplus
4452extern "C"
4453#endif
4454/* We use char because int might match the return type of a gcc2
4455   builtin and then its argument prototype would still apply.  */
4456char $ac_func ();
4457#ifdef F77_DUMMY_MAIN
4458
4459#  ifdef __cplusplus
4460     extern "C"
4461#  endif
4462   int F77_DUMMY_MAIN() { return 1; }
4463
4464#endif
4465int
4466main ()
4467{
4468$ac_func ();
4469  ;
4470  return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475  (eval $ac_link) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482         { ac_try='test -z "$ac_c_werror_flag"
4483                         || test ! -s conftest.err'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; } &&
4489         { ac_try='test -s conftest$ac_exeext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  ac_success=yes; break 2
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500fi
4501rm -f conftest.err conftest.$ac_objext \
4502      conftest$ac_exeext conftest.$ac_ext
4503    done
4504  done
4505  ac_ext=f
4506ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4507ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4509
4510  if test "$ac_success" = "yes"; then
4511     case $ac_foobar in
4512        foobar)
4513           ac_case=lower
4514           ac_foo_bar=foo_bar
4515           ;;
4516        FOOBAR)
4517           ac_case=upper
4518           ac_foo_bar=FOO_BAR
4519           ;;
4520     esac
4521
4522     ac_ext=c
4523ac_cpp='$CPP $CPPFLAGS'
4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527     ac_success_extra=no
4528     for ac_extra in "" "_"; do
4529        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4530        cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536
4537/* Override any gcc2 internal prototype to avoid an error.  */
4538#ifdef __cplusplus
4539extern "C"
4540#endif
4541/* We use char because int might match the return type of a gcc2
4542   builtin and then its argument prototype would still apply.  */
4543char $ac_func ();
4544#ifdef F77_DUMMY_MAIN
4545
4546#  ifdef __cplusplus
4547     extern "C"
4548#  endif
4549   int F77_DUMMY_MAIN() { return 1; }
4550
4551#endif
4552int
4553main ()
4554{
4555$ac_func ();
4556  ;
4557  return 0;
4558}
4559_ACEOF
4560rm -f conftest.$ac_objext conftest$ac_exeext
4561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4562  (eval $ac_link) 2>conftest.er1
4563  ac_status=$?
4564  grep -v '^ *+' conftest.er1 >conftest.err
4565  rm -f conftest.er1
4566  cat conftest.err >&5
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); } &&
4569         { ac_try='test -z "$ac_c_werror_flag"
4570                         || test ! -s conftest.err'
4571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572  (eval $ac_try) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }; } &&
4576         { ac_try='test -s conftest$ac_exeext'
4577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578  (eval $ac_try) 2>&5
4579  ac_status=$?
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); }; }; then
4582  ac_success_extra=yes; break
4583else
4584  echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587fi
4588rm -f conftest.err conftest.$ac_objext \
4589      conftest$ac_exeext conftest.$ac_ext
4590     done
4591     ac_ext=f
4592ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4593ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4595
4596     if test "$ac_success_extra" = "yes"; then
4597        ac_cv_f77_mangling="$ac_case case"
4598        if test -z "$ac_underscore"; then
4599           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4600        else
4601           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4602        fi
4603        if test -z "$ac_extra"; then
4604           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4605        else
4606           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4607        fi
4608      else
4609        ac_cv_f77_mangling="unknown"
4610      fi
4611  else
4612     ac_cv_f77_mangling="unknown"
4613  fi
4614
4615  LIBS=$ac_save_LIBS
4616  rm -f cfortran_test* conftest*
4617else
4618  echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4622See \`config.log' for more details." >&5
4623echo "$as_me: error: cannot compile a simple Fortran program
4624See \`config.log' for more details." >&2;}
4625   { (exit 1); exit 1; }; }
4626fi
4627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628
4629fi
4630echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4631echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4632
4633ac_ext=f
4634ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4635ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4637
4638
4639ac_ext=f
4640ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4641ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4643
4644ac_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
4649
4650case $ac_cv_f77_mangling in
4651  "lower case, no underscore, no extra underscore")
4652          cat >>confdefs.h <<\_ACEOF
4653#define F77_FUNC(name,NAME) name
4654_ACEOF
4655
4656          cat >>confdefs.h <<\_ACEOF
4657#define F77_FUNC_(name,NAME) name
4658_ACEOF
4659 ;;
4660  "lower case, no underscore, extra underscore")
4661          cat >>confdefs.h <<\_ACEOF
4662#define F77_FUNC(name,NAME) name
4663_ACEOF
4664
4665          cat >>confdefs.h <<\_ACEOF
4666#define F77_FUNC_(name,NAME) name ## _
4667_ACEOF
4668 ;;
4669  "lower case, underscore, no extra underscore")
4670          cat >>confdefs.h <<\_ACEOF
4671#define F77_FUNC(name,NAME) name ## _
4672_ACEOF
4673
4674          cat >>confdefs.h <<\_ACEOF
4675#define F77_FUNC_(name,NAME) name ## _
4676_ACEOF
4677 ;;
4678  "lower case, underscore, extra underscore")
4679          cat >>confdefs.h <<\_ACEOF
4680#define F77_FUNC(name,NAME) name ## _
4681_ACEOF
4682
4683          cat >>confdefs.h <<\_ACEOF
4684#define F77_FUNC_(name,NAME) name ## __
4685_ACEOF
4686 ;;
4687  "upper case, no underscore, no extra underscore")
4688          cat >>confdefs.h <<\_ACEOF
4689#define F77_FUNC(name,NAME) NAME
4690_ACEOF
4691
4692          cat >>confdefs.h <<\_ACEOF
4693#define F77_FUNC_(name,NAME) NAME
4694_ACEOF
4695 ;;
4696  "upper case, no underscore, extra underscore")
4697          cat >>confdefs.h <<\_ACEOF
4698#define F77_FUNC(name,NAME) NAME
4699_ACEOF
4700
4701          cat >>confdefs.h <<\_ACEOF
4702#define F77_FUNC_(name,NAME) NAME ## _
4703_ACEOF
4704 ;;
4705  "upper case, underscore, no extra underscore")
4706          cat >>confdefs.h <<\_ACEOF
4707#define F77_FUNC(name,NAME) NAME ## _
4708_ACEOF
4709
4710          cat >>confdefs.h <<\_ACEOF
4711#define F77_FUNC_(name,NAME) NAME ## _
4712_ACEOF
4713 ;;
4714  "upper case, underscore, extra underscore")
4715          cat >>confdefs.h <<\_ACEOF
4716#define F77_FUNC(name,NAME) NAME ## _
4717_ACEOF
4718
4719          cat >>confdefs.h <<\_ACEOF
4720#define F77_FUNC_(name,NAME) NAME ## __
4721_ACEOF
4722 ;;
4723  *)
4724          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4725echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4726          ;;
4727esac
4728
4729ac_ext=f
4730ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4731ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4733
4734ac_ext=c
4735ac_cpp='$CPP $CPPFLAGS'
4736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740
4741
4742
4743# Check for Blas
4744
4745
4746# Check whether --enable-pkg-config or --disable-pkg-config was given.
4747if test "${enable_pkg_config+set}" = set; then
4748  enableval="$enable_pkg_config"
4749  use_pkgconfig="$enableval"
4750else
4751  if test x$coin_cc_is_cl = xtrue; then
4752     use_pkgconfig=no
4753   else
4754     use_pkgconfig=yes
4755   fi
4756fi;
4757
4758if test $use_pkgconfig = yes ; then
4759  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4760    if test -n "$ac_tool_prefix"; then
4761  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4762set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4763echo "$as_me:$LINENO: checking for $ac_word" >&5
4764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  if test -n "$PKG_CONFIG"; then
4769  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776  for ac_exec_ext in '' $ac_executable_extensions; do
4777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780    break 2
4781  fi
4782done
4783done
4784
4785fi
4786fi
4787PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4788if test -n "$PKG_CONFIG"; then
4789  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4790echo "${ECHO_T}$PKG_CONFIG" >&6
4791else
4792  echo "$as_me:$LINENO: result: no" >&5
4793echo "${ECHO_T}no" >&6
4794fi
4795
4796fi
4797if test -z "$ac_cv_prog_PKG_CONFIG"; then
4798  ac_ct_PKG_CONFIG=$PKG_CONFIG
4799  # Extract the first word of "pkg-config", so it can be a program name with args.
4800set dummy pkg-config; ac_word=$2
4801echo "$as_me:$LINENO: checking for $ac_word" >&5
4802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  if test -n "$ac_ct_PKG_CONFIG"; then
4807  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814  for ac_exec_ext in '' $ac_executable_extensions; do
4815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818    break 2
4819  fi
4820done
4821done
4822
4823fi
4824fi
4825ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4826if test -n "$ac_ct_PKG_CONFIG"; then
4827  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4828echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4829else
4830  echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832fi
4833
4834  PKG_CONFIG=$ac_ct_PKG_CONFIG
4835else
4836  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4837fi
4838
4839  fi
4840  if test -n "$PKG_CONFIG"; then
4841    _pkg_min_version=0.16.0
4842    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4843echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4844    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4845      echo "$as_me:$LINENO: result: yes" >&5
4846echo "${ECHO_T}yes" >&6
4847    else
4848      echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6
4850      PKG_CONFIG=""
4851    fi
4852  fi
4853
4854  # check if pkg-config supports the short-errors flag
4855  if test -n "$PKG_CONFIG" && \
4856    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4857    pkg_short_errors=" --short-errors "
4858  else
4859    pkg_short_errors=""
4860  fi
4861fi
4862
4863
4864
4865if test -n "$PKG_CONFIG"; then
4866  COIN_HAS_PKGCONFIG_TRUE=
4867  COIN_HAS_PKGCONFIG_FALSE='#'
4868else
4869  COIN_HAS_PKGCONFIG_TRUE='#'
4870  COIN_HAS_PKGCONFIG_FALSE=
4871fi
4872
4873
4874
4875# assemble pkg-config search path for installed projects
4876COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4877
4878# 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
4879# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4880# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4881if test "x${prefix}" = xNONE ; then
4882  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4883else
4884  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4885fi
4886
4887
4888# Check whether --with-coin-instdir or --without-coin-instdir was given.
4889if test "${with_coin_instdir+set}" = set; then
4890  withval="$with_coin_instdir"
4891  if test -d "$withval"; then : ; else
4892     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4893echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4894   { (exit 1); exit 1; }; }
4895   fi
4896   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4897
4898fi;
4899
4900
4901
4902# assemble additional pkg-config search paths for uninstalled projects
4903if test x$coin_projectdir = xyes ; then
4904  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4905  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4906  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4907  # 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)
4908  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4909  if test -f ../coin_subdirs.txt ; then
4910    for i in `cat ../coin_subdirs.txt` ; do
4911      if test -d ../$i ; then
4912        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4913      fi
4914      if test -d ../$i/pkgconfig ; then
4915        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4916      fi
4917    done
4918  fi
4919
4920  if test -f ../../coin_subdirs.txt ; then
4921    for i in `cat ../../coin_subdirs.txt` ; do
4922      if test -d ../../$i ; then
4923        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4924      fi
4925      if test -d ../../$i/pkgconfig ; then
4926        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4927      fi
4928    done
4929  fi
4930
4931
4932fi
4933
4934if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4935  { 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
4936echo "$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;}
4937fi
4938
4939
4940
4941
4942# Check whether --with-blas or --without-blas was given.
4943if test "${with_blas+set}" = set; then
4944  withval="$with_blas"
4945  use_blas="$withval"
4946else
4947  use_blas=
4948fi;
4949
4950# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
4951# preference
4952
4953# Check whether --with-blas-lib or --without-blas-lib was given.
4954if test "${with_blas_lib+set}" = set; then
4955  withval="$with_blas_lib"
4956  use_blas=BUILD
4957fi;
4958
4959# Check if user supplied option makes sense
4960if test x"$use_blas" != x; then
4961  if test "$use_blas" = "BUILD"; then
4962    # we come to this later
4963    :
4964  elif test "$use_blas" != "no"; then
4965    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
4966echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
4967    coin_need_flibs=no
4968    coin_save_LIBS="$LIBS"
4969    LIBS="$use_blas $LIBS"
4970    case $ac_ext in
4971  f)
4972    cat >conftest.$ac_ext <<_ACEOF
4973/* confdefs.h.  */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h.  */
4978
4979#ifdef F77_DUMMY_MAIN
4980
4981#  ifdef __cplusplus
4982     extern "C"
4983#  endif
4984   int F77_DUMMY_MAIN() { return 1; }
4985
4986#endif
4987int
4988main ()
4989{
4990      call daxpy
4991  ;
4992  return 0;
4993}
4994_ACEOF
4995rm -f conftest.$ac_objext conftest$ac_exeext
4996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4997  (eval $ac_link) 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } &&
5004         { ac_try='test -z "$ac_c_werror_flag"
5005                         || test ! -s conftest.err'
5006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007  (eval $ac_try) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011         { ac_try='test -s conftest$ac_exeext'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; }; then
5017  if test $coin_need_flibs = yes ; then
5018                         use_blas="$use_blas $FLIBS"
5019                       fi
5020                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5021echo "${ECHO_T}yes: $use_blas" >&6
5022else
5023  echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5029echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5030   { (exit 1); exit 1; }; }
5031fi
5032rm -f conftest.err conftest.$ac_objext \
5033      conftest$ac_exeext conftest.$ac_ext
5034    ;;
5035  c)
5036    ac_ext=f
5037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5040case $ac_cv_f77_mangling in
5041  upper*) ac_val="DAXPY" ;;
5042  lower*) ac_val="daxpy" ;;
5043  *)      ac_val="unknown" ;;
5044esac
5045case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5046
5047cfuncdaxpy="$ac_val"
5048
5049ac_ext=c
5050ac_cpp='$CPP $CPPFLAGS'
5051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055    if test x"$coin_need_flibs" = xyes; then
5056      flink_try=no;
5057    else
5058      cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064void $cfuncdaxpy();
5065#ifdef F77_DUMMY_MAIN
5066
5067#  ifdef __cplusplus
5068     extern "C"
5069#  endif
5070   int F77_DUMMY_MAIN() { return 1; }
5071
5072#endif
5073int
5074main ()
5075{
5076$cfuncdaxpy()
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081rm -f conftest.$ac_objext conftest$ac_exeext
5082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083  (eval $ac_link) 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } &&
5090         { ac_try='test -z "$ac_c_werror_flag"
5091                         || test ! -s conftest.err'
5092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093  (eval $ac_try) 2>&5
5094  ac_status=$?
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); }; } &&
5097         { ac_try='test -s conftest$ac_exeext'
5098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099  (eval $ac_try) 2>&5
5100  ac_status=$?
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); }; }; then
5103  flink_try=yes
5104else
5105  echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108flink_try=no
5109fi
5110rm -f conftest.err conftest.$ac_objext \
5111      conftest$ac_exeext conftest.$ac_ext
5112    fi
5113    if test $flink_try = yes; then
5114      if test $coin_need_flibs = yes ; then
5115                         use_blas="$use_blas $FLIBS"
5116                       fi
5117                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5118echo "${ECHO_T}yes: $use_blas" >&6
5119    else
5120      if test x"$FLIBS" != x; then
5121        flink_save_libs="$LIBS"
5122        LIBS="$LIBS $FLIBS"
5123        cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h.  */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h.  */
5129void $cfuncdaxpy();
5130#ifdef F77_DUMMY_MAIN
5131
5132#  ifdef __cplusplus
5133     extern "C"
5134#  endif
5135   int F77_DUMMY_MAIN() { return 1; }
5136
5137#endif
5138int
5139main ()
5140{
5141$cfuncdaxpy()
5142  ;
5143  return 0;
5144}
5145_ACEOF
5146rm -f conftest.$ac_objext conftest$ac_exeext
5147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148  (eval $ac_link) 2>conftest.er1
5149  ac_status=$?
5150  grep -v '^ *+' conftest.er1 >conftest.err
5151  rm -f conftest.er1
5152  cat conftest.err >&5
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } &&
5155         { ac_try='test -z "$ac_c_werror_flag"
5156                         || test ! -s conftest.err'
5157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158  (eval $ac_try) 2>&5
5159  ac_status=$?
5160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161  (exit $ac_status); }; } &&
5162         { ac_try='test -s conftest$ac_exeext'
5163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164  (eval $ac_try) 2>&5
5165  ac_status=$?
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); }; }; then
5168  LIBS="$flink_save_libs"
5169                     coin_need_flibs=yes
5170                     if test $coin_need_flibs = yes ; then
5171                         use_blas="$use_blas $FLIBS"
5172                       fi
5173                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5174echo "${ECHO_T}yes: $use_blas" >&6
5175
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180LIBS="$flink_save_libs"
5181                     echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5184echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5185   { (exit 1); exit 1; }; }
5186fi
5187rm -f conftest.err conftest.$ac_objext \
5188      conftest$ac_exeext conftest.$ac_ext
5189      else
5190        echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6
5192                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5193echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5194   { (exit 1); exit 1; }; }
5195      fi
5196    fi
5197    ;;
5198  cc|cpp)
5199    ac_ext=f
5200ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5201ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5203case $ac_cv_f77_mangling in
5204  upper*) ac_val="DAXPY" ;;
5205  lower*) ac_val="daxpy" ;;
5206  *)      ac_val="unknown" ;;
5207esac
5208case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5209
5210cfuncdaxpy="$ac_val"
5211
5212ac_ext=c
5213ac_cpp='$CPP $CPPFLAGS'
5214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218    if test x"$coin_need_flibs" = xyes; then
5219      flink_try=no;
5220    else
5221      cat >conftest.$ac_ext <<_ACEOF
5222/* confdefs.h.  */
5223_ACEOF
5224cat confdefs.h >>conftest.$ac_ext
5225cat >>conftest.$ac_ext <<_ACEOF
5226/* end confdefs.h.  */
5227extern "C" {void $cfuncdaxpy();}
5228#ifdef F77_DUMMY_MAIN
5229
5230#  ifdef __cplusplus
5231     extern "C"
5232#  endif
5233   int F77_DUMMY_MAIN() { return 1; }
5234
5235#endif
5236int
5237main ()
5238{
5239$cfuncdaxpy()
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244rm -f conftest.$ac_objext conftest$ac_exeext
5245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5246  (eval $ac_link) 2>conftest.er1
5247  ac_status=$?
5248  grep -v '^ *+' conftest.er1 >conftest.err
5249  rm -f conftest.er1
5250  cat conftest.err >&5
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); } &&
5253         { ac_try='test -z "$ac_c_werror_flag"
5254                         || test ! -s conftest.err'
5255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256  (eval $ac_try) 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); }; } &&
5260         { ac_try='test -s conftest$ac_exeext'
5261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262  (eval $ac_try) 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }; }; then
5266  flink_try=yes
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271flink_try=no
5272fi
5273rm -f conftest.err conftest.$ac_objext \
5274      conftest$ac_exeext conftest.$ac_ext
5275    fi
5276    if test $flink_try = yes; then
5277      if test $coin_need_flibs = yes ; then
5278                         use_blas="$use_blas $FLIBS"
5279                       fi
5280                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5281echo "${ECHO_T}yes: $use_blas" >&6
5282    else
5283      if test x"$FLIBS" != x; then
5284        flink_save_libs="$LIBS"
5285        LIBS="$LIBS $FLIBS"
5286        cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h.  */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h.  */
5292extern "C" {void $cfuncdaxpy();}
5293#ifdef F77_DUMMY_MAIN
5294
5295#  ifdef __cplusplus
5296     extern "C"
5297#  endif
5298   int F77_DUMMY_MAIN() { return 1; }
5299
5300#endif
5301int
5302main ()
5303{
5304$cfuncdaxpy()
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext conftest$ac_exeext
5310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311  (eval $ac_link) 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } &&
5318         { ac_try='test -z "$ac_c_werror_flag"
5319                         || test ! -s conftest.err'
5320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321  (eval $ac_try) 2>&5
5322  ac_status=$?
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); }; } &&
5325         { ac_try='test -s conftest$ac_exeext'
5326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327  (eval $ac_try) 2>&5
5328  ac_status=$?
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); }; }; then
5331  LIBS="$flink_save_libs"
5332                     coin_need_flibs=yes
5333                     if test $coin_need_flibs = yes ; then
5334                         use_blas="$use_blas $FLIBS"
5335                       fi
5336                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5337echo "${ECHO_T}yes: $use_blas" >&6
5338
5339else
5340  echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343LIBS="$flink_save_libs"
5344                     echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5347echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5348   { (exit 1); exit 1; }; }
5349fi
5350rm -f conftest.err conftest.$ac_objext \
5351      conftest$ac_exeext conftest.$ac_ext
5352      else
5353        echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5356echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5357   { (exit 1); exit 1; }; }
5358      fi
5359    fi
5360    ;;
5361esac
5362
5363    LIBS="$coin_save_LIBS"
5364  fi
5365else
5366# Try to autodetect the library for blas based on build system
5367  #AC_MSG_CHECKING([default locations for BLAS])
5368  case $build in
5369    *-sgi-*)
5370      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5371echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5372      coin_need_flibs=no
5373      coin_save_LIBS="$LIBS"
5374      LIBS="-lcomplib.sgimath $LIBS"
5375      case $ac_ext in
5376  f)
5377    cat >conftest.$ac_ext <<_ACEOF
5378/* confdefs.h.  */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h.  */
5383
5384#ifdef F77_DUMMY_MAIN
5385
5386#  ifdef __cplusplus
5387     extern "C"
5388#  endif
5389   int F77_DUMMY_MAIN() { return 1; }
5390
5391#endif
5392int
5393main ()
5394{
5395      call daxpy
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext conftest$ac_exeext
5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402  (eval $ac_link) 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } &&
5409         { ac_try='test -z "$ac_c_werror_flag"
5410                         || test ! -s conftest.err'
5411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412  (eval $ac_try) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); }; } &&
5416         { ac_try='test -s conftest$ac_exeext'
5417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418  (eval $ac_try) 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }; }; then
5422  use_blas="-lcomplib.sgimath"
5423                         if test $coin_need_flibs = yes ; then
5424                           use_blas="$use_blas $FLIBS"
5425                         fi
5426                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5427echo "${ECHO_T}yes: $use_blas" >&6
5428
5429else
5430  echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
5433echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435fi
5436rm -f conftest.err conftest.$ac_objext \
5437      conftest$ac_exeext conftest.$ac_ext
5438    ;;
5439  c)
5440    ac_ext=f
5441ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5442ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5444case $ac_cv_f77_mangling in
5445  upper*) ac_val="DAXPY" ;;
5446  lower*) ac_val="daxpy" ;;
5447  *)      ac_val="unknown" ;;
5448esac
5449case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5450
5451cfuncdaxpy="$ac_val"
5452
5453ac_ext=c
5454ac_cpp='$CPP $CPPFLAGS'
5455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458
5459    if test x"$coin_need_flibs" = xyes; then
5460      flink_try=no;
5461    else
5462      cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h.  */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h.  */
5468void $cfuncdaxpy();
5469#ifdef F77_DUMMY_MAIN
5470
5471#  ifdef __cplusplus
5472     extern "C"
5473#  endif
5474   int F77_DUMMY_MAIN() { return 1; }
5475
5476#endif
5477int
5478main ()
5479{
5480$cfuncdaxpy()
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext conftest$ac_exeext
5486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487  (eval $ac_link) 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } &&
5494         { ac_try='test -z "$ac_c_werror_flag"
5495                         || test ! -s conftest.err'
5496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497  (eval $ac_try) 2>&5
5498  ac_status=$?
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); }; } &&
5501         { ac_try='test -s conftest$ac_exeext'
5502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503  (eval $ac_try) 2>&5
5504  ac_status=$?
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); }; }; then
5507  flink_try=yes
5508else
5509  echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
5512flink_try=no
5513fi
5514rm -f conftest.err conftest.$ac_objext \
5515      conftest$ac_exeext conftest.$ac_ext
5516    fi
5517    if test $flink_try = yes; then
5518      use_blas="-lcomplib.sgimath"
5519                         if test $coin_need_flibs = yes ; then
5520                           use_blas="$use_blas $FLIBS"
5521                         fi
5522                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5523echo "${ECHO_T}yes: $use_blas" >&6
5524
5525    else
5526      if test x"$FLIBS" != x; then
5527        flink_save_libs="$LIBS"
5528        LIBS="$LIBS $FLIBS"
5529        cat >conftest.$ac_ext <<_ACEOF
5530/* confdefs.h.  */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
5534/* end confdefs.h.  */
5535void $cfuncdaxpy();
5536#ifdef F77_DUMMY_MAIN
5537
5538#  ifdef __cplusplus
5539     extern "C"
5540#  endif
5541   int F77_DUMMY_MAIN() { return 1; }
5542
5543#endif
5544int
5545main ()
5546{
5547$cfuncdaxpy()
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext conftest$ac_exeext
5553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554  (eval $ac_link) 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } &&
5561         { ac_try='test -z "$ac_c_werror_flag"
5562                         || test ! -s conftest.err'
5563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564  (eval $ac_try) 2>&5
5565  ac_status=$?
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); }; } &&
5568         { ac_try='test -s conftest$ac_exeext'
5569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570  (eval $ac_try) 2>&5
5571  ac_status=$?
5572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); }; }; then
5574  LIBS="$flink_save_libs"
5575                     coin_need_flibs=yes
5576                     use_blas="-lcomplib.sgimath"
5577                         if test $coin_need_flibs = yes ; then
5578                           use_blas="$use_blas $FLIBS"
5579                         fi
5580                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5581echo "${ECHO_T}yes: $use_blas" >&6
5582
5583
5584else
5585  echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588LIBS="$flink_save_libs"
5589                     echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6
5591fi
5592rm -f conftest.err conftest.$ac_objext \
5593      conftest$ac_exeext conftest.$ac_ext
5594      else
5595        echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597      fi
5598    fi
5599    ;;
5600  cc|cpp)
5601    ac_ext=f
5602ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5603ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5605case $ac_cv_f77_mangling in
5606  upper*) ac_val="DAXPY" ;;
5607  lower*) ac_val="daxpy" ;;
5608  *)      ac_val="unknown" ;;
5609esac
5610case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5611
5612cfuncdaxpy="$ac_val"
5613
5614ac_ext=c
5615ac_cpp='$CPP $CPPFLAGS'
5616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619
5620    if test x"$coin_need_flibs" = xyes; then
5621      flink_try=no;
5622    else
5623      cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h.  */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h.  */
5629extern "C" {void $cfuncdaxpy();}
5630#ifdef F77_DUMMY_MAIN
5631
5632#  ifdef __cplusplus
5633     extern "C"
5634#  endif
5635   int F77_DUMMY_MAIN() { return 1; }
5636
5637#endif
5638int
5639main ()
5640{
5641$cfuncdaxpy()
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646rm -f conftest.$ac_objext conftest$ac_exeext
5647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648  (eval $ac_link) 2>conftest.er1
5649  ac_status=$?
5650  grep -v '^ *+' conftest.er1 >conftest.err
5651  rm -f conftest.er1
5652  cat conftest.err >&5
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); } &&
5655         { ac_try='test -z "$ac_c_werror_flag"
5656                         || test ! -s conftest.err'
5657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658  (eval $ac_try) 2>&5
5659  ac_status=$?
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); }; } &&
5662         { ac_try='test -s conftest$ac_exeext'
5663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664  (eval $ac_try) 2>&5
5665  ac_status=$?
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); }; }; then
5668  flink_try=yes
5669else
5670  echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673flink_try=no
5674fi
5675rm -f conftest.err conftest.$ac_objext \
5676      conftest$ac_exeext conftest.$ac_ext
5677    fi
5678    if test $flink_try = yes; then
5679      use_blas="-lcomplib.sgimath"
5680                         if test $coin_need_flibs = yes ; then
5681                           use_blas="$use_blas $FLIBS"
5682                         fi
5683                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5684echo "${ECHO_T}yes: $use_blas" >&6
5685
5686    else
5687      if test x"$FLIBS" != x; then
5688        flink_save_libs="$LIBS"
5689        LIBS="$LIBS $FLIBS"
5690        cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h.  */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h.  */
5696extern "C" {void $cfuncdaxpy();}
5697#ifdef F77_DUMMY_MAIN
5698
5699#  ifdef __cplusplus
5700     extern "C"
5701#  endif
5702   int F77_DUMMY_MAIN() { return 1; }
5703
5704#endif
5705int
5706main ()
5707{
5708$cfuncdaxpy()
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext conftest$ac_exeext
5714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5715  (eval $ac_link) 2>conftest.er1
5716  ac_status=$?
5717  grep -v '^ *+' conftest.er1 >conftest.err
5718  rm -f conftest.er1
5719  cat conftest.err >&5
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } &&
5722         { ac_try='test -z "$ac_c_werror_flag"
5723                         || test ! -s conftest.err'
5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; } &&
5729         { ac_try='test -s conftest$ac_exeext'
5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731  (eval $ac_try) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; }; then
5735  LIBS="$flink_save_libs"
5736                     coin_need_flibs=yes
5737                     use_blas="-lcomplib.sgimath"
5738                         if test $coin_need_flibs = yes ; then
5739                           use_blas="$use_blas $FLIBS"
5740                         fi
5741                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5742echo "${ECHO_T}yes: $use_blas" >&6
5743
5744
5745else
5746  echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749LIBS="$flink_save_libs"
5750                     echo "$as_me:$LINENO: result: no" >&5
5751echo "${ECHO_T}no" >&6
5752fi
5753rm -f conftest.err conftest.$ac_objext \
5754      conftest$ac_exeext conftest.$ac_ext
5755      else
5756        echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758      fi
5759    fi
5760    ;;
5761esac
5762
5763      LIBS="$coin_save_LIBS"
5764      ;;
5765
5766# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
5767# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
5768# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
5769# that CC and cc will understand -library in Studio 13. The main extra
5770# function of -xlic_lib and -library is to arrange for the Fortran run-time
5771# libraries to be linked for C++ and C. We can arrange that explicitly.
5772    *-*-solaris*)
5773      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
5774echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
5775      coin_need_flibs=no
5776      coin_save_LIBS="$LIBS"
5777      LIBS="-lsunperf $FLIBS $LIBS"
5778      case $ac_ext in
5779  f)
5780    cat >conftest.$ac_ext <<_ACEOF
5781/* confdefs.h.  */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h.  */
5786
5787#ifdef F77_DUMMY_MAIN
5788
5789#  ifdef __cplusplus
5790     extern "C"
5791#  endif
5792   int F77_DUMMY_MAIN() { return 1; }
5793
5794#endif
5795int
5796main ()
5797{
5798      call daxpy
5799  ;
5800  return 0;
5801}
5802_ACEOF
5803rm -f conftest.$ac_objext conftest$ac_exeext
5804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805  (eval $ac_link) 2>conftest.er1
5806  ac_status=$?
5807  grep -v '^ *+' conftest.er1 >conftest.err
5808  rm -f conftest.er1
5809  cat conftest.err >&5
5810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811  (exit $ac_status); } &&
5812         { ac_try='test -z "$ac_c_werror_flag"
5813                         || test ! -s conftest.err'
5814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815  (eval $ac_try) 2>&5
5816  ac_status=$?
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); }; } &&
5819         { ac_try='test -s conftest$ac_exeext'
5820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821  (eval $ac_try) 2>&5
5822  ac_status=$?
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); }; }; then
5825  use_blas='-lsunperf'
5826                         if test $coin_need_flibs = yes ; then
5827                           use_blas="$use_blas $FLIBS"
5828                         fi
5829                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5830echo "${ECHO_T}yes: $use_blas" >&6
5831
5832else
5833  echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
5836echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838fi
5839rm -f conftest.err conftest.$ac_objext \
5840      conftest$ac_exeext conftest.$ac_ext
5841    ;;
5842  c)
5843    ac_ext=f
5844ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5845ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5847case $ac_cv_f77_mangling in
5848  upper*) ac_val="DAXPY" ;;
5849  lower*) ac_val="daxpy" ;;
5850  *)      ac_val="unknown" ;;
5851esac
5852case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5853
5854cfuncdaxpy="$ac_val"
5855
5856ac_ext=c
5857ac_cpp='$CPP $CPPFLAGS'
5858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861
5862    if test x"$coin_need_flibs" = xyes; then
5863      flink_try=no;
5864    else
5865      cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h.  */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h.  */
5871void $cfuncdaxpy();
5872#ifdef F77_DUMMY_MAIN
5873
5874#  ifdef __cplusplus
5875     extern "C"
5876#  endif
5877   int F77_DUMMY_MAIN() { return 1; }
5878
5879#endif
5880int
5881main ()
5882{
5883$cfuncdaxpy()
5884  ;
5885  return 0;
5886}
5887_ACEOF
5888rm -f conftest.$ac_objext conftest$ac_exeext
5889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890  (eval $ac_link) 2>conftest.er1
5891  ac_status=$?
5892  grep -v '^ *+' conftest.er1 >conftest.err
5893  rm -f conftest.er1
5894  cat conftest.err >&5
5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); } &&
5897         { ac_try='test -z "$ac_c_werror_flag"
5898                         || test ! -s conftest.err'
5899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900  (eval $ac_try) 2>&5
5901  ac_status=$?
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); }; } &&
5904         { ac_try='test -s conftest$ac_exeext'
5905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906  (eval $ac_try) 2>&5
5907  ac_status=$?
5908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909  (exit $ac_status); }; }; then
5910  flink_try=yes
5911else
5912  echo "$as_me: failed program was:" >&5
5913sed 's/^/| /' conftest.$ac_ext >&5
5914
5915flink_try=no
5916fi
5917rm -f conftest.err conftest.$ac_objext \
5918      conftest$ac_exeext conftest.$ac_ext
5919    fi
5920    if test $flink_try = yes; then
5921      use_blas='-lsunperf'
5922                         if test $coin_need_flibs = yes ; then
5923                           use_blas="$use_blas $FLIBS"
5924                         fi
5925                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5926echo "${ECHO_T}yes: $use_blas" >&6
5927
5928    else
5929      if test x"$FLIBS" != x; then
5930        flink_save_libs="$LIBS"
5931        LIBS="$LIBS $FLIBS"
5932        cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h.  */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h.  */
5938void $cfuncdaxpy();
5939#ifdef F77_DUMMY_MAIN
5940
5941#  ifdef __cplusplus
5942     extern "C"
5943#  endif
5944   int F77_DUMMY_MAIN() { return 1; }
5945
5946#endif
5947int
5948main ()
5949{
5950$cfuncdaxpy()
5951  ;
5952  return 0;
5953}
5954_ACEOF
5955rm -f conftest.$ac_objext conftest$ac_exeext
5956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957  (eval $ac_link) 2>conftest.er1
5958  ac_status=$?
5959  grep -v '^ *+' conftest.er1 >conftest.err
5960  rm -f conftest.er1
5961  cat conftest.err >&5
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); } &&
5964         { ac_try='test -z "$ac_c_werror_flag"
5965                         || test ! -s conftest.err'
5966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967  (eval $ac_try) 2>&5
5968  ac_status=$?
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); }; } &&
5971         { ac_try='test -s conftest$ac_exeext'
5972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973  (eval $ac_try) 2>&5
5974  ac_status=$?
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); }; }; then
5977  LIBS="$flink_save_libs"
5978                     coin_need_flibs=yes
5979                     use_blas='-lsunperf'
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
5987else
5988  echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
5990
5991LIBS="$flink_save_libs"
5992                     echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6
5994fi
5995rm -f conftest.err conftest.$ac_objext \
5996      conftest$ac_exeext conftest.$ac_ext
5997      else
5998        echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
6000      fi
6001    fi
6002    ;;
6003  cc|cpp)
6004    ac_ext=f
6005ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6006ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6008case $ac_cv_f77_mangling in
6009  upper*) ac_val="DAXPY" ;;
6010  lower*) ac_val="daxpy" ;;
6011  *)      ac_val="unknown" ;;
6012esac
6013case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6014
6015cfuncdaxpy="$ac_val"
6016
6017ac_ext=c
6018ac_cpp='$CPP $CPPFLAGS'
6019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022
6023    if test x"$coin_need_flibs" = xyes; then
6024      flink_try=no;
6025    else
6026      cat >conftest.$ac_ext <<_ACEOF
6027/* confdefs.h.  */
6028_ACEOF
6029cat confdefs.h >>conftest.$ac_ext
6030cat >>conftest.$ac_ext <<_ACEOF
6031/* end confdefs.h.  */
6032extern "C" {void $cfuncdaxpy();}
6033#ifdef F77_DUMMY_MAIN
6034
6035#  ifdef __cplusplus
6036     extern "C"
6037#  endif
6038   int F77_DUMMY_MAIN() { return 1; }
6039
6040#endif
6041int
6042main ()
6043{
6044$cfuncdaxpy()
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext conftest$ac_exeext
6050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051  (eval $ac_link) 2>conftest.er1
6052  ac_status=$?
6053  grep -v '^ *+' conftest.er1 >conftest.err
6054  rm -f conftest.er1
6055  cat conftest.err >&5
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); } &&
6058         { ac_try='test -z "$ac_c_werror_flag"
6059                         || test ! -s conftest.err'
6060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061  (eval $ac_try) 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); }; } &&
6065         { ac_try='test -s conftest$ac_exeext'
6066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067  (eval $ac_try) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; }; then
6071  flink_try=yes
6072else
6073  echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076flink_try=no
6077fi
6078rm -f conftest.err conftest.$ac_objext \
6079      conftest$ac_exeext conftest.$ac_ext
6080    fi
6081    if test $flink_try = yes; then
6082      use_blas='-lsunperf'
6083                         if test $coin_need_flibs = yes ; then
6084                           use_blas="$use_blas $FLIBS"
6085                         fi
6086                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6087echo "${ECHO_T}yes: $use_blas" >&6
6088
6089    else
6090      if test x"$FLIBS" != x; then
6091        flink_save_libs="$LIBS"
6092        LIBS="$LIBS $FLIBS"
6093        cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099extern "C" {void $cfuncdaxpy();}
6100#ifdef F77_DUMMY_MAIN
6101
6102#  ifdef __cplusplus
6103     extern "C"
6104#  endif
6105   int F77_DUMMY_MAIN() { return 1; }
6106
6107#endif
6108int
6109main ()
6110{
6111$cfuncdaxpy()
6112  ;
6113  return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext conftest$ac_exeext
6117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6118  (eval $ac_link) 2>conftest.er1
6119  ac_status=$?
6120  grep -v '^ *+' conftest.er1 >conftest.err
6121  rm -f conftest.er1
6122  cat conftest.err >&5
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); } &&
6125         { ac_try='test -z "$ac_c_werror_flag"
6126                         || test ! -s conftest.err'
6127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128  (eval $ac_try) 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; } &&
6132         { ac_try='test -s conftest$ac_exeext'
6133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134  (eval $ac_try) 2>&5
6135  ac_status=$?
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); }; }; then
6138  LIBS="$flink_save_libs"
6139                     coin_need_flibs=yes
6140                     use_blas='-lsunperf'
6141                         if test $coin_need_flibs = yes ; then
6142                           use_blas="$use_blas $FLIBS"
6143                         fi
6144                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6145echo "${ECHO_T}yes: $use_blas" >&6
6146
6147
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152LIBS="$flink_save_libs"
6153                     echo "$as_me:$LINENO: result: no" >&5
6154echo "${ECHO_T}no" >&6
6155fi
6156rm -f conftest.err conftest.$ac_objext \
6157      conftest$ac_exeext conftest.$ac_ext
6158      else
6159        echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161      fi
6162    fi
6163    ;;
6164esac
6165
6166      LIBS="$coin_save_LIBS"
6167      ;;
6168
6169    *-cygwin* | *-mingw*)
6170      case "$CC" in
6171        clang* ) ;;
6172        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6173          coin_save_LIBS="$LIBS"
6174          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6175echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6176          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6177          case $ac_ext in
6178  f)
6179    cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h.  */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h.  */
6185
6186#ifdef F77_DUMMY_MAIN
6187
6188#  ifdef __cplusplus
6189     extern "C"
6190#  endif
6191   int F77_DUMMY_MAIN() { return 1; }
6192
6193#endif
6194int
6195main ()
6196{
6197      call daxpy
6198  ;
6199  return 0;
6200}
6201_ACEOF
6202rm -f conftest.$ac_objext conftest$ac_exeext
6203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204  (eval $ac_link) 2>conftest.er1
6205  ac_status=$?
6206  grep -v '^ *+' conftest.er1 >conftest.err
6207  rm -f conftest.er1
6208  cat conftest.err >&5
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); } &&
6211         { ac_try='test -z "$ac_c_werror_flag"
6212                         || test ! -s conftest.err'
6213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214  (eval $ac_try) 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }; } &&
6218         { ac_try='test -s conftest$ac_exeext'
6219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220  (eval $ac_try) 2>&5
6221  ac_status=$?
6222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223  (exit $ac_status); }; }; then
6224  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6225                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6226echo "${ECHO_T}yes: $use_blas" >&6
6227
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232echo "$as_me:$LINENO: result: no" >&5
6233echo "${ECHO_T}no" >&6
6234fi
6235rm -f conftest.err conftest.$ac_objext \
6236      conftest$ac_exeext conftest.$ac_ext
6237    ;;
6238  c)
6239    ac_ext=f
6240ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6241ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6243case $ac_cv_f77_mangling in
6244  upper*) ac_val="DAXPY" ;;
6245  lower*) ac_val="daxpy" ;;
6246  *)      ac_val="unknown" ;;
6247esac
6248case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6249
6250cfuncdaxpy="$ac_val"
6251
6252ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258    if test x"$coin_need_flibs" = xyes; then
6259      flink_try=no;
6260    else
6261      cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h.  */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h.  */
6267void $cfuncdaxpy();
6268#ifdef F77_DUMMY_MAIN
6269
6270#  ifdef __cplusplus
6271     extern "C"
6272#  endif
6273   int F77_DUMMY_MAIN() { return 1; }
6274
6275#endif
6276int
6277main ()
6278{
6279$cfuncdaxpy()
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284rm -f conftest.$ac_objext conftest$ac_exeext
6285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286  (eval $ac_link) 2>conftest.er1
6287  ac_status=$?
6288  grep -v '^ *+' conftest.er1 >conftest.err
6289  rm -f conftest.er1
6290  cat conftest.err >&5
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); } &&
6293         { ac_try='test -z "$ac_c_werror_flag"
6294                         || test ! -s conftest.err'
6295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296  (eval $ac_try) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }; } &&
6300         { ac_try='test -s conftest$ac_exeext'
6301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302  (eval $ac_try) 2>&5
6303  ac_status=$?
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); }; }; then
6306  flink_try=yes
6307else
6308  echo "$as_me: failed program was:" >&5
6309sed 's/^/| /' conftest.$ac_ext >&5
6310
6311flink_try=no
6312fi
6313rm -f conftest.err conftest.$ac_objext \
6314      conftest$ac_exeext conftest.$ac_ext
6315    fi
6316    if test $flink_try = yes; then
6317      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6318                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6319echo "${ECHO_T}yes: $use_blas" >&6
6320
6321    else
6322      if test x"$FLIBS" != x; then
6323        flink_save_libs="$LIBS"
6324        LIBS="$LIBS $FLIBS"
6325        cat >conftest.$ac_ext <<_ACEOF
6326/* confdefs.h.  */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h.  */
6331void $cfuncdaxpy();
6332#ifdef F77_DUMMY_MAIN
6333
6334#  ifdef __cplusplus
6335     extern "C"
6336#  endif
6337   int F77_DUMMY_MAIN() { return 1; }
6338
6339#endif
6340int
6341main ()
6342{
6343$cfuncdaxpy()
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext conftest$ac_exeext
6349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6350  (eval $ac_link) 2>conftest.er1
6351  ac_status=$?
6352  grep -v '^ *+' conftest.er1 >conftest.err
6353  rm -f conftest.er1
6354  cat conftest.err >&5
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); } &&
6357         { ac_try='test -z "$ac_c_werror_flag"
6358                         || test ! -s conftest.err'
6359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360  (eval $ac_try) 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); }; } &&
6364         { ac_try='test -s conftest$ac_exeext'
6365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366  (eval $ac_try) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); }; }; then
6370  LIBS="$flink_save_libs"
6371                     coin_need_flibs=yes
6372                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6373                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6374echo "${ECHO_T}yes: $use_blas" >&6
6375
6376
6377else
6378  echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381LIBS="$flink_save_libs"
6382                     echo "$as_me:$LINENO: result: no" >&5
6383echo "${ECHO_T}no" >&6
6384fi
6385rm -f conftest.err conftest.$ac_objext \
6386      conftest$ac_exeext conftest.$ac_ext
6387      else
6388        echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
6390      fi
6391    fi
6392    ;;
6393  cc|cpp)
6394    ac_ext=f
6395ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6396ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6398case $ac_cv_f77_mangling in
6399  upper*) ac_val="DAXPY" ;;
6400  lower*) ac_val="daxpy" ;;
6401  *)      ac_val="unknown" ;;
6402esac
6403case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6404
6405cfuncdaxpy="$ac_val"
6406
6407ac_ext=c
6408ac_cpp='$CPP $CPPFLAGS'
6409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
6413    if test x"$coin_need_flibs" = xyes; then
6414      flink_try=no;
6415    else
6416      cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h.  */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h.  */
6422extern "C" {void $cfuncdaxpy();}
6423#ifdef F77_DUMMY_MAIN
6424
6425#  ifdef __cplusplus
6426     extern "C"
6427#  endif
6428   int F77_DUMMY_MAIN() { return 1; }
6429
6430#endif
6431int
6432main ()
6433{
6434$cfuncdaxpy()
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext conftest$ac_exeext
6440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441  (eval $ac_link) 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448         { ac_try='test -z "$ac_c_werror_flag"
6449                         || test ! -s conftest.err'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; } &&
6455         { ac_try='test -s conftest$ac_exeext'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; }; then
6461  flink_try=yes
6462else
6463  echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466flink_try=no
6467fi
6468rm -f conftest.err conftest.$ac_objext \
6469      conftest$ac_exeext conftest.$ac_ext
6470    fi
6471    if test $flink_try = yes; then
6472      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6473                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6474echo "${ECHO_T}yes: $use_blas" >&6
6475
6476    else
6477      if test x"$FLIBS" != x; then
6478        flink_save_libs="$LIBS"
6479        LIBS="$LIBS $FLIBS"
6480        cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h.  */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
6485/* end confdefs.h.  */
6486extern "C" {void $cfuncdaxpy();}
6487#ifdef F77_DUMMY_MAIN
6488
6489#  ifdef __cplusplus
6490     extern "C"
6491#  endif
6492   int F77_DUMMY_MAIN() { return 1; }
6493
6494#endif
6495int
6496main ()
6497{
6498$cfuncdaxpy()
6499  ;
6500  return 0;
6501}
6502_ACEOF
6503rm -f conftest.$ac_objext conftest$ac_exeext
6504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505  (eval $ac_link) 2>conftest.er1
6506  ac_status=$?
6507  grep -v '^ *+' conftest.er1 >conftest.err
6508  rm -f conftest.er1
6509  cat conftest.err >&5
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); } &&
6512         { ac_try='test -z "$ac_c_werror_flag"
6513                         || test ! -s conftest.err'
6514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515  (eval $ac_try) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; } &&
6519         { ac_try='test -s conftest$ac_exeext'
6520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521  (eval $ac_try) 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; }; then
6525  LIBS="$flink_save_libs"
6526                     coin_need_flibs=yes
6527                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6528                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6529echo "${ECHO_T}yes: $use_blas" >&6
6530
6531
6532else
6533  echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
6535
6536LIBS="$flink_save_libs"
6537                     echo "$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      else
6543        echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545      fi
6546    fi
6547    ;;
6548esac
6549
6550          LIBS="$coin_save_LIBS"
6551
6552          if test "x$use_blas" = x ; then
6553            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6554echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6555            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6556            case $ac_ext in
6557  f)
6558    cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h.  */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h.  */
6564
6565#ifdef F77_DUMMY_MAIN
6566
6567#  ifdef __cplusplus
6568     extern "C"
6569#  endif
6570   int F77_DUMMY_MAIN() { return 1; }
6571
6572#endif
6573int
6574main ()
6575{
6576      call daxpy
6577  ;
6578  return 0;
6579}
6580_ACEOF
6581rm -f conftest.$ac_objext conftest$ac_exeext
6582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583  (eval $ac_link) 2>conftest.er1
6584  ac_status=$?
6585  grep -v '^ *+' conftest.er1 >conftest.err
6586  rm -f conftest.er1
6587  cat conftest.err >&5
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); } &&
6590         { ac_try='test -z "$ac_c_werror_flag"
6591                         || test ! -s conftest.err'
6592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593  (eval $ac_try) 2>&5
6594  ac_status=$?
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); }; } &&
6597         { ac_try='test -s conftest$ac_exeext'
6598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599  (eval $ac_try) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; }; then
6603  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6604                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6605echo "${ECHO_T}yes: $use_blas" >&6
6606
6607else
6608  echo "$as_me: failed program was:" >&5
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
6611echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6
6613fi
6614rm -f conftest.err conftest.$ac_objext \
6615      conftest$ac_exeext conftest.$ac_ext
6616    ;;
6617  c)
6618    ac_ext=f
6619ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6620ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6622case $ac_cv_f77_mangling in
6623  upper*) ac_val="DAXPY" ;;
6624  lower*) ac_val="daxpy" ;;
6625  *)      ac_val="unknown" ;;
6626esac
6627case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6628
6629cfuncdaxpy="$ac_val"
6630
6631ac_ext=c
6632ac_cpp='$CPP $CPPFLAGS'
6633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636
6637    if test x"$coin_need_flibs" = xyes; then
6638      flink_try=no;
6639    else
6640      cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h.  */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h.  */
6646void $cfuncdaxpy();
6647#ifdef F77_DUMMY_MAIN
6648
6649#  ifdef __cplusplus
6650     extern "C"
6651#  endif
6652   int F77_DUMMY_MAIN() { return 1; }
6653
6654#endif
6655int
6656main ()
6657{
6658$cfuncdaxpy()
6659  ;
6660  return 0;
6661}
6662_ACEOF
6663rm -f conftest.$ac_objext conftest$ac_exeext
6664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665  (eval $ac_link) 2>conftest.er1
6666  ac_status=$?
6667  grep -v '^ *+' conftest.er1 >conftest.err
6668  rm -f conftest.er1
6669  cat conftest.err >&5
6670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671  (exit $ac_status); } &&
6672         { ac_try='test -z "$ac_c_werror_flag"
6673                         || test ! -s conftest.err'
6674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675  (eval $ac_try) 2>&5
6676  ac_status=$?
6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678  (exit $ac_status); }; } &&
6679         { ac_try='test -s conftest$ac_exeext'
6680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681  (eval $ac_try) 2>&5
6682  ac_status=$?
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); }; }; then
6685  flink_try=yes
6686else
6687  echo "$as_me: failed program was:" >&5
6688sed 's/^/| /' conftest.$ac_ext >&5
6689
6690flink_try=no
6691fi
6692rm -f conftest.err conftest.$ac_objext \
6693      conftest$ac_exeext conftest.$ac_ext
6694    fi
6695    if test $flink_try = yes; then
6696      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6697                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6698echo "${ECHO_T}yes: $use_blas" >&6
6699
6700    else
6701      if test x"$FLIBS" != x; then
6702        flink_save_libs="$LIBS"
6703        LIBS="$LIBS $FLIBS"
6704        cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h.  */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
6709/* end confdefs.h.  */
6710void $cfuncdaxpy();
6711#ifdef F77_DUMMY_MAIN
6712
6713#  ifdef __cplusplus
6714     extern "C"
6715#  endif
6716   int F77_DUMMY_MAIN() { return 1; }
6717
6718#endif
6719int
6720main ()
6721{
6722$cfuncdaxpy()
6723  ;
6724  return 0;
6725}
6726_ACEOF
6727rm -f conftest.$ac_objext conftest$ac_exeext
6728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729  (eval $ac_link) 2>conftest.er1
6730  ac_status=$?
6731  grep -v '^ *+' conftest.er1 >conftest.err
6732  rm -f conftest.er1
6733  cat conftest.err >&5
6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735  (exit $ac_status); } &&
6736         { ac_try='test -z "$ac_c_werror_flag"
6737                         || test ! -s conftest.err'
6738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739  (eval $ac_try) 2>&5
6740  ac_status=$?
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); }; } &&
6743         { ac_try='test -s conftest$ac_exeext'
6744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745  (eval $ac_try) 2>&5
6746  ac_status=$?
6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748  (exit $ac_status); }; }; then
6749  LIBS="$flink_save_libs"
6750                     coin_need_flibs=yes
6751                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6752                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6753echo "${ECHO_T}yes: $use_blas" >&6
6754
6755
6756else
6757  echo "$as_me: failed program was:" >&5
6758sed 's/^/| /' conftest.$ac_ext >&5
6759
6760LIBS="$flink_save_libs"
6761                     echo "$as_me:$LINENO: result: no" >&5
6762echo "${ECHO_T}no" >&6
6763fi
6764rm -f conftest.err conftest.$ac_objext \
6765      conftest$ac_exeext conftest.$ac_ext
6766      else
6767        echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6
6769      fi
6770    fi
6771    ;;
6772  cc|cpp)
6773    ac_ext=f
6774ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6775ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6777case $ac_cv_f77_mangling in
6778  upper*) ac_val="DAXPY" ;;
6779  lower*) ac_val="daxpy" ;;
6780  *)      ac_val="unknown" ;;
6781esac
6782case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6783
6784cfuncdaxpy="$ac_val"
6785
6786ac_ext=c
6787ac_cpp='$CPP $CPPFLAGS'
6788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
6792    if test x"$coin_need_flibs" = xyes; then
6793      flink_try=no;
6794    else
6795      cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h.  */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h.  */
6801extern "C" {void $cfuncdaxpy();}
6802#ifdef F77_DUMMY_MAIN
6803
6804#  ifdef __cplusplus
6805     extern "C"
6806#  endif
6807   int F77_DUMMY_MAIN() { return 1; }
6808
6809#endif
6810int
6811main ()
6812{
6813$cfuncdaxpy()
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext conftest$ac_exeext
6819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820  (eval $ac_link) 2>conftest.er1
6821  ac_status=$?
6822  grep -v '^ *+' conftest.er1 >conftest.err
6823  rm -f conftest.er1
6824  cat conftest.err >&5
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); } &&
6827         { ac_try='test -z "$ac_c_werror_flag"
6828                         || test ! -s conftest.err'
6829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830  (eval $ac_try) 2>&5
6831  ac_status=$?
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); }; } &&
6834         { ac_try='test -s conftest$ac_exeext'
6835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836  (eval $ac_try) 2>&5
6837  ac_status=$?
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); }; }; then
6840  flink_try=yes
6841else
6842  echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
6845flink_try=no
6846fi
6847rm -f conftest.err conftest.$ac_objext \
6848      conftest$ac_exeext conftest.$ac_ext
6849    fi
6850    if test $flink_try = yes; then
6851      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6852                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6853echo "${ECHO_T}yes: $use_blas" >&6
6854
6855    else
6856      if test x"$FLIBS" != x; then
6857        flink_save_libs="$LIBS"
6858        LIBS="$LIBS $FLIBS"
6859        cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865extern "C" {void $cfuncdaxpy();}
6866#ifdef F77_DUMMY_MAIN
6867
6868#  ifdef __cplusplus
6869     extern "C"
6870#  endif
6871   int F77_DUMMY_MAIN() { return 1; }
6872
6873#endif
6874int
6875main ()
6876{
6877$cfuncdaxpy()
6878  ;
6879  return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext conftest$ac_exeext
6883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884  (eval $ac_link) 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } &&
6891         { ac_try='test -z "$ac_c_werror_flag"
6892                         || test ! -s conftest.err'
6893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894  (eval $ac_try) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); }; } &&
6898         { ac_try='test -s conftest$ac_exeext'
6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900  (eval $ac_try) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); }; }; then
6904  LIBS="$flink_save_libs"
6905                     coin_need_flibs=yes
6906                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6907                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6908echo "${ECHO_T}yes: $use_blas" >&6
6909
6910
6911else
6912  echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915LIBS="$flink_save_libs"
6916                     echo "$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      else
6922        echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6
6924      fi
6925    fi
6926    ;;
6927esac
6928
6929            LIBS="$coin_save_LIBS"
6930          fi
6931          ;;
6932      esac
6933      ;;
6934
6935     *-darwin*)
6936      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
6937echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
6938      coin_need_flibs=no
6939      coin_save_LIBS="$LIBS"
6940      LIBS="-framework Accelerate $LIBS"
6941      case $ac_ext in
6942  f)
6943    cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h.  */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h.  */
6949
6950#ifdef F77_DUMMY_MAIN
6951
6952#  ifdef __cplusplus
6953     extern "C"
6954#  endif
6955   int F77_DUMMY_MAIN() { return 1; }
6956
6957#endif
6958int
6959main ()
6960{
6961      call daxpy
6962  ;
6963  return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext conftest$ac_exeext
6967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968  (eval $ac_link) 2>conftest.er1
6969  ac_status=$?
6970  grep -v '^ *+' conftest.er1 >conftest.err
6971  rm -f conftest.er1
6972  cat conftest.err >&5
6973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974  (exit $ac_status); } &&
6975         { ac_try='test -z "$ac_c_werror_flag"
6976                         || test ! -s conftest.err'
6977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978  (eval $ac_try) 2>&5
6979  ac_status=$?
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); }; } &&
6982         { ac_try='test -s conftest$ac_exeext'
6983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984  (eval $ac_try) 2>&5
6985  ac_status=$?
6986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987  (exit $ac_status); }; }; then
6988  use_blas='-framework Accelerate'
6989                         if test $coin_need_flibs = yes ; then
6990                           use_blas="$use_blas $FLIBS"
6991                         fi
6992                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6993echo "${ECHO_T}yes: $use_blas" >&6
6994
6995else
6996  echo "$as_me: failed program was:" >&5
6997sed 's/^/| /' conftest.$ac_ext >&5
6998
6999echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
7001fi
7002rm -f conftest.err conftest.$ac_objext \
7003      conftest$ac_exeext conftest.$ac_ext
7004    ;;
7005  c)
7006    ac_ext=f
7007ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7008ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7010case $ac_cv_f77_mangling in
7011  upper*) ac_val="DAXPY" ;;
7012  lower*) ac_val="daxpy" ;;
7013  *)      ac_val="unknown" ;;
7014esac
7015case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7016
7017cfuncdaxpy="$ac_val"
7018
7019ac_ext=c
7020ac_cpp='$CPP $CPPFLAGS'
7021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025    if test x"$coin_need_flibs" = xyes; then
7026      flink_try=no;
7027    else
7028      cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h.  */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h.  */
7034void $cfuncdaxpy();
7035#ifdef F77_DUMMY_MAIN
7036
7037#  ifdef __cplusplus
7038     extern "C"
7039#  endif
7040   int F77_DUMMY_MAIN() { return 1; }
7041
7042#endif
7043int
7044main ()
7045{
7046$cfuncdaxpy()
7047  ;
7048  return 0;
7049}
7050_ACEOF
7051rm -f conftest.$ac_objext conftest$ac_exeext
7052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053  (eval $ac_link) 2>conftest.er1
7054  ac_status=$?
7055  grep -v '^ *+' conftest.er1 >conftest.err
7056  rm -f conftest.er1
7057  cat conftest.err >&5
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } &&
7060         { ac_try='test -z "$ac_c_werror_flag"
7061                         || test ! -s conftest.err'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; } &&
7067         { ac_try='test -s conftest$ac_exeext'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; }; then
7073  flink_try=yes
7074else
7075  echo "$as_me: failed program was:" >&5
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
7078flink_try=no
7079fi
7080rm -f conftest.err conftest.$ac_objext \
7081      conftest$ac_exeext conftest.$ac_ext
7082    fi
7083    if test $flink_try = yes; then
7084      use_blas='-framework Accelerate'
7085                         if test $coin_need_flibs = yes ; then
7086                           use_blas="$use_blas $FLIBS"
7087                         fi
7088                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7089echo "${ECHO_T}yes: $use_blas" >&6
7090
7091    else
7092      if test x"$FLIBS" != x; then
7093        flink_save_libs="$LIBS"
7094        LIBS="$LIBS $FLIBS"
7095        cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h.  */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h.  */
7101void $cfuncdaxpy();
7102#ifdef F77_DUMMY_MAIN
7103
7104#  ifdef __cplusplus
7105     extern "C"
7106#  endif
7107   int F77_DUMMY_MAIN() { return 1; }
7108
7109#endif
7110int
7111main ()
7112{
7113$cfuncdaxpy()
7114  ;
7115  return 0;
7116}
7117_ACEOF
7118rm -f conftest.$ac_objext conftest$ac_exeext
7119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120  (eval $ac_link) 2>conftest.er1
7121  ac_status=$?
7122  grep -v '^ *+' conftest.er1 >conftest.err
7123  rm -f conftest.er1
7124  cat conftest.err >&5
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); } &&
7127         { ac_try='test -z "$ac_c_werror_flag"
7128                         || test ! -s conftest.err'
7129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130  (eval $ac_try) 2>&5
7131  ac_status=$?
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); }; } &&
7134         { ac_try='test -s conftest$ac_exeext'
7135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136  (eval $ac_try) 2>&5
7137  ac_status=$?
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); }; }; then
7140  LIBS="$flink_save_libs"
7141                     coin_need_flibs=yes
7142                     use_blas='-framework Accelerate'
7143                         if test $coin_need_flibs = yes ; then
7144                           use_blas="$use_blas $FLIBS"
7145                         fi
7146                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7147echo "${ECHO_T}yes: $use_blas" >&6
7148
7149
7150else
7151  echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154LIBS="$flink_save_libs"
7155                     echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6
7157fi
7158rm -f conftest.err conftest.$ac_objext \
7159      conftest$ac_exeext conftest.$ac_ext
7160      else
7161        echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6
7163      fi
7164    fi
7165    ;;
7166  cc|cpp)
7167    ac_ext=f
7168ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7169ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7171case $ac_cv_f77_mangling in
7172  upper*) ac_val="DAXPY" ;;
7173  lower*) ac_val="daxpy" ;;
7174  *)      ac_val="unknown" ;;
7175esac
7176case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7177
7178cfuncdaxpy="$ac_val"
7179
7180ac_ext=c
7181ac_cpp='$CPP $CPPFLAGS'
7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186    if test x"$coin_need_flibs" = xyes; then
7187      flink_try=no;
7188    else
7189      cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h.  */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h.  */
7195extern "C" {void $cfuncdaxpy();}
7196#ifdef F77_DUMMY_MAIN
7197
7198#  ifdef __cplusplus
7199     extern "C"
7200#  endif
7201   int F77_DUMMY_MAIN() { return 1; }
7202
7203#endif
7204int
7205main ()
7206{
7207$cfuncdaxpy()
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212rm -f conftest.$ac_objext conftest$ac_exeext
7213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214  (eval $ac_link) 2>conftest.er1
7215  ac_status=$?
7216  grep -v '^ *+' conftest.er1 >conftest.err
7217  rm -f conftest.er1
7218  cat conftest.err >&5
7219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); } &&
7221         { ac_try='test -z "$ac_c_werror_flag"
7222                         || test ! -s conftest.err'
7223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224  (eval $ac_try) 2>&5
7225  ac_status=$?
7226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227  (exit $ac_status); }; } &&
7228         { ac_try='test -s conftest$ac_exeext'
7229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230  (eval $ac_try) 2>&5
7231  ac_status=$?
7232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233  (exit $ac_status); }; }; then
7234  flink_try=yes
7235else
7236  echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239flink_try=no
7240fi
7241rm -f conftest.err conftest.$ac_objext \
7242      conftest$ac_exeext conftest.$ac_ext
7243    fi
7244    if test $flink_try = yes; then
7245      use_blas='-framework Accelerate'
7246                         if test $coin_need_flibs = yes ; then
7247                           use_blas="$use_blas $FLIBS"
7248                         fi
7249                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7250echo "${ECHO_T}yes: $use_blas" >&6
7251
7252    else
7253      if test x"$FLIBS" != x; then
7254        flink_save_libs="$LIBS"
7255        LIBS="$LIBS $FLIBS"
7256        cat >conftest.$ac_ext <<_ACEOF
7257/* confdefs.h.  */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h.  */
7262extern "C" {void $cfuncdaxpy();}
7263#ifdef F77_DUMMY_MAIN
7264
7265#  ifdef __cplusplus
7266     extern "C"
7267#  endif
7268   int F77_DUMMY_MAIN() { return 1; }
7269
7270#endif
7271int
7272main ()
7273{
7274$cfuncdaxpy()
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279rm -f conftest.$ac_objext conftest$ac_exeext
7280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281  (eval $ac_link) 2>conftest.er1
7282  ac_status=$?
7283  grep -v '^ *+' conftest.er1 >conftest.err
7284  rm -f conftest.er1
7285  cat conftest.err >&5
7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287  (exit $ac_status); } &&
7288         { ac_try='test -z "$ac_c_werror_flag"
7289                         || test ! -s conftest.err'
7290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291  (eval $ac_try) 2>&5
7292  ac_status=$?
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); }; } &&
7295         { ac_try='test -s conftest$ac_exeext'
7296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297  (eval $ac_try) 2>&5
7298  ac_status=$?
7299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300  (exit $ac_status); }; }; then
7301  LIBS="$flink_save_libs"
7302                     coin_need_flibs=yes
7303                     use_blas='-framework Accelerate'
7304                         if test $coin_need_flibs = yes ; then
7305                           use_blas="$use_blas $FLIBS"
7306                         fi
7307                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7308echo "${ECHO_T}yes: $use_blas" >&6
7309
7310
7311else
7312  echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315LIBS="$flink_save_libs"
7316                     echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6
7318fi
7319rm -f conftest.err conftest.$ac_objext \
7320      conftest$ac_exeext conftest.$ac_ext
7321      else
7322        echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6
7324      fi
7325    fi
7326    ;;
7327esac
7328
7329      LIBS="$coin_save_LIBS"
7330      ;;
7331  esac
7332
7333  if test -z "$use_blas" ; then
7334    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7335echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7336    coin_need_flibs=no
7337    coin_save_LIBS="$LIBS"
7338    LIBS="-lblas $LIBS"
7339    case $ac_ext in
7340  f)
7341    cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h.  */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h.  */
7347
7348#ifdef F77_DUMMY_MAIN
7349
7350#  ifdef __cplusplus
7351     extern "C"
7352#  endif
7353   int F77_DUMMY_MAIN() { return 1; }
7354
7355#endif
7356int
7357main ()
7358{
7359      call daxpy
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext conftest$ac_exeext
7365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366  (eval $ac_link) 2>conftest.er1
7367  ac_status=$?
7368  grep -v '^ *+' conftest.er1 >conftest.err
7369  rm -f conftest.er1
7370  cat conftest.err >&5
7371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372  (exit $ac_status); } &&
7373         { ac_try='test -z "$ac_c_werror_flag"
7374                         || test ! -s conftest.err'
7375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376  (eval $ac_try) 2>&5
7377  ac_status=$?
7378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379  (exit $ac_status); }; } &&
7380         { ac_try='test -s conftest$ac_exeext'
7381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382  (eval $ac_try) 2>&5
7383  ac_status=$?
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); }; }; then
7386  use_blas='-lblas'
7387                       if test $coin_need_flibs = yes ; then
7388                         use_blas="$use_blas $FLIBS"
7389                       fi
7390                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7391echo "${ECHO_T}yes: $use_blas" >&6
7392
7393else
7394  echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6
7399fi
7400rm -f conftest.err conftest.$ac_objext \
7401      conftest$ac_exeext conftest.$ac_ext
7402    ;;
7403  c)
7404    ac_ext=f
7405ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7406ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7408case $ac_cv_f77_mangling in
7409  upper*) ac_val="DAXPY" ;;
7410  lower*) ac_val="daxpy" ;;
7411  *)      ac_val="unknown" ;;
7412esac
7413case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7414
7415cfuncdaxpy="$ac_val"
7416
7417ac_ext=c
7418ac_cpp='$CPP $CPPFLAGS'
7419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421ac_compiler_gnu=$ac_cv_c_compiler_gnu
7422
7423    if test x"$coin_need_flibs" = xyes; then
7424      flink_try=no;
7425    else
7426      cat >conftest.$ac_ext <<_ACEOF
7427/* confdefs.h.  */
7428_ACEOF
7429cat confdefs.h >>conftest.$ac_ext
7430cat >>conftest.$ac_ext <<_ACEOF
7431/* end confdefs.h.  */
7432void $cfuncdaxpy();
7433#ifdef F77_DUMMY_MAIN
7434
7435#  ifdef __cplusplus
7436     extern "C"
7437#  endif
7438   int F77_DUMMY_MAIN() { return 1; }
7439
7440#endif
7441int
7442main ()
7443{
7444$cfuncdaxpy()
7445  ;
7446  return 0;
7447}
7448_ACEOF
7449rm -f conftest.$ac_objext conftest$ac_exeext
7450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451  (eval $ac_link) 2>conftest.er1
7452  ac_status=$?
7453  grep -v '^ *+' conftest.er1 >conftest.err
7454  rm -f conftest.er1
7455  cat conftest.err >&5
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); } &&
7458         { ac_try='test -z "$ac_c_werror_flag"
7459                         || test ! -s conftest.err'
7460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461  (eval $ac_try) 2>&5
7462  ac_status=$?
7463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464  (exit $ac_status); }; } &&
7465         { ac_try='test -s conftest$ac_exeext'
7466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467  (eval $ac_try) 2>&5
7468  ac_status=$?
7469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470  (exit $ac_status); }; }; then
7471  flink_try=yes
7472else
7473  echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476flink_try=no
7477fi
7478rm -f conftest.err conftest.$ac_objext \
7479      conftest$ac_exeext conftest.$ac_ext
7480    fi
7481    if test $flink_try = yes; then
7482      use_blas='-lblas'
7483                       if test $coin_need_flibs = yes ; then
7484                         use_blas="$use_blas $FLIBS"
7485                       fi
7486                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7487echo "${ECHO_T}yes: $use_blas" >&6
7488
7489    else
7490      if test x"$FLIBS" != x; then
7491        flink_save_libs="$LIBS"
7492        LIBS="$LIBS $FLIBS"
7493        cat >conftest.$ac_ext <<_ACEOF
7494/* confdefs.h.  */
7495_ACEOF
7496cat confdefs.h >>conftest.$ac_ext
7497cat >>conftest.$ac_ext <<_ACEOF
7498/* end confdefs.h.  */
7499void $cfuncdaxpy();
7500#ifdef F77_DUMMY_MAIN
7501
7502#  ifdef __cplusplus
7503     extern "C"
7504#  endif
7505   int F77_DUMMY_MAIN() { return 1; }
7506
7507#endif
7508int
7509main ()
7510{
7511$cfuncdaxpy()
7512  ;
7513  return 0;
7514}
7515_ACEOF
7516rm -f conftest.$ac_objext conftest$ac_exeext
7517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518  (eval $ac_link) 2>conftest.er1
7519  ac_status=$?
7520  grep -v '^ *+' conftest.er1 >conftest.err
7521  rm -f conftest.er1
7522  cat conftest.err >&5
7523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524  (exit $ac_status); } &&
7525         { ac_try='test -z "$ac_c_werror_flag"
7526                         || test ! -s conftest.err'
7527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528  (eval $ac_try) 2>&5
7529  ac_status=$?
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); }; } &&
7532         { ac_try='test -s conftest$ac_exeext'
7533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534  (eval $ac_try) 2>&5
7535  ac_status=$?
7536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537  (exit $ac_status); }; }; then
7538  LIBS="$flink_save_libs"
7539                     coin_need_flibs=yes
7540                     use_blas='-lblas'
7541                       if test $coin_need_flibs = yes ; then
7542                         use_blas="$use_blas $FLIBS"
7543                       fi
7544                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7545echo "${ECHO_T}yes: $use_blas" >&6
7546
7547
7548else
7549  echo "$as_me: failed program was:" >&5
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552LIBS="$flink_save_libs"
7553                     echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556rm -f conftest.err conftest.$ac_objext \
7557      conftest$ac_exeext conftest.$ac_ext
7558      else
7559        echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
7561      fi
7562    fi
7563    ;;
7564  cc|cpp)
7565    ac_ext=f
7566ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7567ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7569case $ac_cv_f77_mangling in
7570  upper*) ac_val="DAXPY" ;;
7571  lower*) ac_val="daxpy" ;;
7572  *)      ac_val="unknown" ;;
7573esac
7574case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7575
7576cfuncdaxpy="$ac_val"
7577
7578ac_ext=c
7579ac_cpp='$CPP $CPPFLAGS'
7580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
7584    if test x"$coin_need_flibs" = xyes; then
7585      flink_try=no;
7586    else
7587      cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h.  */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h.  */
7593extern "C" {void $cfuncdaxpy();}
7594#ifdef F77_DUMMY_MAIN
7595
7596#  ifdef __cplusplus
7597     extern "C"
7598#  endif
7599   int F77_DUMMY_MAIN() { return 1; }
7600
7601#endif
7602int
7603main ()
7604{
7605$cfuncdaxpy()
7606  ;
7607  return 0;
7608}
7609_ACEOF
7610rm -f conftest.$ac_objext conftest$ac_exeext
7611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612  (eval $ac_link) 2>conftest.er1
7613  ac_status=$?
7614  grep -v '^ *+' conftest.er1 >conftest.err
7615  rm -f conftest.er1
7616  cat conftest.err >&5
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); } &&
7619         { ac_try='test -z "$ac_c_werror_flag"
7620                         || test ! -s conftest.err'
7621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622  (eval $ac_try) 2>&5
7623  ac_status=$?
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); }; } &&
7626         { ac_try='test -s conftest$ac_exeext'
7627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628  (eval $ac_try) 2>&5
7629  ac_status=$?
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); }; }; then
7632  flink_try=yes
7633else
7634  echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
7637flink_try=no
7638fi
7639rm -f conftest.err conftest.$ac_objext \
7640      conftest$ac_exeext conftest.$ac_ext
7641    fi
7642    if test $flink_try = yes; then
7643      use_blas='-lblas'
7644                       if test $coin_need_flibs = yes ; then
7645                         use_blas="$use_blas $FLIBS"
7646                       fi
7647                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7648echo "${ECHO_T}yes: $use_blas" >&6
7649
7650    else
7651      if test x"$FLIBS" != x; then
7652        flink_save_libs="$LIBS"
7653        LIBS="$LIBS $FLIBS"
7654        cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h.  */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h.  */
7660extern "C" {void $cfuncdaxpy();}
7661#ifdef F77_DUMMY_MAIN
7662
7663#  ifdef __cplusplus
7664     extern "C"
7665#  endif
7666   int F77_DUMMY_MAIN() { return 1; }
7667
7668#endif
7669int
7670main ()
7671{
7672$cfuncdaxpy()
7673  ;
7674  return 0;
7675}
7676_ACEOF
7677rm -f conftest.$ac_objext conftest$ac_exeext
7678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679  (eval $ac_link) 2>conftest.er1
7680  ac_status=$?
7681  grep -v '^ *+' conftest.er1 >conftest.err
7682  rm -f conftest.er1
7683  cat conftest.err >&5
7684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685  (exit $ac_status); } &&
7686         { ac_try='test -z "$ac_c_werror_flag"
7687                         || test ! -s conftest.err'
7688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689  (eval $ac_try) 2>&5
7690  ac_status=$?
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); }; } &&
7693         { ac_try='test -s conftest$ac_exeext'
7694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695  (eval $ac_try) 2>&5
7696  ac_status=$?
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); }; }; then
7699  LIBS="$flink_save_libs"
7700                     coin_need_flibs=yes
7701                     use_blas='-lblas'
7702                       if test $coin_need_flibs = yes ; then
7703                         use_blas="$use_blas $FLIBS"
7704                       fi
7705                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7706echo "${ECHO_T}yes: $use_blas" >&6
7707
7708
7709else
7710  echo "$as_me: failed program was:" >&5
7711sed 's/^/| /' conftest.$ac_ext >&5
7712
7713LIBS="$flink_save_libs"
7714                     echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716fi
7717rm -f conftest.err conftest.$ac_objext \
7718      conftest$ac_exeext conftest.$ac_ext
7719      else
7720        echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6
7722      fi
7723    fi
7724    ;;
7725esac
7726
7727    LIBS="$coin_save_LIBS"
7728  fi
7729
7730  # If we have no other ideas, consider building BLAS.
7731  if test -z "$use_blas" ; then
7732    use_blas=BUILD
7733  fi
7734fi
7735
7736if test "x$use_blas" = xBUILD ; then
7737
7738echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
7739echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
7740
7741coin_has_blas=notGiven
7742
7743# check if user wants to skip package in any case
7744if test x"$COIN_SKIP_PROJECTS" != x; then
7745  for dir in $COIN_SKIP_PROJECTS; do
7746    if test $dir = "Blas"; then
7747      coin_has_blas=skipping
7748    fi
7749  done
7750fi
7751
7752if test "$coin_has_blas" != skipping; then
7753
7754# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
7755if test "${with_blas+set}" = set; then
7756  withval="$with_blas"
7757  if test "$withval" = no ; then
7758       coin_has_blas=skipping
7759     fi
7760
7761fi;
7762fi
7763
7764BLAS_LIBS=
7765BLAS_CFLAGS=
7766BLAS_DATA=
7767BLAS_DEPENDENCIES=
7768BLAS_PCLIBS=
7769BLAS_PCREQUIRES=
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
7788if test $coin_has_blas != skipping; then
7789
7790# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
7791if test "${with_blas_lib+set}" = set; then
7792  withval="$with_blas_lib"
7793  if test "$withval" = no ; then
7794       coin_has_blas=skipping
7795     else
7796       coin_has_blas=yes
7797       BLAS_LIBS="$withval"
7798       BLAS_PCLIBS="$withval"
7799
7800         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
7801         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
7802
7803       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7804       if test -z "$PKG_CONFIG" ; then
7805         BLAS_LIBS_INSTALLED="$withval"
7806         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
7807       fi
7808     fi
7809
7810fi;
7811fi
7812
7813if test $coin_has_blas != skipping; then
7814
7815# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
7816if test "${with_blas_incdir+set}" = set; then
7817  withval="$with_blas_incdir"
7818  if test "$withval" = no ; then
7819       coin_has_blas=skipping
7820     else
7821       coin_has_blas=yes
7822       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
7823       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
7824       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7825       if test -z "$PKG_CONFIG" ; then
7826         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
7827         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
7828       fi
7829     fi
7830
7831fi;
7832fi
7833
7834if test $coin_has_blas != skipping; then
7835
7836# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
7837if test "${with_blas_datadir+set}" = set; then
7838  withval="$with_blas_datadir"
7839  if test "$withval" = no ; then
7840       coin_has_blas=skipping
7841     else
7842       coin_has_blas=yes
7843       BLAS_DATA="$withval"
7844       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7845       if test -z "$PKG_CONFIG" ; then
7846         BLAS_DATA_INSTALLED="$withval"
7847       fi
7848     fi
7849
7850fi;
7851fi
7852
7853if test $coin_has_blas = notGiven; then
7854  if test -n "$PKG_CONFIG" ; then
7855    # set search path for pkg-config
7856    # need to export variable to be sure that the following pkg-config gets these values
7857    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
7858    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
7859    export PKG_CONFIG_PATH
7860
7861    # let pkg-config do it's magic
7862
7863
7864
7865if test -n "$PKG_CONFIG" ; then
7866  if $PKG_CONFIG --exists "coinblas"; then
7867    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
7868     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
7869    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
7870        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
7871        # but only do this if is not trivial
7872    if test "$CYGPATH_W" != "echo" ; then
7873      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
7874      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
7875    fi
7876    BLAS_CFLAGS="$cflags"
7877    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
7878    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
7879     coin_has_blas=yes
7880        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
7881echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
7882
7883        # adjust linker flags for (i)cl compiler
7884        # 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)
7885        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
7886        then
7887          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
7888        fi
7889        BLAS_PCREQUIRES="coinblas"
7890
7891        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
7892
7893          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
7894          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
7895          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
7896
7897
7898
7899  else
7900    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
7901      coin_has_blas=notGiven
7902        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
7903echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
7904
7905  fi
7906else
7907  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
7908echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
7909   { (exit 1); exit 1; }; }
7910fi
7911
7912
7913
7914
7915    # reset PKG_CONFIG_PATH variable
7916    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
7917    export PKG_CONFIG_PATH
7918
7919  else
7920    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
7921echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
7922
7923echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
7924echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
7925
7926coin_has_blas=notGiven
7927BLAS_LIBS=
7928BLAS_LIBS_INSTALLED=
7929BLAS_CFLAGS=
7930BLAS_CFLAGS_INSTALLED=
7931BLAS_DATA=
7932BLAS_DATA_INSTALLED=
7933BLAS_PCLIBS=
7934BLAS_PCREQUIRES=
7935
7936# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
7937projtoprocess="coinblas"
7938
7939# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
7940# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
7941# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
7942# also, we setup the DATA variable
7943allproj=""
7944allpcfiles=""
7945allpcifiles=""
7946while test "x$projtoprocess" != x ; do
7947
7948  for proj in $projtoprocess ; do
7949    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
7950    pcfile=""
7951    save_IFS="$IFS"
7952    IFS=":"
7953    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
7954      # 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
7955      if test -r "$dir/${proj}-uninstalled.pc" ; then
7956        pcfile="$dir/$proj-uninstalled.pc"
7957        if test -r "$dir/${proj}.pc" ; then
7958          pcifile="$dir/${proj}.pc"
7959        else
7960          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
7961echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
7962          pcifile=
7963        fi
7964        break
7965      fi
7966    done
7967    IFS="$save_IFS"
7968
7969    if test "x$pcfile" != x ; then
7970      # read dependencies from $pcfile and filter it
7971      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
7972
7973      # add projrequires to the front of the list of projects that have to be processed next
7974      # at the same time, remove $proj from this list
7975      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
7976
7977      # read DATA from $pcfile, if _DATA is still empty
7978      if test "x$BLAS_DATA" = x ; then
7979        projdatadir=
7980        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
7981        eval `sh -c "$pcfilemod"`
7982        BLAS_DATA="$projdatadir"
7983      fi
7984
7985      allproj="$allproj $proj"
7986      allpcfiles="$pcfile:$allpcfiles"
7987
7988    else
7989      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
7990echo "${ECHO_T}no, dependency $proj not available" >&6
7991      allproj=fail
7992      break 2
7993    fi
7994
7995    if test "x$pcifile" != x ; then
7996      allpcifiles="$pcifile:$allpcifiles"
7997
7998      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
7999      if test "x$BLAS_DATA_INSTALLED" = x ; then
8000        projdatadir=
8001        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
8002        eval `sh -c "$pcifilemod"`
8003        if test "${CYGPATH_W}" != "echo"; then
8004          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8005        fi
8006        BLAS_DATA_INSTALLED="$projdatadir"
8007      fi
8008
8009    fi
8010
8011    break
8012  done
8013
8014  # remove spaces on begin of $projtoprocess
8015  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8016
8017done
8018
8019if test "$allproj" != fail ; then
8020
8021  # now go through the list of .pc files and assemble compiler and linker flags
8022  # important is here to obey the reverse order that has been setup before,
8023  # since then libraries that are required by several others should be after these other libraries
8024  pcfilesprocessed=""
8025
8026  save_IFS="$IFS"
8027  IFS=":"
8028  for pcfile in $allpcfiles ; do
8029
8030    # if $pcfile has been processed already, skip this round
8031    if test "x$pcfilesprocessed" != x ; then
8032      for pcfiledone in $pcfilesprocessed ; do
8033        if test "$pcfiledone" = "$pcfile" ; then
8034          continue 2
8035        fi
8036      done
8037    fi
8038
8039    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8040    #   replace "Libs:" by "echo projlibs="
8041    #   replace "Cflags:" by "echo projcflags="
8042    #   remove every line starting with <some word>:
8043    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8044
8045    # set projcflags and projlibs variables by running $pcfilemod
8046    # 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
8047    projcflags=
8048    projlibs=
8049    IFS="$save_IFS"
8050    eval `sh -c "$pcfilemod"`
8051    IFS=":"
8052
8053    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8054    if test "${CYGPATH_W}" != "echo"; then
8055      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8056    fi
8057    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8058
8059    # set LIBS variable
8060    BLAS_LIBS="$projlibs $BLAS_LIBS"
8061
8062    # remember that we have processed $pcfile
8063    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8064
8065  done
8066  IFS="$save_IFS"
8067
8068
8069  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8070  # important is here again to obey the reverse order that has been setup before,
8071  # since then libraries that are required by several others should be after these other libraries
8072  pcfilesprocessed=""
8073
8074  save_IFS="$IFS"
8075  IFS=":"
8076  for pcfile in $allpcifiles ; do
8077
8078    # if $pcfile has been processed already, skip this round
8079    if test "x$pcfilesprocessed" != x ; then
8080      for pcfiledone in $pcfilesprocessed ; do
8081        if test "$pcfiledone" = "$pcfile" ; then
8082          continue 2
8083        fi
8084      done
8085    fi
8086
8087    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8088    #   replace "Libs:" by "echo projlibs="
8089    #   replace "Cflags:" by "echo projcflags="
8090    #   remove every line starting with <some word>:
8091    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8092
8093    # set projcflags and projlibs variables by running $pcfilemod
8094    # 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
8095    projcflags=
8096    projlibs=
8097    IFS="$save_IFS"
8098    eval `sh -c "$pcfilemod"`
8099    IFS=":"
8100
8101    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8102    if test "${CYGPATH_W}" != "echo"; then
8103      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8104    fi
8105    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8106
8107    # set LIBS variable
8108    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8109
8110    # remember that we have processed $pcfile
8111    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8112
8113  done
8114  IFS="$save_IFS"
8115
8116
8117  # finish up
8118  coin_has_blas=yes
8119  echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
8121
8122cat >>confdefs.h <<\_ACEOF
8123#define COIN_HAS_BLAS 1
8124_ACEOF
8125
8126
8127  # adjust linker flags for (i)cl compiler
8128  # 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),
8129  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8130  #    everything of the form "-lname" by "libname.lib", and
8131  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8132  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8133  then
8134    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8135    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'`
8136  fi
8137
8138  BLAS_PCREQUIRES="coinblas"
8139
8140    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8141    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8142    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8143    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8144    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8145
8146
8147fi
8148
8149
8150
8151if test $coin_has_blas != notGiven &&
8152                test $coin_has_blas != skipping; then
8153  COIN_HAS_BLAS_TRUE=
8154  COIN_HAS_BLAS_FALSE='#'
8155else
8156  COIN_HAS_BLAS_TRUE='#'
8157  COIN_HAS_BLAS_FALSE=
8158fi
8159
8160
8161
8162  fi
8163
8164else
8165  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8166echo "${ECHO_T}$coin_has_blas" >&6
8167fi
8168
8169if test $coin_has_blas != skipping &&
8170   test $coin_has_blas != notGiven ; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define COIN_HAS_BLAS 1
8174_ACEOF
8175
8176
8177  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8178if test "${enable_interpackage_dependencies+set}" = set; then
8179  enableval="$enable_interpackage_dependencies"
8180
8181else
8182  enable_interpackage_dependencies=yes
8183fi;
8184
8185  if test $enable_interpackage_dependencies = yes ; then
8186     # construct dependencies variables from LIBS variables
8187     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8188     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
8189     # then remove everything of the form -xxx
8190     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8191     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'`
8192
8193       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'`
8194
8195  fi
8196
8197  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8198    if test -n "$BLAS_CFLAGS" ; then
8199      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8200echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8201    fi
8202    if test -n "$BLAS_LIBS" ; then
8203      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8204echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8205    fi
8206    if test -n "$BLAS_DEPENDENCIES" ; then
8207      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8208echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8209    fi
8210    if test -n "$BLAS_DATA" ; then
8211      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8212echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8213    fi
8214    if test -n "$BLAS_PCLIBS" ; then
8215      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8216echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8217    fi
8218    if test -n "$BLAS_PCREQUIRES" ; then
8219      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8220echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8221    fi
8222
8223      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8224echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8225      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8226echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8227      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8228echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8229
8230  fi
8231fi
8232
8233# Define the Makefile conditional
8234
8235
8236if test $coin_has_blas != notGiven &&
8237                test $coin_has_blas != skipping; then
8238  COIN_HAS_BLAS_TRUE=
8239  COIN_HAS_BLAS_FALSE='#'
8240else
8241  COIN_HAS_BLAS_TRUE='#'
8242  COIN_HAS_BLAS_FALSE=
8243fi
8244
8245
8246
8247
8248elif test "x$use_blas" != x && test "$use_blas" != no; then
8249  coin_has_blas=yes
8250
8251
8252if test 0 = 0; then
8253  COIN_HAS_BLAS_TRUE=
8254  COIN_HAS_BLAS_FALSE='#'
8255else
8256  COIN_HAS_BLAS_TRUE='#'
8257  COIN_HAS_BLAS_FALSE=
8258fi
8259
8260
8261cat >>confdefs.h <<\_ACEOF
8262#define COIN_HAS_BLAS 1
8263_ACEOF
8264
8265  BLAS_LIBS="$use_blas"
8266  BLAS_CFLAGS=
8267  BLAS_DATA=
8268
8269
8270
8271
8272    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8273    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8274    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8275
8276
8277else
8278  coin_has_blas=no
8279
8280
8281if test 0 = 1; then
8282  COIN_HAS_BLAS_TRUE=
8283  COIN_HAS_BLAS_FALSE='#'
8284else
8285  COIN_HAS_BLAS_TRUE='#'
8286  COIN_HAS_BLAS_FALSE=
8287fi
8288
8289fi
8290
8291
8292
8293
8294
8295
8296
8297
8298if test $coin_has_blas != yes; then
8299  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8300echo "$as_me: error: Required package BLAS not found." >&2;}
8301   { (exit 1); exit 1; }; }
8302fi
8303
8304# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8305LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8306
8307# Take care that optimization is disbled for DLAMCH.F
8308
8309if test "x$DLAMCH_FFLAGS" = x ; then
8310  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8311  case $F77 in
8312    ifort* | */ifort* | IFORT* | */IFORT* )
8313      case $build in
8314        *-cygwin* | *-mingw*)
8315          DLAMCH_FFLAGS="$FFLAGS -Od"
8316          ;;
8317        *)
8318          DLAMCH_FFLAGS="$FFLAGS -O0"
8319          ;;
8320      esac
8321      ;;
8322    compile_f2c*)
8323      case "$CC" in
8324        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8325          DLAMCH_FFLAGS="$FFLAGS -Od"
8326        ;;
8327        *)
8328          DLAMCH_FFLAGS="$FFLAGS -O0"
8329        ;;
8330      esac
8331      ;;
8332    *)
8333      DLAMCH_FFLAGS="$FFLAGS -O0"
8334      ;;
8335  esac
8336fi
8337
8338
8339# Initialize autotools
8340{
8341
8342
8343
8344# START
8345
8346coin_disable_shared=no
8347# Test if force_shared has been set
8348if test "x" = xforce_shared; then
8349  if test x$enable_shared = xno; then
8350    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8351echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8352   { (exit 1); exit 1; }; }
8353  fi
8354  enable_shared=yes;
8355else
8356  case $build in
8357    *-cygwin* | *-mingw*)
8358      coin_disable_shared=yes
8359      if test x"$enable_shared" = xyes; then
8360        case "$CC" in
8361          clang* )
8362            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
8363echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
8364            ;;
8365          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8366            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
8367echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
8368            ;;
8369          *gcc*)
8370            if test x"$enable_dependency_linking" = xyes; then
8371              coin_disable_shared=no
8372            else
8373              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
8374echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
8375            fi
8376            ;;
8377          *)
8378            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
8379echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
8380            ;;
8381        esac
8382      fi
8383    ;;
8384    *-aix*)
8385      coin_disable_shared=yes
8386      platform=AIX
8387      if test x"$enable_shared" = xyes; then
8388        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
8389echo "$as_me: WARNING: Shared objects are not supported." >&2;}
8390      fi
8391    ;;
8392  esac
8393fi
8394if test x"$coin_disable_shared" = xyes; then
8395  if test x"$enable_shared" = xyes; then
8396    :
8397  else
8398    # we don't disable shared, because it was not selected anyway
8399    coin_disable_shared=no
8400  fi
8401  enable_shared=no
8402fi
8403# By default, we only want the shared objects to be compiled
8404# Check whether --enable-static or --disable-static was given.
8405if test "${enable_static+set}" = set; then
8406  enableval="$enable_static"
8407  p=${PACKAGE-default}
8408    case $enableval in
8409    yes) enable_static=yes ;;
8410    no) enable_static=no ;;
8411    *)
8412     enable_static=no
8413      # Look at the argument we got.  We use all the common list separators.
8414      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8415      for pkg in $enableval; do
8416        IFS="$lt_save_ifs"
8417        if test "X$pkg" = "X$p"; then
8418          enable_static=yes
8419        fi
8420      done
8421      IFS="$lt_save_ifs"
8422      ;;
8423    esac
8424else
8425  enable_static=no
8426fi;
8427
8428
8429
8430
8431# Initialize automake
8432echo "$as_me:$LINENO: checking for egrep" >&5
8433echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8434if test "${ac_cv_prog_egrep+set}" = set; then
8435  echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8438    then ac_cv_prog_egrep='grep -E'
8439    else ac_cv_prog_egrep='egrep'
8440    fi
8441fi
8442echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8443echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8444 EGREP=$ac_cv_prog_egrep
8445
8446
8447echo "$as_me:$LINENO: checking whether ln -s works" >&5
8448echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8449LN_S=$as_ln_s
8450if test "$LN_S" = "ln -s"; then
8451  echo "$as_me:$LINENO: result: yes" >&5
8452echo "${ECHO_T}yes" >&6
8453else
8454  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8455echo "${ECHO_T}no, using $LN_S" >&6
8456fi
8457
8458am__api_version="1.9"
8459# Find a good install program.  We prefer a C program (faster),
8460# so one script is as good as another.  But avoid the broken or
8461# incompatible versions:
8462# SysV /etc/install, /usr/sbin/install
8463# SunOS /usr/etc/install
8464# IRIX /sbin/install
8465# AIX /bin/install
8466# AmigaOS /C/install, which installs bootblocks on floppy discs
8467# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8468# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8469# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8470# OS/2's system install, which has a completely different semantic
8471# ./install, which can be erroneously created by make from ./install.sh.
8472echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8473echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8474if test -z "$INSTALL"; then
8475if test "${ac_cv_path_install+set}" = set; then
8476  echo $ECHO_N "(cached) $ECHO_C" >&6
8477else
8478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481  IFS=$as_save_IFS
8482  test -z "$as_dir" && as_dir=.
8483  # Account for people who put trailing slashes in PATH elements.
8484case $as_dir/ in
8485  ./ | .// | /cC/* | \
8486  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8487  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8488  /usr/ucb/* ) ;;
8489  *)
8490    # OSF1 and SCO ODT 3.0 have their own names for install.
8491    # Don't use installbsd from OSF since it installs stuff as root
8492    # by default.
8493    for ac_prog in ginstall scoinst install; do
8494      for ac_exec_ext in '' $ac_executable_extensions; do
8495        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8496          if test $ac_prog = install &&
8497            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8498            # AIX install.  It has an incompatible calling convention.
8499            :
8500          elif test $ac_prog = install &&
8501            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8502            # program-specific install script used by HP pwplus--don't use.
8503            :
8504          else
8505            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8506            break 3
8507          fi
8508        fi
8509      done
8510    done
8511    ;;
8512esac
8513done
8514
8515
8516fi
8517  if test "${ac_cv_path_install+set}" = set; then
8518    INSTALL=$ac_cv_path_install
8519  else
8520    # As a last resort, use the slow shell script.  We don't cache a
8521    # path for INSTALL within a source directory, because that will
8522    # break other packages using the cache if that directory is
8523    # removed, or if the path is relative.
8524    INSTALL=$ac_install_sh
8525  fi
8526fi
8527echo "$as_me:$LINENO: result: $INSTALL" >&5
8528echo "${ECHO_T}$INSTALL" >&6
8529
8530# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8531# It thinks the first close brace ends the variable substitution.
8532test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8533
8534test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8535
8536test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8537
8538echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8539echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8540# Just in case
8541sleep 1
8542echo timestamp > conftest.file
8543# Do `set' in a subshell so we don't clobber the current shell's
8544# arguments.  Must try -L first in case configure is actually a
8545# symlink; some systems play weird games with the mod time of symlinks
8546# (eg FreeBSD returns the mod time of the symlink's containing
8547# directory).
8548if (
8549   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8550   if test "$*" = "X"; then
8551      # -L didn't work.
8552      set X `ls -t $srcdir/configure conftest.file`
8553   fi
8554   rm -f conftest.file
8555   if test "$*" != "X $srcdir/configure conftest.file" \
8556      && test "$*" != "X conftest.file $srcdir/configure"; then
8557
8558      # If neither matched, then we have a broken ls.  This can happen
8559      # if, for instance, CONFIG_SHELL is bash and it inherits a
8560      # broken ls alias from the environment.  This has actually
8561      # happened.  Such a system could not be considered "sane".
8562      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8563alias in your environment" >&5
8564echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8565alias in your environment" >&2;}
8566   { (exit 1); exit 1; }; }
8567   fi
8568
8569   test "$2" = conftest.file
8570   )
8571then
8572   # Ok.
8573   :
8574else
8575   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8576Check your system clock" >&5
8577echo "$as_me: error: newly created file is older than distributed files!
8578Check your system clock" >&2;}
8579   { (exit 1); exit 1; }; }
8580fi
8581echo "$as_me:$LINENO: result: yes" >&5
8582echo "${ECHO_T}yes" >&6
8583test "$program_prefix" != NONE &&
8584  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8585# Use a double $ so make ignores it.
8586test "$program_suffix" != NONE &&
8587  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8588# Double any \ or $.  echo might interpret backslashes.
8589# By default was `s,x,x', remove it if useless.
8590cat <<\_ACEOF >conftest.sed
8591s/[\\$]/&&/g;s/;s,x,x,$//
8592_ACEOF
8593program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8594rm conftest.sed
8595
8596# expand $ac_aux_dir to an absolute path
8597am_aux_dir=`cd $ac_aux_dir && pwd`
8598
8599test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8600# Use eval to expand $SHELL
8601if eval "$MISSING --run true"; then
8602  am_missing_run="$MISSING --run "
8603else
8604  am_missing_run=
8605  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8606echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8607fi
8608
8609if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8610  # We used to keeping the `.' as first argument, in order to
8611  # allow $(mkdir_p) to be used without argument.  As in
8612  #   $(mkdir_p) $(somedir)
8613  # where $(somedir) is conditionally defined.  However this is wrong
8614  # for two reasons:
8615  #  1. if the package is installed by a user who cannot write `.'
8616  #     make install will fail,
8617  #  2. the above comment should most certainly read
8618  #     $(mkdir_p) $(DESTDIR)$(somedir)
8619  #     so it does not work when $(somedir) is undefined and
8620  #     $(DESTDIR) is not.
8621  #  To support the latter case, we have to write
8622  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8623  #  so the `.' trick is pointless.
8624  mkdir_p='mkdir -p --'
8625else
8626  # On NextStep and OpenStep, the `mkdir' command does not
8627  # recognize any option.  It will interpret all options as
8628  # directories to create, and then abort because `.' already
8629  # exists.
8630  for d in ./-p ./--version;
8631  do
8632    test -d $d && rmdir $d
8633  done
8634  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8635  if test -f "$ac_aux_dir/mkinstalldirs"; then
8636    mkdir_p='$(mkinstalldirs)'
8637  else
8638    mkdir_p='$(install_sh) -d'
8639  fi
8640fi
8641
8642for ac_prog in gawk mawk nawk awk
8643do
8644  # Extract the first word of "$ac_prog", so it can be a program name with args.
8645set dummy $ac_prog; ac_word=$2
8646echo "$as_me:$LINENO: checking for $ac_word" >&5
8647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8648if test "${ac_cv_prog_AWK+set}" = set; then
8649  echo $ECHO_N "(cached) $ECHO_C" >&6
8650else
8651  if test -n "$AWK"; then
8652  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8653else
8654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657  IFS=$as_save_IFS
8658  test -z "$as_dir" && as_dir=.
8659  for ac_exec_ext in '' $ac_executable_extensions; do
8660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661    ac_cv_prog_AWK="$ac_prog"
8662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8663    break 2
8664  fi
8665done
8666done
8667
8668fi
8669fi
8670AWK=$ac_cv_prog_AWK
8671if test -n "$AWK"; then
8672  echo "$as_me:$LINENO: result: $AWK" >&5
8673echo "${ECHO_T}$AWK" >&6
8674else
8675  echo "$as_me:$LINENO: result: no" >&5
8676echo "${ECHO_T}no" >&6
8677fi
8678
8679  test -n "$AWK" && break
8680done
8681
8682echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8683echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8684set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8685if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8686  echo $ECHO_N "(cached) $ECHO_C" >&6
8687else
8688  cat >conftest.make <<\_ACEOF
8689all:
8690        @echo 'ac_maketemp="$(MAKE)"'
8691_ACEOF
8692# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8693eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8694if test -n "$ac_maketemp"; then
8695  eval ac_cv_prog_make_${ac_make}_set=yes
8696else
8697  eval ac_cv_prog_make_${ac_make}_set=no
8698fi
8699rm -f conftest.make
8700fi
8701if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8702  echo "$as_me:$LINENO: result: yes" >&5
8703echo "${ECHO_T}yes" >&6
8704  SET_MAKE=
8705else
8706  echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
8708  SET_MAKE="MAKE=${MAKE-make}"
8709fi
8710
8711rm -rf .tst 2>/dev/null
8712mkdir .tst 2>/dev/null
8713if test -d .tst; then
8714  am__leading_dot=.
8715else
8716  am__leading_dot=_
8717fi
8718rmdir .tst 2>/dev/null
8719
8720DEPDIR="${am__leading_dot}deps"
8721
8722          ac_config_commands="$ac_config_commands depfiles"
8723
8724
8725am_make=${MAKE-make}
8726cat > confinc << 'END'
8727am__doit:
8728        @echo done
8729.PHONY: am__doit
8730END
8731# If we don't find an include directive, just comment out the code.
8732echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8733echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8734am__include="#"
8735am__quote=
8736_am_result=none
8737# First try GNU make style include.
8738echo "include confinc" > confmf
8739# We grep out `Entering directory' and `Leaving directory'
8740# messages which can occur if `w' ends up in MAKEFLAGS.
8741# In particular we don't look at `^make:' because GNU make might
8742# be invoked under some other name (usually "gmake"), in which
8743# case it prints its new name instead of `make'.
8744if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8745   am__include=include
8746   am__quote=
8747   _am_result=GNU
8748fi
8749# Now try BSD make style include.
8750if test "$am__include" = "#"; then
8751   echo '.include "confinc"' > confmf
8752   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8753      am__include=.include
8754      am__quote="\""
8755      _am_result=BSD
8756   fi
8757fi
8758
8759
8760echo "$as_me:$LINENO: result: $_am_result" >&5
8761echo "${ECHO_T}$_am_result" >&6
8762rm -f confinc confmf
8763
8764# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8765if test "${enable_dependency_tracking+set}" = set; then
8766  enableval="$enable_dependency_tracking"
8767
8768fi;
8769if test "x$enable_dependency_tracking" != xno; then
8770  am_depcomp="$ac_aux_dir/depcomp"
8771  AMDEPBACKSLASH='\'
8772fi
8773
8774
8775if test "x$enable_dependency_tracking" != xno; then
8776  AMDEP_TRUE=
8777  AMDEP_FALSE='#'
8778else
8779  AMDEP_TRUE='#'
8780  AMDEP_FALSE=
8781fi
8782
8783
8784
8785
8786
8787
8788# AC_MSG_NOTICE([Beginning automake initialisation.])
8789# Stuff for automake
8790# test to see if srcdir already configured
8791if test "`cd $srcdir && pwd`" != "`pwd`" &&
8792   test -f $srcdir/config.status; then
8793  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8794echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8795   { (exit 1); exit 1; }; }
8796fi
8797
8798# test whether we have cygpath
8799if test -z "$CYGPATH_W"; then
8800  if (cygpath --version) >/dev/null 2>/dev/null; then
8801    CYGPATH_W='cygpath -w'
8802  else
8803    CYGPATH_W=echo
8804  fi
8805fi
8806
8807
8808# Define the identity of the package.
8809 PACKAGE='thirdpartylapack'
8810 VERSION='1.5.4'
8811
8812
8813cat >>confdefs.h <<_ACEOF
8814#define PACKAGE "$PACKAGE"
8815_ACEOF
8816
8817
8818cat >>confdefs.h <<_ACEOF
8819#define VERSION "$VERSION"
8820_ACEOF
8821
8822# Some tools Automake needs.
8823
8824ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8825
8826
8827AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8828
8829
8830AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8831
8832
8833AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8834
8835
8836MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8837
8838install_sh=${install_sh-"$am_aux_dir/install-sh"}
8839
8840# Installed binaries are usually stripped using `strip' when the user
8841# run `make install-strip'.  However `strip' might not be the right
8842# tool to use in cross-compilation environments, therefore Automake
8843# will honor the `STRIP' environment variable to overrule this program.
8844if test "$cross_compiling" != no; then
8845  if test -n "$ac_tool_prefix"; then
8846  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8847set dummy ${ac_tool_prefix}strip; ac_word=$2
8848echo "$as_me:$LINENO: checking for $ac_word" >&5
8849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8850if test "${ac_cv_prog_STRIP+set}" = set; then
8851  echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853  if test -n "$STRIP"; then
8854  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8855else
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859  IFS=$as_save_IFS
8860  test -z "$as_dir" && as_dir=.
8861  for ac_exec_ext in '' $ac_executable_extensions; do
8862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865    break 2
8866  fi
8867done
8868done
8869
8870fi
8871fi
8872STRIP=$ac_cv_prog_STRIP
8873if test -n "$STRIP"; then
8874  echo "$as_me:$LINENO: result: $STRIP" >&5
8875echo "${ECHO_T}$STRIP" >&6
8876else
8877  echo "$as_me:$LINENO: result: no" >&5
8878echo "${ECHO_T}no" >&6
8879fi
8880
8881fi
8882if test -z "$ac_cv_prog_STRIP"; then
8883  ac_ct_STRIP=$STRIP
8884  # Extract the first word of "strip", so it can be a program name with args.
8885set dummy strip; ac_word=$2
8886echo "$as_me:$LINENO: checking for $ac_word" >&5
8887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8888if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8889  echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891  if test -n "$ac_ct_STRIP"; then
8892  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8893else
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897  IFS=$as_save_IFS
8898  test -z "$as_dir" && as_dir=.
8899  for ac_exec_ext in '' $ac_executable_extensions; do
8900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901    ac_cv_prog_ac_ct_STRIP="strip"
8902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8903    break 2
8904  fi
8905done
8906done
8907
8908  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8909fi
8910fi
8911ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8912if test -n "$ac_ct_STRIP"; then
8913  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8914echo "${ECHO_T}$ac_ct_STRIP" >&6
8915else
8916  echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
8918fi
8919
8920  STRIP=$ac_ct_STRIP
8921else
8922  STRIP="$ac_cv_prog_STRIP"
8923fi
8924
8925fi
8926INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8927
8928# We need awk for the "check" target.  The system "awk" is bad on
8929# some platforms.
8930# Always define AMTAR for backward compatibility.
8931
8932AMTAR=${AMTAR-"${am_missing_run}tar"}
8933
8934am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
8935
8936
8937
8938
8939depcc="$CC"   am_compiler_list=
8940
8941echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8942echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8943if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8944  echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8947  # We make a subdir and do the tests there.  Otherwise we can end up
8948  # making bogus files that we don't know about and never remove.  For
8949  # instance it was reported that on HP-UX the gcc test will end up
8950  # making a dummy file named `D' -- because `-MD' means `put the output
8951  # in D'.
8952  mkdir conftest.dir
8953  # Copy depcomp to subdir because otherwise we won't find it if we're
8954  # using a relative directory.
8955  cp "$am_depcomp" conftest.dir
8956  cd conftest.dir
8957  # We will build objects and dependencies in a subdirectory because
8958  # it helps to detect inapplicable dependency modes.  For instance
8959  # both Tru64's cc and ICC support -MD to output dependencies as a
8960  # side effect of compilation, but ICC will put the dependencies in
8961  # the current directory while Tru64 will put them in the object
8962  # directory.
8963  mkdir sub
8964
8965  am_cv_CC_dependencies_compiler_type=none
8966  if test "$am_compiler_list" = ""; then
8967     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8968  fi
8969  for depmode in $am_compiler_list; do
8970    # Setup a source with many dependencies, because some compilers
8971    # like to wrap large dependency lists on column 80 (with \), and
8972    # we should not choose a depcomp mode which is confused by this.
8973    #
8974    # We need to recreate these files for each test, as the compiler may
8975    # overwrite some of them when testing with obscure command lines.
8976    # This happens at least with the AIX C compiler.
8977    : > sub/conftest.c
8978    for i in 1 2 3 4 5 6; do
8979      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8980      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8981      # Solaris 8's {/usr,}/bin/sh.
8982      touch sub/conftst$i.h
8983    done
8984    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8985
8986    case $depmode in
8987    nosideeffect)
8988      # after this tag, mechanisms are not by side-effect, so they'll
8989      # only be used when explicitly requested
8990      if test "x$enable_dependency_tracking" = xyes; then
8991        continue
8992      else
8993        break
8994      fi
8995      ;;
8996    none) break ;;
8997    esac
8998    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8999    # mode.  It turns out that the SunPro C++ compiler does not properly
9000    # handle `-M -o', and we need to detect this.
9001    if depmode=$depmode \
9002       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9003       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9004       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9005         >/dev/null 2>conftest.err &&
9006       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9007       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9008       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9009      # icc doesn't choke on unknown options, it will just issue warnings
9010      # or remarks (even with -Werror).  So we grep stderr for any message
9011      # that says an option was ignored or not supported.
9012      # When given -MP, icc 7.0 and 7.1 complain thusly:
9013      #   icc: Command line warning: ignoring option '-M'; no argument required
9014      # The diagnosis changed in icc 8.0:
9015      #   icc: Command line remark: option '-MP' not supported
9016      if (grep 'ignoring option' conftest.err ||
9017          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9018        am_cv_CC_dependencies_compiler_type=$depmode
9019        break
9020      fi
9021    fi
9022  done
9023
9024  cd ..
9025  rm -rf conftest.dir
9026else
9027  am_cv_CC_dependencies_compiler_type=none
9028fi
9029
9030fi
9031echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9032echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9034
9035
9036
9037if
9038  test "x$enable_dependency_tracking" != xno \
9039  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9040  am__fastdepCC_TRUE=
9041  am__fastdepCC_FALSE='#'
9042else
9043  am__fastdepCC_TRUE='#'
9044  am__fastdepCC_FALSE=
9045fi
9046
9047
9048
9049echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9050echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9051    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9052if test "${enable_maintainer_mode+set}" = set; then
9053  enableval="$enable_maintainer_mode"
9054  USE_MAINTAINER_MODE=$enableval
9055else
9056  USE_MAINTAINER_MODE=no
9057fi;
9058  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9059echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9060
9061
9062if test $USE_MAINTAINER_MODE = yes; then
9063  MAINTAINER_MODE_TRUE=
9064  MAINTAINER_MODE_FALSE='#'
9065else
9066  MAINTAINER_MODE_TRUE='#'
9067  MAINTAINER_MODE_FALSE=
9068fi
9069
9070  MAINT=$MAINTAINER_MODE_TRUE
9071
9072
9073
9074coin_have_externals=no
9075if test "$enable_maintainer_mode" = yes; then
9076
9077  # If maintainer mode is chosen, we make sure that the correct versions
9078  # of the tools are used, and that we know where libtool.m4 is (to
9079  # recreate acinclude.m4)
9080
9081
9082  LIBTOOLM4=
9083  # Normally, $HOME
9084  AUTOTOOLS_DFLT=$HOME
9085
9086  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9087echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9088if test "${ac_cv_use_correct_autotools+set}" = set; then
9089  echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091  ac_cv_use_correct_autotools=check
9092fi
9093echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9094echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9095
9096  if test $ac_cv_use_correct_autotools = check; then
9097    ac_cv_use_correct_autotools=yes
9098    # Check if we have autoconf
9099    # Extract the first word of "autoconf", so it can be a program name with args.
9100set dummy autoconf; ac_word=$2
9101echo "$as_me:$LINENO: checking for $ac_word" >&5
9102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9103if test "${ac_cv_prog_have_autoconf+set}" = set; then
9104  echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106  if test -n "$have_autoconf"; then
9107  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9108else
9109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110for as_dir in $PATH
9111do
9112  IFS=$as_save_IFS
9113  test -z "$as_dir" && as_dir=.
9114  for ac_exec_ext in '' $ac_executable_extensions; do
9115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9116    ac_cv_prog_have_autoconf="yes"
9117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9118    break 2
9119  fi
9120done
9121done
9122
9123  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9124fi
9125fi
9126have_autoconf=$ac_cv_prog_have_autoconf
9127if test -n "$have_autoconf"; then
9128  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9129echo "${ECHO_T}$have_autoconf" >&6
9130else
9131  echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
9133fi
9134
9135    if test $have_autoconf = no; then
9136      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9137echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9138   { (exit 1); exit 1; }; }
9139    fi
9140
9141    # Check whether autoconf is the correct version
9142    correct_version='2.59'
9143    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9144    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9145echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9146    autoconf --version > confauto.out 2>&1
9147    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9148      echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
9150    else
9151      rm -f confauto.out
9152      echo "$as_me:$LINENO: result: no" >&5
9153echo "${ECHO_T}no" >&6
9154      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9155echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9156   { (exit 1); exit 1; }; }
9157    fi
9158    rm -f confauto.out
9159
9160    # Check if the executable autoconf is picked up from the correct location
9161    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9162echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9163    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9164    autoconf_dir=`cd $autoconf_dir; pwd`
9165    if test x$AUTOTOOLS_DIR = x; then
9166      want_dir=$AUTOTOOLS_DFLT/bin
9167    else
9168      want_dir=$AUTOTOOLS_DIR/bin
9169    fi
9170    if test $autoconf_dir = `cd $want_dir; pwd`; then
9171      echo "$as_me:$LINENO: result: yes" >&5
9172echo "${ECHO_T}yes" >&6
9173    else
9174      rm -f confauto.out
9175      echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9178echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9179   { (exit 1); exit 1; }; }
9180    fi
9181
9182    # Check if we have automake
9183    # Extract the first word of "automake", so it can be a program name with args.
9184set dummy automake; ac_word=$2
9185echo "$as_me:$LINENO: checking for $ac_word" >&5
9186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9187if test "${ac_cv_prog_have_automake+set}" = set; then
9188  echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190  if test -n "$have_automake"; then
9191  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9192else
9193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194for as_dir in $PATH
9195do
9196  IFS=$as_save_IFS
9197  test -z "$as_dir" && as_dir=.
9198  for ac_exec_ext in '' $ac_executable_extensions; do
9199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9200    ac_cv_prog_have_automake="yes"
9201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202    break 2
9203  fi
9204done
9205done
9206
9207  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9208fi
9209fi
9210have_automake=$ac_cv_prog_have_automake
9211if test -n "$have_automake"; then
9212  echo "$as_me:$LINENO: result: $have_automake" >&5
9213echo "${ECHO_T}$have_automake" >&6
9214else
9215  echo "$as_me:$LINENO: result: no" >&5
9216echo "${ECHO_T}no" >&6
9217fi
9218
9219    if test $have_automake = no; then
9220      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9221echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9222   { (exit 1); exit 1; }; }
9223    fi
9224
9225    # Check whether automake is the correct version
9226    correct_version='1.9.6'
9227    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9228    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9229echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9230    automake --version > confauto.out 2>&1
9231    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9232      echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6
9234    else
9235      rm -f confauto.out
9236      echo "$as_me:$LINENO: result: no" >&5
9237echo "${ECHO_T}no" >&6
9238      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9239echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9240   { (exit 1); exit 1; }; }
9241    fi
9242    rm -f confauto.out
9243
9244    # Check if the executable automake is picked up from the correct location
9245    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9246echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9247    automake_dir=`which automake | sed -e 's=/automake=='`
9248    automake_dir=`cd $automake_dir; pwd`
9249    if test x$AUTOTOOLS_DIR = x; then
9250      want_dir=$AUTOTOOLS_DFLT/bin
9251    else
9252      want_dir=$AUTOTOOLS_DIR/bin
9253    fi
9254    if test $automake_dir = `cd $want_dir; pwd`; then
9255      echo "$as_me:$LINENO: result: yes" >&5
9256echo "${ECHO_T}yes" >&6
9257    else
9258      rm -f confauto.out
9259      echo "$as_me:$LINENO: result: no" >&5
9260echo "${ECHO_T}no" >&6
9261      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9262echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9263   { (exit 1); exit 1; }; }
9264    fi
9265
9266    # Check if this is the correct version of libtool (with escaped dots)
9267    if test x$AUTOTOOLS_DIR = x; then
9268      want_dir=$AUTOTOOLS_DFLT/share
9269    else
9270      want_dir=$AUTOTOOLS_DIR/share
9271    fi
9272    correct_version='1.5.22'
9273    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9274    if test -r $want_dir/libtool/ltmain.sh; then
9275  have_ltmain=yes
9276  :
9277else
9278  have_ltmain=no
9279  :
9280fi
9281
9282    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9283echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9284    if test $have_ltmain = yes; then
9285    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9286        echo "$as_me:$LINENO: result: yes" >&5
9287echo "${ECHO_T}yes" >&6
9288      else
9289        echo "$as_me:$LINENO: result: no" >&5
9290echo "${ECHO_T}no" >&6
9291        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9292echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9293   { (exit 1); exit 1; }; }
9294      fi
9295    else
9296      echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
9298      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9299echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9300   { (exit 1); exit 1; }; }
9301    fi
9302  fi
9303
9304  # Check if we can find the libtool file
9305  if test x$AUTOTOOLS_DIR = x; then
9306    want_dir=$AUTOTOOLS_DFLT/share
9307  else
9308    want_dir=$AUTOTOOLS_DIR/share
9309  fi
9310  if test -r $want_dir/aclocal/libtool.m4; then
9311  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9312  :
9313else
9314  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9315echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9316   { (exit 1); exit 1; }; }
9317  :
9318fi
9319
9320
9321  # Check if we have an Dependencies file
9322  if test -r $srcdir/Dependencies; then
9323    coin_have_externals=yes
9324  fi
9325  # Check if subversion is installed and understands https
9326  # Extract the first word of "svn", so it can be a program name with args.
9327set dummy svn; ac_word=$2
9328echo "$as_me:$LINENO: checking for $ac_word" >&5
9329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9330if test "${ac_cv_prog_have_svn+set}" = set; then
9331  echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333  if test -n "$have_svn"; then
9334  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9335else
9336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337for as_dir in $PATH
9338do
9339  IFS=$as_save_IFS
9340  test -z "$as_dir" && as_dir=.
9341  for ac_exec_ext in '' $ac_executable_extensions; do
9342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343    ac_cv_prog_have_svn="yes"
9344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9345    break 2
9346  fi
9347done
9348done
9349
9350  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9351fi
9352fi
9353have_svn=$ac_cv_prog_have_svn
9354if test -n "$have_svn"; then
9355  echo "$as_me:$LINENO: result: $have_svn" >&5
9356echo "${ECHO_T}$have_svn" >&6
9357else
9358  echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6
9360fi
9361
9362  if test x$have_svn = xyes; then
9363    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9364echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9365if test "${ac_cv_svn_understands_https+set}" = set; then
9366  echo $ECHO_N "(cached) $ECHO_C" >&6
9367else
9368  svn --version > confauto.out 2>&1
9369                    if $EGREP https confauto.out >/dev/null 2>&1; then
9370                      ac_cv_svn_understands_https=yes
9371                    else
9372                      ac_cv_svn_understands_https=no
9373                      have_svn=no
9374                      ac_cv_prog_have_svn=no
9375                    fi
9376                    rm -f confauto.out
9377fi
9378echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9379echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9380  fi
9381
9382  # Find the location of the BuildTools directory
9383  BUILDTOOLSDIR=
9384  if test -r $srcdir/BuildTools/coin.m4; then
9385    BUILDTOOLSDIR=$srcdir/BuildTools
9386  else
9387    if test -r $srcdir/../BuildTools/coin.m4; then
9388      BUILDTOOLSDIR=$srcdir/../BuildTools
9389    else
9390      if test -r $srcdir/../../BuildTools/coin.m4; then
9391        BUILDTOOLSDIR=$srcdir/../../BuildTools
9392      else
9393        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9394echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9395   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9396      fi
9397    fi
9398  fi
9399
9400
9401  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9402  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9403    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9404  fi
9405
9406  # The following variable is set to the name of the directory where
9407  # the autotool scripts are located
9408
9409  AUX_DIR=$ac_aux_dir
9410fi
9411
9412# helpful variable for the base directory of this package
9413abs_source_dir=`cd $srcdir; pwd`
9414
9415
9416# Stuff for example Makefiles
9417if test x$prefix = xNONE; then
9418  full_prefix=$ac_default_prefix
9419else
9420  full_prefix=$prefix
9421fi
9422full_prefix=`cd $full_prefix ; pwd`
9423
9424abs_lib_dir=$full_prefix/lib
9425
9426abs_include_dir=$full_prefix/include
9427
9428abs_bin_dir=$full_prefix/bin
9429
9430
9431
9432if test $coin_have_externals = yes && test x$have_svn = xyes; then
9433  HAVE_EXTERNALS_TRUE=
9434  HAVE_EXTERNALS_FALSE='#'
9435else
9436  HAVE_EXTERNALS_TRUE='#'
9437  HAVE_EXTERNALS_FALSE=
9438fi
9439
9440
9441# AC_MSG_NOTICE([End automake initialisation.])
9442
9443
9444
9445LIBTOOL=
9446if test -f ../libtool; then
9447  coin_config_dir=..
9448  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9449fi
9450if test "x$LIBTOOL" = x; then
9451  if test -f ../../libtool; then
9452    coin_config_dir=../..
9453    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9454  fi
9455fi
9456
9457if test "x$LIBTOOL" = x; then
9458# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9459  # Stuff for libtool
9460  # Check whether --enable-shared or --disable-shared was given.
9461if test "${enable_shared+set}" = set; then
9462  enableval="$enable_shared"
9463  p=${PACKAGE-default}
9464    case $enableval in
9465    yes) enable_shared=yes ;;
9466    no) enable_shared=no ;;
9467    *)
9468      enable_shared=no
9469      # Look at the argument we got.  We use all the common list separators.
9470      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9471      for pkg in $enableval; do
9472        IFS="$lt_save_ifs"
9473        if test "X$pkg" = "X$p"; then
9474          enable_shared=yes
9475        fi
9476      done
9477      IFS="$lt_save_ifs"
9478      ;;
9479    esac
9480else
9481  enable_shared=yes
9482fi;
9483
9484# Check whether --enable-fast-install or --disable-fast-install was given.
9485if test "${enable_fast_install+set}" = set; then
9486  enableval="$enable_fast_install"
9487  p=${PACKAGE-default}
9488    case $enableval in
9489    yes) enable_fast_install=yes ;;
9490    no) enable_fast_install=no ;;
9491    *)
9492      enable_fast_install=no
9493      # Look at the argument we got.  We use all the common list separators.
9494      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9495      for pkg in $enableval; do
9496        IFS="$lt_save_ifs"
9497        if test "X$pkg" = "X$p"; then
9498          enable_fast_install=yes
9499        fi
9500      done
9501      IFS="$lt_save_ifs"
9502      ;;
9503    esac
9504else
9505  enable_fast_install=yes
9506fi;
9507
9508echo "$as_me:$LINENO: checking host system type" >&5
9509echo $ECHO_N "checking host system type... $ECHO_C" >&6
9510if test "${ac_cv_host+set}" = set; then
9511  echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513  ac_cv_host_alias=$host_alias
9514test -z "$ac_cv_host_alias" &&
9515  ac_cv_host_alias=$ac_cv_build_alias
9516ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9517  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9518echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9519   { (exit 1); exit 1; }; }
9520
9521fi
9522echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9523echo "${ECHO_T}$ac_cv_host" >&6
9524host=$ac_cv_host
9525host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9526host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9527host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9528
9529
9530echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9531echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9532if test "${lt_cv_path_SED+set}" = set; then
9533  echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535  # Loop through the user's path and test for sed and gsed.
9536# Then use that list of sed's as ones to test for truncation.
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540  IFS=$as_save_IFS
9541  test -z "$as_dir" && as_dir=.
9542  for lt_ac_prog in sed gsed; do
9543    for ac_exec_ext in '' $ac_executable_extensions; do
9544      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9545        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9546      fi
9547    done
9548  done
9549done
9550lt_ac_max=0
9551lt_ac_count=0
9552# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9553# along with /bin/sed that truncates output.
9554for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9555  test ! -f $lt_ac_sed && continue
9556  cat /dev/null > conftest.in
9557  lt_ac_count=0
9558  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9559  # Check for GNU sed and select it if it is found.
9560  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9561    lt_cv_path_SED=$lt_ac_sed
9562    break
9563  fi
9564  while true; do
9565    cat conftest.in conftest.in >conftest.tmp
9566    mv conftest.tmp conftest.in
9567    cp conftest.in conftest.nl
9568    echo >>conftest.nl
9569    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9570    cmp -s conftest.out conftest.nl || break
9571    # 10000 chars as input seems more than enough
9572    test $lt_ac_count -gt 10 && break
9573    lt_ac_count=`expr $lt_ac_count + 1`
9574    if test $lt_ac_count -gt $lt_ac_max; then
9575      lt_ac_max=$lt_ac_count
9576      lt_cv_path_SED=$lt_ac_sed
9577    fi
9578  done
9579done
9580
9581fi
9582
9583SED=$lt_cv_path_SED
9584echo "$as_me:$LINENO: result: $SED" >&5
9585echo "${ECHO_T}$SED" >&6
9586
9587
9588# Check whether --with-gnu-ld or --without-gnu-ld was given.
9589if test "${with_gnu_ld+set}" = set; then
9590  withval="$with_gnu_ld"
9591  test "$withval" = no || with_gnu_ld=yes
9592else
9593  with_gnu_ld=no
9594fi;
9595ac_prog=ld
9596if test "$GCC" = yes; then
9597  # Check if gcc -print-prog-name=ld gives a path.
9598  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9599echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9600  case $host in
9601  *-*-mingw*)
9602    # gcc leaves a trailing carriage return which upsets mingw
9603    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9604  *)
9605    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9606  esac
9607  case $ac_prog in
9608    # Accept absolute paths.
9609    [\\/]* | ?:[\\/]*)
9610      re_direlt='/[^/][^/]*/\.\./'
9611      # Canonicalize the pathname of ld
9612      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9613      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9614        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9615      done
9616      test -z "$LD" && LD="$ac_prog"
9617      ;;
9618  "")
9619    # If it fails, then pretend we aren't using GCC.
9620    ac_prog=ld
9621    ;;
9622  *)
9623    # If it is relative, then search for the first ld in PATH.
9624    with_gnu_ld=unknown
9625    ;;
9626  esac
9627elif test "$with_gnu_ld" = yes; then
9628  echo "$as_me:$LINENO: checking for GNU ld" >&5
9629echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9630else
9631  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9632echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9633fi
9634if test "${lt_cv_path_LD+set}" = set; then
9635  echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637  if test -z "$LD"; then
9638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9639  for ac_dir in $PATH; do
9640    IFS="$lt_save_ifs"
9641    test -z "$ac_dir" && ac_dir=.
9642    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9643      lt_cv_path_LD="$ac_dir/$ac_prog"
9644      # Check to see if the program is GNU ld.  I'd rather use --version,
9645      # but apparently some variants of GNU ld only accept -v.
9646      # Break only if it was the GNU/non-GNU ld that we prefer.
9647      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9648      *GNU* | *'with BFD'*)
9649        test "$with_gnu_ld" != no && break
9650        ;;
9651      *)
9652        test "$with_gnu_ld" != yes && break
9653        ;;
9654      esac
9655    fi
9656  done
9657  IFS="$lt_save_ifs"
9658else
9659  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9660fi
9661fi
9662
9663LD="$lt_cv_path_LD"
9664if test -n "$LD"; then
9665  echo "$as_me:$LINENO: result: $LD" >&5
9666echo "${ECHO_T}$LD" >&6
9667else
9668  echo "$as_me:$LINENO: result: no" >&5
9669echo "${ECHO_T}no" >&6
9670fi
9671test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9672echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9673   { (exit 1); exit 1; }; }
9674echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9675echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9676if test "${lt_cv_prog_gnu_ld+set}" = set; then
9677  echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9680case `$LD -v 2>&1 </dev/null` in
9681*GNU* | *'with BFD'*)
9682  lt_cv_prog_gnu_ld=yes
9683  ;;
9684*)
9685  lt_cv_prog_gnu_ld=no
9686  ;;
9687esac
9688fi
9689echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9690echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9691with_gnu_ld=$lt_cv_prog_gnu_ld
9692
9693
9694echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9695echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9696if test "${lt_cv_ld_reload_flag+set}" = set; then
9697  echo $ECHO_N "(cached) $ECHO_C" >&6
9698else
9699  lt_cv_ld_reload_flag='-r'
9700fi
9701echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9702echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9703reload_flag=$lt_cv_ld_reload_flag
9704case $reload_flag in
9705"" | " "*) ;;
9706*) reload_flag=" $reload_flag" ;;
9707esac
9708reload_cmds='$LD$reload_flag -o $output$reload_objs'
9709case $host_os in
9710  darwin*)
9711    if test "$GCC" = yes; then
9712      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9713    else
9714      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9715    fi
9716    ;;
9717esac
9718
9719echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9720echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9721if test "${lt_cv_path_NM+set}" = set; then
9722  echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724  if test -n "$NM"; then
9725  # Let the user override the test.
9726  lt_cv_path_NM="$NM"
9727else
9728  lt_nm_to_check="${ac_tool_prefix}nm"
9729  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9730    lt_nm_to_check="$lt_nm_to_check nm"
9731  fi
9732  for lt_tmp_nm in $lt_nm_to_check; do
9733    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9734    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9735      IFS="$lt_save_ifs"
9736      test -z "$ac_dir" && ac_dir=.
9737      tmp_nm="$ac_dir/$lt_tmp_nm"
9738      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9739        # Check to see if the nm accepts a BSD-compat flag.
9740        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9741        #   nm: unknown option "B" ignored
9742        # Tru64's nm complains that /dev/null is an invalid object file
9743        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9744        */dev/null* | *'Invalid file or object type'*)
9745          lt_cv_path_NM="$tmp_nm -B"
9746          break
9747          ;;
9748        *)
9749          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9750          */dev/null*)
9751            lt_cv_path_NM="$tmp_nm -p"
9752            break
9753            ;;
9754          *)
9755            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9756            continue # so that we can try to find one that supports BSD flags
9757            ;;
9758          esac
9759          ;;
9760        esac
9761      fi
9762    done
9763    IFS="$lt_save_ifs"
9764  done
9765  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9766fi
9767fi
9768echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9769echo "${ECHO_T}$lt_cv_path_NM" >&6
9770NM="$lt_cv_path_NM"
9771
9772echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9773echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9774if test "${lt_cv_deplibs_check_method+set}" = set; then
9775  echo $ECHO_N "(cached) $ECHO_C" >&6
9776else
9777  lt_cv_file_magic_cmd='$MAGIC_CMD'
9778lt_cv_file_magic_test_file=
9779lt_cv_deplibs_check_method='unknown'
9780# Need to set the preceding variable on all platforms that support
9781# interlibrary dependencies.
9782# 'none' -- dependencies not supported.
9783# `unknown' -- same as none, but documents that we really don't know.
9784# 'pass_all' -- all dependencies passed with no checks.
9785# 'test_compile' -- check by making test program.
9786# 'file_magic [[regex]]' -- check by looking for files in library path
9787# which responds to the $file_magic_cmd with a given extended regex.
9788# If you have `file' or equivalent on your system and you're not sure
9789# whether `pass_all' will *always* work, you probably want this one.
9790
9791case $host_os in
9792aix4* | aix5*)
9793  lt_cv_deplibs_check_method=pass_all
9794  ;;
9795
9796beos*)
9797  lt_cv_deplibs_check_method=pass_all
9798  ;;
9799
9800bsdi[45]*)
9801  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9802  lt_cv_file_magic_cmd='/usr/bin/file -L'
9803  lt_cv_file_magic_test_file=/shlib/libc.so
9804  ;;
9805
9806cygwin*)
9807  # func_win32_libid is a shell function defined in ltmain.sh
9808  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9809  lt_cv_file_magic_cmd='func_win32_libid'
9810  ;;
9811
9812mingw* | pw32*)
9813  # Base MSYS/MinGW do not provide the 'file' command needed by
9814  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9815  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9816  lt_cv_file_magic_cmd='$OBJDUMP -f'
9817  ;;
9818
9819darwin* | rhapsody*)
9820  lt_cv_deplibs_check_method=pass_all
9821  ;;
9822
9823freebsd* | kfreebsd*-gnu | dragonfly*)
9824  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9825    case $host_cpu in
9826    i*86 )
9827      # Not sure whether the presence of OpenBSD here was a mistake.
9828      # Let's accept both of them until this is cleared up.
9829      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9830      lt_cv_file_magic_cmd=/usr/bin/file
9831      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9832      ;;
9833    esac
9834  else
9835    lt_cv_deplibs_check_method=pass_all
9836  fi
9837  ;;
9838
9839gnu*)
9840  lt_cv_deplibs_check_method=pass_all
9841  ;;
9842
9843hpux10.20* | hpux11*)
9844  lt_cv_file_magic_cmd=/usr/bin/file
9845  case $host_cpu in
9846  ia64*)
9847    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9848    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9849    ;;
9850  hppa*64*)
9851    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]'
9852    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9853    ;;
9854  *)
9855    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9856    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9857    ;;
9858  esac
9859  ;;
9860
9861interix3*)
9862  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9863  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9864  ;;
9865
9866irix5* | irix6* | nonstopux*)
9867  case $LD in
9868  *-32|*"-32 ") libmagic=32-bit;;
9869  *-n32|*"-n32 ") libmagic=N32;;
9870  *-64|*"-64 ") libmagic=64-bit;;
9871  *) libmagic=never-match;;
9872  esac
9873  lt_cv_deplibs_check_method=pass_all
9874  ;;
9875
9876# This must be Linux ELF.
9877linux*)
9878  lt_cv_deplibs_check_method=pass_all
9879  ;;
9880
9881netbsd*)
9882  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9883    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9884  else
9885    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9886  fi
9887  ;;
9888
9889newos6*)
9890  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9891  lt_cv_file_magic_cmd=/usr/bin/file
9892  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9893  ;;
9894
9895nto-qnx*)
9896  lt_cv_deplibs_check_method=unknown
9897  ;;
9898
9899openbsd*)
9900  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9901    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9902  else
9903    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9904  fi
9905  ;;
9906
9907osf3* | osf4* | osf5*)
9908  lt_cv_deplibs_check_method=pass_all
9909  ;;
9910
9911solaris*)
9912  lt_cv_deplibs_check_method=pass_all
9913  ;;
9914
9915sysv4 | sysv4.3*)
9916  case $host_vendor in
9917  motorola)
9918    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]'
9919    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9920    ;;
9921  ncr)
9922    lt_cv_deplibs_check_method=pass_all
9923    ;;
9924  sequent)
9925    lt_cv_file_magic_cmd='/bin/file'
9926    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9927    ;;
9928  sni)
9929    lt_cv_file_magic_cmd='/bin/file'
9930    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9931    lt_cv_file_magic_test_file=/lib/libc.so
9932    ;;
9933  siemens)
9934    lt_cv_deplibs_check_method=pass_all
9935    ;;
9936  pc)
9937    lt_cv_deplibs_check_method=pass_all
9938    ;;
9939  esac
9940  ;;
9941
9942sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9943  lt_cv_deplibs_check_method=pass_all
9944  ;;
9945esac
9946
9947fi
9948echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9949echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
9950file_magic_cmd=$lt_cv_file_magic_cmd
9951deplibs_check_method=$lt_cv_deplibs_check_method
9952test -z "$deplibs_check_method" && deplibs_check_method=unknown
9953
9954
9955
9956
9957# If no C compiler was specified, use CC.
9958LTCC=${LTCC-"$CC"}
9959
9960# If no C compiler flags were specified, use CFLAGS.
9961LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9962
9963# Allow CC to be a program name with arguments.
9964compiler=$CC
9965
9966# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9967if test "${enable_libtool_lock+set}" = set; then
9968  enableval="$enable_libtool_lock"
9969
9970fi;
9971test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9972
9973# Some flags need to be propagated to the compiler or linker for good
9974# libtool support.
9975case $host in
9976ia64-*-hpux*)
9977  # Find out which ABI we are using.
9978  echo 'int i;' > conftest.$ac_ext
9979  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980  (eval $ac_compile) 2>&5
9981  ac_status=$?
9982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983  (exit $ac_status); }; then
9984    case `/usr/bin/file conftest.$ac_objext` in
9985    *ELF-32*)
9986      HPUX_IA64_MODE="32"
9987      ;;
9988    *ELF-64*)
9989      HPUX_IA64_MODE="64"
9990      ;;
9991    esac
9992  fi
9993  rm -rf conftest*
9994  ;;
9995*-*-irix6*)
9996  # Find out which ABI we are using.
9997  echo '#line 9997 "configure"' > conftest.$ac_ext
9998  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999  (eval $ac_compile) 2>&5
10000  ac_status=$?
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); }; then
10003   if test "$lt_cv_prog_gnu_ld" = yes; then
10004    case `/usr/bin/file conftest.$ac_objext` in
10005    *32-bit*)
10006      LD="${LD-ld} -melf32bsmip"
10007      ;;
10008    *N32*)
10009      LD="${LD-ld} -melf32bmipn32"
10010      ;;
10011    *64-bit*)
10012      LD="${LD-ld} -melf64bmip"
10013      ;;
10014    esac
10015   else
10016    case `/usr/bin/file conftest.$ac_objext` in
10017    *32-bit*)
10018      LD="${LD-ld} -32"
10019      ;;
10020    *N32*)
10021      LD="${LD-ld} -n32"
10022      ;;
10023    *64-bit*)
10024      LD="${LD-ld} -64"
10025      ;;
10026    esac
10027   fi
10028  fi
10029  rm -rf conftest*
10030  ;;
10031
10032x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10033  # Find out which ABI we are using.
10034  echo 'int i;' > conftest.$ac_ext
10035  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036  (eval $ac_compile) 2>&5
10037  ac_status=$?
10038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); }; then
10040    case `/usr/bin/file conftest.o` in
10041    *32-bit*)
10042      case $host in
10043        x86_64-*linux*)
10044          LD="${LD-ld} -m elf_i386"
10045          ;;
10046        ppc64-*linux*|powerpc64-*linux*)
10047          LD="${LD-ld} -m elf32ppclinux"
10048          ;;
10049        s390x-*linux*)
10050          LD="${LD-ld} -m elf_s390"
10051          ;;
10052        sparc64-*linux*)
10053          LD="${LD-ld} -m elf32_sparc"
10054          ;;
10055      esac
10056      ;;
10057    *64-bit*)
10058      case $host in
10059        x86_64-*linux*)
10060          LD="${LD-ld} -m elf_x86_64"
10061          ;;
10062        ppc*-*linux*|powerpc*-*linux*)
10063          LD="${LD-ld} -m elf64ppc"
10064          ;;
10065        s390*-*linux*)
10066          LD="${LD-ld} -m elf64_s390"
10067          ;;
10068        sparc*-*linux*)
10069          LD="${LD-ld} -m elf64_sparc"
10070          ;;
10071      esac
10072      ;;
10073    esac
10074  fi
10075  rm -rf conftest*
10076  ;;
10077
10078*-*-sco3.2v5*)
10079  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10080  SAVE_CFLAGS="$CFLAGS"
10081  CFLAGS="$CFLAGS -belf"
10082  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10083echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10084if test "${lt_cv_cc_needs_belf+set}" = set; then
10085  echo $ECHO_N "(cached) $ECHO_C" >&6
10086else
10087  ac_ext=c
10088ac_cpp='$CPP $CPPFLAGS'
10089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092
10093     cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h.  */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h.  */
10099
10100#ifdef F77_DUMMY_MAIN
10101
10102#  ifdef __cplusplus
10103     extern "C"
10104#  endif
10105   int F77_DUMMY_MAIN() { return 1; }
10106
10107#endif
10108int
10109main ()
10110{
10111
10112  ;
10113  return 0;
10114}
10115_ACEOF
10116rm -f conftest.$ac_objext conftest$ac_exeext
10117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118  (eval $ac_link) 2>conftest.er1
10119  ac_status=$?
10120  grep -v '^ *+' conftest.er1 >conftest.err
10121  rm -f conftest.er1
10122  cat conftest.err >&5
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); } &&
10125         { ac_try='test -z "$ac_c_werror_flag"
10126                         || test ! -s conftest.err'
10127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128  (eval $ac_try) 2>&5
10129  ac_status=$?
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); }; } &&
10132         { ac_try='test -s conftest$ac_exeext'
10133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134  (eval $ac_try) 2>&5
10135  ac_status=$?
10136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137  (exit $ac_status); }; }; then
10138  lt_cv_cc_needs_belf=yes
10139else
10140  echo "$as_me: failed program was:" >&5
10141sed 's/^/| /' conftest.$ac_ext >&5
10142
10143lt_cv_cc_needs_belf=no
10144fi
10145rm -f conftest.err conftest.$ac_objext \
10146      conftest$ac_exeext conftest.$ac_ext
10147     ac_ext=c
10148ac_cpp='$CPP $CPPFLAGS'
10149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10151ac_compiler_gnu=$ac_cv_c_compiler_gnu
10152
10153fi
10154echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10155echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10156  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10157    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10158    CFLAGS="$SAVE_CFLAGS"
10159  fi
10160  ;;
10161sparc*-*solaris*)
10162  # Find out which ABI we are using.
10163  echo 'int i;' > conftest.$ac_ext
10164  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10165  (eval $ac_compile) 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }; then
10169    case `/usr/bin/file conftest.o` in
10170    *64-bit*)
10171      case $lt_cv_prog_gnu_ld in
10172      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10173      *)    LD="${LD-ld} -64" ;;
10174      esac
10175      ;;
10176    esac
10177  fi
10178  rm -rf conftest*
10179  ;;
10180
10181
10182esac
10183
10184need_locks="$enable_libtool_lock"
10185
10186
10187ac_ext=c
10188ac_cpp='$CPP $CPPFLAGS'
10189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191ac_compiler_gnu=$ac_cv_c_compiler_gnu
10192echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10193echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10194# On Suns, sometimes $CPP names a directory.
10195if test -n "$CPP" && test -d "$CPP"; then
10196  CPP=
10197fi
10198if test -z "$CPP"; then
10199  if test "${ac_cv_prog_CPP+set}" = set; then
10200  echo $ECHO_N "(cached) $ECHO_C" >&6
10201else
10202      # Double quotes because CPP needs to be expanded
10203    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10204    do
10205      ac_preproc_ok=false
10206for ac_c_preproc_warn_flag in '' yes
10207do
10208  # Use a header file that comes with gcc, so configuring glibc
10209  # with a fresh cross-compiler works.
10210  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211  # <limits.h> exists even on freestanding compilers.
10212  # On the NeXT, cc -E runs the code through the compiler's parser,
10213  # not just through cpp. "Syntax error" is here to catch this case.
10214  cat >conftest.$ac_ext <<_ACEOF
10215/* confdefs.h.  */
10216_ACEOF
10217cat confdefs.h >>conftest.$ac_ext
10218cat >>conftest.$ac_ext <<_ACEOF
10219/* end confdefs.h.  */
10220#ifdef __STDC__
10221# include <limits.h>
10222#else
10223# include <assert.h>
10224#endif
10225                     Syntax error
10226_ACEOF
10227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10228  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10229  ac_status=$?
10230  grep -v '^ *+' conftest.er1 >conftest.err
10231  rm -f conftest.er1
10232  cat conftest.err >&5
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); } >/dev/null; then
10235  if test -s conftest.err; then
10236    ac_cpp_err=$ac_c_preproc_warn_flag
10237    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238  else
10239    ac_cpp_err=
10240  fi
10241else
10242  ac_cpp_err=yes
10243fi
10244if test -z "$ac_cpp_err"; then
10245  :
10246else
10247  echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250  # Broken: fails on valid input.
10251continue
10252fi
10253rm -f conftest.err conftest.$ac_ext
10254
10255  # OK, works on sane cases.  Now check whether non-existent headers
10256  # can be detected and how.
10257  cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h.  */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h.  */
10263#include <ac_nonexistent.h>
10264_ACEOF
10265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10266  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10267  ac_status=$?
10268  grep -v '^ *+' conftest.er1 >conftest.err
10269  rm -f conftest.er1
10270  cat conftest.err >&5
10271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272  (exit $ac_status); } >/dev/null; then
10273  if test -s conftest.err; then
10274    ac_cpp_err=$ac_c_preproc_warn_flag
10275    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10276  else
10277    ac_cpp_err=
10278  fi
10279else
10280  ac_cpp_err=yes
10281fi
10282if test -z "$ac_cpp_err"; then
10283  # Broken: success on invalid input.
10284continue
10285else
10286  echo "$as_me: failed program was:" >&5
10287sed 's/^/| /' conftest.$ac_ext >&5
10288
10289  # Passes both tests.
10290ac_preproc_ok=:
10291break
10292fi
10293rm -f conftest.err conftest.$ac_ext
10294
10295done
10296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10297rm -f conftest.err conftest.$ac_ext
10298if $ac_preproc_ok; then
10299  break
10300fi
10301
10302    done
10303    ac_cv_prog_CPP=$CPP
10304
10305fi
10306  CPP=$ac_cv_prog_CPP
10307else
10308  ac_cv_prog_CPP=$CPP
10309fi
10310echo "$as_me:$LINENO: result: $CPP" >&5
10311echo "${ECHO_T}$CPP" >&6
10312ac_preproc_ok=false
10313for ac_c_preproc_warn_flag in '' yes
10314do
10315  # Use a header file that comes with gcc, so configuring glibc
10316  # with a fresh cross-compiler works.
10317  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318  # <limits.h> exists even on freestanding compilers.
10319  # On the NeXT, cc -E runs the code through the compiler's parser,
10320  # not just through cpp. "Syntax error" is here to catch this case.
10321  cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h.  */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h.  */
10327#ifdef __STDC__
10328# include <limits.h>
10329#else
10330# include <assert.h>
10331#endif
10332                     Syntax error
10333_ACEOF
10334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10335  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10336  ac_status=$?
10337  grep -v '^ *+' conftest.er1 >conftest.err
10338  rm -f conftest.er1
10339  cat conftest.err >&5
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } >/dev/null; then
10342  if test -s conftest.err; then
10343    ac_cpp_err=$ac_c_preproc_warn_flag
10344    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10345  else
10346    ac_cpp_err=
10347  fi
10348else
10349  ac_cpp_err=yes
10350fi
10351if test -z "$ac_cpp_err"; then
10352  :
10353else
10354  echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357  # Broken: fails on valid input.
10358continue
10359fi
10360rm -f conftest.err conftest.$ac_ext
10361
10362  # OK, works on sane cases.  Now check whether non-existent headers
10363  # can be detected and how.
10364  cat >conftest.$ac_ext <<_ACEOF
10365/* confdefs.h.  */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h.  */
10370#include <ac_nonexistent.h>
10371_ACEOF
10372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10373  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10374  ac_status=$?
10375  grep -v '^ *+' conftest.er1 >conftest.err
10376  rm -f conftest.er1
10377  cat conftest.err >&5
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); } >/dev/null; then
10380  if test -s conftest.err; then
10381    ac_cpp_err=$ac_c_preproc_warn_flag
10382    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10383  else
10384    ac_cpp_err=
10385  fi
10386else
10387  ac_cpp_err=yes
10388fi
10389if test -z "$ac_cpp_err"; then
10390  # Broken: success on invalid input.
10391continue
10392else
10393  echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395
10396  # Passes both tests.
10397ac_preproc_ok=:
10398break
10399fi
10400rm -f conftest.err conftest.$ac_ext
10401
10402done
10403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10404rm -f conftest.err conftest.$ac_ext
10405if $ac_preproc_ok; then
10406  :
10407else
10408  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10409See \`config.log' for more details." >&5
10410echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10411See \`config.log' for more details." >&2;}
10412   { (exit 1); exit 1; }; }
10413fi
10414
10415ac_ext=c
10416ac_cpp='$CPP $CPPFLAGS'
10417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10419ac_compiler_gnu=$ac_cv_c_compiler_gnu
10420
10421
10422echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10423echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10424if test "${ac_cv_header_stdc+set}" = set; then
10425  echo $ECHO_N "(cached) $ECHO_C" >&6
10426else
10427  cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h.  */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h.  */
10433#include <stdlib.h>
10434#include <stdarg.h>
10435#include <string.h>
10436#include <float.h>
10437
10438#ifdef F77_DUMMY_MAIN
10439
10440#  ifdef __cplusplus
10441     extern "C"
10442#  endif
10443   int F77_DUMMY_MAIN() { return 1; }
10444
10445#endif
10446int
10447main ()
10448{
10449
10450  ;
10451  return 0;
10452}
10453_ACEOF
10454rm -f conftest.$ac_objext
10455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456  (eval $ac_compile) 2>conftest.er1
10457  ac_status=$?
10458  grep -v '^ *+' conftest.er1 >conftest.err
10459  rm -f conftest.er1
10460  cat conftest.err >&5
10461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); } &&
10463         { ac_try='test -z "$ac_c_werror_flag"
10464                         || test ! -s conftest.err'
10465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466  (eval $ac_try) 2>&5
10467  ac_status=$?
10468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469  (exit $ac_status); }; } &&
10470         { ac_try='test -s conftest.$ac_objext'
10471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472  (eval $ac_try) 2>&5
10473  ac_status=$?
10474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475  (exit $ac_status); }; }; then
10476  ac_cv_header_stdc=yes
10477else
10478  echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481ac_cv_header_stdc=no
10482fi
10483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10484
10485if test $ac_cv_header_stdc = yes; then
10486  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10487  cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h.  */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h.  */
10493#include <string.h>
10494
10495_ACEOF
10496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10497  $EGREP "memchr" >/dev/null 2>&1; then
10498  :
10499else
10500  ac_cv_header_stdc=no
10501fi
10502rm -f conftest*
10503
10504fi
10505
10506if test $ac_cv_header_stdc = yes; then
10507  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10508  cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h.  */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h.  */
10514#include <stdlib.h>
10515
10516_ACEOF
10517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10518  $EGREP "free" >/dev/null 2>&1; then
10519  :
10520else
10521  ac_cv_header_stdc=no
10522fi
10523rm -f conftest*
10524
10525fi
10526
10527if test $ac_cv_header_stdc = yes; then
10528  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10529  if test "$cross_compiling" = yes; then
10530  :
10531else
10532  cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h.  */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h.  */
10538#include <ctype.h>
10539#if ((' ' & 0x0FF) == 0x020)
10540# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10541# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10542#else
10543# define ISLOWER(c) \
10544                   (('a' <= (c) && (c) <= 'i') \
10545                     || ('j' <= (c) && (c) <= 'r') \
10546                     || ('s' <= (c) && (c) <= 'z'))
10547# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10548#endif
10549
10550#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10551int
10552main ()
10553{
10554  int i;
10555  for (i = 0; i < 256; i++)
10556    if (XOR (islower (i), ISLOWER (i))
10557        || toupper (i) != TOUPPER (i))
10558      exit(2);
10559  exit (0);
10560}
10561_ACEOF
10562rm -f conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569  (eval $ac_try) 2>&5
10570  ac_status=$?
10571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572  (exit $ac_status); }; }; then
10573  :
10574else
10575  echo "$as_me: program exited with status $ac_status" >&5
10576echo "$as_me: failed program was:" >&5
10577sed 's/^/| /' conftest.$ac_ext >&5
10578
10579( exit $ac_status )
10580ac_cv_header_stdc=no
10581fi
10582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10583fi
10584fi
10585fi
10586echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10587echo "${ECHO_T}$ac_cv_header_stdc" >&6
10588if test $ac_cv_header_stdc = yes; then
10589
10590cat >>confdefs.h <<\_ACEOF
10591#define STDC_HEADERS 1
10592_ACEOF
10593
10594fi
10595
10596# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10607                  inttypes.h stdint.h unistd.h
10608do
10609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10610echo "$as_me:$LINENO: checking for $ac_header" >&5
10611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10612if eval "test \"\${$as_ac_Header+set}\" = set"; then
10613  echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615  cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h.  */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h.  */
10621$ac_includes_default
10622
10623#include <$ac_header>
10624_ACEOF
10625rm -f conftest.$ac_objext
10626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10627  (eval $ac_compile) 2>conftest.er1
10628  ac_status=$?
10629  grep -v '^ *+' conftest.er1 >conftest.err
10630  rm -f conftest.er1
10631  cat conftest.err >&5
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); } &&
10634         { ac_try='test -z "$ac_c_werror_flag"
10635                         || test ! -s conftest.err'
10636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637  (eval $ac_try) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); }; } &&
10641         { ac_try='test -s conftest.$ac_objext'
10642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643  (eval $ac_try) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; }; then
10647  eval "$as_ac_Header=yes"
10648else
10649  echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652eval "$as_ac_Header=no"
10653fi
10654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10655fi
10656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10658if test `eval echo '${'$as_ac_Header'}'` = yes; then
10659  cat >>confdefs.h <<_ACEOF
10660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661_ACEOF
10662
10663fi
10664
10665done
10666
10667
10668
10669for ac_header in dlfcn.h
10670do
10671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10672if eval "test \"\${$as_ac_Header+set}\" = set"; then
10673  echo "$as_me:$LINENO: checking for $ac_header" >&5
10674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10675if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676  echo $ECHO_N "(cached) $ECHO_C" >&6
10677fi
10678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10680else
10681  # Is the header compilable?
10682echo "$as_me:$LINENO: checking $ac_header usability" >&5
10683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10684cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690$ac_includes_default
10691#include <$ac_header>
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695  (eval $ac_compile) 2>conftest.er1
10696  ac_status=$?
10697  grep -v '^ *+' conftest.er1 >conftest.err
10698  rm -f conftest.er1
10699  cat conftest.err >&5
10700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701  (exit $ac_status); } &&
10702         { ac_try='test -z "$ac_c_werror_flag"
10703                         || test ! -s conftest.err'
10704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705  (eval $ac_try) 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; } &&
10709         { ac_try='test -s conftest.$ac_objext'
10710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711  (eval $ac_try) 2>&5
10712  ac_status=$?
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); }; }; then
10715  ac_header_compiler=yes
10716else
10717  echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720ac_header_compiler=no
10721fi
10722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724echo "${ECHO_T}$ac_header_compiler" >&6
10725
10726# Is the header present?
10727echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10729cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h.  */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h.  */
10735#include <$ac_header>
10736_ACEOF
10737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10739  ac_status=$?
10740  grep -v '^ *+' conftest.er1 >conftest.err
10741  rm -f conftest.er1
10742  cat conftest.err >&5
10743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744  (exit $ac_status); } >/dev/null; then
10745  if test -s conftest.err; then
10746    ac_cpp_err=$ac_c_preproc_warn_flag
10747    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10748  else
10749    ac_cpp_err=
10750  fi
10751else
10752  ac_cpp_err=yes
10753fi
10754if test -z "$ac_cpp_err"; then
10755  ac_header_preproc=yes
10756else
10757  echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760  ac_header_preproc=no
10761fi
10762rm -f conftest.err conftest.$ac_ext
10763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10764echo "${ECHO_T}$ac_header_preproc" >&6
10765
10766# So?  What about this header?
10767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10768  yes:no: )
10769    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10771    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10773    ac_header_preproc=yes
10774    ;;
10775  no:yes:* )
10776    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10778    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10779echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10780    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10782    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10783echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10786    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10788    (
10789      cat <<\_ASBOX
10790## --------------------------------------------------------------- ##
10791## Report this to http://projects.coin-or.org/BuildTools/newticket ##
10792## --------------------------------------------------------------- ##
10793_ASBOX
10794    ) |
10795      sed "s/^/$as_me: WARNING:     /" >&2
10796    ;;
10797esac
10798echo "$as_me:$LINENO: checking for $ac_header" >&5
10799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10800if eval "test \"\${$as_ac_Header+set}\" = set"; then
10801  echo $ECHO_N "(cached) $ECHO_C" >&6
10802else
10803  eval "$as_ac_Header=\$ac_header_preproc"
10804fi
10805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10807
10808fi
10809if test `eval echo '${'$as_ac_Header'}'` = yes; then
10810  cat >>confdefs.h <<_ACEOF
10811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10812_ACEOF
10813
10814fi
10815
10816done
10817
10818ac_ext=cc
10819ac_cpp='$CXXCPP $CPPFLAGS'
10820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10823if test -n "$ac_tool_prefix"; then
10824  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10825  do
10826    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10828echo "$as_me:$LINENO: checking for $ac_word" >&5
10829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830if test "${ac_cv_prog_CXX+set}" = set; then
10831  echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833  if test -n "$CXX"; then
10834  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839  IFS=$as_save_IFS
10840  test -z "$as_dir" && as_dir=.
10841  for ac_exec_ext in '' $ac_executable_extensions; do
10842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845    break 2
10846  fi
10847done
10848done
10849
10850fi
10851fi
10852CXX=$ac_cv_prog_CXX
10853if test -n "$CXX"; then
10854  echo "$as_me:$LINENO: result: $CXX" >&5
10855echo "${ECHO_T}$CXX" >&6
10856else
10857  echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
10859fi
10860
10861    test -n "$CXX" && break
10862  done
10863fi
10864if test -z "$CXX"; then
10865  ac_ct_CXX=$CXX
10866  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10867do
10868  # Extract the first word of "$ac_prog", so it can be a program name with args.
10869set dummy $ac_prog; ac_word=$2
10870echo "$as_me:$LINENO: checking for $ac_word" >&5
10871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10872if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10873  echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875  if test -n "$ac_ct_CXX"; then
10876  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10877else
10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881  IFS=$as_save_IFS
10882  test -z "$as_dir" && as_dir=.
10883  for ac_exec_ext in '' $ac_executable_extensions; do
10884  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885    ac_cv_prog_ac_ct_CXX="$ac_prog"
10886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10887    break 2
10888  fi
10889done
10890done
10891
10892fi
10893fi
10894ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10895if test -n "$ac_ct_CXX"; then
10896  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10897echo "${ECHO_T}$ac_ct_CXX" >&6
10898else
10899  echo "$as_me:$LINENO: result: no" >&5
10900echo "${ECHO_T}no" >&6
10901fi
10902
10903  test -n "$ac_ct_CXX" && break
10904done
10905test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10906
10907  CXX=$ac_ct_CXX
10908fi
10909
10910
10911# Provide some information about the compiler.
10912echo "$as_me:$LINENO:" \
10913     "checking for C++ compiler version" >&5
10914ac_compiler=`set X $ac_compile; echo $2`
10915{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10916  (eval $ac_compiler --version </dev/null >&5) 2>&5
10917  ac_status=$?
10918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919  (exit $ac_status); }
10920{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10921  (eval $ac_compiler -v </dev/null >&5) 2>&5
10922  ac_status=$?
10923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924  (exit $ac_status); }
10925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10926  (eval $ac_compiler -V </dev/null >&5) 2>&5
10927  ac_status=$?
10928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929  (exit $ac_status); }
10930
10931echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10932echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10933if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10934  echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936  cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h.  */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h.  */
10942
10943#ifdef F77_DUMMY_MAIN
10944
10945#  ifdef __cplusplus
10946     extern "C"
10947#  endif
10948   int F77_DUMMY_MAIN() { return 1; }
10949
10950#endif
10951int
10952main ()
10953{
10954#ifndef __GNUC__
10955       choke me
10956#endif
10957
10958  ;
10959  return 0;
10960}
10961_ACEOF
10962rm -f conftest.$ac_objext
10963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10964  (eval $ac_compile) 2>conftest.er1
10965  ac_status=$?
10966  grep -v '^ *+' conftest.er1 >conftest.err
10967  rm -f conftest.er1
10968  cat conftest.err >&5
10969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970  (exit $ac_status); } &&