source: ThirdParty/Lapack/stable/1.4/configure @ 3160

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