source: ThirdParty/Lapack/releases/1.4.7/configure @ 2985

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

revert r2394:HEAD - releases are not to be modified

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