source: ThirdParty/Lapack/trunk/configure @ 2274

Last change on this file since 2274 was 2274, checked in by stefan, 9 years ago

rerun autotools again

  • Property svn:executable set to *
File size: 841.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyLapack trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-lapack compile this project (Lapack) with debug compiler
1084                          flags
1085  --enable-doscompile     Under Cygwin, compile so that executables run under
1086                          DOS. Set to mingw to use gcc/g++/ld with
1087                          -mno-cygwin. Set to msvc to use cl/link (or
1088                          icl/link). Default when mentioned: mingw. Default
1089                          when not mentioned: disabled.
1090  --enable-pkg-config     use pkg-config if available (default is yes)
1091  --enable-interpackage-dependencies
1092                          whether to deduce Makefile dependencies from package
1093                          linker flags (default: yes)
1094  --enable-static[=PKGS]
1095                          build static libraries [default=no]
1096  --disable-dependency-tracking  speeds up one-time build
1097  --enable-dependency-tracking   do not reject slow dependency extractors
1098  --enable-maintainer-mode  enable make rules and dependencies not useful
1099                          (and sometimes confusing) to the casual installer
1100  --enable-shared[=PKGS]
1101                          build shared libraries [default=yes]
1102  --enable-fast-install[=PKGS]
1103                          optimize for fast installation [default=yes]
1104  --disable-libtool-lock  avoid locking (might break parallel builds)
1105
1106Optional Packages:
1107  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1110  --with-lapack-checklevel
1111                          specify the sanity check level for project Lapack
1112  --with-blas             specify BLAS library (or BUILD to enforce use of
1113                          ThirdParty/Blas)
1114
1115  --with-coin-instdir     prefix of installation directory for precompiled
1116                          COIN packages
1117  --with-blas-lib linker flags for using package Blas
1118  --with-blas-incdir directory with header files for using package Blas
1119  --with-blas-datadir directory with data files for using package Blas
1120  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1121  --with-pic              try to use only PIC/non-PIC objects [default=use
1122                          both]
1123  --with-tags[=TAGS]
1124                          include additional configurations [automatic]
1125
1126Some influential environment variables:
1127  CDEFS       Additional -D flags to be used when compiling C code.
1128  ADD_CFLAGS  Additional C compiler options
1129  DBG_CFLAGS  Debug C compiler options
1130  OPT_CFLAGS  Optimize C compiler options
1131  CC          C compiler command
1132  CFLAGS      C compiler flags
1133  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1134              nonstandard directory <lib dir>
1135  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1136              headers in a nonstandard directory <include dir>
1137  MPICC       C MPI Compiler
1138  ADD_FFLAGS  Additional Fortran compiler options
1139  DBG_FFLAGS  Debug Fortran compiler options
1140  OPT_FFLAGS  Optimize Fortran compiler options
1141  F77         Fortran 77 compiler command
1142  FFLAGS      Fortran 77 compiler flags
1143  MPIF77      Fortran MPI Compiler
1144  PKG_CONFIG  path to pkg-config utility
1145  DLAMCH_FFLAGS
1146              Fortran compiler options for DLAMCH.F
1147  CPP         C preprocessor
1148  CXX         C++ compiler command
1149  CXXFLAGS    C++ compiler flags
1150  CXXCPP      C++ preprocessor
1151
1152Use these variables to override the choices made by `configure' or to help
1153it to find libraries and programs with nonstandard names/locations.
1154
1155Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1156_ACEOF
1157fi
1158
1159if test "$ac_init_help" = "recursive"; then
1160  # If there are subdirs, report their specific --help.
1161  ac_popdir=`pwd`
1162  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1163    test -d $ac_dir || continue
1164    ac_builddir=.
1165
1166if test "$ac_dir" != .; then
1167  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1168  # A "../" for each directory in $ac_dir_suffix.
1169  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1170else
1171  ac_dir_suffix= ac_top_builddir=
1172fi
1173
1174case $srcdir in
1175  .)  # No --srcdir option.  We are building in place.
1176    ac_srcdir=.
1177    if test -z "$ac_top_builddir"; then
1178       ac_top_srcdir=.
1179    else
1180       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1181    fi ;;
1182  [\\/]* | ?:[\\/]* )  # Absolute path.
1183    ac_srcdir=$srcdir$ac_dir_suffix;
1184    ac_top_srcdir=$srcdir ;;
1185  *) # Relative path.
1186    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1187    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1188esac
1189
1190# Do not use `cd foo && pwd` to compute absolute paths, because
1191# the directories may not exist.
1192case `pwd` in
1193.) ac_abs_builddir="$ac_dir";;
1194*)
1195  case "$ac_dir" in
1196  .) ac_abs_builddir=`pwd`;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1198  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_top_builddir=${ac_top_builddir}.;;
1203*)
1204  case ${ac_top_builddir}. in
1205  .) ac_abs_top_builddir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1207  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_srcdir=$ac_srcdir;;
1212*)
1213  case $ac_srcdir in
1214  .) ac_abs_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1216  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_top_srcdir=$ac_top_srcdir;;
1221*)
1222  case $ac_top_srcdir in
1223  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1225  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1226  esac;;
1227esac
1228
1229    cd $ac_dir
1230    # Check for guested configure; otherwise get Cygnus style configure.
1231    if test -f $ac_srcdir/configure.gnu; then
1232      echo
1233      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1234    elif test -f $ac_srcdir/configure; then
1235      echo
1236      $SHELL $ac_srcdir/configure  --help=recursive
1237    elif test -f $ac_srcdir/configure.ac ||
1238           test -f $ac_srcdir/configure.in; then
1239      echo
1240      $ac_configure --help
1241    else
1242      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1243    fi
1244    cd $ac_popdir
1245  done
1246fi
1247
1248test -n "$ac_init_help" && exit 0
1249if $ac_init_version; then
1250  cat <<\_ACEOF
1251ThirdPartyLapack configure trunk
1252generated by GNU Autoconf 2.59
1253
1254Copyright (C) 2003 Free Software Foundation, Inc.
1255This configure script is free software; the Free Software Foundation
1256gives unlimited permission to copy, distribute and modify it.
1257
1258
1259Copyright 2006 International Business Machines and others.
1260All Rights Reserved.
1261This file is part of the open source package Coin which is distributed
1262under the Eclipse Public License.
1263_ACEOF
1264  exit 0
1265fi
1266exec 5>config.log
1267cat >&5 <<_ACEOF
1268This file contains any messages produced by compilers while
1269running configure, to aid debugging if configure makes a mistake.
1270
1271It was created by ThirdPartyLapack $as_me trunk, which was
1272generated by GNU Autoconf 2.59.  Invocation command line was
1273
1274  $ $0 $@
1275
1276_ACEOF
1277{
1278cat <<_ASUNAME
1279## --------- ##
1280## Platform. ##
1281## --------- ##
1282
1283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1284uname -m = `(uname -m) 2>/dev/null || echo unknown`
1285uname -r = `(uname -r) 2>/dev/null || echo unknown`
1286uname -s = `(uname -s) 2>/dev/null || echo unknown`
1287uname -v = `(uname -v) 2>/dev/null || echo unknown`
1288
1289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1290/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1291
1292/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1293/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1295hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1296/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1297/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1298/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1299
1300_ASUNAME
1301
1302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1303for as_dir in $PATH
1304do
1305  IFS=$as_save_IFS
1306  test -z "$as_dir" && as_dir=.
1307  echo "PATH: $as_dir"
1308done
1309
1310} >&5
1311
1312cat >&5 <<_ACEOF
1313
1314
1315## ----------- ##
1316## Core tests. ##
1317## ----------- ##
1318
1319_ACEOF
1320
1321
1322# Keep a trace of the command line.
1323# Strip out --no-create and --no-recursion so they do not pile up.
1324# Strip out --silent because we don't want to record it for future runs.
1325# Also quote any args containing shell meta-characters.
1326# Make two passes to allow for proper duplicate-argument suppression.
1327ac_configure_args=
1328ac_configure_args0=
1329ac_configure_args1=
1330ac_sep=
1331ac_must_keep_next=false
1332for ac_pass in 1 2
1333do
1334  for ac_arg
1335  do
1336    case $ac_arg in
1337    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339    | -silent | --silent | --silen | --sile | --sil)
1340      continue ;;
1341    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1343    esac
1344    case $ac_pass in
1345    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1346    2)
1347      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1348      if test $ac_must_keep_next = true; then
1349        ac_must_keep_next=false # Got value, back to normal.
1350      else
1351        case $ac_arg in
1352          *=* | --config-cache | -C | -disable-* | --disable-* \
1353          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1354          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1355          | -with-* | --with-* | -without-* | --without-* | --x)
1356            case "$ac_configure_args0 " in
1357              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1358            esac
1359            ;;
1360          -* ) ac_must_keep_next=true ;;
1361        esac
1362      fi
1363      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1364      # Get rid of the leading space.
1365      ac_sep=" "
1366      ;;
1367    esac
1368  done
1369done
1370$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1371$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1372
1373# When interrupted or exit'd, cleanup temporary files, and complete
1374# config.log.  We remove comments because anyway the quotes in there
1375# would cause problems or look ugly.
1376# WARNING: Be sure not to use single quotes in there, as some shells,
1377# such as our DU 5.0 friend, will then `close' the trap.
1378trap 'exit_status=$?
1379  # Save into config.log some information that might help in debugging.
1380  {
1381    echo
1382
1383    cat <<\_ASBOX
1384## ---------------- ##
1385## Cache variables. ##
1386## ---------------- ##
1387_ASBOX
1388    echo
1389    # The following way of writing the cache mishandles newlines in values,
1390{
1391  (set) 2>&1 |
1392    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1393    *ac_space=\ *)
1394      sed -n \
1395        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1396          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1397      ;;
1398    *)
1399      sed -n \
1400        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1401      ;;
1402    esac;
1403}
1404    echo
1405
1406    cat <<\_ASBOX
1407## ----------------- ##
1408## Output variables. ##
1409## ----------------- ##
1410_ASBOX
1411    echo
1412    for ac_var in $ac_subst_vars
1413    do
1414      eval ac_val=$`echo $ac_var`
1415      echo "$ac_var='"'"'$ac_val'"'"'"
1416    done | sort
1417    echo
1418
1419    if test -n "$ac_subst_files"; then
1420      cat <<\_ASBOX
1421## ------------- ##
1422## Output files. ##
1423## ------------- ##
1424_ASBOX
1425      echo
1426      for ac_var in $ac_subst_files
1427      do
1428        eval ac_val=$`echo $ac_var`
1429        echo "$ac_var='"'"'$ac_val'"'"'"
1430      done | sort
1431      echo
1432    fi
1433
1434    if test -s confdefs.h; then
1435      cat <<\_ASBOX
1436## ----------- ##
1437## confdefs.h. ##
1438## ----------- ##
1439_ASBOX
1440      echo
1441      sed "/^$/d" confdefs.h | sort
1442      echo
1443    fi
1444    test "$ac_signal" != 0 &&
1445      echo "$as_me: caught signal $ac_signal"
1446    echo "$as_me: exit $exit_status"
1447  } >&5
1448  rm -f core *.core &&
1449  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1450    exit $exit_status
1451     ' 0
1452for ac_signal in 1 2 13 15; do
1453  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1454done
1455ac_signal=0
1456
1457# confdefs.h avoids OS command line length limits that DEFS can exceed.
1458rm -rf conftest* confdefs.h
1459# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1460echo >confdefs.h
1461
1462# Predefined preprocessor variables.
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_NAME "$PACKAGE_NAME"
1466_ACEOF
1467
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_VERSION "$PACKAGE_VERSION"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_STRING "$PACKAGE_STRING"
1481_ACEOF
1482
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1486_ACEOF
1487
1488
1489# Let the site file select an alternate cache file if it wants to.
1490# Prefer explicitly selected file to automatically selected ones.
1491if test -z "$CONFIG_SITE"; then
1492  if test "x$prefix" != xNONE; then
1493    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1494  else
1495    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1496  fi
1497fi
1498for ac_site_file in $CONFIG_SITE; do
1499  if test -r "$ac_site_file"; then
1500    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1501echo "$as_me: loading site script $ac_site_file" >&6;}
1502    sed 's/^/| /' "$ac_site_file" >&5
1503    . "$ac_site_file"
1504  fi
1505done
1506
1507if test -r "$cache_file"; then
1508  # Some versions of bash will fail to source /dev/null (special
1509  # files actually), so we avoid doing that.
1510  if test -f "$cache_file"; then
1511    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1512echo "$as_me: loading cache $cache_file" >&6;}
1513    case $cache_file in
1514      [\\/]* | ?:[\\/]* ) . $cache_file;;
1515      *)                      . ./$cache_file;;
1516    esac
1517  fi
1518else
1519  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1520echo "$as_me: creating cache $cache_file" >&6;}
1521  >$cache_file
1522fi
1523
1524# Check that the precious variables saved in the cache have kept the same
1525# value.
1526ac_cache_corrupted=false
1527for ac_var in `(set) 2>&1 |
1528               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1529  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1530  eval ac_new_set=\$ac_env_${ac_var}_set
1531  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1532  eval ac_new_val="\$ac_env_${ac_var}_value"
1533  case $ac_old_set,$ac_new_set in
1534    set,)
1535      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1536echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1537      ac_cache_corrupted=: ;;
1538    ,set)
1539      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1540echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1541      ac_cache_corrupted=: ;;
1542    ,);;
1543    *)
1544      if test "x$ac_old_val" != "x$ac_new_val"; then
1545        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1546echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1547        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1548echo "$as_me:   former value:  $ac_old_val" >&2;}
1549        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1550echo "$as_me:   current value: $ac_new_val" >&2;}
1551        ac_cache_corrupted=:
1552      fi;;
1553  esac
1554  # Pass precious variables to config.status.
1555  if test "$ac_new_set" = set; then
1556    case $ac_new_val in
1557    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1558      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1559    *) ac_arg=$ac_var=$ac_new_val ;;
1560    esac
1561    case " $ac_configure_args " in
1562      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1563      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1564    esac
1565  fi
1566done
1567if $ac_cache_corrupted; then
1568  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1569echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1570  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1571echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1572   { (exit 1); exit 1; }; }
1573fi
1574
1575ac_ext=c
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1579ac_compiler_gnu=$ac_cv_c_compiler_gnu
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610# List one file in the package so that the configure script can test
1611# whether the package is actually there
1612
1613
1614# Where should everything be installed by default?  Here, we want it
1615# to be installed directly in 'bin', 'lib', 'include' subdirectories
1616# of the directory where configure is run.  The default would be
1617# /usr/local.
1618
1619
1620
1621# As backup, we make sure we don't loose an FLIBS if it has been set
1622# by the user
1623save_FLIBS="$FLIBS"
1624
1625# A useful makefile conditional that is always false
1626
1627
1628if false; then
1629  ALWAYS_FALSE_TRUE=
1630  ALWAYS_FALSE_FALSE='#'
1631else
1632  ALWAYS_FALSE_TRUE='#'
1633  ALWAYS_FALSE_FALSE=
1634fi
1635
1636
1637# We set the following variable so that we know later in AC_COIN_FINALIZE
1638# that we are in a project main directory
1639coin_projectdir=yes
1640
1641# Set the project's version numbers
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define LAPACK_VERSION "$PACKAGE_VERSION"
1646_ACEOF
1647
1648
1649  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1650  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1651  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1652  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1653  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1654  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1655
1656cat >>confdefs.h <<_ACEOF
1657#define LAPACK_VERSION_MAJOR $coin_majorver
1658_ACEOF
1659
1660
1661cat >>confdefs.h <<_ACEOF
1662#define LAPACK_VERSION_MINOR $coin_minorver
1663_ACEOF
1664
1665
1666cat >>confdefs.h <<_ACEOF
1667#define LAPACK_VERSION_RELEASE $coin_releasever
1668_ACEOF
1669
1670
1671  # We use the following variable to have a string with the upper case
1672  # version of the project name
1673  COIN_PRJCT=LAPACK
1674
1675  # Set the project's SVN revision number. The complicated sed expression
1676  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1677  # as a single number.
1678  # Extract the first word of "svnversion", so it can be a program name with args.
1679set dummy svnversion; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_have_svnversion+set}" = set; then
1683  echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685  if test -n "$have_svnversion"; then
1686  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691  IFS=$as_save_IFS
1692  test -z "$as_dir" && as_dir=.
1693  for ac_exec_ext in '' $ac_executable_extensions; do
1694  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695    ac_cv_prog_have_svnversion="yes"
1696    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697    break 2
1698  fi
1699done
1700done
1701
1702  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1703fi
1704fi
1705have_svnversion=$ac_cv_prog_have_svnversion
1706if test -n "$have_svnversion"; then
1707  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1708echo "${ECHO_T}$have_svnversion" >&6
1709else
1710  echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714  if test "x$have_svnversion" = xyes; then
1715
1716    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1717    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1718      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1719
1720cat >>confdefs.h <<_ACEOF
1721#define LAPACK_SVN_REV $LAPACK_SVN_REV
1722_ACEOF
1723
1724    fi
1725  fi
1726
1727
1728
1729# Capture libtool library version, if given.
1730
1731
1732
1733
1734#############################################################################
1735#                         Standard build tool stuff                         #
1736#############################################################################
1737
1738# Get the system type
1739ac_aux_dir=
1740for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1741  if test -f $ac_dir/install-sh; then
1742    ac_aux_dir=$ac_dir
1743    ac_install_sh="$ac_aux_dir/install-sh -c"
1744    break
1745  elif test -f $ac_dir/install.sh; then
1746    ac_aux_dir=$ac_dir
1747    ac_install_sh="$ac_aux_dir/install.sh -c"
1748    break
1749  elif test -f $ac_dir/shtool; then
1750    ac_aux_dir=$ac_dir
1751    ac_install_sh="$ac_aux_dir/shtool install -c"
1752    break
1753  fi
1754done
1755if test -z "$ac_aux_dir"; then
1756  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1757echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1758   { (exit 1); exit 1; }; }
1759fi
1760ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1761ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1762ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777  ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781   { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785   { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796
1797#turn off warnings and pedantic mode since they could make trouble on some platforms,
1798#and we couldn't fix them anyway
1799coin_skip_warn_fflags=yes
1800
1801# Check if user wants to produce debugging code
1802
1803echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1804echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1805
1806# Check whether --enable-debug or --disable-debug was given.
1807if test "${enable_debug+set}" = set; then
1808  enableval="$enable_debug"
1809  case "${enableval}" in
1810   yes) coin_debug_compile=true
1811        if test "${enable_shared+set}" = set; then :; else
1812          enable_shared=no
1813        fi
1814        ;;
1815   no)  coin_debug_compile=false
1816        ;;
1817   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1819   { (exit 1); exit 1; }; }
1820        ;;
1821esac
1822else
1823  coin_debug_compile=false
1824fi;
1825
1826# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1827if test "${enable_debug_lapack+set}" = set; then
1828  enableval="$enable_debug_lapack"
1829  case "${enableval}" in
1830    yes) coin_debug_compile=true
1831         ;;
1832    no)  coin_debug_compile=false
1833         ;;
1834    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1835echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1836   { (exit 1); exit 1; }; }
1837         ;;
1838 esac
1839else
1840  :
1841fi;
1842
1843 # m4_ifvaln([Lapack],
1844
1845if test $coin_debug_compile = true; then
1846  echo "$as_me:$LINENO: result: yes" >&5
1847echo "${ECHO_T}yes" >&6
1848else
1849  echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853
1854# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1855if test "${with_lapack_verbosity+set}" = set; then
1856  withval="$with_lapack_verbosity"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_lapack_verbosity=$withval
1861else
1862  coin_lapack_verbosity=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1867_ACEOF
1868
1869
1870
1871# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1872if test "${with_lapack_checklevel+set}" = set; then
1873  withval="$with_lapack_checklevel"
1874  if test "$withval" = yes; then
1875                withval=1
1876              fi
1877              coin_lapack_checklevel=$withval
1878else
1879  coin_lapack_checklevel=0
1880fi;
1881
1882cat >>confdefs.h <<_ACEOF
1883#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1884_ACEOF
1885
1886
1887 # m4_ifvaln([Lapack],
1888
1889
1890
1891# Get the name of the Fortran compiler and appropriate compiler options
1892case $build in
1893  *-mingw*)
1894    if test "${LD+set}" = set; then :; else
1895      LD=link
1896    fi
1897    ;;
1898 esac
1899 case $enable_doscompile in
1900   msvc)
1901     if test "x${LD+set}" = xset; then :; else
1902       LD=link
1903     fi
1904     ;;
1905 esac
1906
1907
1908 # Check whether --enable-doscompile or --disable-doscompile was given.
1909if test "${enable_doscompile+set}" = set; then
1910  enableval="$enable_doscompile"
1911  if test "$enable_doscompile" != no; then
1912     case $build in
1913       *-cygwin* | *-mingw*) ;;
1914       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1915echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1916   { (exit 1); exit 1; }; } ;;
1917     esac
1918   fi
1919else
1920  enable_doscompile=no
1921fi;
1922 case "$enable_doscompile" in
1923   mingw)
1924     case $build in
1925       *-mingw*) enable_doscompile=no ;;
1926     esac
1927     ;;
1928   msvc|no) ;;
1929   yes) enable_doscompile=mingw ;;
1930   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1931                    Try configure --help=recursive." >&5
1932echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1933                    Try configure --help=recursive." >&2;}
1934   { (exit 1); exit 1; }; }
1935      ;;
1936  esac
1937  if test "$enable_doscompile" != no ; then
1938    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1939echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1940  fi
1941
1942
1943
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    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1957      if test x"$CC" = x; then
1958        CC="$CXX"
1959        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1960echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1961      fi
1962      ;;
1963  esac
1964fi
1965
1966
1967
1968
1969
1970
1971coin_has_cc=yes
1972
1973save_cflags="$CFLAGS"
1974
1975# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1976# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1977# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1978# compiler. In this case, put cc after gcc.
1979
1980case $build in
1981  *-cygwin* | *-mingw*)
1982             if test "$enable_doscompile" = msvc ; then
1983               comps="icl cl"
1984             else
1985               comps="gcc cl"
1986             fi ;;
1987  *-*-solaris*)
1988             # Extract the first word of "cc", so it can be a program name with args.
1989set dummy cc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$sol_cc_compiler"; then
1996  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1997else
1998  ac_prog_rejected=no
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  for ac_exec_ext in '' $ac_executable_extensions; do
2005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007       ac_prog_rejected=yes
2008       continue
2009     fi
2010    ac_cv_prog_sol_cc_compiler="cc"
2011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012    break 2
2013  fi
2014done
2015done
2016
2017if test $ac_prog_rejected = yes; then
2018  # We found a bogon in the path, so make sure we never use it.
2019  set dummy $ac_cv_prog_sol_cc_compiler
2020  shift
2021  if test $# != 0; then
2022    # We chose a different compiler from the bogus one.
2023    # However, it has the same basename, so the bogon will be chosen
2024    # first if we set sol_cc_compiler to just the basename; use the full file name.
2025    shift
2026    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2027  fi
2028fi
2029fi
2030fi
2031sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2032if test -n "$sol_cc_compiler"; then
2033  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2034echo "${ECHO_T}$sol_cc_compiler" >&6
2035else
2036  echo "$as_me:$LINENO: result: no" >&5
2037echo "${ECHO_T}no" >&6
2038fi
2039
2040             if test "$sol_cc_compiler" = "cc" ; then
2041               comps="cc xlc gcc pgcc icc"
2042             else
2043               comps="xlc gcc pgcc icc cc"
2044             fi
2045             ;;
2046  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2047  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2048  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2049esac
2050
2051# We delete the cached value, since the test might not have been
2052# performed with our choice of compilers earlier
2053$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2054# AC_MSG_NOTICE([C compiler candidates: $comps])
2055ac_ext=c
2056ac_cpp='$CPP $CPPFLAGS'
2057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060if test -n "$ac_tool_prefix"; then
2061  for ac_prog in $comps
2062  do
2063    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_CC+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$CC"; then
2071  ac_cv_prog_CC="$CC" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078  for ac_exec_ext in '' $ac_executable_extensions; do
2079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082    break 2
2083  fi
2084done
2085done
2086
2087fi
2088fi
2089CC=$ac_cv_prog_CC
2090if test -n "$CC"; then
2091  echo "$as_me:$LINENO: result: $CC" >&5
2092echo "${ECHO_T}$CC" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098    test -n "$CC" && break
2099  done
2100fi
2101if test -z "$CC"; then
2102  ac_ct_CC=$CC
2103  for ac_prog in $comps
2104do
2105  # Extract the first word of "$ac_prog", so it can be a program name with args.
2106set dummy $ac_prog; ac_word=$2
2107echo "$as_me:$LINENO: checking for $ac_word" >&5
2108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2110  echo $ECHO_N "(cached) $ECHO_C" >&6
2111else
2112  if test -n "$ac_ct_CC"; then
2113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2114else
2115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118  IFS=$as_save_IFS
2119  test -z "$as_dir" && as_dir=.
2120  for ac_exec_ext in '' $ac_executable_extensions; do
2121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122    ac_cv_prog_ac_ct_CC="$ac_prog"
2123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124    break 2
2125  fi
2126done
2127done
2128
2129fi
2130fi
2131ac_ct_CC=$ac_cv_prog_ac_ct_CC
2132if test -n "$ac_ct_CC"; then
2133  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2134echo "${ECHO_T}$ac_ct_CC" >&6
2135else
2136  echo "$as_me:$LINENO: result: no" >&5
2137echo "${ECHO_T}no" >&6
2138fi
2139
2140  test -n "$ac_ct_CC" && break
2141done
2142
2143  CC=$ac_ct_CC
2144fi
2145
2146
2147test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: no acceptable C compiler found in \$PATH
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152
2153# Provide some information about the compiler.
2154echo "$as_me:$LINENO:" \
2155     "checking for C compiler version" >&5
2156ac_compiler=`set X $ac_compile; echo $2`
2157{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2158  (eval $ac_compiler --version </dev/null >&5) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }
2162{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2163  (eval $ac_compiler -v </dev/null >&5) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }
2167{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2168  (eval $ac_compiler -V </dev/null >&5) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }
2172
2173cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188ac_clean_files_save=$ac_clean_files
2189ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190# Try to create an executable without -o first, disregard a.out.
2191# It will help us diagnose broken compilers, and finding out an intuition
2192# of exeext.
2193echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2194echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197  (eval $ac_link_default) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; then
2201  # Find the output, starting from the most likely.  This scheme is
2202# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203# resort.
2204
2205# Be careful to initialize this variable, since it used to be cached.
2206# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2207ac_cv_exeext=
2208# b.out is created by i960 compilers.
2209for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2210do
2211  test -f "$ac_file" || continue
2212  case $ac_file in
2213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2214        ;;
2215    conftest.$ac_ext )
2216        # This is the source file.
2217        ;;
2218    [ab].out )
2219        # We found the default executable, but exeext='' is most
2220        # certainly right.
2221        break;;
2222    *.* )
2223        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224        # FIXME: I believe we export ac_cv_exeext for Libtool,
2225        # but it would be cool to find out if it's true.  Does anybody
2226        # maintain Libtool? --akim.
2227        export ac_cv_exeext
2228        break;;
2229    * )
2230        break;;
2231  esac
2232done
2233else
2234  echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: C compiler cannot create executables
2240See \`config.log' for more details." >&2;}
2241   { (exit 77); exit 77; }; }
2242fi
2243
2244ac_exeext=$ac_cv_exeext
2245echo "$as_me:$LINENO: result: $ac_file" >&5
2246echo "${ECHO_T}$ac_file" >&6
2247
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253# If not cross compiling, check that we can run a simple program.
2254if test "$cross_compiling" != yes; then
2255  if { ac_try='./$ac_file'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261    cross_compiling=no
2262  else
2263    if test "$cross_compiling" = maybe; then
2264        cross_compiling=yes
2265    else
2266        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273    fi
2274  fi
2275fi
2276echo "$as_me:$LINENO: result: yes" >&5
2277echo "${ECHO_T}yes" >&6
2278
2279rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280ac_clean_files=$ac_clean_files_save
2281# Check the compiler produces executables we can run.  If not, either
2282# the compiler is broken, or we cross compile.
2283echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286echo "${ECHO_T}$cross_compiling" >&6
2287
2288echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291  (eval $ac_link) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); }; then
2295  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297# work properly (i.e., refer to `conftest.exe'), while it won't with
2298# `rm'.
2299for ac_file in conftest.exe conftest conftest.*; do
2300  test -f "$ac_file" || continue
2301  case $ac_file in
2302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304          export ac_cv_exeext
2305          break;;
2306    * ) break;;
2307  esac
2308done
2309else
2310  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311See \`config.log' for more details." >&5
2312echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&2;}
2314   { (exit 1); exit 1; }; }
2315fi
2316
2317rm -f conftest$ac_cv_exeext
2318echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319echo "${ECHO_T}$ac_cv_exeext" >&6
2320
2321rm -f conftest.$ac_ext
2322EXEEXT=$ac_cv_exeext
2323ac_exeext=$EXEEXT
2324echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326if test "${ac_cv_objext+set}" = set; then
2327  echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329  cat >conftest.$ac_ext <<_ACEOF
2330/* confdefs.h.  */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h.  */
2335
2336int
2337main ()
2338{
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344rm -f conftest.o conftest.obj
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2351  case $ac_file in
2352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2353    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2354       break;;
2355  esac
2356done
2357else
2358  echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&2;}
2365   { (exit 1); exit 1; }; }
2366fi
2367
2368rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369fi
2370echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2371echo "${ECHO_T}$ac_cv_objext" >&6
2372OBJEXT=$ac_cv_objext
2373ac_objext=$OBJEXT
2374echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2375echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2376if test "${ac_cv_c_compiler_gnu+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385
2386int
2387main ()
2388{
2389#ifndef __GNUC__
2390       choke me
2391#endif
2392
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406         { ac_try='test -z "$ac_c_werror_flag"
2407                         || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413         { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  ac_compiler_gnu=yes
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424ac_compiler_gnu=no
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428
2429fi
2430echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2432GCC=`test $ac_compiler_gnu = yes && echo yes`
2433ac_test_CFLAGS=${CFLAGS+set}
2434ac_save_CFLAGS=$CFLAGS
2435CFLAGS="-g"
2436echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2438if test "${ac_cv_prog_cc_g+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456rm -f conftest.$ac_objext
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458  (eval $ac_compile) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465         { ac_try='test -z "$ac_c_werror_flag"
2466                         || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472         { ac_try='test -s conftest.$ac_objext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  ac_cv_prog_cc_g=yes
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483ac_cv_prog_cc_g=no
2484fi
2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2488echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2489if test "$ac_test_CFLAGS" = set; then
2490  CFLAGS=$ac_save_CFLAGS
2491elif test $ac_cv_prog_cc_g = yes; then
2492  if test "$GCC" = yes; then
2493    CFLAGS="-g -O2"
2494  else
2495    CFLAGS="-g"
2496  fi
2497else
2498  if test "$GCC" = yes; then
2499    CFLAGS="-O2"
2500  else
2501    CFLAGS=
2502  fi
2503fi
2504echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2505echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2506if test "${ac_cv_prog_cc_stdc+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  ac_cv_prog_cc_stdc=no
2510ac_save_CC=$CC
2511cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517#include <stdarg.h>
2518#include <stdio.h>
2519#include <sys/types.h>
2520#include <sys/stat.h>
2521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2522struct buf { int x; };
2523FILE * (*rcsopen) (struct buf *, struct stat *, int);
2524static char *e (p, i)
2525     char **p;
2526     int i;
2527{
2528  return p[i];
2529}
2530static char *f (char * (*g) (char **, int), char **p, ...)
2531{
2532  char *s;
2533  va_list v;
2534  va_start (v,p);
2535  s = g (p, va_arg (v,int));
2536  va_end (v);
2537  return s;
2538}
2539
2540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2541   function prototypes and stuff, but not '\xHH' hex character constants.
2542   These don't provoke an error unfortunately, instead are silently treated
2543   as 'x'.  The following induces an error, until -std1 is added to get
2544   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2545   array size at least.  It's necessary to write '\x00'==0 to get something
2546   that's true only with -std1.  */
2547int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2548
2549int test (int i, double x);
2550struct s1 {int (*f) (int a);};
2551struct s2 {int (*f) (double a);};
2552int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2553int argc;
2554char **argv;
2555int
2556main ()
2557{
2558return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563# Don't try gcc -ansi; that turns off useful extensions and
2564# breaks some systems' header files.
2565# AIX                   -qlanglvl=ansi
2566# Ultrix and OSF/1      -std1
2567# HP-UX 10.20 and later -Ae
2568# HP-UX older versions  -Aa -D_HPUX_SOURCE
2569# SVR4                  -Xc -D__EXTENSIONS__
2570for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2571do
2572  CC="$ac_save_CC $ac_arg"
2573  rm -f conftest.$ac_objext
2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575  (eval $ac_compile) 2>conftest.er1
2576  ac_status=$?
2577  grep -v '^ *+' conftest.er1 >conftest.err
2578  rm -f conftest.er1
2579  cat conftest.err >&5
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); } &&
2582         { ac_try='test -z "$ac_c_werror_flag"
2583                         || test ! -s conftest.err'
2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585  (eval $ac_try) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }; } &&
2589         { ac_try='test -s conftest.$ac_objext'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; }; then
2595  ac_cv_prog_cc_stdc=$ac_arg
2596break
2597else
2598  echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601fi
2602rm -f conftest.err conftest.$ac_objext
2603done
2604rm -f conftest.$ac_ext conftest.$ac_objext
2605CC=$ac_save_CC
2606
2607fi
2608
2609case "x$ac_cv_prog_cc_stdc" in
2610  x|xno)
2611    echo "$as_me:$LINENO: result: none needed" >&5
2612echo "${ECHO_T}none needed" >&6 ;;
2613  *)
2614    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2615echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2616    CC="$CC $ac_cv_prog_cc_stdc" ;;
2617esac
2618
2619# Some people use a C++ compiler to compile C.  Since we use `exit',
2620# in C++ we need to declare it.  In case someone uses the same compiler
2621# for both compiling C and C++ we need to have the C++ compiler decide
2622# the declaration of exit, since it's the most demanding environment.
2623cat >conftest.$ac_ext <<_ACEOF
2624#ifndef __cplusplus
2625  choke me
2626#endif
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -z "$ac_c_werror_flag"
2638                         || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644         { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  for ac_declaration in \
2651   '' \
2652   'extern "C" void std::exit (int) throw (); using std::exit;' \
2653   'extern "C" void std::exit (int); using std::exit;' \
2654   'extern "C" void exit (int) throw ();' \
2655   'extern "C" void exit (int);' \
2656   'void exit (int);'
2657do
2658  cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664$ac_declaration
2665#include <stdlib.h>
2666int
2667main ()
2668{
2669exit (42);
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674rm -f conftest.$ac_objext
2675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676  (eval $ac_compile) 2>conftest.er1
2677  ac_status=$?
2678  grep -v '^ *+' conftest.er1 >conftest.err
2679  rm -f conftest.er1
2680  cat conftest.err >&5
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); } &&
2683         { ac_try='test -z "$ac_c_werror_flag"
2684                         || test ! -s conftest.err'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; } &&
2690         { ac_try='test -s conftest.$ac_objext'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; }; then
2696  :
2697else
2698  echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701continue
2702fi
2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704  cat >conftest.$ac_ext <<_ACEOF
2705/* confdefs.h.  */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h.  */
2710$ac_declaration
2711int
2712main ()
2713{
2714exit (42);
2715  ;
2716  return 0;
2717}
2718_ACEOF
2719rm -f conftest.$ac_objext
2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721  (eval $ac_compile) 2>conftest.er1
2722  ac_status=$?
2723  grep -v '^ *+' conftest.er1 >conftest.err
2724  rm -f conftest.er1
2725  cat conftest.err >&5
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); } &&
2728         { ac_try='test -z "$ac_c_werror_flag"
2729                         || test ! -s conftest.err'
2730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731  (eval $ac_try) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }; } &&
2735         { ac_try='test -s conftest.$ac_objext'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; }; then
2741  break
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748done
2749rm -f conftest*
2750if test -n "$ac_declaration"; then
2751  echo '#ifdef __cplusplus' >>confdefs.h
2752  echo $ac_declaration      >>confdefs.h
2753  echo '#endif'             >>confdefs.h
2754fi
2755
2756else
2757  echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768if test -z "$CC" ; then
2769  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2770echo "$as_me: error: Failed to find a C compiler!" >&2;}
2771   { (exit 1); exit 1; }; }
2772fi
2773# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2774case "$CC" in
2775  cl* | */cl* | CL* | */CL* )
2776    if test "$ac_cv_prog_cc_g" = yes ; then
2777      ac_cv_prog_cc_g=no
2778      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2779echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2780    fi ;;
2781esac
2782CFLAGS="$save_cflags"
2783
2784# add automake conditional so we can recognize cl compiler in makefile
2785coin_cc_is_cl=false
2786case "$CC" in
2787  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2788    coin_cc_is_cl=true
2789    ;;
2790esac
2791
2792
2793if test $coin_cc_is_cl = true; then
2794  COIN_CC_IS_CL_TRUE=
2795  COIN_CC_IS_CL_FALSE='#'
2796else
2797  COIN_CC_IS_CL_TRUE='#'
2798  COIN_CC_IS_CL_FALSE=
2799fi
2800
2801
2802# Check if a project specific CFLAGS variable has been set
2803if test x$COIN_PRJCT != x; then
2804  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2805  if test x$coin_tmp = xset; then
2806    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2807  fi
2808fi
2809
2810if test x"$CFLAGS" = x; then
2811
2812  coin_add_cflags=
2813  coin_opt_cflags=
2814  coin_dbg_cflags=
2815  coin_warn_cflags=
2816
2817  if test "$GCC" = "yes"; then
2818    case "$CC" in
2819      icc* | */icc*)
2820        ;;
2821      *)
2822        coin_opt_cflags="-O3"
2823        coin_add_cflags="-pipe"
2824        coin_dbg_cflags="-g -O0"
2825        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2826        case $build in
2827          *-darwin*)
2828            ;;
2829          *)
2830            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2831            ;;
2832        esac
2833        case $enable_doscompile in
2834          mingw)
2835            CFLAGS="-mno-cygwin"
2836            cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846int i=0; i++;
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext conftest$ac_exeext
2852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853  (eval $ac_link) 2>conftest.er1
2854  ac_status=$?
2855  grep -v '^ *+' conftest.er1 >conftest.err
2856  rm -f conftest.er1
2857  cat conftest.err >&5
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); } &&
2860         { ac_try='test -z "$ac_c_werror_flag"
2861                         || test ! -s conftest.err'
2862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863  (eval $ac_try) 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }; } &&
2867         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2873  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2874else
2875  echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878fi
2879rm -f conftest.err conftest.$ac_objext \
2880      conftest$ac_exeext conftest.$ac_ext
2881            CFLAGS=
2882          ;;
2883        esac
2884    esac
2885  fi
2886  if test -z "$coin_opt_cflags"; then
2887    case $build in
2888      *-cygwin* | *-mingw*)
2889        case "$CC" in
2890          cl* | */cl* | CL* | */CL*)
2891            coin_opt_cflags='-MT -O2'
2892            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2893            coin_dbg_cflags='-MTd'
2894            ;;
2895          icl* | */icl* | ICL* | */ICL*)
2896            coin_opt_cflags='-MT -Ox'
2897            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2898            coin_dbg_cflags='-MTd -debug'
2899            ;;
2900        esac
2901        ;;
2902      *-linux-*)
2903        case "$CC" in
2904          icc* | */icc*)
2905            coin_opt_cflags="-O3 -ip -mp1"
2906            coin_add_cflags=""
2907            coin_dbg_cflags="-g"
2908            # Check if -i_dynamic is necessary (for new glibc library)
2909            CFLAGS=
2910            cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920int i=0; i++;
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext conftest$ac_exeext
2926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927  (eval $ac_link) 2>conftest.er1
2928  ac_status=$?
2929  grep -v '^ *+' conftest.er1 >conftest.err
2930  rm -f conftest.er1
2931  cat conftest.err >&5
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } &&
2934         { ac_try='test -z "$ac_c_werror_flag"
2935                         || test ! -s conftest.err'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; } &&
2941         { ac_try='test -s conftest$ac_exeext'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947  :
2948else
2949  echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952coin_add_cflags="-i_dynamic $coin_add_cflags"
2953fi
2954rm -f conftest.err conftest.$ac_objext \
2955      conftest$ac_exeext conftest.$ac_ext
2956            ;;
2957          pgcc* | */pgcc*)
2958            coin_opt_cflags="-fast"
2959            coin_add_cflags="-Kieee -pc 64"
2960            coin_dbg_cflags="-g"
2961            ;;
2962        esac
2963        ;;
2964      *-ibm-*)
2965        case "$CC" in
2966          xlc* | */xlc* | mpxlc* | */mpxlc*)
2967            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2968            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2969            coin_dbg_cflags="-g"
2970          ;;
2971        esac
2972        ;;
2973      *-hp-*)
2974        coin_opt_cflags="-O"
2975        coin_add_cflags="-Ae"
2976        coin_dbg_cflags="-g"
2977        ;;
2978      *-*-solaris*)
2979        coin_opt_cflags="-xO4"
2980        coin_dbg_cflags="-g"
2981        ;;
2982      *-sgi-*)
2983        coin_opt_cflags="-O -OPT:Olimit=0"
2984        coin_dbg_cflags="-g"
2985        ;;
2986    esac
2987  fi
2988
2989  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2990    coin_dbg_cflags="-g"
2991  fi
2992
2993  if test -z "$coin_opt_cflags"; then
2994    # Try if -O option works if nothing else is set
2995    CFLAGS="-O"
2996    cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002
3003int
3004main ()
3005{
3006int i=0; i++;
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext conftest$ac_exeext
3012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3013  (eval $ac_link) 2>conftest.er1
3014  ac_status=$?
3015  grep -v '^ *+' conftest.er1 >conftest.err
3016  rm -f conftest.er1
3017  cat conftest.err >&5
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); } &&
3020         { ac_try='test -z "$ac_c_werror_flag"
3021                         || test ! -s conftest.err'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; } &&
3027         { ac_try='test -s conftest$ac_exeext'
3028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029  (eval $ac_try) 2>&5
3030  ac_status=$?
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); }; }; then
3033  coin_opt_cflags="-O"
3034else
3035  echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038fi
3039rm -f conftest.err conftest.$ac_objext \
3040      conftest$ac_exeext conftest.$ac_ext
3041  fi
3042
3043  # if PM doesn't want the warning messages, take them out
3044  if test x"$coin_skip_warn_cflags" = xyes; then
3045    coin_warn_cflags=
3046  fi
3047
3048  if test x${DBG_CFLAGS+set} != xset; then
3049    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3050  fi
3051  if test x${OPT_CFLAGS+set} != xset; then
3052    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3053  fi
3054
3055  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3056  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3057
3058  if test "$coin_debug_compile" = "true"; then
3059    CFLAGS="$DBG_CFLAGS"
3060  else
3061    CFLAGS="$OPT_CFLAGS"
3062  fi
3063else
3064  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3065  if test x${DBG_CFLAGS+set} != xset; then
3066    DBG_CFLAGS="$CFLAGS"
3067  fi
3068  if test x${OPT_CFLAGS+set} != xset; then
3069    OPT_CFLAGS="$CFLAGS"
3070  fi
3071fi
3072
3073# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3074
3075case "$CFLAGS" in
3076  *-mno-cygwin*)
3077    if test x${CPPFLAGS+set} != xset ; then
3078      CPPFLAGS="-mno-cygwin"
3079    else
3080      case "$CPPFLAGS" in
3081        *-mno-cygwin*)
3082          ;;
3083        *)
3084          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3085          ;;
3086      esac
3087    fi ;;
3088esac
3089
3090# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3091if test x$COIN_PRJCT != x; then
3092  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3093fi
3094
3095# Try if CFLAGS works
3096save_CFLAGS="$CFLAGS"
3097cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103
3104int
3105main ()
3106{
3107int i=0; i++;
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext conftest$ac_exeext
3113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114  (eval $ac_link) 2>conftest.er1
3115  ac_status=$?
3116  grep -v '^ *+' conftest.er1 >conftest.err
3117  rm -f conftest.er1
3118  cat conftest.err >&5
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); } &&
3121         { ac_try='test -z "$ac_c_werror_flag"
3122                         || test ! -s conftest.err'
3123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124  (eval $ac_try) 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; } &&
3128         { ac_try='test -s conftest$ac_exeext'
3129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130  (eval $ac_try) 2>&5
3131  ac_status=$?
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); }; }; then
3134  :
3135else
3136  echo "$as_me: failed program was:" >&5
3137sed 's/^/| /' conftest.$ac_ext >&5
3138
3139CFLAGS=
3140fi
3141rm -f conftest.err conftest.$ac_objext \
3142      conftest$ac_exeext conftest.$ac_ext
3143if test -z "$CFLAGS"; then
3144  { 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
3145echo "$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;}
3146  CFLAGS='-O'
3147  cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h.  */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157int i=0; i++;
3158  ;
3159  return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext conftest$ac_exeext
3163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3164  (eval $ac_link) 2>conftest.er1
3165  ac_status=$?
3166  grep -v '^ *+' conftest.er1 >conftest.err
3167  rm -f conftest.er1
3168  cat conftest.err >&5
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); } &&
3171         { ac_try='test -z "$ac_c_werror_flag"
3172                         || test ! -s conftest.err'
3173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174  (eval $ac_try) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; } &&
3178         { ac_try='test -s conftest$ac_exeext'
3179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180  (eval $ac_try) 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; }; then
3184  :
3185else
3186  echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189CFLAGS=
3190fi
3191rm -f conftest.err conftest.$ac_objext \
3192      conftest$ac_exeext conftest.$ac_ext
3193  if test -z "$CFLAGS"; then
3194    { 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
3195echo "$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;}
3196  fi
3197fi
3198
3199{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3200echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3201
3202
3203if test x"$MPICC" = x; then :; else
3204  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3205echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3206  CC="$MPICC"
3207fi
3208
3209# Correct the LD variable if we are using the MS or Intel-windows compiler
3210case "$CC" in
3211  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3212    case $build in
3213  *-mingw*)
3214    if test "${LD+set}" = set; then :; else
3215      LD=link
3216    fi
3217    ;;
3218 esac
3219 case $enable_doscompile in
3220   msvc)
3221     if test "x${LD+set}" = xset; then :; else
3222       LD=link
3223     fi
3224     ;;
3225 esac
3226
3227    ;;
3228esac
3229
3230ac_ext=c
3231ac_cpp='$CPP $CPPFLAGS'
3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
3236
3237case $build in
3238  *-cygwin* | *-mingw*)
3239     if test "$enable_doscompile" = msvc ; then
3240       coin_f77_comps="ifort fl32 compile_f2c"
3241     else
3242       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3243     fi ;;
3244  *-*-solaris*)
3245     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3246  *-linux-gnu*)
3247     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3248  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3249 esac
3250
3251
3252
3253
3254
3255
3256ac_ext=f
3257ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3258ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3260
3261
3262
3263
3264
3265
3266coin_has_f77=yes
3267
3268save_fflags="$FFLAGS"
3269
3270# We delete the cached value, since the test might not have been
3271# performed with our choice of compilers earlier
3272$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3273
3274# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3275# coin_f77_comps to see if there's a program that matches one of the names.
3276# If there's no such program, F77 = unavailable. If we match the name,
3277# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3278# compiler.
3279# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3280
3281
3282{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3283echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3284for ac_prog in $coin_f77_comps
3285do
3286  # Extract the first word of "$ac_prog", so it can be a program name with args.
3287set dummy $ac_prog; ac_word=$2
3288echo "$as_me:$LINENO: checking for $ac_word" >&5
3289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3290if test "${ac_cv_prog_F77+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293  if test -n "$F77"; then
3294  ac_cv_prog_F77="$F77" # Let the user override the test.
3295else
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301  for ac_exec_ext in '' $ac_executable_extensions; do
3302  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303    ac_cv_prog_F77="$ac_prog"
3304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307done
3308done
3309
3310fi
3311fi
3312F77=$ac_cv_prog_F77
3313if test -n "$F77"; then
3314  echo "$as_me:$LINENO: result: $F77" >&5
3315echo "${ECHO_T}$F77" >&6
3316else
3317  echo "$as_me:$LINENO: result: no" >&5
3318echo "${ECHO_T}no" >&6
3319fi
3320
3321  test -n "$F77" && break
3322done
3323test -n "$F77" || F77="unavailable"
3324
3325
3326if test "$F77" != "unavailable" ; then
3327  ac_ext=f
3328ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3329ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3331if test -n "$ac_tool_prefix"; then
3332  for ac_prog in $coin_f77_comps
3333  do
3334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336echo "$as_me:$LINENO: checking for $ac_word" >&5
3337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338if test "${ac_cv_prog_F77+set}" = set; then
3339  echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341  if test -n "$F77"; then
3342  ac_cv_prog_F77="$F77" # Let the user override the test.
3343else
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349  for ac_exec_ext in '' $ac_executable_extensions; do
3350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353    break 2
3354  fi
3355done
3356done
3357
3358fi
3359fi
3360F77=$ac_cv_prog_F77
3361if test -n "$F77"; then
3362  echo "$as_me:$LINENO: result: $F77" >&5
3363echo "${ECHO_T}$F77" >&6
3364else
3365  echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368
3369    test -n "$F77" && break
3370  done
3371fi
3372if test -z "$F77"; then
3373  ac_ct_F77=$F77
3374  for ac_prog in $coin_f77_comps
3375do
3376  # Extract the first word of "$ac_prog", so it can be a program name with args.
3377set dummy $ac_prog; ac_word=$2
3378echo "$as_me:$LINENO: checking for $ac_word" >&5
3379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  if test -n "$ac_ct_F77"; then
3384  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3385else
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389  IFS=$as_save_IFS
3390  test -z "$as_dir" && as_dir=.
3391  for ac_exec_ext in '' $ac_executable_extensions; do
3392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393    ac_cv_prog_ac_ct_F77="$ac_prog"
3394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395    break 2
3396  fi
3397done
3398done
3399
3400fi
3401fi
3402ac_ct_F77=$ac_cv_prog_ac_ct_F77
3403if test -n "$ac_ct_F77"; then
3404  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3405echo "${ECHO_T}$ac_ct_F77" >&6
3406else
3407  echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
3409fi
3410
3411  test -n "$ac_ct_F77" && break
3412done
3413
3414  F77=$ac_ct_F77
3415fi
3416
3417
3418# Provide some information about the compiler.
3419echo "$as_me:3419:" \
3420     "checking for Fortran 77 compiler version" >&5
3421ac_compiler=`set X $ac_compile; echo $2`
3422{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3423  (eval $ac_compiler --version </dev/null >&5) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }
3427{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3428  (eval $ac_compiler -v </dev/null >&5) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }
3432{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3433  (eval $ac_compiler -V </dev/null >&5) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }
3437rm -f a.out
3438
3439# If we don't use `.F' as extension, the preprocessor is not run on the
3440# input file.  (Note that this only needs to work for GNU compilers.)
3441ac_save_ext=$ac_ext
3442ac_ext=F
3443echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3444echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3445if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  cat >conftest.$ac_ext <<_ACEOF
3449      program main
3450#ifndef __GNUC__
3451       choke me
3452#endif
3453
3454      end
3455_ACEOF
3456rm -f conftest.$ac_objext
3457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458  (eval $ac_compile) 2>conftest.er1
3459  ac_status=$?
3460  grep -v '^ *+' conftest.er1 >conftest.err
3461  rm -f conftest.er1
3462  cat conftest.err >&5
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); } &&
3465         { ac_try='test -z "$ac_f77_werror_flag"
3466                         || test ! -s conftest.err'
3467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468  (eval $ac_try) 2>&5
3469  ac_status=$?
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); }; } &&
3472         { ac_try='test -s conftest.$ac_objext'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; }; then
3478  ac_compiler_gnu=yes
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483ac_compiler_gnu=no
3484fi
3485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3486ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3487
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3490echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3491ac_ext=$ac_save_ext
3492ac_test_FFLAGS=${FFLAGS+set}
3493ac_save_FFLAGS=$FFLAGS
3494FFLAGS=
3495echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3496echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3497if test "${ac_cv_prog_f77_g+set}" = set; then
3498  echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500  FFLAGS=-g
3501cat >conftest.$ac_ext <<_ACEOF
3502      program main
3503
3504      end
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508  (eval $ac_compile) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } &&
3515         { ac_try='test -z "$ac_f77_werror_flag"
3516                         || test ! -s conftest.err'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; } &&
3522         { ac_try='test -s conftest.$ac_objext'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; }; then
3528  ac_cv_prog_f77_g=yes
3529else
3530  echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533ac_cv_prog_f77_g=no
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536
3537fi
3538echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3539echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3540if test "$ac_test_FFLAGS" = set; then
3541  FFLAGS=$ac_save_FFLAGS
3542elif test $ac_cv_prog_f77_g = yes; then
3543  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3544    FFLAGS="-g -O2"
3545  else
3546    FFLAGS="-g"
3547  fi
3548else
3549  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3550    FFLAGS="-O2"
3551  else
3552    FFLAGS=
3553  fi
3554fi
3555
3556G77=`test $ac_compiler_gnu = yes && echo yes`
3557ac_ext=f
3558ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3559ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3561
3562else
3563  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3564echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3565fi
3566
3567FFLAGS="$save_fflags"
3568
3569# Check if a project specific FFLAGS variable has been set
3570if test x$COIN_PRJCT != x; then
3571  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3572  if test x$coin_tmp = xset; then
3573    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3574  fi
3575fi
3576
3577if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3578
3579  coin_add_fflags=
3580  coin_opt_fflags=
3581  coin_dbg_fflags=
3582  coin_warn_fflags=
3583
3584  if test "$G77" = "yes"; then
3585    coin_opt_fflags="-O3"
3586    coin_add_fflags="-pipe"
3587    coin_dbg_fflags="-g -O0"
3588    case $enable_doscompile in
3589      mingw)
3590        FFLAGS="-mno-cygwin"
3591        cat >conftest.$ac_ext <<_ACEOF
3592      program main
3593      write(*,*) 'Hello world'
3594      end
3595_ACEOF
3596rm -f conftest.$ac_objext conftest$ac_exeext
3597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3598  (eval $ac_link) 2>conftest.er1
3599  ac_status=$?
3600  grep -v '^ *+' conftest.er1 >conftest.err
3601  rm -f conftest.er1
3602  cat conftest.err >&5
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); } &&
3605         { ac_try='test -z "$ac_f77_werror_flag"
3606                         || test ! -s conftest.err'
3607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608  (eval $ac_try) 2>&5
3609  ac_status=$?
3610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611  (exit $ac_status); }; } &&
3612         { ac_try='test -s conftest$ac_exeext'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; }; then
3618  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3619else
3620  echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
3623fi
3624rm -f conftest.err conftest.$ac_objext \
3625      conftest$ac_exeext conftest.$ac_ext
3626        FFLAGS=
3627      ;;
3628    esac
3629  else
3630    case $build in
3631      *-cygwin* | *-mingw*)
3632        case $F77 in
3633          ifort* | */ifort* | IFORT* | */IFORT* )
3634            coin_opt_fflags='-MT -O3'
3635            coin_add_fflags='-fpp -nologo'
3636            coin_dbg_fflags='-MTd -debug'
3637          ;;
3638          compile_f2c*)
3639            coin_opt_fflags='-MT -O2'
3640            coin_add_fflags='-nologo -wd4996'
3641            coin_dbg_fflags='-MTd'
3642          ;;
3643        esac
3644        ;;
3645      *-linux-*)
3646        case $F77 in
3647          ifc* | */ifc* | ifort* | */ifort*)
3648            coin_opt_fflags="-O3 -ip"
3649            coin_add_fflags="-cm -w90 -w95"
3650            coin_dbg_fflags="-g -CA -CB -CS"
3651            # Check if -i_dynamic is necessary (for new glibc library)
3652            FFLAGS=
3653            cat >conftest.$ac_ext <<_ACEOF
3654      program main
3655      write(*,*) 'Hello world'
3656      end
3657_ACEOF
3658rm -f conftest.$ac_objext conftest$ac_exeext
3659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3660  (eval $ac_link) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } &&
3667         { ac_try='test -z "$ac_f77_werror_flag"
3668                         || test ! -s conftest.err'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; } &&
3674         { ac_try='test -s conftest$ac_exeext'
3675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676  (eval $ac_try) 2>&5
3677  ac_status=$?
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); }; }; then
3680  :
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685coin_add_fflags="-i_dynamic $coin_add_fflags"
3686fi
3687rm -f conftest.err conftest.$ac_objext \
3688      conftest$ac_exeext conftest.$ac_ext
3689            ;;
3690          pgf77* | */pgf77* | pgf90* | */pgf90*)
3691            coin_opt_fflags="-fast"
3692            coin_add_fflags="-Kieee -pc 64"
3693            coin_dbg_fflags="-g"
3694          ;;
3695        esac
3696        ;;
3697      *-ibm-*)
3698        case "$F77" in
3699          xlf* | */xlf* | mpxlf* | */mpxlf* )
3700            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3701            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3702            coin_dbg_fflags="-g -C"
3703            ;;
3704        esac
3705        ;;
3706      *-hp-*)
3707        coin_opt_fflags="+O3"
3708        coin_add_fflags="+U77"
3709        coin_dbg_fflags="-C -g"
3710        ;;
3711      *-*-solaris*)
3712        coin_opt_fflags="-O4"
3713        coin_dbg_fflags="-g"
3714        ;;
3715      *-sgi-*)
3716        coin_opt_fflags="-O5 -OPT:Olimit=0"
3717        coin_dbg_fflags="-g"
3718        ;;
3719    esac
3720  fi
3721
3722  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3723    coin_dbg_fflags="-g"
3724  fi
3725
3726  if test -z "$coin_opt_fflags"; then
3727    # Try if -O option works if nothing else is set
3728    FFLAGS=-O
3729    cat >conftest.$ac_ext <<_ACEOF
3730      program main
3731      integer i
3732      end
3733_ACEOF
3734rm -f conftest.$ac_objext conftest$ac_exeext
3735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3736  (eval $ac_link) 2>conftest.er1
3737  ac_status=$?
3738  grep -v '^ *+' conftest.er1 >conftest.err
3739  rm -f conftest.er1
3740  cat conftest.err >&5
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); } &&
3743         { ac_try='test -z "$ac_f77_werror_flag"
3744                         || test ! -s conftest.err'
3745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746  (eval $ac_try) 2>&5
3747  ac_status=$?
3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749  (exit $ac_status); }; } &&
3750         { ac_try='test -s conftest$ac_exeext'
3751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); }; }; then
3756  coin_opt_fflags="-O"
3757else
3758  echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761fi
3762rm -f conftest.err conftest.$ac_objext \
3763      conftest$ac_exeext conftest.$ac_ext
3764  fi
3765
3766  # if PM doesn't want the warning messages, take them out
3767  if test x"$coin_skip_warn_fflags" = xyes; then
3768    coin_warn_fflags=
3769  fi
3770
3771  if test x${DBG_FFLAGS+set} != xset; then
3772    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3773  fi
3774  if test x${OPT_FFLAGS+set} != xset; then
3775    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3776  fi
3777
3778  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3779  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3780
3781  if test "$coin_debug_compile" = "true"; then
3782    FFLAGS="$DBG_FFLAGS"
3783  else
3784    FFLAGS="$OPT_FFLAGS"
3785  fi
3786else
3787  FFLAGS="$FFLAGS $ADD_FFLAGS"
3788  if test x${DBG_FFLAGS+set} != xset; then
3789    DBG_FFLAGS="$FFLAGS"
3790  fi
3791  if test x${OPT_FFLAGS+set} != xset; then
3792    OPT_FFLAGS="$FFLAGS"
3793  fi
3794fi
3795
3796# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3797case "$FFLAGS" in
3798  *-mno-cygwin*)
3799    if test x${CPPFLAGS+set} != xset ; then
3800      CPPFLAGS="-mno-cygwin"
3801    else
3802      case "$CPPFLAGS" in
3803        *-mno-cygwin*)
3804          ;;
3805        *)
3806          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3807          ;;
3808      esac
3809    fi ;;
3810esac
3811
3812# Try if FFLAGS works
3813if test "$F77" != "unavailable" ; then
3814  cat >conftest.$ac_ext <<_ACEOF
3815      program main
3816      integer i
3817      end
3818_ACEOF
3819rm -f conftest.$ac_objext conftest$ac_exeext
3820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3821  (eval $ac_link) 2>conftest.er1
3822  ac_status=$?
3823  grep -v '^ *+' conftest.er1 >conftest.err
3824  rm -f conftest.er1
3825  cat conftest.err >&5
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); } &&
3828         { ac_try='test -z "$ac_f77_werror_flag"
3829                         || test ! -s conftest.err'
3830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831  (eval $ac_try) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }; } &&
3835         { ac_try='test -s conftest$ac_exeext'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; }; then
3841  :
3842else
3843  echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
3846FFLAGS=
3847fi
3848rm -f conftest.err conftest.$ac_objext \
3849      conftest$ac_exeext conftest.$ac_ext
3850  if test -z "$FFLAGS"; then
3851    { 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
3852echo "$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;}
3853    FFLAGS='-O'
3854    cat >conftest.$ac_ext <<_ACEOF
3855      program main
3856      integer i
3857      end
3858_ACEOF
3859rm -f conftest.$ac_objext conftest$ac_exeext
3860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3861  (eval $ac_link) 2>conftest.er1
3862  ac_status=$?
3863  grep -v '^ *+' conftest.er1 >conftest.err
3864  rm -f conftest.er1
3865  cat conftest.err >&5
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); } &&
3868         { ac_try='test -z "$ac_f77_werror_flag"
3869                         || test ! -s conftest.err'
3870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871  (eval $ac_try) 2>&5
3872  ac_status=$?
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); }; } &&
3875         { ac_try='test -s conftest$ac_exeext'
3876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877  (eval $ac_try) 2>&5
3878  ac_status=$?
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); }; }; then
3881  :
3882else
3883  echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886FFLAGS=
3887fi
3888rm -f conftest.err conftest.$ac_objext \
3889      conftest$ac_exeext conftest.$ac_ext
3890    if test -z "$FFLAGS"; then
3891      { 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
3892echo "$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;}
3893    fi
3894  fi
3895fi
3896
3897{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3898echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3899
3900
3901if test x"$MPIF77" = x; then :; else
3902  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3903echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3904  F77="$MPIF77"
3905fi
3906
3907# correct the LD variable if we use the intel fortran compiler in windows
3908case "$F77" in
3909  ifort* | */ifort* | IFORT* | */IFORT*)
3910    case $build in
3911  *-mingw*)
3912    if test "${LD+set}" = set; then :; else
3913      LD=link
3914    fi
3915    ;;
3916 esac
3917 case $enable_doscompile in
3918   msvc)
3919     if test "x${LD+set}" = xset; then :; else
3920       LD=link
3921     fi
3922     ;;
3923 esac
3924
3925    ;;
3926esac
3927
3928ac_ext=c
3929ac_cpp='$CPP $CPPFLAGS'
3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934
3935
3936# Get the linker flags (FLIBS) that are required for linking against this library
3937
3938# get FLIBS
3939ac_ext=f
3940ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3941ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3943echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3944echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3945if test "${ac_cv_prog_f77_v+set}" = set; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948  cat >conftest.$ac_ext <<_ACEOF
3949      program main
3950
3951      end
3952_ACEOF
3953rm -f conftest.$ac_objext
3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955  (eval $ac_compile) 2>conftest.er1
3956  ac_status=$?
3957  grep -v '^ *+' conftest.er1 >conftest.err
3958  rm -f conftest.er1
3959  cat conftest.err >&5
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); } &&
3962         { ac_try='test -z "$ac_f77_werror_flag"
3963                         || test ! -s conftest.err'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; } &&
3969         { ac_try='test -s conftest.$ac_objext'
3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971  (eval $ac_try) 2>&5
3972  ac_status=$?
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); }; }; then
3975  ac_cv_prog_f77_v=
3976# Try some options frequently used verbose output
3977for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3978  cat >conftest.$ac_ext <<_ACEOF
3979      program main
3980
3981      end
3982_ACEOF
3983
3984# Compile and link our simple test program by passing a flag (argument
3985# 1 to this macro) to the Fortran compiler in order to get
3986# "verbose" output that we can then parse for the Fortran linker
3987# flags.
3988ac_save_FFLAGS=$FFLAGS
3989FFLAGS="$FFLAGS $ac_verb"
3990(eval echo $as_me:3990: \"$ac_link\") >&5
3991ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3992echo "$ac_f77_v_output" >&5
3993FFLAGS=$ac_save_FFLAGS
3994
3995rm -f conftest*
3996
3997# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3998# /foo, /bar, and /baz are search directories for the Fortran linker.
3999# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4000ac_f77_v_output="`echo $ac_f77_v_output |
4001        grep 'LPATH is:' |
4002        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4003
4004case $ac_f77_v_output in
4005  # If we are using xlf then replace all the commas with spaces.
4006  *xlfentry*)
4007    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4008
4009  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4010  # $LIBS confuse us, and the libraries appear later in the output anyway).
4011  *mGLOB_options_string*)
4012    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4013
4014  # If we are using Cray Fortran then delete quotes.
4015  # Use "\"" instead of '"' for font-lock-mode.
4016  # FIXME: a more general fix for quoted arguments with spaces?
4017  *cft90*)
4018    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4019esac
4020
4021
4022  # look for -l* and *.a constructs in the output
4023  for ac_arg in $ac_f77_v_output; do
4024     case $ac_arg in
4025        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4026          ac_cv_prog_f77_v=$ac_verb
4027          break 2 ;;
4028     esac
4029  done
4030done
4031if test -z "$ac_cv_prog_f77_v"; then
4032   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4033echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4034fi
4035else
4036  echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4040echo "$as_me: WARNING: compilation failed" >&2;}
4041fi
4042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043
4044fi
4045echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4046echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4047echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4048echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4049if test "${ac_cv_f77_libs+set}" = set; then
4050  echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052  if test "x$FLIBS" != "x"; then
4053  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4054else
4055
4056cat >conftest.$ac_ext <<_ACEOF
4057      program main
4058
4059      end
4060_ACEOF
4061
4062# Compile and link our simple test program by passing a flag (argument
4063# 1 to this macro) to the Fortran compiler in order to get
4064# "verbose" output that we can then parse for the Fortran linker
4065# flags.
4066ac_save_FFLAGS=$FFLAGS
4067FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4068(eval echo $as_me:4068: \"$ac_link\") >&5
4069ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4070echo "$ac_f77_v_output" >&5
4071FFLAGS=$ac_save_FFLAGS
4072
4073rm -f conftest*
4074
4075# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4076# /foo, /bar, and /baz are search directories for the Fortran linker.
4077# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4078ac_f77_v_output="`echo $ac_f77_v_output |
4079        grep 'LPATH is:' |
4080        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4081
4082case $ac_f77_v_output in
4083  # If we are using xlf then replace all the commas with spaces.
4084  *xlfentry*)
4085    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4086
4087  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4088  # $LIBS confuse us, and the libraries appear later in the output anyway).
4089  *mGLOB_options_string*)
4090    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4091
4092  # If we are using Cray Fortran then delete quotes.
4093  # Use "\"" instead of '"' for font-lock-mode.
4094  # FIXME: a more general fix for quoted arguments with spaces?
4095  *cft90*)
4096    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4097esac
4098
4099
4100
4101ac_cv_f77_libs=
4102
4103# Save positional arguments (if any)
4104ac_save_positional="$@"
4105
4106set X $ac_f77_v_output
4107while test $# != 1; do
4108  shift
4109  ac_arg=$1
4110  case $ac_arg in
4111        [\\/]*.a | ?:[\\/]*.a)
4112            ac_exists=false
4113  for ac_i in $ac_cv_f77_libs; do
4114    if test x"$ac_arg" = x"$ac_i"; then
4115      ac_exists=true
4116      break
4117    fi
4118  done
4119
4120  if test x"$ac_exists" = xtrue; then
4121  :
4122else
4123  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4124fi
4125
4126          ;;
4127        -bI:*)
4128            ac_exists=false
4129  for ac_i in $ac_cv_f77_libs; do
4130    if test x"$ac_arg" = x"$ac_i"; then
4131      ac_exists=true
4132      break
4133    fi
4134  done
4135
4136  if test x"$ac_exists" = xtrue; then
4137  :
4138else
4139  if test "$ac_compiler_gnu" = yes; then
4140  for ac_link_opt in $ac_arg; do
4141    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4142  done
4143else
4144  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4145fi
4146fi
4147
4148          ;;
4149          # Ignore these flags.
4150        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4151          ;;
4152        -lkernel32)
4153          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4154          ;;
4155        -[LRuY])
4156          # These flags, when seen by themselves, take an argument.
4157          # We remove the space between option and argument and re-iterate
4158          # unless we find an empty arg or a new option (starting with -)
4159          case $2 in
4160             "" | -*);;
4161             *)
4162                ac_arg="$ac_arg$2"
4163                shift; shift
4164                set X $ac_arg "$@"
4165                ;;
4166          esac
4167          ;;
4168        -YP,*)
4169          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4170              ac_exists=false
4171  for ac_i in $ac_cv_f77_libs; do
4172    if test x"$ac_j" = x"$ac_i"; then
4173      ac_exists=true
4174      break
4175    fi
4176  done
4177
4178  if test x"$ac_exists" = xtrue; then
4179  :
4180else
4181  ac_arg="$ac_arg $ac_j"
4182                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4183fi
4184
4185          done
4186          ;;
4187        -[lLR]*)
4188            ac_exists=false
4189  for ac_i in $ac_cv_f77_libs; do
4190    if test x"$ac_arg" = x"$ac_i"; then
4191      ac_exists=true
4192      break
4193    fi
4194  done
4195
4196  if test x"$ac_exists" = xtrue; then
4197  :
4198else
4199  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4200fi
4201
4202          ;;
4203          # Ignore everything else.
4204  esac
4205done
4206# restore positional arguments
4207set X $ac_save_positional; shift
4208
4209# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4210# then we insist that the "run path" must be an absolute path (i.e. it
4211# must begin with a "/").
4212case `(uname -sr) 2>/dev/null` in
4213   "SunOS 5"*)
4214      ac_ld_run_path=`echo $ac_f77_v_output |
4215                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4216      test "x$ac_ld_run_path" != x &&
4217        if test "$ac_compiler_gnu" = yes; then
4218  for ac_link_opt in $ac_ld_run_path; do
4219    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4220  done
4221else
4222  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4223fi
4224      ;;
4225esac
4226fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4227
4228fi
4229echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4230echo "${ECHO_T}$ac_cv_f77_libs" >&6
4231FLIBS="$ac_cv_f77_libs"
4232
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240orig_FLIBS="$FLIBS"
4241
4242# If FLIBS has been set by the user, we just restore its value here
4243if test x"$save_FLIBS" != x; then
4244  FLIBS="$save_FLIBS"
4245else
4246  # This is to correct a missing exclusion in autoconf 2.59
4247  if test x"$FLIBS" != x; then
4248    my_flibs=
4249    for flag in $FLIBS; do
4250      case $flag in
4251        -lcrt*.o) ;;
4252        -lcygwin) ;;
4253               *) my_flibs="$my_flibs $flag" ;;
4254      esac
4255    done
4256    FLIBS="$my_flibs"
4257  fi
4258
4259  case $build in
4260  # The following is a fix to define FLIBS for ifort on Windows
4261  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4262  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4263  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4264  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4265  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4266     *-cygwin* | *-mingw*)
4267       case "$F77" in
4268#         ifort* | */ifort* | IFORT* | */IFORT*)
4269#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4270#           if "$coin_debug_compile" = true ; then
4271#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4272#           else
4273#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4274#           fi
4275#           ;;
4276         compile_f2c*)
4277           FLIBS=`$F77 -FLIBS` ;;
4278       esac;;
4279     *-hp-*)
4280         FLIBS="$FLIBS -lm";;
4281     *-ibm-*)
4282         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4283     *-linux-*)
4284       case "$F77" in
4285         pgf77* | */pgf77* | pgf90* | */pgf90*)
4286# ask linker to go through the archives multiple times
4287# (the Fortran compiler seems to do that automatically...)
4288           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4289       esac
4290  esac
4291  ac_cv_f77_libs="$FLIBS"
4292fi
4293
4294if test "x$orig_FLIBS" != "x$FLIBS" ; then
4295  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4296echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4297fi
4298
4299ac_ext=f
4300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4303
4304echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4305echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4306if test "${ac_cv_f77_dummy_main+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309  ac_f77_dm_save_LIBS=$LIBS
4310 LIBS="$LIBS $FLIBS"
4311 ac_fortran_dm_var=F77_DUMMY_MAIN
4312 ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318 # First, try linking without a dummy main:
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h.  */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h.  */
4325
4326#ifdef F77_DUMMY_MAIN
4327
4328#  ifdef __cplusplus
4329     extern "C"
4330#  endif
4331   int F77_DUMMY_MAIN() { return 1; }
4332
4333#endif
4334int
4335main ()
4336{
4337
4338  ;
4339  return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext conftest$ac_exeext
4343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344  (eval $ac_link) 2>conftest.er1
4345  ac_status=$?
4346  grep -v '^ *+' conftest.er1 >conftest.err
4347  rm -f conftest.er1
4348  cat conftest.err >&5
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); } &&
4351         { ac_try='test -z "$ac_c_werror_flag"
4352                         || test ! -s conftest.err'
4353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354  (eval $ac_try) 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }; } &&
4358         { ac_try='test -s conftest$ac_exeext'
4359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360  (eval $ac_try) 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); }; }; then
4364  ac_cv_fortran_dummy_main=none
4365else
4366  echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369ac_cv_fortran_dummy_main=unknown
4370fi
4371rm -f conftest.err conftest.$ac_objext \
4372      conftest$ac_exeext conftest.$ac_ext
4373
4374 if test $ac_cv_fortran_dummy_main = unknown; then
4375   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4376     cat >conftest.$ac_ext <<_ACEOF
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382#define $ac_fortran_dm_var $ac_func
4383#ifdef F77_DUMMY_MAIN
4384
4385#  ifdef __cplusplus
4386     extern "C"
4387#  endif
4388   int F77_DUMMY_MAIN() { return 1; }
4389
4390#endif
4391int
4392main ()
4393{
4394
4395  ;
4396  return 0;
4397}
4398_ACEOF
4399rm -f conftest.$ac_objext conftest$ac_exeext
4400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4401  (eval $ac_link) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } &&
4408         { ac_try='test -z "$ac_c_werror_flag"
4409                         || test ! -s conftest.err'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; } &&
4415         { ac_try='test -s conftest$ac_exeext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  ac_cv_fortran_dummy_main=$ac_func; break
4422else
4423  echo "$as_me: failed program was:" >&5
4424sed 's/^/| /' conftest.$ac_ext >&5
4425
4426fi
4427rm -f conftest.err conftest.$ac_objext \
4428      conftest$ac_exeext conftest.$ac_ext
4429   done
4430 fi
4431 ac_ext=f
4432ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4433ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4435 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4436 rm -f conftest*
4437 LIBS=$ac_f77_dm_save_LIBS
4438
4439fi
4440echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4441echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4442F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4443if test "$F77_DUMMY_MAIN" != unknown; then
4444  if test $F77_DUMMY_MAIN != none; then
4445
4446cat >>confdefs.h <<_ACEOF
4447#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4448_ACEOF
4449
4450  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4451
4452cat >>confdefs.h <<\_ACEOF
4453#define FC_DUMMY_MAIN_EQ_F77 1
4454_ACEOF
4455
4456  fi
4457fi
4458else
4459  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4460See \`config.log' for more details." >&5
4461echo "$as_me: error: linking to Fortran libraries from C fails
4462See \`config.log' for more details." >&2;}
4463   { (exit 1); exit 1; }; }
4464fi
4465
4466
4467ac_ext=f
4468ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4469ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4471
4472ac_ext=f
4473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4476echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4477echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4478if test "${ac_cv_f77_mangling+set}" = set; then
4479  echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481  cat >conftest.$ac_ext <<_ACEOF
4482      subroutine foobar()
4483      return
4484      end
4485      subroutine foo_bar()
4486      return
4487      end
4488_ACEOF
4489rm -f conftest.$ac_objext
4490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491  (eval $ac_compile) 2>conftest.er1
4492  ac_status=$?
4493  grep -v '^ *+' conftest.er1 >conftest.err
4494  rm -f conftest.er1
4495  cat conftest.err >&5
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); } &&
4498         { ac_try='test -z "$ac_f77_werror_flag"
4499                         || test ! -s conftest.err'
4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501  (eval $ac_try) 2>&5
4502  ac_status=$?
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; } &&
4505         { ac_try='test -s conftest.$ac_objext'
4506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507  (eval $ac_try) 2>&5
4508  ac_status=$?
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); }; }; then
4511  mv conftest.$ac_objext cfortran_test.$ac_objext
4512
4513  ac_save_LIBS=$LIBS
4514  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4515
4516  ac_ext=c
4517ac_cpp='$CPP $CPPFLAGS'
4518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521  ac_success=no
4522  for ac_foobar in foobar FOOBAR; do
4523    for ac_underscore in "" "_"; do
4524      ac_func="$ac_foobar$ac_underscore"
4525      cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h.  */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h.  */
4531
4532/* Override any gcc2 internal prototype to avoid an error.  */
4533#ifdef __cplusplus
4534extern "C"
4535#endif
4536/* We use char because int might match the return type of a gcc2
4537   builtin and then its argument prototype would still apply.  */
4538char $ac_func ();
4539#ifdef F77_DUMMY_MAIN
4540
4541#  ifdef __cplusplus
4542     extern "C"
4543#  endif
4544   int F77_DUMMY_MAIN() { return 1; }
4545
4546#endif
4547int
4548main ()
4549{
4550$ac_func ();
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext conftest$ac_exeext
4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557  (eval $ac_link) 2>conftest.er1
4558  ac_status=$?
4559  grep -v '^ *+' conftest.er1 >conftest.err
4560  rm -f conftest.er1
4561  cat conftest.err >&5
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); } &&
4564         { ac_try='test -z "$ac_c_werror_flag"
4565                         || test ! -s conftest.err'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; } &&
4571         { ac_try='test -s conftest$ac_exeext'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; }; then
4577  ac_success=yes; break 2
4578else
4579  echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582fi
4583rm -f conftest.err conftest.$ac_objext \
4584      conftest$ac_exeext conftest.$ac_ext
4585    done
4586  done
4587  ac_ext=f
4588ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4589ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4591
4592  if test "$ac_success" = "yes"; then
4593     case $ac_foobar in
4594        foobar)
4595           ac_case=lower
4596           ac_foo_bar=foo_bar
4597           ;;
4598        FOOBAR)
4599           ac_case=upper
4600           ac_foo_bar=FOO_BAR
4601           ;;
4602     esac
4603
4604     ac_ext=c
4605ac_cpp='$CPP $CPPFLAGS'
4606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609     ac_success_extra=no
4610     for ac_extra in "" "_"; do
4611        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4612        cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h.  */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h.  */
4618
4619/* Override any gcc2 internal prototype to avoid an error.  */
4620#ifdef __cplusplus
4621extern "C"
4622#endif
4623/* We use char because int might match the return type of a gcc2
4624   builtin and then its argument prototype would still apply.  */
4625char $ac_func ();
4626#ifdef F77_DUMMY_MAIN
4627
4628#  ifdef __cplusplus
4629     extern "C"
4630#  endif
4631   int F77_DUMMY_MAIN() { return 1; }
4632
4633#endif
4634int
4635main ()
4636{
4637$ac_func ();
4638  ;
4639  return 0;
4640}
4641_ACEOF
4642rm -f conftest.$ac_objext conftest$ac_exeext
4643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644  (eval $ac_link) 2>conftest.er1
4645  ac_status=$?
4646  grep -v '^ *+' conftest.er1 >conftest.err
4647  rm -f conftest.er1
4648  cat conftest.err >&5
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); } &&
4651         { ac_try='test -z "$ac_c_werror_flag"
4652                         || test ! -s conftest.err'
4653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654  (eval $ac_try) 2>&5
4655  ac_status=$?
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); }; } &&
4658         { ac_try='test -s conftest$ac_exeext'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; }; then
4664  ac_success_extra=yes; break
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669fi
4670rm -f conftest.err conftest.$ac_objext \
4671      conftest$ac_exeext conftest.$ac_ext
4672     done
4673     ac_ext=f
4674ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4675ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4677
4678     if test "$ac_success_extra" = "yes"; then
4679        ac_cv_f77_mangling="$ac_case case"
4680        if test -z "$ac_underscore"; then
4681           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4682        else
4683           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4684        fi
4685        if test -z "$ac_extra"; then
4686           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4687        else
4688           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4689        fi
4690      else
4691        ac_cv_f77_mangling="unknown"
4692      fi
4693  else
4694     ac_cv_f77_mangling="unknown"
4695  fi
4696
4697  LIBS=$ac_save_LIBS
4698  rm -f cfortran_test* conftest*
4699else
4700  echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4704See \`config.log' for more details." >&5
4705echo "$as_me: error: cannot compile a simple Fortran program
4706See \`config.log' for more details." >&2;}
4707   { (exit 1); exit 1; }; }
4708fi
4709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710
4711fi
4712echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4713echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4714
4715ac_ext=f
4716ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4717ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4719
4720
4721ac_ext=f
4722ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4723ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4725
4726ac_ext=f
4727ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4728ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4730
4731
4732case $ac_cv_f77_mangling in
4733  "lower case, no underscore, no extra underscore")
4734          cat >>confdefs.h <<\_ACEOF
4735#define F77_FUNC(name,NAME) name
4736_ACEOF
4737
4738          cat >>confdefs.h <<\_ACEOF
4739#define F77_FUNC_(name,NAME) name
4740_ACEOF
4741 ;;
4742  "lower case, no underscore, extra underscore")
4743          cat >>confdefs.h <<\_ACEOF
4744#define F77_FUNC(name,NAME) name
4745_ACEOF
4746
4747          cat >>confdefs.h <<\_ACEOF
4748#define F77_FUNC_(name,NAME) name ## _
4749_ACEOF
4750 ;;
4751  "lower case, underscore, no extra underscore")
4752          cat >>confdefs.h <<\_ACEOF
4753#define F77_FUNC(name,NAME) name ## _
4754_ACEOF
4755
4756          cat >>confdefs.h <<\_ACEOF
4757#define F77_FUNC_(name,NAME) name ## _
4758_ACEOF
4759 ;;
4760  "lower case, underscore, extra underscore")
4761          cat >>confdefs.h <<\_ACEOF
4762#define F77_FUNC(name,NAME) name ## _
4763_ACEOF
4764
4765          cat >>confdefs.h <<\_ACEOF
4766#define F77_FUNC_(name,NAME) name ## __
4767_ACEOF
4768 ;;
4769  "upper case, no underscore, no extra underscore")
4770          cat >>confdefs.h <<\_ACEOF
4771#define F77_FUNC(name,NAME) NAME
4772_ACEOF
4773
4774          cat >>confdefs.h <<\_ACEOF
4775#define F77_FUNC_(name,NAME) NAME
4776_ACEOF
4777 ;;
4778  "upper case, no underscore, extra underscore")
4779          cat >>confdefs.h <<\_ACEOF
4780#define F77_FUNC(name,NAME) NAME
4781_ACEOF
4782
4783          cat >>confdefs.h <<\_ACEOF
4784#define F77_FUNC_(name,NAME) NAME ## _
4785_ACEOF
4786 ;;
4787  "upper case, underscore, no extra underscore")
4788          cat >>confdefs.h <<\_ACEOF
4789#define F77_FUNC(name,NAME) NAME ## _
4790_ACEOF
4791
4792          cat >>confdefs.h <<\_ACEOF
4793#define F77_FUNC_(name,NAME) NAME ## _
4794_ACEOF
4795 ;;
4796  "upper case, underscore, extra underscore")
4797          cat >>confdefs.h <<\_ACEOF
4798#define F77_FUNC(name,NAME) NAME ## _
4799_ACEOF
4800
4801          cat >>confdefs.h <<\_ACEOF
4802#define F77_FUNC_(name,NAME) NAME ## __
4803_ACEOF
4804 ;;
4805  *)
4806          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4807echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4808          ;;
4809esac
4810
4811ac_ext=f
4812ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4813ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4815
4816ac_ext=c
4817ac_cpp='$CPP $CPPFLAGS'
4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
4822
4823
4824
4825# Check for Blas
4826
4827
4828# Check whether --enable-pkg-config or --disable-pkg-config was given.
4829if test "${enable_pkg_config+set}" = set; then
4830  enableval="$enable_pkg_config"
4831  use_pkgconfig="$enableval"
4832else
4833  use_pkgconfig=yes
4834fi;
4835
4836if test $use_pkgconfig = yes ; then
4837  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4838    if test -n "$ac_tool_prefix"; then
4839  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4840set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4841echo "$as_me:$LINENO: checking for $ac_word" >&5
4842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4844  echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846  case $PKG_CONFIG in
4847  [\\/]* | ?:[\\/]*)
4848  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4849  ;;
4850  *)
4851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856  for ac_exec_ext in '' $ac_executable_extensions; do
4857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863done
4864
4865  ;;
4866esac
4867fi
4868PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4869
4870if test -n "$PKG_CONFIG"; then
4871  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4872echo "${ECHO_T}$PKG_CONFIG" >&6
4873else
4874  echo "$as_me:$LINENO: result: no" >&5
4875echo "${ECHO_T}no" >&6
4876fi
4877
4878fi
4879if test -z "$ac_cv_path_PKG_CONFIG"; then
4880  ac_pt_PKG_CONFIG=$PKG_CONFIG
4881  # Extract the first word of "pkg-config", so it can be a program name with args.
4882set dummy pkg-config; ac_word=$2
4883echo "$as_me:$LINENO: checking for $ac_word" >&5
4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  case $ac_pt_PKG_CONFIG in
4889  [\\/]* | ?:[\\/]*)
4890  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4891  ;;
4892  *)
4893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898  for ac_exec_ext in '' $ac_executable_extensions; do
4899  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902    break 2
4903  fi
4904done
4905done
4906
4907  ;;
4908esac
4909fi
4910ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4911
4912if test -n "$ac_pt_PKG_CONFIG"; then
4913  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4914echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4915else
4916  echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918fi
4919
4920  PKG_CONFIG=$ac_pt_PKG_CONFIG
4921else
4922  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4923fi
4924
4925  fi
4926  if test -n "$PKG_CONFIG"; then
4927    _pkg_min_version=0.16.0
4928    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4929echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4930    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4931      echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933    else
4934      echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936      PKG_CONFIG=""
4937    fi
4938  fi
4939
4940  # check if pkg-config supports the short-errors flag
4941  if test -n "$PKG_CONFIG" && \
4942    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4943    pkg_short_errors=" --short-errors "
4944  else
4945    pkg_short_errors=""
4946  fi
4947fi
4948
4949
4950
4951if test -n "$PKG_CONFIG"; then
4952  COIN_HAS_PKGCONFIG_TRUE=
4953  COIN_HAS_PKGCONFIG_FALSE='#'
4954else
4955  COIN_HAS_PKGCONFIG_TRUE='#'
4956  COIN_HAS_PKGCONFIG_FALSE=
4957fi
4958
4959
4960
4961# assemble pkg-config search path for installed projects
4962COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4963
4964# 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
4965# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4966# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4967if test "x${prefix}" = xNONE ; then
4968  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4969else
4970  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4971fi
4972
4973
4974# Check whether --with-coin-instdir or --without-coin-instdir was given.
4975if test "${with_coin_instdir+set}" = set; then
4976  withval="$with_coin_instdir"
4977  if test -d "$withval"; then : ; else
4978     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4979echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4980   { (exit 1); exit 1; }; }
4981   fi
4982   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4983
4984fi;
4985
4986
4987
4988# assemble additional pkg-config search paths for uninstalled projects
4989if test x$coin_projectdir = xyes ; then
4990  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4991  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4992  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4993  # 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)
4994  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4995  if test -e ../coin_subdirs.txt ; then
4996    for i in `cat ../coin_subdirs.txt` ; do
4997      if test -d ../$i ; then
4998        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4999      fi
5000      if test -d ../$i/pkgconfig ; then
5001        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5002      fi
5003    done
5004  fi
5005
5006  if test -e ../../coin_subdirs.txt ; then
5007    for i in `cat ../../coin_subdirs.txt` ; do
5008      if test -d ../../$i ; then
5009        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5010      fi
5011      if test -d ../../$i/pkgconfig ; then
5012        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5013      fi
5014    done
5015  fi
5016
5017
5018fi
5019
5020if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5021  { 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
5022echo "$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;}
5023fi
5024
5025
5026
5027
5028# Check whether --with-blas or --without-blas was given.
5029if test "${with_blas+set}" = set; then
5030  withval="$with_blas"
5031  use_blas="$withval"
5032else
5033  use_blas=
5034fi;
5035
5036# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
5037# preference
5038
5039# Check whether --with-blas-lib or --without-blas-lib was given.
5040if test "${with_blas_lib+set}" = set; then
5041  withval="$with_blas_lib"
5042  use_blas=BUILD
5043fi;
5044
5045# Check if user supplied option makes sense
5046if test x"$use_blas" != x; then
5047  if test "$use_blas" = "BUILD"; then
5048    # we come to this later
5049    :
5050  elif test "$use_blas" != "no"; then
5051    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
5052echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
5053    coin_need_flibs=no
5054    coin_save_LIBS="$LIBS"
5055    LIBS="$use_blas $LIBS"
5056    case $ac_ext in
5057  f)
5058    cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064
5065#ifdef F77_DUMMY_MAIN
5066
5067#  ifdef __cplusplus
5068     extern "C"
5069#  endif
5070   int F77_DUMMY_MAIN() { return 1; }
5071
5072#endif
5073int
5074main ()
5075{
5076      call daxpy
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081rm -f conftest.$ac_objext conftest$ac_exeext
5082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083  (eval $ac_link) 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } &&
5090         { ac_try='test -z "$ac_c_werror_flag"
5091                         || test ! -s conftest.err'
5092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093  (eval $ac_try) 2>&5
5094  ac_status=$?
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); }; } &&
5097         { ac_try='test -s conftest$ac_exeext'
5098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099  (eval $ac_try) 2>&5
5100  ac_status=$?
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); }; }; then
5103  if test $coin_need_flibs = yes ; then
5104                         use_blas="$use_blas $FLIBS"
5105                       fi
5106                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5107echo "${ECHO_T}yes: $use_blas" >&6
5108else
5109  echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5115echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5116   { (exit 1); exit 1; }; }
5117fi
5118rm -f conftest.err conftest.$ac_objext \
5119      conftest$ac_exeext conftest.$ac_ext
5120    ;;
5121  c)
5122    ac_ext=f
5123ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5124ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5126case $ac_cv_f77_mangling in
5127  upper*) ac_val="DAXPY" ;;
5128  lower*) ac_val="daxpy" ;;
5129  *)      ac_val="unknown" ;;
5130esac
5131case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5132
5133cfuncdaxpy="$ac_val"
5134
5135ac_ext=c
5136ac_cpp='$CPP $CPPFLAGS'
5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141    if test x"$coin_need_flibs" = xyes; then
5142      flink_try=no;
5143    else
5144      cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150void $cfuncdaxpy();
5151#ifdef F77_DUMMY_MAIN
5152
5153#  ifdef __cplusplus
5154     extern "C"
5155#  endif
5156   int F77_DUMMY_MAIN() { return 1; }
5157
5158#endif
5159int
5160main ()
5161{
5162$cfuncdaxpy()
5163  ;
5164  return 0;
5165}
5166_ACEOF
5167rm -f conftest.$ac_objext conftest$ac_exeext
5168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5169  (eval $ac_link) 2>conftest.er1
5170  ac_status=$?
5171  grep -v '^ *+' conftest.er1 >conftest.err
5172  rm -f conftest.er1
5173  cat conftest.err >&5
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); } &&
5176         { ac_try='test -z "$ac_c_werror_flag"
5177                         || test ! -s conftest.err'
5178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179  (eval $ac_try) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); }; } &&
5183         { ac_try='test -s conftest$ac_exeext'
5184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185  (eval $ac_try) 2>&5
5186  ac_status=$?
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); }; }; then
5189  flink_try=yes
5190else
5191  echo "$as_me: failed program was:" >&5
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
5194flink_try=no
5195fi
5196rm -f conftest.err conftest.$ac_objext \
5197      conftest$ac_exeext conftest.$ac_ext
5198    fi
5199    if test $flink_try = yes; then
5200      if test $coin_need_flibs = yes ; then
5201                         use_blas="$use_blas $FLIBS"
5202                       fi
5203                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5204echo "${ECHO_T}yes: $use_blas" >&6
5205    else
5206      if test x"$FLIBS" != x; then
5207        flink_save_libs="$LIBS"
5208        LIBS="$LIBS $FLIBS"
5209        cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h.  */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h.  */
5215void $cfuncdaxpy();
5216#ifdef F77_DUMMY_MAIN
5217
5218#  ifdef __cplusplus
5219     extern "C"
5220#  endif
5221   int F77_DUMMY_MAIN() { return 1; }
5222
5223#endif
5224int
5225main ()
5226{
5227$cfuncdaxpy()
5228  ;
5229  return 0;
5230}
5231_ACEOF
5232rm -f conftest.$ac_objext conftest$ac_exeext
5233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234  (eval $ac_link) 2>conftest.er1
5235  ac_status=$?
5236  grep -v '^ *+' conftest.er1 >conftest.err
5237  rm -f conftest.er1
5238  cat conftest.err >&5
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); } &&
5241         { ac_try='test -z "$ac_c_werror_flag"
5242                         || test ! -s conftest.err'
5243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244  (eval $ac_try) 2>&5
5245  ac_status=$?
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); }; } &&
5248         { ac_try='test -s conftest$ac_exeext'
5249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250  (eval $ac_try) 2>&5
5251  ac_status=$?
5252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253  (exit $ac_status); }; }; then
5254  LIBS="$flink_save_libs"
5255                     coin_need_flibs=yes
5256                     if test $coin_need_flibs = yes ; then
5257                         use_blas="$use_blas $FLIBS"
5258                       fi
5259                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5260echo "${ECHO_T}yes: $use_blas" >&6
5261
5262else
5263  echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
5266LIBS="$flink_save_libs"
5267                     echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5270echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5271   { (exit 1); exit 1; }; }
5272fi
5273rm -f conftest.err conftest.$ac_objext \
5274      conftest$ac_exeext conftest.$ac_ext
5275      else
5276        echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5279echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5280   { (exit 1); exit 1; }; }
5281      fi
5282    fi
5283    ;;
5284  cc|cpp)
5285    ac_ext=f
5286ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5287ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5289case $ac_cv_f77_mangling in
5290  upper*) ac_val="DAXPY" ;;
5291  lower*) ac_val="daxpy" ;;
5292  *)      ac_val="unknown" ;;
5293esac
5294case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5295
5296cfuncdaxpy="$ac_val"
5297
5298ac_ext=c
5299ac_cpp='$CPP $CPPFLAGS'
5300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303
5304    if test x"$coin_need_flibs" = xyes; then
5305      flink_try=no;
5306    else
5307      cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h.  */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h.  */
5313extern "C" {void $cfuncdaxpy();}
5314#ifdef F77_DUMMY_MAIN
5315
5316#  ifdef __cplusplus
5317     extern "C"
5318#  endif
5319   int F77_DUMMY_MAIN() { return 1; }
5320
5321#endif
5322int
5323main ()
5324{
5325$cfuncdaxpy()
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330rm -f conftest.$ac_objext conftest$ac_exeext
5331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332  (eval $ac_link) 2>conftest.er1
5333  ac_status=$?
5334  grep -v '^ *+' conftest.er1 >conftest.err
5335  rm -f conftest.er1
5336  cat conftest.err >&5
5337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); } &&
5339         { ac_try='test -z "$ac_c_werror_flag"
5340                         || test ! -s conftest.err'
5341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342  (eval $ac_try) 2>&5
5343  ac_status=$?
5344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345  (exit $ac_status); }; } &&
5346         { ac_try='test -s conftest$ac_exeext'
5347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348  (eval $ac_try) 2>&5
5349  ac_status=$?
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); }; }; then
5352  flink_try=yes
5353else
5354  echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357flink_try=no
5358fi
5359rm -f conftest.err conftest.$ac_objext \
5360      conftest$ac_exeext conftest.$ac_ext
5361    fi
5362    if test $flink_try = yes; then
5363      if test $coin_need_flibs = yes ; then
5364                         use_blas="$use_blas $FLIBS"
5365                       fi
5366                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5367echo "${ECHO_T}yes: $use_blas" >&6
5368    else
5369      if test x"$FLIBS" != x; then
5370        flink_save_libs="$LIBS"
5371        LIBS="$LIBS $FLIBS"
5372        cat >conftest.$ac_ext <<_ACEOF
5373/* confdefs.h.  */
5374_ACEOF
5375cat confdefs.h >>conftest.$ac_ext
5376cat >>conftest.$ac_ext <<_ACEOF
5377/* end confdefs.h.  */
5378extern "C" {void $cfuncdaxpy();}
5379#ifdef F77_DUMMY_MAIN
5380
5381#  ifdef __cplusplus
5382     extern "C"
5383#  endif
5384   int F77_DUMMY_MAIN() { return 1; }
5385
5386#endif
5387int
5388main ()
5389{
5390$cfuncdaxpy()
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397  (eval $ac_link) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404         { ac_try='test -z "$ac_c_werror_flag"
5405                         || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411         { ac_try='test -s conftest$ac_exeext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  LIBS="$flink_save_libs"
5418                     coin_need_flibs=yes
5419                     if test $coin_need_flibs = yes ; then
5420                         use_blas="$use_blas $FLIBS"
5421                       fi
5422                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5423echo "${ECHO_T}yes: $use_blas" >&6
5424
5425else
5426  echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429LIBS="$flink_save_libs"
5430                     echo "$as_me:$LINENO: result: no" >&5
5431echo "${ECHO_T}no" >&6
5432                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5433echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5434   { (exit 1); exit 1; }; }
5435fi
5436rm -f conftest.err conftest.$ac_objext \
5437      conftest$ac_exeext conftest.$ac_ext
5438      else
5439        echo "$as_me:$LINENO: result: no" >&5
5440echo "${ECHO_T}no" >&6
5441                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5442echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5443   { (exit 1); exit 1; }; }
5444      fi
5445    fi
5446    ;;
5447esac
5448
5449    LIBS="$coin_save_LIBS"
5450  fi
5451else
5452# Try to autodetect the library for blas based on build system
5453  #AC_MSG_CHECKING([default locations for BLAS])
5454  skip_lblas_check=no
5455  case $build in
5456    *-sgi-*)
5457      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5458echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5459      coin_need_flibs=no
5460      coin_save_LIBS="$LIBS"
5461      LIBS="-lcomplib.sgimath $LIBS"
5462      case $ac_ext in
5463  f)
5464    cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h.  */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h.  */
5470
5471#ifdef F77_DUMMY_MAIN
5472
5473#  ifdef __cplusplus
5474     extern "C"
5475#  endif
5476   int F77_DUMMY_MAIN() { return 1; }
5477
5478#endif
5479int
5480main ()
5481{
5482      call daxpy
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext conftest$ac_exeext
5488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5489  (eval $ac_link) 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } &&
5496         { ac_try='test -z "$ac_c_werror_flag"
5497                         || test ! -s conftest.err'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; } &&
5503         { ac_try='test -s conftest$ac_exeext'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; }; then
5509  use_blas="-lcomplib.sgimath"
5510                         if test $coin_need_flibs = yes ; then
5511                           use_blas="$use_blas $FLIBS"
5512                         fi
5513                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5514echo "${ECHO_T}yes: $use_blas" >&6
5515
5516else
5517  echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
5520echo "$as_me:$LINENO: result: no" >&5
5521echo "${ECHO_T}no" >&6
5522fi
5523rm -f conftest.err conftest.$ac_objext \
5524      conftest$ac_exeext conftest.$ac_ext
5525    ;;
5526  c)
5527    ac_ext=f
5528ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5529ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5531case $ac_cv_f77_mangling in
5532  upper*) ac_val="DAXPY" ;;
5533  lower*) ac_val="daxpy" ;;
5534  *)      ac_val="unknown" ;;
5535esac
5536case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5537
5538cfuncdaxpy="$ac_val"
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546    if test x"$coin_need_flibs" = xyes; then
5547      flink_try=no;
5548    else
5549      cat >conftest.$ac_ext <<_ACEOF
5550/* confdefs.h.  */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h.  */
5555void $cfuncdaxpy();
5556#ifdef F77_DUMMY_MAIN
5557
5558#  ifdef __cplusplus
5559     extern "C"
5560#  endif
5561   int F77_DUMMY_MAIN() { return 1; }
5562
5563#endif
5564int
5565main ()
5566{
5567$cfuncdaxpy()
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext conftest$ac_exeext
5573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574  (eval $ac_link) 2>conftest.er1
5575  ac_status=$?
5576  grep -v '^ *+' conftest.er1 >conftest.err
5577  rm -f conftest.er1
5578  cat conftest.err >&5
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } &&
5581         { ac_try='test -z "$ac_c_werror_flag"
5582                         || test ! -s conftest.err'
5583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584  (eval $ac_try) 2>&5
5585  ac_status=$?
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); }; } &&
5588         { ac_try='test -s conftest$ac_exeext'
5589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590  (eval $ac_try) 2>&5
5591  ac_status=$?
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); }; }; then
5594  flink_try=yes
5595else
5596  echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
5598
5599flink_try=no
5600fi
5601rm -f conftest.err conftest.$ac_objext \
5602      conftest$ac_exeext conftest.$ac_ext
5603    fi
5604    if test $flink_try = yes; then
5605      use_blas="-lcomplib.sgimath"
5606                         if test $coin_need_flibs = yes ; then
5607                           use_blas="$use_blas $FLIBS"
5608                         fi
5609                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5610echo "${ECHO_T}yes: $use_blas" >&6
5611
5612    else
5613      if test x"$FLIBS" != x; then
5614        flink_save_libs="$LIBS"
5615        LIBS="$LIBS $FLIBS"
5616        cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h.  */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h.  */
5622void $cfuncdaxpy();
5623#ifdef F77_DUMMY_MAIN
5624
5625#  ifdef __cplusplus
5626     extern "C"
5627#  endif
5628   int F77_DUMMY_MAIN() { return 1; }
5629
5630#endif
5631int
5632main ()
5633{
5634$cfuncdaxpy()
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext conftest$ac_exeext
5640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641  (eval $ac_link) 2>conftest.er1
5642  ac_status=$?
5643  grep -v '^ *+' conftest.er1 >conftest.err
5644  rm -f conftest.er1
5645  cat conftest.err >&5
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); } &&
5648         { ac_try='test -z "$ac_c_werror_flag"
5649                         || test ! -s conftest.err'
5650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651  (eval $ac_try) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }; } &&
5655         { ac_try='test -s conftest$ac_exeext'
5656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657  (eval $ac_try) 2>&5
5658  ac_status=$?
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); }; }; then
5661  LIBS="$flink_save_libs"
5662                     coin_need_flibs=yes
5663                     use_blas="-lcomplib.sgimath"
5664                         if test $coin_need_flibs = yes ; then
5665                           use_blas="$use_blas $FLIBS"
5666                         fi
5667                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5668echo "${ECHO_T}yes: $use_blas" >&6
5669
5670
5671else
5672  echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675LIBS="$flink_save_libs"
5676                     echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
5678fi
5679rm -f conftest.err conftest.$ac_objext \
5680      conftest$ac_exeext conftest.$ac_ext
5681      else
5682        echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6
5684      fi
5685    fi
5686    ;;
5687  cc|cpp)
5688    ac_ext=f
5689ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5690ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5692case $ac_cv_f77_mangling in
5693  upper*) ac_val="DAXPY" ;;
5694  lower*) ac_val="daxpy" ;;
5695  *)      ac_val="unknown" ;;
5696esac
5697case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5698
5699cfuncdaxpy="$ac_val"
5700
5701ac_ext=c
5702ac_cpp='$CPP $CPPFLAGS'
5703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706
5707    if test x"$coin_need_flibs" = xyes; then
5708      flink_try=no;
5709    else
5710      cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h.  */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h.  */
5716extern "C" {void $cfuncdaxpy();}
5717#ifdef F77_DUMMY_MAIN
5718
5719#  ifdef __cplusplus
5720     extern "C"
5721#  endif
5722   int F77_DUMMY_MAIN() { return 1; }
5723
5724#endif
5725int
5726main ()
5727{
5728$cfuncdaxpy()
5729  ;
5730  return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext conftest$ac_exeext
5734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735  (eval $ac_link) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } &&
5742         { ac_try='test -z "$ac_c_werror_flag"
5743                         || test ! -s conftest.err'
5744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745  (eval $ac_try) 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }; } &&
5749         { ac_try='test -s conftest$ac_exeext'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; }; then
5755  flink_try=yes
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760flink_try=no
5761fi
5762rm -f conftest.err conftest.$ac_objext \
5763      conftest$ac_exeext conftest.$ac_ext
5764    fi
5765    if test $flink_try = yes; then
5766      use_blas="-lcomplib.sgimath"
5767                         if test $coin_need_flibs = yes ; then
5768                           use_blas="$use_blas $FLIBS"
5769                         fi
5770                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5771echo "${ECHO_T}yes: $use_blas" >&6
5772
5773    else
5774      if test x"$FLIBS" != x; then
5775        flink_save_libs="$LIBS"
5776        LIBS="$LIBS $FLIBS"
5777        cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h.  */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h.  */
5783extern "C" {void $cfuncdaxpy();}
5784#ifdef F77_DUMMY_MAIN
5785
5786#  ifdef __cplusplus
5787     extern "C"
5788#  endif
5789   int F77_DUMMY_MAIN() { return 1; }
5790
5791#endif
5792int
5793main ()
5794{
5795$cfuncdaxpy()
5796  ;
5797  return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext conftest$ac_exeext
5801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802  (eval $ac_link) 2>conftest.er1
5803  ac_status=$?
5804  grep -v '^ *+' conftest.er1 >conftest.err
5805  rm -f conftest.er1
5806  cat conftest.err >&5
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); } &&
5809         { ac_try='test -z "$ac_c_werror_flag"
5810                         || test ! -s conftest.err'
5811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812  (eval $ac_try) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }; } &&
5816         { ac_try='test -s conftest$ac_exeext'
5817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818  (eval $ac_try) 2>&5
5819  ac_status=$?
5820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); }; }; then
5822  LIBS="$flink_save_libs"
5823                     coin_need_flibs=yes
5824                     use_blas="-lcomplib.sgimath"
5825                         if test $coin_need_flibs = yes ; then
5826                           use_blas="$use_blas $FLIBS"
5827                         fi
5828                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5829echo "${ECHO_T}yes: $use_blas" >&6
5830
5831
5832else
5833  echo "$as_me: failed program was:" >&5
5834sed 's/^/| /' conftest.$ac_ext >&5
5835
5836LIBS="$flink_save_libs"
5837                     echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
5839fi
5840rm -f conftest.err conftest.$ac_objext \
5841      conftest$ac_exeext conftest.$ac_ext
5842      else
5843        echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845      fi
5846    fi
5847    ;;
5848esac
5849
5850      LIBS="$coin_save_LIBS"
5851      ;;
5852
5853# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
5854# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
5855# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
5856# that CC and cc will understand -library in Studio 13. The main extra
5857# function of -xlic_lib and -library is to arrange for the Fortran run-time
5858# libraries to be linked for C++ and C. We can arrange that explicitly.
5859    *-*-solaris*)
5860      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
5861echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
5862      coin_need_flibs=no
5863      coin_save_LIBS="$LIBS"
5864      LIBS="-lsunperf $FLIBS $LIBS"
5865      case $ac_ext in
5866  f)
5867    cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h.  */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h.  */
5873
5874#ifdef F77_DUMMY_MAIN
5875
5876#  ifdef __cplusplus
5877     extern "C"
5878#  endif
5879   int F77_DUMMY_MAIN() { return 1; }
5880
5881#endif
5882int
5883main ()
5884{
5885      call daxpy
5886  ;
5887  return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext conftest$ac_exeext
5891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892  (eval $ac_link) 2>conftest.er1
5893  ac_status=$?
5894  grep -v '^ *+' conftest.er1 >conftest.err
5895  rm -f conftest.er1
5896  cat conftest.err >&5
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); } &&
5899         { ac_try='test -z "$ac_c_werror_flag"
5900                         || test ! -s conftest.err'
5901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902  (eval $ac_try) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; } &&
5906         { ac_try='test -s conftest$ac_exeext'
5907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908  (eval $ac_try) 2>&5
5909  ac_status=$?
5910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911  (exit $ac_status); }; }; then
5912  use_blas='-lsunperf'
5913                         if test $coin_need_flibs = yes ; then
5914                           use_blas="$use_blas $FLIBS"
5915                         fi
5916                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5917echo "${ECHO_T}yes: $use_blas" >&6
5918
5919else
5920  echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925fi
5926rm -f conftest.err conftest.$ac_objext \
5927      conftest$ac_exeext conftest.$ac_ext
5928    ;;
5929  c)
5930    ac_ext=f
5931ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5932ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5934case $ac_cv_f77_mangling in
5935  upper*) ac_val="DAXPY" ;;
5936  lower*) ac_val="daxpy" ;;
5937  *)      ac_val="unknown" ;;
5938esac
5939case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5940
5941cfuncdaxpy="$ac_val"
5942
5943ac_ext=c
5944ac_cpp='$CPP $CPPFLAGS'
5945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948
5949    if test x"$coin_need_flibs" = xyes; then
5950      flink_try=no;
5951    else
5952      cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h.  */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h.  */
5958void $cfuncdaxpy();
5959#ifdef F77_DUMMY_MAIN
5960
5961#  ifdef __cplusplus
5962     extern "C"
5963#  endif
5964   int F77_DUMMY_MAIN() { return 1; }
5965
5966#endif
5967int
5968main ()
5969{
5970$cfuncdaxpy()
5971  ;
5972  return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext conftest$ac_exeext
5976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977  (eval $ac_link) 2>conftest.er1
5978  ac_status=$?
5979  grep -v '^ *+' conftest.er1 >conftest.err
5980  rm -f conftest.er1
5981  cat conftest.err >&5
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); } &&
5984         { ac_try='test -z "$ac_c_werror_flag"
5985                         || test ! -s conftest.err'
5986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987  (eval $ac_try) 2>&5
5988  ac_status=$?
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); }; } &&
5991         { ac_try='test -s conftest$ac_exeext'
5992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993  (eval $ac_try) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); }; }; then
5997  flink_try=yes
5998else
5999  echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002flink_try=no
6003fi
6004rm -f conftest.err conftest.$ac_objext \
6005      conftest$ac_exeext conftest.$ac_ext
6006    fi
6007    if test $flink_try = yes; then
6008      use_blas='-lsunperf'
6009                         if test $coin_need_flibs = yes ; then
6010                           use_blas="$use_blas $FLIBS"
6011                         fi
6012                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6013echo "${ECHO_T}yes: $use_blas" >&6
6014
6015    else
6016      if test x"$FLIBS" != x; then
6017        flink_save_libs="$LIBS"
6018        LIBS="$LIBS $FLIBS"
6019        cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h.  */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h.  */
6025void $cfuncdaxpy();
6026#ifdef F77_DUMMY_MAIN
6027
6028#  ifdef __cplusplus
6029     extern "C"
6030#  endif
6031   int F77_DUMMY_MAIN() { return 1; }
6032
6033#endif
6034int
6035main ()
6036{
6037$cfuncdaxpy()
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext conftest$ac_exeext
6043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044  (eval $ac_link) 2>conftest.er1
6045  ac_status=$?
6046  grep -v '^ *+' conftest.er1 >conftest.err
6047  rm -f conftest.er1
6048  cat conftest.err >&5
6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050  (exit $ac_status); } &&
6051         { ac_try='test -z "$ac_c_werror_flag"
6052                         || test ! -s conftest.err'
6053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054  (eval $ac_try) 2>&5
6055  ac_status=$?
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); }; } &&
6058         { ac_try='test -s conftest$ac_exeext'
6059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060  (eval $ac_try) 2>&5
6061  ac_status=$?
6062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063  (exit $ac_status); }; }; then
6064  LIBS="$flink_save_libs"
6065                     coin_need_flibs=yes
6066                     use_blas='-lsunperf'
6067                         if test $coin_need_flibs = yes ; then
6068                           use_blas="$use_blas $FLIBS"
6069                         fi
6070                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6071echo "${ECHO_T}yes: $use_blas" >&6
6072
6073
6074else
6075  echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078LIBS="$flink_save_libs"
6079                     echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6
6081fi
6082rm -f conftest.err conftest.$ac_objext \
6083      conftest$ac_exeext conftest.$ac_ext
6084      else
6085        echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087      fi
6088    fi
6089    ;;
6090  cc|cpp)
6091    ac_ext=f
6092ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6093ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6095case $ac_cv_f77_mangling in
6096  upper*) ac_val="DAXPY" ;;
6097  lower*) ac_val="daxpy" ;;
6098  *)      ac_val="unknown" ;;
6099esac
6100case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6101
6102cfuncdaxpy="$ac_val"
6103
6104ac_ext=c
6105ac_cpp='$CPP $CPPFLAGS'
6106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108ac_compiler_gnu=$ac_cv_c_compiler_gnu
6109
6110    if test x"$coin_need_flibs" = xyes; then
6111      flink_try=no;
6112    else
6113      cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h.  */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h.  */
6119extern "C" {void $cfuncdaxpy();}
6120#ifdef F77_DUMMY_MAIN
6121
6122#  ifdef __cplusplus
6123     extern "C"
6124#  endif
6125   int F77_DUMMY_MAIN() { return 1; }
6126
6127#endif
6128int
6129main ()
6130{
6131$cfuncdaxpy()
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext conftest$ac_exeext
6137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138  (eval $ac_link) 2>conftest.er1
6139  ac_status=$?
6140  grep -v '^ *+' conftest.er1 >conftest.err
6141  rm -f conftest.er1
6142  cat conftest.err >&5
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); } &&
6145         { ac_try='test -z "$ac_c_werror_flag"
6146                         || test ! -s conftest.err'
6147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148  (eval $ac_try) 2>&5
6149  ac_status=$?
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); }; } &&
6152         { ac_try='test -s conftest$ac_exeext'
6153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154  (eval $ac_try) 2>&5
6155  ac_status=$?
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); }; }; then
6158  flink_try=yes
6159else
6160  echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163flink_try=no
6164fi
6165rm -f conftest.err conftest.$ac_objext \
6166      conftest$ac_exeext conftest.$ac_ext
6167    fi
6168    if test $flink_try = yes; then
6169      use_blas='-lsunperf'
6170                         if test $coin_need_flibs = yes ; then
6171                           use_blas="$use_blas $FLIBS"
6172                         fi
6173                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6174echo "${ECHO_T}yes: $use_blas" >&6
6175
6176    else
6177      if test x"$FLIBS" != x; then
6178        flink_save_libs="$LIBS"
6179        LIBS="$LIBS $FLIBS"
6180        cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h.  */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h.  */
6186extern "C" {void $cfuncdaxpy();}
6187#ifdef F77_DUMMY_MAIN
6188
6189#  ifdef __cplusplus
6190     extern "C"
6191#  endif
6192   int F77_DUMMY_MAIN() { return 1; }
6193
6194#endif
6195int
6196main ()
6197{
6198$cfuncdaxpy()
6199  ;
6200  return 0;
6201}
6202_ACEOF
6203rm -f conftest.$ac_objext conftest$ac_exeext
6204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205  (eval $ac_link) 2>conftest.er1
6206  ac_status=$?
6207  grep -v '^ *+' conftest.er1 >conftest.err
6208  rm -f conftest.er1
6209  cat conftest.err >&5
6210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211  (exit $ac_status); } &&
6212         { ac_try='test -z "$ac_c_werror_flag"
6213                         || test ! -s conftest.err'
6214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215  (eval $ac_try) 2>&5
6216  ac_status=$?
6217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218  (exit $ac_status); }; } &&
6219         { ac_try='test -s conftest$ac_exeext'
6220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221  (eval $ac_try) 2>&5
6222  ac_status=$?
6223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224  (exit $ac_status); }; }; then
6225  LIBS="$flink_save_libs"
6226                     coin_need_flibs=yes
6227                     use_blas='-lsunperf'
6228                         if test $coin_need_flibs = yes ; then
6229                           use_blas="$use_blas $FLIBS"
6230                         fi
6231                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6232echo "${ECHO_T}yes: $use_blas" >&6
6233
6234
6235else
6236  echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239LIBS="$flink_save_libs"
6240                     echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6
6242fi
6243rm -f conftest.err conftest.$ac_objext \
6244      conftest$ac_exeext conftest.$ac_ext
6245      else
6246        echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6
6248      fi
6249    fi
6250    ;;
6251esac
6252
6253      LIBS="$coin_save_LIBS"
6254      ;;
6255
6256    *-cygwin* | *-mingw*)
6257# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
6258# library will want to link with cygwin, hence won't run standalone in DOS.
6259      if test "$enable_doscompile" = mingw; then
6260        skip_lblas_check=yes
6261      fi
6262      case "$CC" in
6263        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6264          coin_save_LIBS="$LIBS"
6265          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6266echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6267          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6268          case $ac_ext in
6269  f)
6270    cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h.  */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h.  */
6276
6277#ifdef F77_DUMMY_MAIN
6278
6279#  ifdef __cplusplus
6280     extern "C"
6281#  endif
6282   int F77_DUMMY_MAIN() { return 1; }
6283
6284#endif
6285int
6286main ()
6287{
6288      call daxpy
6289  ;
6290  return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext conftest$ac_exeext
6294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295  (eval $ac_link) 2>conftest.er1
6296  ac_status=$?
6297  grep -v '^ *+' conftest.er1 >conftest.err
6298  rm -f conftest.er1
6299  cat conftest.err >&5
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); } &&
6302         { ac_try='test -z "$ac_c_werror_flag"
6303                         || test ! -s conftest.err'
6304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305  (eval $ac_try) 2>&5
6306  ac_status=$?
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); }; } &&
6309         { ac_try='test -s conftest$ac_exeext'
6310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311  (eval $ac_try) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); }; }; then
6315  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6316                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6317echo "${ECHO_T}yes: $use_blas" >&6
6318
6319else
6320  echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
6323echo "$as_me:$LINENO: result: no" >&5
6324echo "${ECHO_T}no" >&6
6325fi
6326rm -f conftest.err conftest.$ac_objext \
6327      conftest$ac_exeext conftest.$ac_ext
6328    ;;
6329  c)
6330    ac_ext=f
6331ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6332ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6334case $ac_cv_f77_mangling in
6335  upper*) ac_val="DAXPY" ;;
6336  lower*) ac_val="daxpy" ;;
6337  *)      ac_val="unknown" ;;
6338esac
6339case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6340
6341cfuncdaxpy="$ac_val"
6342
6343ac_ext=c
6344ac_cpp='$CPP $CPPFLAGS'
6345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347ac_compiler_gnu=$ac_cv_c_compiler_gnu
6348
6349    if test x"$coin_need_flibs" = xyes; then
6350      flink_try=no;
6351    else
6352      cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h.  */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h.  */
6358void $cfuncdaxpy();
6359#ifdef F77_DUMMY_MAIN
6360
6361#  ifdef __cplusplus
6362     extern "C"
6363#  endif
6364   int F77_DUMMY_MAIN() { return 1; }
6365
6366#endif
6367int
6368main ()
6369{
6370$cfuncdaxpy()
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375rm -f conftest.$ac_objext conftest$ac_exeext
6376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377  (eval $ac_link) 2>conftest.er1
6378  ac_status=$?
6379  grep -v '^ *+' conftest.er1 >conftest.err
6380  rm -f conftest.er1
6381  cat conftest.err >&5
6382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383  (exit $ac_status); } &&
6384         { ac_try='test -z "$ac_c_werror_flag"
6385                         || test ! -s conftest.err'
6386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387  (eval $ac_try) 2>&5
6388  ac_status=$?
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); }; } &&
6391         { ac_try='test -s conftest$ac_exeext'
6392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393  (eval $ac_try) 2>&5
6394  ac_status=$?
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); }; }; then
6397  flink_try=yes
6398else
6399  echo "$as_me: failed program was:" >&5
6400sed 's/^/| /' conftest.$ac_ext >&5
6401
6402flink_try=no
6403fi
6404rm -f conftest.err conftest.$ac_objext \
6405      conftest$ac_exeext conftest.$ac_ext
6406    fi
6407    if test $flink_try = yes; then
6408      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6409                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6410echo "${ECHO_T}yes: $use_blas" >&6
6411
6412    else
6413      if test x"$FLIBS" != x; then
6414        flink_save_libs="$LIBS"
6415        LIBS="$LIBS $FLIBS"
6416        cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h.  */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h.  */
6422void $cfuncdaxpy();
6423#ifdef F77_DUMMY_MAIN
6424
6425#  ifdef __cplusplus
6426     extern "C"
6427#  endif
6428   int F77_DUMMY_MAIN() { return 1; }
6429
6430#endif
6431int
6432main ()
6433{
6434$cfuncdaxpy()
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext conftest$ac_exeext
6440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441  (eval $ac_link) 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448         { ac_try='test -z "$ac_c_werror_flag"
6449                         || test ! -s conftest.err'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; } &&
6455         { ac_try='test -s conftest$ac_exeext'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; }; then
6461  LIBS="$flink_save_libs"
6462                     coin_need_flibs=yes
6463                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6464                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6465echo "${ECHO_T}yes: $use_blas" >&6
6466
6467
6468else
6469  echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472LIBS="$flink_save_libs"
6473                     echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475fi
6476rm -f conftest.err conftest.$ac_objext \
6477      conftest$ac_exeext conftest.$ac_ext
6478      else
6479        echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481      fi
6482    fi
6483    ;;
6484  cc|cpp)
6485    ac_ext=f
6486ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6487ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6489case $ac_cv_f77_mangling in
6490  upper*) ac_val="DAXPY" ;;
6491  lower*) ac_val="daxpy" ;;
6492  *)      ac_val="unknown" ;;
6493esac
6494case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6495
6496cfuncdaxpy="$ac_val"
6497
6498ac_ext=c
6499ac_cpp='$CPP $CPPFLAGS'
6500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502ac_compiler_gnu=$ac_cv_c_compiler_gnu
6503
6504    if test x"$coin_need_flibs" = xyes; then
6505      flink_try=no;
6506    else
6507      cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h.  */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h.  */
6513extern "C" {void $cfuncdaxpy();}
6514#ifdef F77_DUMMY_MAIN
6515
6516#  ifdef __cplusplus
6517     extern "C"
6518#  endif
6519   int F77_DUMMY_MAIN() { return 1; }
6520
6521#endif
6522int
6523main ()
6524{
6525$cfuncdaxpy()
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530rm -f conftest.$ac_objext conftest$ac_exeext
6531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532  (eval $ac_link) 2>conftest.er1
6533  ac_status=$?
6534  grep -v '^ *+' conftest.er1 >conftest.err
6535  rm -f conftest.er1
6536  cat conftest.err >&5
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); } &&
6539         { ac_try='test -z "$ac_c_werror_flag"
6540                         || test ! -s conftest.err'
6541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542  (eval $ac_try) 2>&5
6543  ac_status=$?
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); }; } &&
6546         { ac_try='test -s conftest$ac_exeext'
6547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548  (eval $ac_try) 2>&5
6549  ac_status=$?
6550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551  (exit $ac_status); }; }; then
6552  flink_try=yes
6553else
6554  echo "$as_me: failed program was:" >&5
6555sed 's/^/| /' conftest.$ac_ext >&5
6556
6557flink_try=no
6558fi
6559rm -f conftest.err conftest.$ac_objext \
6560      conftest$ac_exeext conftest.$ac_ext
6561    fi
6562    if test $flink_try = yes; then
6563      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6564                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6565echo "${ECHO_T}yes: $use_blas" >&6
6566
6567    else
6568      if test x"$FLIBS" != x; then
6569        flink_save_libs="$LIBS"
6570        LIBS="$LIBS $FLIBS"
6571        cat >conftest.$ac_ext <<_ACEOF
6572/* confdefs.h.  */
6573_ACEOF
6574cat confdefs.h >>conftest.$ac_ext
6575cat >>conftest.$ac_ext <<_ACEOF
6576/* end confdefs.h.  */
6577extern "C" {void $cfuncdaxpy();}
6578#ifdef F77_DUMMY_MAIN
6579
6580#  ifdef __cplusplus
6581     extern "C"
6582#  endif
6583   int F77_DUMMY_MAIN() { return 1; }
6584
6585#endif
6586int
6587main ()
6588{
6589$cfuncdaxpy()
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596  (eval $ac_link) 2>conftest.er1
6597  ac_status=$?
6598  grep -v '^ *+' conftest.er1 >conftest.err
6599  rm -f conftest.er1
6600  cat conftest.err >&5
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } &&
6603         { ac_try='test -z "$ac_c_werror_flag"
6604                         || test ! -s conftest.err'
6605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606  (eval $ac_try) 2>&5
6607  ac_status=$?
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); }; } &&
6610         { ac_try='test -s conftest$ac_exeext'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; }; then
6616  LIBS="$flink_save_libs"
6617                     coin_need_flibs=yes
6618                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6619                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6620echo "${ECHO_T}yes: $use_blas" >&6
6621
6622
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627LIBS="$flink_save_libs"
6628                     echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630fi
6631rm -f conftest.err conftest.$ac_objext \
6632      conftest$ac_exeext conftest.$ac_ext
6633      else
6634        echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6
6636      fi
6637    fi
6638    ;;
6639esac
6640
6641          LIBS="$coin_save_LIBS"
6642
6643          if test "x$use_blas" = x ; then
6644            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6645echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6646            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6647            case $ac_ext in
6648  f)
6649    cat >conftest.$ac_ext <<_ACEOF
6650/* confdefs.h.  */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h.  */
6655
6656#ifdef F77_DUMMY_MAIN
6657
6658#  ifdef __cplusplus
6659     extern "C"
6660#  endif
6661   int F77_DUMMY_MAIN() { return 1; }
6662
6663#endif
6664int
6665main ()
6666{
6667      call daxpy
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext conftest$ac_exeext
6673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674  (eval $ac_link) 2>conftest.er1
6675  ac_status=$?
6676  grep -v '^ *+' conftest.er1 >conftest.err
6677  rm -f conftest.er1
6678  cat conftest.err >&5
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); } &&
6681         { ac_try='test -z "$ac_c_werror_flag"
6682                         || test ! -s conftest.err'
6683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684  (eval $ac_try) 2>&5
6685  ac_status=$?
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); }; } &&
6688         { ac_try='test -s conftest$ac_exeext'
6689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690  (eval $ac_try) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); }; }; then
6694  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6695                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6696echo "${ECHO_T}yes: $use_blas" >&6
6697
6698else
6699  echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702echo "$as_me:$LINENO: result: no" >&5
6703echo "${ECHO_T}no" >&6
6704fi
6705rm -f conftest.err conftest.$ac_objext \
6706      conftest$ac_exeext conftest.$ac_ext
6707    ;;
6708  c)
6709    ac_ext=f
6710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6713case $ac_cv_f77_mangling in
6714  upper*) ac_val="DAXPY" ;;
6715  lower*) ac_val="daxpy" ;;
6716  *)      ac_val="unknown" ;;
6717esac
6718case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6719
6720cfuncdaxpy="$ac_val"
6721
6722ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728    if test x"$coin_need_flibs" = xyes; then
6729      flink_try=no;
6730    else
6731      cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h.  */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h.  */
6737void $cfuncdaxpy();
6738#ifdef F77_DUMMY_MAIN
6739
6740#  ifdef __cplusplus
6741     extern "C"
6742#  endif
6743   int F77_DUMMY_MAIN() { return 1; }
6744
6745#endif
6746int
6747main ()
6748{
6749$cfuncdaxpy()
6750  ;
6751  return 0;
6752}
6753_ACEOF
6754rm -f conftest.$ac_objext conftest$ac_exeext
6755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756  (eval $ac_link) 2>conftest.er1
6757  ac_status=$?
6758  grep -v '^ *+' conftest.er1 >conftest.err
6759  rm -f conftest.er1
6760  cat conftest.err >&5
6761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); } &&
6763         { ac_try='test -z "$ac_c_werror_flag"
6764                         || test ! -s conftest.err'
6765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766  (eval $ac_try) 2>&5
6767  ac_status=$?
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); }; } &&
6770         { ac_try='test -s conftest$ac_exeext'
6771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772  (eval $ac_try) 2>&5
6773  ac_status=$?
6774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775  (exit $ac_status); }; }; then
6776  flink_try=yes
6777else
6778  echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781flink_try=no
6782fi
6783rm -f conftest.err conftest.$ac_objext \
6784      conftest$ac_exeext conftest.$ac_ext
6785    fi
6786    if test $flink_try = yes; then
6787      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6788                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6789echo "${ECHO_T}yes: $use_blas" >&6
6790
6791    else
6792      if test x"$FLIBS" != x; then
6793        flink_save_libs="$LIBS"
6794        LIBS="$LIBS $FLIBS"
6795        cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h.  */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h.  */
6801void $cfuncdaxpy();
6802#ifdef F77_DUMMY_MAIN
6803
6804#  ifdef __cplusplus
6805     extern "C"
6806#  endif
6807   int F77_DUMMY_MAIN() { return 1; }
6808
6809#endif
6810int
6811main ()
6812{
6813$cfuncdaxpy()
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818rm -f conftest.$ac_objext conftest$ac_exeext
6819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820  (eval $ac_link) 2>conftest.er1
6821  ac_status=$?
6822  grep -v '^ *+' conftest.er1 >conftest.err
6823  rm -f conftest.er1
6824  cat conftest.err >&5
6825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826  (exit $ac_status); } &&
6827         { ac_try='test -z "$ac_c_werror_flag"
6828                         || test ! -s conftest.err'
6829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830  (eval $ac_try) 2>&5
6831  ac_status=$?
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); }; } &&
6834         { ac_try='test -s conftest$ac_exeext'
6835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836  (eval $ac_try) 2>&5
6837  ac_status=$?
6838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); }; }; then
6840  LIBS="$flink_save_libs"
6841                     coin_need_flibs=yes
6842                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6843                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6844echo "${ECHO_T}yes: $use_blas" >&6
6845
6846
6847else
6848  echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851LIBS="$flink_save_libs"
6852                     echo "$as_me:$LINENO: result: no" >&5
6853echo "${ECHO_T}no" >&6
6854fi
6855rm -f conftest.err conftest.$ac_objext \
6856      conftest$ac_exeext conftest.$ac_ext
6857      else
6858        echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6
6860      fi
6861    fi
6862    ;;
6863  cc|cpp)
6864    ac_ext=f
6865ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6866ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6868case $ac_cv_f77_mangling in
6869  upper*) ac_val="DAXPY" ;;
6870  lower*) ac_val="daxpy" ;;
6871  *)      ac_val="unknown" ;;
6872esac
6873case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6874
6875cfuncdaxpy="$ac_val"
6876
6877ac_ext=c
6878ac_cpp='$CPP $CPPFLAGS'
6879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882
6883    if test x"$coin_need_flibs" = xyes; then
6884      flink_try=no;
6885    else
6886      cat >conftest.$ac_ext <<_ACEOF
6887/* confdefs.h.  */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h.  */
6892extern "C" {void $cfuncdaxpy();}
6893#ifdef F77_DUMMY_MAIN
6894
6895#  ifdef __cplusplus
6896     extern "C"
6897#  endif
6898   int F77_DUMMY_MAIN() { return 1; }
6899
6900#endif
6901int
6902main ()
6903{
6904$cfuncdaxpy()
6905  ;
6906  return 0;
6907}
6908_ACEOF
6909rm -f conftest.$ac_objext conftest$ac_exeext
6910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911  (eval $ac_link) 2>conftest.er1
6912  ac_status=$?
6913  grep -v '^ *+' conftest.er1 >conftest.err
6914  rm -f conftest.er1
6915  cat conftest.err >&5
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); } &&
6918         { ac_try='test -z "$ac_c_werror_flag"
6919                         || test ! -s conftest.err'
6920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921  (eval $ac_try) 2>&5
6922  ac_status=$?
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); }; } &&
6925         { ac_try='test -s conftest$ac_exeext'
6926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927  (eval $ac_try) 2>&5
6928  ac_status=$?
6929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930  (exit $ac_status); }; }; then
6931  flink_try=yes
6932else
6933  echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936flink_try=no
6937fi
6938rm -f conftest.err conftest.$ac_objext \
6939      conftest$ac_exeext conftest.$ac_ext
6940    fi
6941    if test $flink_try = yes; then
6942      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6943                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6944echo "${ECHO_T}yes: $use_blas" >&6
6945
6946    else
6947      if test x"$FLIBS" != x; then
6948        flink_save_libs="$LIBS"
6949        LIBS="$LIBS $FLIBS"
6950        cat >conftest.$ac_ext <<_ACEOF
6951/* confdefs.h.  */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h.  */
6956extern "C" {void $cfuncdaxpy();}
6957#ifdef F77_DUMMY_MAIN
6958
6959#  ifdef __cplusplus
6960     extern "C"
6961#  endif
6962   int F77_DUMMY_MAIN() { return 1; }
6963
6964#endif
6965int
6966main ()
6967{
6968$cfuncdaxpy()
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973rm -f conftest.$ac_objext conftest$ac_exeext
6974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975  (eval $ac_link) 2>conftest.er1
6976  ac_status=$?
6977  grep -v '^ *+' conftest.er1 >conftest.err
6978  rm -f conftest.er1
6979  cat conftest.err >&5
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); } &&
6982         { ac_try='test -z "$ac_c_werror_flag"
6983                         || test ! -s conftest.err'
6984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985  (eval $ac_try) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }; } &&
6989         { ac_try='test -s conftest$ac_exeext'
6990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991  (eval $ac_try) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); }; }; then
6995  LIBS="$flink_save_libs"
6996                     coin_need_flibs=yes
6997                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6998                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6999echo "${ECHO_T}yes: $use_blas" >&6
7000
7001
7002else
7003  echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006LIBS="$flink_save_libs"
7007                     echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
7009fi
7010rm -f conftest.err conftest.$ac_objext \
7011      conftest$ac_exeext conftest.$ac_ext
7012      else
7013        echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6
7015      fi
7016    fi
7017    ;;
7018esac
7019
7020            LIBS="$coin_save_LIBS"
7021          fi
7022          ;;
7023      esac
7024      ;;
7025
7026     *-darwin*)
7027      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
7028echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
7029      coin_need_flibs=no
7030      coin_save_LIBS="$LIBS"
7031      LIBS="-framework vecLib $LIBS"
7032      case $ac_ext in
7033  f)
7034    cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h.  */
7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h.  */
7040
7041#ifdef F77_DUMMY_MAIN
7042
7043#  ifdef __cplusplus
7044     extern "C"
7045#  endif
7046   int F77_DUMMY_MAIN() { return 1; }
7047
7048#endif
7049int
7050main ()
7051{
7052      call daxpy
7053  ;
7054  return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext conftest$ac_exeext
7058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059  (eval $ac_link) 2>conftest.er1
7060  ac_status=$?
7061  grep -v '^ *+' conftest.er1 >conftest.err
7062  rm -f conftest.er1
7063  cat conftest.err >&5
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } &&
7066         { ac_try='test -z "$ac_c_werror_flag"
7067                         || test ! -s conftest.err'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; } &&
7073         { ac_try='test -s conftest$ac_exeext'
7074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075  (eval $ac_try) 2>&5
7076  ac_status=$?
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); }; }; then
7079  use_blas='-framework vecLib'
7080                         if test $coin_need_flibs = yes ; then
7081                           use_blas="$use_blas $FLIBS"
7082                         fi
7083                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7084echo "${ECHO_T}yes: $use_blas" >&6
7085
7086else
7087  echo "$as_me: failed program was:" >&5
7088sed 's/^/| /' conftest.$ac_ext >&5
7089
7090echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6
7092fi
7093rm -f conftest.err conftest.$ac_objext \
7094      conftest$ac_exeext conftest.$ac_ext
7095    ;;
7096  c)
7097    ac_ext=f
7098ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7099ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7101case $ac_cv_f77_mangling in
7102  upper*) ac_val="DAXPY" ;;
7103  lower*) ac_val="daxpy" ;;
7104  *)      ac_val="unknown" ;;
7105esac
7106case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7107
7108cfuncdaxpy="$ac_val"
7109
7110ac_ext=c
7111ac_cpp='$CPP $CPPFLAGS'
7112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
7116    if test x"$coin_need_flibs" = xyes; then
7117      flink_try=no;
7118    else
7119      cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h.  */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h.  */
7125void $cfuncdaxpy();
7126#ifdef F77_DUMMY_MAIN
7127
7128#  ifdef __cplusplus
7129     extern "C"
7130#  endif
7131   int F77_DUMMY_MAIN() { return 1; }
7132
7133#endif
7134int
7135main ()
7136{
7137$cfuncdaxpy()
7138  ;
7139  return 0;
7140}
7141_ACEOF
7142rm -f conftest.$ac_objext conftest$ac_exeext
7143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144  (eval $ac_link) 2>conftest.er1
7145  ac_status=$?
7146  grep -v '^ *+' conftest.er1 >conftest.err
7147  rm -f conftest.er1
7148  cat conftest.err >&5
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); } &&
7151         { ac_try='test -z "$ac_c_werror_flag"
7152                         || test ! -s conftest.err'
7153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154  (eval $ac_try) 2>&5
7155  ac_status=$?
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); }; } &&
7158         { ac_try='test -s conftest$ac_exeext'
7159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160  (eval $ac_try) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); }; }; then
7164  flink_try=yes
7165else
7166  echo "$as_me: failed program was:" >&5
7167sed 's/^/| /' conftest.$ac_ext >&5
7168
7169flink_try=no
7170fi
7171rm -f conftest.err conftest.$ac_objext \
7172      conftest$ac_exeext conftest.$ac_ext
7173    fi
7174    if test $flink_try = yes; then
7175      use_blas='-framework vecLib'
7176                         if test $coin_need_flibs = yes ; then
7177                           use_blas="$use_blas $FLIBS"
7178                         fi
7179                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7180echo "${ECHO_T}yes: $use_blas" >&6
7181
7182    else
7183      if test x"$FLIBS" != x; then
7184        flink_save_libs="$LIBS"
7185        LIBS="$LIBS $FLIBS"
7186        cat >conftest.$ac_ext <<_ACEOF
7187/* confdefs.h.  */
7188_ACEOF
7189cat confdefs.h >>conftest.$ac_ext
7190cat >>conftest.$ac_ext <<_ACEOF
7191/* end confdefs.h.  */
7192void $cfuncdaxpy();
7193#ifdef F77_DUMMY_MAIN
7194
7195#  ifdef __cplusplus
7196     extern "C"
7197#  endif
7198   int F77_DUMMY_MAIN() { return 1; }
7199
7200#endif
7201int
7202main ()
7203{
7204$cfuncdaxpy()
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209rm -f conftest.$ac_objext conftest$ac_exeext
7210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211  (eval $ac_link) 2>conftest.er1
7212  ac_status=$?
7213  grep -v '^ *+' conftest.er1 >conftest.err
7214  rm -f conftest.er1
7215  cat conftest.err >&5
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); } &&
7218         { ac_try='test -z "$ac_c_werror_flag"
7219                         || test ! -s conftest.err'
7220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221  (eval $ac_try) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; } &&
7225         { ac_try='test -s conftest$ac_exeext'
7226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227  (eval $ac_try) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); }; }; then
7231  LIBS="$flink_save_libs"
7232                     coin_need_flibs=yes
7233                     use_blas='-framework vecLib'
7234                         if test $coin_need_flibs = yes ; then
7235                           use_blas="$use_blas $FLIBS"
7236                         fi
7237                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7238echo "${ECHO_T}yes: $use_blas" >&6
7239
7240
7241else
7242  echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
7245LIBS="$flink_save_libs"
7246                     echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
7248fi
7249rm -f conftest.err conftest.$ac_objext \
7250      conftest$ac_exeext conftest.$ac_ext
7251      else
7252        echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254      fi
7255    fi
7256    ;;
7257  cc|cpp)
7258    ac_ext=f
7259ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7260ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7262case $ac_cv_f77_mangling in
7263  upper*) ac_val="DAXPY" ;;
7264  lower*) ac_val="daxpy" ;;
7265  *)      ac_val="unknown" ;;
7266esac
7267case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7268
7269cfuncdaxpy="$ac_val"
7270
7271ac_ext=c
7272ac_cpp='$CPP $CPPFLAGS'
7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276
7277    if test x"$coin_need_flibs" = xyes; then
7278      flink_try=no;
7279    else
7280      cat >conftest.$ac_ext <<_ACEOF
7281/* confdefs.h.  */
7282_ACEOF
7283cat confdefs.h >>conftest.$ac_ext
7284cat >>conftest.$ac_ext <<_ACEOF
7285/* end confdefs.h.  */
7286extern "C" {void $cfuncdaxpy();}
7287#ifdef F77_DUMMY_MAIN
7288
7289#  ifdef __cplusplus
7290     extern "C"
7291#  endif
7292   int F77_DUMMY_MAIN() { return 1; }
7293
7294#endif
7295int
7296main ()
7297{
7298$cfuncdaxpy()
7299  ;
7300  return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext conftest$ac_exeext
7304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305  (eval $ac_link) 2>conftest.er1
7306  ac_status=$?
7307  grep -v '^ *+' conftest.er1 >conftest.err
7308  rm -f conftest.er1
7309  cat conftest.err >&5
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); } &&
7312         { ac_try='test -z "$ac_c_werror_flag"
7313                         || test ! -s conftest.err'
7314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315  (eval $ac_try) 2>&5
7316  ac_status=$?
7317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318  (exit $ac_status); }; } &&
7319         { ac_try='test -s conftest$ac_exeext'
7320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321  (eval $ac_try) 2>&5
7322  ac_status=$?
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); }; }; then
7325  flink_try=yes
7326else
7327  echo "$as_me: failed program was:" >&5
7328sed 's/^/| /' conftest.$ac_ext >&5
7329
7330flink_try=no
7331fi
7332rm -f conftest.err conftest.$ac_objext \
7333      conftest$ac_exeext conftest.$ac_ext
7334    fi
7335    if test $flink_try = yes; then
7336      use_blas='-framework vecLib'
7337                         if test $coin_need_flibs = yes ; then
7338                           use_blas="$use_blas $FLIBS"
7339                         fi
7340                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7341echo "${ECHO_T}yes: $use_blas" >&6
7342
7343    else
7344      if test x"$FLIBS" != x; then
7345        flink_save_libs="$LIBS"
7346        LIBS="$LIBS $FLIBS"
7347        cat >conftest.$ac_ext <<_ACEOF
7348/* confdefs.h.  */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h.  */
7353extern "C" {void $cfuncdaxpy();}
7354#ifdef F77_DUMMY_MAIN
7355
7356#  ifdef __cplusplus
7357     extern "C"
7358#  endif
7359   int F77_DUMMY_MAIN() { return 1; }
7360
7361#endif
7362int
7363main ()
7364{
7365$cfuncdaxpy()
7366  ;
7367  return 0;
7368}
7369_ACEOF
7370rm -f conftest.$ac_objext conftest$ac_exeext
7371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372  (eval $ac_link) 2>conftest.er1
7373  ac_status=$?
7374  grep -v '^ *+' conftest.er1 >conftest.err
7375  rm -f conftest.er1
7376  cat conftest.err >&5
7377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); } &&
7379         { ac_try='test -z "$ac_c_werror_flag"
7380                         || test ! -s conftest.err'
7381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382  (eval $ac_try) 2>&5
7383  ac_status=$?
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); }; } &&
7386         { ac_try='test -s conftest$ac_exeext'
7387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388  (eval $ac_try) 2>&5
7389  ac_status=$?
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); }; }; then
7392  LIBS="$flink_save_libs"
7393                     coin_need_flibs=yes
7394                     use_blas='-framework vecLib'
7395                         if test $coin_need_flibs = yes ; then
7396                           use_blas="$use_blas $FLIBS"
7397                         fi
7398                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7399echo "${ECHO_T}yes: $use_blas" >&6
7400
7401
7402else
7403  echo "$as_me: failed program was:" >&5
7404sed 's/^/| /' conftest.$ac_ext >&5
7405
7406LIBS="$flink_save_libs"
7407                     echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6
7409fi
7410rm -f conftest.err conftest.$ac_objext \
7411      conftest$ac_exeext conftest.$ac_ext
7412      else
7413        echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415      fi
7416    fi
7417    ;;
7418esac
7419
7420      LIBS="$coin_save_LIBS"
7421      ;;
7422  esac
7423
7424  if test -z "$use_blas" && test $skip_lblas_check = no; then
7425    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7426echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7427    coin_need_flibs=no
7428    coin_save_LIBS="$LIBS"
7429    LIBS="-lblas $LIBS"
7430    case $ac_ext in
7431  f)
7432    cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h.  */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h.  */
7438
7439#ifdef F77_DUMMY_MAIN
7440
7441#  ifdef __cplusplus
7442     extern "C"
7443#  endif
7444   int F77_DUMMY_MAIN() { return 1; }
7445
7446#endif
7447int
7448main ()
7449{
7450      call daxpy
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455rm -f conftest.$ac_objext conftest$ac_exeext
7456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7457  (eval $ac_link) 2>conftest.er1
7458  ac_status=$?
7459  grep -v '^ *+' conftest.er1 >conftest.err
7460  rm -f conftest.er1
7461  cat conftest.err >&5
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); } &&
7464         { ac_try='test -z "$ac_c_werror_flag"
7465                         || test ! -s conftest.err'
7466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467  (eval $ac_try) 2>&5
7468  ac_status=$?
7469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470  (exit $ac_status); }; } &&
7471         { ac_try='test -s conftest$ac_exeext'
7472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473  (eval $ac_try) 2>&5
7474  ac_status=$?
7475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476  (exit $ac_status); }; }; then
7477  use_blas='-lblas'
7478                       if test $coin_need_flibs = yes ; then
7479                         use_blas="$use_blas $FLIBS"
7480                       fi
7481                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7482echo "${ECHO_T}yes: $use_blas" >&6
7483
7484else
7485  echo "$as_me: failed program was:" >&5
7486sed 's/^/| /' conftest.$ac_ext >&5
7487
7488echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6
7490fi
7491rm -f conftest.err conftest.$ac_objext \
7492      conftest$ac_exeext conftest.$ac_ext
7493    ;;
7494  c)
7495    ac_ext=f
7496ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7497ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7499case $ac_cv_f77_mangling in
7500  upper*) ac_val="DAXPY" ;;
7501  lower*) ac_val="daxpy" ;;
7502  *)      ac_val="unknown" ;;
7503esac
7504case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7505
7506cfuncdaxpy="$ac_val"
7507
7508ac_ext=c
7509ac_cpp='$CPP $CPPFLAGS'
7510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512ac_compiler_gnu=$ac_cv_c_compiler_gnu
7513
7514    if test x"$coin_need_flibs" = xyes; then
7515      flink_try=no;
7516    else
7517      cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h.  */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h.  */
7523void $cfuncdaxpy();
7524#ifdef F77_DUMMY_MAIN
7525
7526#  ifdef __cplusplus
7527     extern "C"
7528#  endif
7529   int F77_DUMMY_MAIN() { return 1; }
7530
7531#endif
7532int
7533main ()
7534{
7535$cfuncdaxpy()
7536  ;
7537  return 0;
7538}
7539_ACEOF
7540rm -f conftest.$ac_objext conftest$ac_exeext
7541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542  (eval $ac_link) 2>conftest.er1
7543  ac_status=$?
7544  grep -v '^ *+' conftest.er1 >conftest.err
7545  rm -f conftest.er1
7546  cat conftest.err >&5
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); } &&
7549         { ac_try='test -z "$ac_c_werror_flag"
7550                         || test ! -s conftest.err'
7551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552  (eval $ac_try) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); }; } &&
7556         { ac_try='test -s conftest$ac_exeext'
7557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558  (eval $ac_try) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); }; }; then
7562  flink_try=yes
7563else
7564  echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567flink_try=no
7568fi
7569rm -f conftest.err conftest.$ac_objext \
7570      conftest$ac_exeext conftest.$ac_ext
7571    fi
7572    if test $flink_try = yes; then
7573      use_blas='-lblas'
7574                       if test $coin_need_flibs = yes ; then
7575                         use_blas="$use_blas $FLIBS"
7576                       fi
7577                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7578echo "${ECHO_T}yes: $use_blas" >&6
7579
7580    else
7581      if test x"$FLIBS" != x; then
7582        flink_save_libs="$LIBS"
7583        LIBS="$LIBS $FLIBS"
7584        cat >conftest.$ac_ext <<_ACEOF
7585/* confdefs.h.  */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
7589/* end confdefs.h.  */
7590void $cfuncdaxpy();
7591#ifdef F77_DUMMY_MAIN
7592
7593#  ifdef __cplusplus
7594     extern "C"
7595#  endif
7596   int F77_DUMMY_MAIN() { return 1; }
7597
7598#endif
7599int
7600main ()
7601{
7602$cfuncdaxpy()
7603  ;
7604  return 0;
7605}
7606_ACEOF
7607rm -f conftest.$ac_objext conftest$ac_exeext
7608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609  (eval $ac_link) 2>conftest.er1
7610  ac_status=$?
7611  grep -v '^ *+' conftest.er1 >conftest.err
7612  rm -f conftest.er1
7613  cat conftest.err >&5
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); } &&
7616         { ac_try='test -z "$ac_c_werror_flag"
7617                         || test ! -s conftest.err'
7618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619  (eval $ac_try) 2>&5
7620  ac_status=$?
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); }; } &&
7623         { ac_try='test -s conftest$ac_exeext'
7624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625  (eval $ac_try) 2>&5
7626  ac_status=$?
7627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628  (exit $ac_status); }; }; then
7629  LIBS="$flink_save_libs"
7630                     coin_need_flibs=yes
7631                     use_blas='-lblas'
7632                       if test $coin_need_flibs = yes ; then
7633                         use_blas="$use_blas $FLIBS"
7634                       fi
7635                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7636echo "${ECHO_T}yes: $use_blas" >&6
7637
7638
7639else
7640  echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643LIBS="$flink_save_libs"
7644                     echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6
7646fi
7647rm -f conftest.err conftest.$ac_objext \
7648      conftest$ac_exeext conftest.$ac_ext
7649      else
7650        echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6
7652      fi
7653    fi
7654    ;;
7655  cc|cpp)
7656    ac_ext=f
7657ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7658ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7660case $ac_cv_f77_mangling in
7661  upper*) ac_val="DAXPY" ;;
7662  lower*) ac_val="daxpy" ;;
7663  *)      ac_val="unknown" ;;
7664esac
7665case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7666
7667cfuncdaxpy="$ac_val"
7668
7669ac_ext=c
7670ac_cpp='$CPP $CPPFLAGS'
7671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673ac_compiler_gnu=$ac_cv_c_compiler_gnu
7674
7675    if test x"$coin_need_flibs" = xyes; then
7676      flink_try=no;
7677    else
7678      cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h.  */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h.  */
7684extern "C" {void $cfuncdaxpy();}
7685#ifdef F77_DUMMY_MAIN
7686
7687#  ifdef __cplusplus
7688     extern "C"
7689#  endif
7690   int F77_DUMMY_MAIN() { return 1; }
7691
7692#endif
7693int
7694main ()
7695{
7696$cfuncdaxpy()
7697  ;
7698  return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext conftest$ac_exeext
7702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703  (eval $ac_link) 2>conftest.er1
7704  ac_status=$?
7705  grep -v '^ *+' conftest.er1 >conftest.err
7706  rm -f conftest.er1
7707  cat conftest.err >&5
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); } &&
7710         { ac_try='test -z "$ac_c_werror_flag"
7711                         || test ! -s conftest.err'
7712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713  (eval $ac_try) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); }; } &&
7717         { ac_try='test -s conftest$ac_exeext'
7718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719  (eval $ac_try) 2>&5
7720  ac_status=$?
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); }; }; then
7723  flink_try=yes
7724else
7725  echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728flink_try=no
7729fi
7730rm -f conftest.err conftest.$ac_objext \
7731      conftest$ac_exeext conftest.$ac_ext
7732    fi
7733    if test $flink_try = yes; then
7734      use_blas='-lblas'
7735                       if test $coin_need_flibs = yes ; then
7736                         use_blas="$use_blas $FLIBS"
7737                       fi
7738                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7739echo "${ECHO_T}yes: $use_blas" >&6
7740
7741    else
7742      if test x"$FLIBS" != x; then
7743        flink_save_libs="$LIBS"
7744        LIBS="$LIBS $FLIBS"
7745        cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h.  */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h.  */
7751extern "C" {void $cfuncdaxpy();}
7752#ifdef F77_DUMMY_MAIN
7753
7754#  ifdef __cplusplus
7755     extern "C"
7756#  endif
7757   int F77_DUMMY_MAIN() { return 1; }
7758
7759#endif
7760int
7761main ()
7762{
7763$cfuncdaxpy()
7764  ;
7765  return 0;
7766}
7767_ACEOF
7768rm -f conftest.$ac_objext conftest$ac_exeext
7769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770  (eval $ac_link) 2>conftest.er1
7771  ac_status=$?
7772  grep -v '^ *+' conftest.er1 >conftest.err
7773  rm -f conftest.er1
7774  cat conftest.err >&5
7775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776  (exit $ac_status); } &&
7777         { ac_try='test -z "$ac_c_werror_flag"
7778                         || test ! -s conftest.err'
7779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780  (eval $ac_try) 2>&5
7781  ac_status=$?
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); }; } &&
7784         { ac_try='test -s conftest$ac_exeext'
7785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786  (eval $ac_try) 2>&5
7787  ac_status=$?
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); }; }; then
7790  LIBS="$flink_save_libs"
7791                     coin_need_flibs=yes
7792                     use_blas='-lblas'
7793                       if test $coin_need_flibs = yes ; then
7794                         use_blas="$use_blas $FLIBS"
7795                       fi
7796                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7797echo "${ECHO_T}yes: $use_blas" >&6
7798
7799
7800else
7801  echo "$as_me: failed program was:" >&5
7802sed 's/^/| /' conftest.$ac_ext >&5
7803
7804LIBS="$flink_save_libs"
7805                     echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
7807fi
7808rm -f conftest.err conftest.$ac_objext \
7809      conftest$ac_exeext conftest.$ac_ext
7810      else
7811        echo "$as_me:$LINENO: result: no" >&5
7812echo "${ECHO_T}no" >&6
7813      fi
7814    fi
7815    ;;
7816esac
7817
7818    LIBS="$coin_save_LIBS"
7819  fi
7820
7821  # If we have no other ideas, consider building BLAS.
7822  if test -z "$use_blas" ; then
7823    use_blas=BUILD
7824  fi
7825fi
7826
7827if test "x$use_blas" = xBUILD ; then
7828
7829echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
7830echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
7831
7832coin_has_blas=notGiven
7833
7834# check if user wants to skip package in any case
7835if test x"$COIN_SKIP_PROJECTS" != x; then
7836  for dir in $COIN_SKIP_PROJECTS; do
7837    if test $dir = "Blas"; then
7838      coin_has_blas=skipping
7839    fi
7840  done
7841fi
7842
7843if test "$coin_has_blas" != skipping; then
7844
7845# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
7846if test "${with_blas+set}" = set; then
7847  withval="$with_blas"
7848  if test "$withval" = no ; then
7849       coin_has_blas=skipping
7850     fi
7851
7852fi;
7853fi
7854
7855BLAS_LIBS=
7856BLAS_CFLAGS=
7857BLAS_DATA=
7858BLAS_DEPENDENCIES=
7859BLAS_PCLIBS=
7860BLAS_PCREQUIRES=
7861BLAS_DATA=
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
7880if test $coin_has_blas != skipping; then
7881
7882# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
7883if test "${with_blas_lib+set}" = set; then
7884  withval="$with_blas_lib"
7885  if test "$withval" = no ; then
7886       coin_has_blas=skipping
7887     else
7888       coin_has_blas=yes
7889       BLAS_LIBS="$withval"
7890       BLAS_PCLIBS="$withval"
7891
7892         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
7893         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
7894
7895       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7896       if test -z "$PKG_CONFIG" ; then
7897         BLAS_LIBS_INSTALLED="$withval"
7898         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
7899       fi
7900     fi
7901
7902fi;
7903fi
7904
7905if test $coin_has_blas != skipping; then
7906
7907# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
7908if test "${with_blas_incdir+set}" = set; then
7909  withval="$with_blas_incdir"
7910  if test "$withval" = no ; then
7911       coin_has_blas=skipping
7912     else
7913       coin_has_blas=yes
7914       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
7915       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
7916       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7917       if test -z "$PKG_CONFIG" ; then
7918         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
7919         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
7920       fi
7921     fi
7922
7923fi;
7924fi
7925
7926if test $coin_has_blas != skipping; then
7927
7928# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
7929if test "${with_blas_datadir+set}" = set; then
7930  withval="$with_blas_datadir"
7931  if test "$withval" = no ; then
7932       coin_has_blas=skipping
7933     else
7934       coin_has_blas=yes
7935       BLAS_DATA="$withval"
7936       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7937       if test -z "$PKG_CONFIG" ; then
7938         BLAS_DATA_INSTALLED="$withval"
7939       fi
7940     fi
7941
7942fi;
7943fi
7944
7945if test $coin_has_blas = notGiven; then
7946  if test -n "$PKG_CONFIG" ; then
7947    # set search path for pkg-config
7948    # need to export variable to be sure that the following pkg-config gets these values
7949    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
7950    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
7951    export PKG_CONFIG_PATH
7952
7953    # let pkg-config do it's magic
7954
7955
7956
7957if test -n "$PKG_CONFIG" ; then
7958  if $PKG_CONFIG --exists "coinblas"; then
7959    BLAS_VERSIONS="`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`"
7960     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
7961    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
7962        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
7963        # but only do this if is not trivial
7964    if test "$CYGPATH_W" != "echo" ; then
7965      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
7966      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
7967    fi
7968    BLAS_CFLAGS="$cflags"
7969    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
7970    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
7971     coin_has_blas=yes
7972        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
7973echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
7974
7975        # adjust linker flags for (i)cl compiler
7976        # 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)
7977        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
7978        then
7979          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
7980        fi
7981        BLAS_PCREQUIRES="coinblas"
7982
7983        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
7984
7985          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
7986          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
7987          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
7988
7989
7990
7991  else
7992    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
7993      coin_has_blas=notGiven
7994        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
7995echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
7996
7997  fi
7998else
7999  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
8000echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
8001   { (exit 1); exit 1; }; }
8002fi
8003
8004
8005
8006
8007    # reset PKG_CONFIG_PATH variable
8008    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
8009    export PKG_CONFIG_PATH
8010
8011  else
8012    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
8013echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
8014
8015echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
8016echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
8017
8018coin_has_blas=notGiven
8019BLAS_LIBS=
8020BLAS_LIBS_INSTALLED=
8021BLAS_CFLAGS=
8022BLAS_CFLAGS_INSTALLED=
8023BLAS_DATA=
8024BLAS_DATA_INSTALLED=
8025BLAS_PCLIBS=
8026BLAS_PCREQUIRES=
8027
8028# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
8029projtoprocess="coinblas"
8030
8031# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
8032# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
8033# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
8034# also, we setup the DATA variable
8035allproj=""
8036allpcfiles=""
8037allpcifiles=""
8038while test "x$projtoprocess" != x ; do
8039
8040  for proj in $projtoprocess ; do
8041    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
8042    pcfile=""
8043    save_IFS="$IFS"
8044    IFS=":"
8045    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
8046      # 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
8047      if test -r "$dir/${proj}-uninstalled.pc" ; then
8048        pcfile="$dir/$proj-uninstalled.pc"
8049        if test -r "$dir/${proj}.pc" ; then
8050          pcifile="$dir/${proj}.pc"
8051        else
8052          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
8053echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
8054          pcifile=
8055        fi
8056        break
8057      fi
8058    done
8059    IFS="$save_IFS"
8060
8061    if test "x$pcfile" != x ; then
8062      # read dependencies from $pcfile and filter it
8063      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
8064
8065      # add projrequires to the front of the list of projects that have to be processed next
8066      # at the same time, remove $proj from this list
8067      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
8068
8069      # read DATA from $pcfile, if _DATA is still empty
8070      if test "x$BLAS_DATA" = x ; then
8071        projdatadir=
8072        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
8073        eval `sh -c "$pcfilemod"`
8074        BLAS_DATA="$projdatadir"
8075      fi
8076
8077      allproj="$allproj $proj"
8078      allpcfiles="$pcfile:$allpcfiles"
8079
8080    else
8081      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
8082echo "${ECHO_T}no, dependency $proj not available" >&6
8083      allproj=fail
8084      break 2
8085    fi
8086
8087    if test "x$pcifile" != x ; then
8088      allpcifiles="$pcifile:$allpcifiles"
8089
8090      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
8091      if test "x$BLAS_DATA_INSTALLED" = x ; then
8092        projdatadir=
8093        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
8094        eval `sh -c "$pcifilemod"`
8095        if test "${CYGPATH_W}" != "echo"; then
8096          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8097        fi
8098        BLAS_DATA_INSTALLED="$projdatadir"
8099      fi
8100
8101    fi
8102
8103    break
8104  done
8105
8106  # remove spaces on begin of $projtoprocess
8107  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8108
8109done
8110
8111if test "$allproj" != fail ; then
8112
8113  # now go through the list of .pc files and assemble compiler and linker flags
8114  # important is here to obey the reverse order that has been setup before,
8115  # since then libraries that are required by several others should be after these other libraries
8116  pcfilesprocessed=""
8117
8118  save_IFS="$IFS"
8119  IFS=":"
8120  for pcfile in $allpcfiles ; do
8121
8122    # if $pcfile has been processed already, skip this round
8123    if test "x$pcfilesprocessed" != x ; then
8124      for pcfiledone in $pcfilesprocessed ; do
8125        if test "$pcfiledone" = "$pcfile" ; then
8126          continue 2
8127        fi
8128      done
8129    fi
8130
8131    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8132    #   replace "Libs:" by "echo projlibs="
8133    #   replace "Cflags:" by "echo projcflags="
8134    #   remove every line starting with <some word>:
8135    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8136
8137    # set projcflags and projlibs variables by running $pcfilemod
8138    # 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
8139    projcflags=
8140    projlibs=
8141    IFS="$save_IFS"
8142    eval `sh -c "$pcfilemod"`
8143    IFS=":"
8144
8145    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8146    if test "${CYGPATH_W}" != "echo"; then
8147      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8148    fi
8149    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8150
8151    # set LIBS variable
8152    BLAS_LIBS="$projlibs $BLAS_LIBS"
8153
8154    # remember that we have processed $pcfile
8155    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8156
8157  done
8158  IFS="$save_IFS"
8159
8160
8161  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8162  # important is here again to obey the reverse order that has been setup before,
8163  # since then libraries that are required by several others should be after these other libraries
8164  pcfilesprocessed=""
8165
8166  save_IFS="$IFS"
8167  IFS=":"
8168  for pcfile in $allpcifiles ; do
8169
8170    # if $pcfile has been processed already, skip this round
8171    if test "x$pcfilesprocessed" != x ; then
8172      for pcfiledone in $pcfilesprocessed ; do
8173        if test "$pcfiledone" = "$pcfile" ; then
8174          continue 2
8175        fi
8176      done
8177    fi
8178
8179    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8180    #   replace "Libs:" by "echo projlibs="
8181    #   replace "Cflags:" by "echo projcflags="
8182    #   remove every line starting with <some word>:
8183    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8184
8185    # set projcflags and projlibs variables by running $pcfilemod
8186    # 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
8187    projcflags=
8188    projlibs=
8189    IFS="$save_IFS"
8190    eval `sh -c "$pcfilemod"`
8191    IFS=":"
8192
8193    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8194    if test "${CYGPATH_W}" != "echo"; then
8195      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8196    fi
8197    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8198
8199    # set LIBS variable
8200    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8201
8202    # remember that we have processed $pcfile
8203    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8204
8205  done
8206  IFS="$save_IFS"
8207
8208
8209  # finish up
8210  coin_has_blas=yes
8211  echo "$as_me:$LINENO: result: yes" >&5
8212echo "${ECHO_T}yes" >&6
8213
8214cat >>confdefs.h <<\_ACEOF
8215#define COIN_HAS_BLAS 1
8216_ACEOF
8217
8218
8219  # adjust linker flags for (i)cl compiler
8220  # 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),
8221  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8222  #    everything of the form "-lname" by "libname.lib", and
8223  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8224  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8225  then
8226    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8227    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'`
8228  fi
8229
8230  BLAS_PCREQUIRES="coinblas"
8231
8232    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8233    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8234    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8235    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8236    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8237
8238
8239fi
8240
8241
8242
8243if test $coin_has_blas != notGiven &&
8244                test $coin_has_blas != skipping; then
8245  COIN_HAS_BLAS_TRUE=
8246  COIN_HAS_BLAS_FALSE='#'
8247else
8248  COIN_HAS_BLAS_TRUE='#'
8249  COIN_HAS_BLAS_FALSE=
8250fi
8251
8252
8253
8254  fi
8255
8256else
8257  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8258echo "${ECHO_T}$coin_has_blas" >&6
8259fi
8260
8261if test $coin_has_blas != skipping &&
8262   test $coin_has_blas != notGiven ; then
8263
8264cat >>confdefs.h <<\_ACEOF
8265#define COIN_HAS_BLAS 1
8266_ACEOF
8267
8268
8269  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8270if test "${enable_interpackage_dependencies+set}" = set; then
8271  enableval="$enable_interpackage_dependencies"
8272
8273else
8274  enable_interpackage_dependencies=yes
8275fi;
8276
8277  if test $enable_interpackage_dependencies = yes ; then
8278     # construct dependencies variables from LIBS variables
8279     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8280     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
8281     # then remove everything of the form -xxx
8282     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8283     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8284
8285       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8286
8287  fi
8288
8289  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8290    if test -n "$BLAS_CFLAGS" ; then
8291      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8292echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8293    fi
8294    if test -n "$BLAS_LIBS" ; then
8295      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8296echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8297    fi
8298    if test -n "$BLAS_DEPENDENCIES" ; then
8299      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8300echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8301    fi
8302    if test -n "$BLAS_DATA" ; then
8303      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8304echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8305    fi
8306    if test -n "$BLAS_PCLIBS" ; then
8307      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8308echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8309    fi
8310    if test -n "$BLAS_PCREQUIRES" ; then
8311      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8312echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8313    fi
8314
8315      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8316echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8317      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8318echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8319      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8320echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8321
8322  fi
8323fi
8324
8325# Define the Makefile conditional
8326
8327
8328if test $coin_has_blas != notGiven &&
8329                test $coin_has_blas != skipping; then
8330  COIN_HAS_BLAS_TRUE=
8331  COIN_HAS_BLAS_FALSE='#'
8332else
8333  COIN_HAS_BLAS_TRUE='#'
8334  COIN_HAS_BLAS_FALSE=
8335fi
8336
8337
8338
8339
8340elif test "x$use_blas" != x && test "$use_blas" != no; then
8341  coin_has_blas=yes
8342
8343
8344if test 0 = 0; then
8345  COIN_HAS_BLAS_TRUE=
8346  COIN_HAS_BLAS_FALSE='#'
8347else
8348  COIN_HAS_BLAS_TRUE='#'
8349  COIN_HAS_BLAS_FALSE=
8350fi
8351
8352
8353cat >>confdefs.h <<\_ACEOF
8354#define COIN_HAS_BLAS 1
8355_ACEOF
8356
8357  BLAS_LIBS="$use_blas"
8358  BLAS_CFLAGS=
8359  BLAS_DATA=
8360
8361
8362
8363
8364    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8365    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8366    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8367
8368
8369else
8370  coin_has_blas=no
8371
8372
8373if test 0 = 1; then
8374  COIN_HAS_BLAS_TRUE=
8375  COIN_HAS_BLAS_FALSE='#'
8376else
8377  COIN_HAS_BLAS_TRUE='#'
8378  COIN_HAS_BLAS_FALSE=
8379fi
8380
8381fi
8382
8383
8384
8385
8386
8387
8388
8389
8390if test $coin_has_blas != yes; then
8391  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8392echo "$as_me: error: Required package BLAS not found." >&2;}
8393   { (exit 1); exit 1; }; }
8394fi
8395
8396# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8397LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8398
8399# Take care that optimization is disbled for DLAMCH.F
8400
8401if test "x$DLAMCH_FFLAGS" = x ; then
8402  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8403  case $F77 in
8404    ifort* | */ifort* | IFORT* | */IFORT* )
8405      case $build in
8406        *-cygwin* | *-mingw*)
8407          DLAMCH_FFLAGS="$FFLAGS -Od"
8408          ;;
8409        *)
8410          DLAMCH_FFLAGS="$FFLAGS -O0"
8411          ;;
8412      esac
8413      ;;
8414    compile_f2c*)
8415      case "$CC" in
8416        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8417          DLAMCH_FFLAGS="$FFLAGS -Od"
8418        ;;
8419        *)
8420          DLAMCH_FFLAGS="$FFLAGS -O0"
8421        ;;
8422      esac
8423      ;;
8424    *)
8425      DLAMCH_FFLAGS="$FFLAGS -O0"
8426      ;;
8427  esac
8428fi
8429
8430
8431# Initialize autotools
8432{
8433
8434
8435
8436# START
8437
8438# Test if force_shared has been set
8439if test "x" = xforce_shared; then
8440  if test x$enable_shared = xno; then
8441    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8442echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8443   { (exit 1); exit 1; }; }
8444  fi
8445  enable_shared=yes;
8446else
8447  # On Cygwin and AIX, building DLLs doesn't work
8448  case $build in
8449    *-cygwin*)
8450      coin_disable_shared=yes
8451      platform=Cygwin
8452    ;;
8453    *-aix*)
8454      coin_disable_shared=yes
8455      platform=AIX
8456    ;;
8457    *-mingw*)
8458      coin_disable_shared=yes
8459      platform="Msys"
8460#      case "$CXX" in
8461#        cl*)
8462#          coin_disable_shared=yes
8463#          platform="Msys with cl"
8464#      ;;
8465#      esac
8466    ;;
8467  esac
8468fi
8469if test x"$coin_disable_shared" = xyes; then
8470  if test x"$enable_shared" = xyes; then
8471    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
8472echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
8473  fi
8474  enable_shared=no
8475fi
8476# By default, we only want the shared objects to be compiled
8477# Check whether --enable-static or --disable-static was given.
8478if test "${enable_static+set}" = set; then
8479  enableval="$enable_static"
8480  p=${PACKAGE-default}
8481    case $enableval in
8482    yes) enable_static=yes ;;
8483    no) enable_static=no ;;
8484    *)
8485     enable_static=no
8486      # Look at the argument we got.  We use all the common list separators.
8487      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8488      for pkg in $enableval; do
8489        IFS="$lt_save_ifs"
8490        if test "X$pkg" = "X$p"; then
8491          enable_static=yes
8492        fi
8493      done
8494      IFS="$lt_save_ifs"
8495      ;;
8496    esac
8497else
8498  enable_static=no
8499fi;
8500
8501
8502
8503
8504# Initialize automake
8505echo "$as_me:$LINENO: checking for egrep" >&5
8506echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8507if test "${ac_cv_prog_egrep+set}" = set; then
8508  echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8511    then ac_cv_prog_egrep='grep -E'
8512    else ac_cv_prog_egrep='egrep'
8513    fi
8514fi
8515echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8516echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8517 EGREP=$ac_cv_prog_egrep
8518
8519
8520echo "$as_me:$LINENO: checking whether ln -s works" >&5
8521echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8522LN_S=$as_ln_s
8523if test "$LN_S" = "ln -s"; then
8524  echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526else
8527  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8528echo "${ECHO_T}no, using $LN_S" >&6
8529fi
8530
8531am__api_version="1.9"
8532# Find a good install program.  We prefer a C program (faster),
8533# so one script is as good as another.  But avoid the broken or
8534# incompatible versions:
8535# SysV /etc/install, /usr/sbin/install
8536# SunOS /usr/etc/install
8537# IRIX /sbin/install
8538# AIX /bin/install
8539# AmigaOS /C/install, which installs bootblocks on floppy discs
8540# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8541# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8542# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8543# OS/2's system install, which has a completely different semantic
8544# ./install, which can be erroneously created by make from ./install.sh.
8545echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8546echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8547if test -z "$INSTALL"; then
8548if test "${ac_cv_path_install+set}" = set; then
8549  echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554  IFS=$as_save_IFS
8555  test -z "$as_dir" && as_dir=.
8556  # Account for people who put trailing slashes in PATH elements.
8557case $as_dir/ in
8558  ./ | .// | /cC/* | \
8559  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8560  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8561  /usr/ucb/* ) ;;
8562  *)
8563    # OSF1 and SCO ODT 3.0 have their own names for install.
8564    # Don't use installbsd from OSF since it installs stuff as root
8565    # by default.
8566    for ac_prog in ginstall scoinst install; do
8567      for ac_exec_ext in '' $ac_executable_extensions; do
8568        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8569          if test $ac_prog = install &&
8570            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8571            # AIX install.  It has an incompatible calling convention.
8572            :
8573          elif test $ac_prog = install &&
8574            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8575            # program-specific install script used by HP pwplus--don't use.
8576            :
8577          else
8578            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8579            break 3
8580          fi
8581        fi
8582      done
8583    done
8584    ;;
8585esac
8586done
8587
8588
8589fi
8590  if test "${ac_cv_path_install+set}" = set; then
8591    INSTALL=$ac_cv_path_install
8592  else
8593    # As a last resort, use the slow shell script.  We don't cache a
8594    # path for INSTALL within a source directory, because that will
8595    # break other packages using the cache if that directory is
8596    # removed, or if the path is relative.
8597    INSTALL=$ac_install_sh
8598  fi
8599fi
8600echo "$as_me:$LINENO: result: $INSTALL" >&5
8601echo "${ECHO_T}$INSTALL" >&6
8602
8603# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8604# It thinks the first close brace ends the variable substitution.
8605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8606
8607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8608
8609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8610
8611echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8612echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8613# Just in case
8614sleep 1
8615echo timestamp > conftest.file
8616# Do `set' in a subshell so we don't clobber the current shell's
8617# arguments.  Must try -L first in case configure is actually a
8618# symlink; some systems play weird games with the mod time of symlinks
8619# (eg FreeBSD returns the mod time of the symlink's containing
8620# directory).
8621if (
8622   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8623   if test "$*" = "X"; then
8624      # -L didn't work.
8625      set X `ls -t $srcdir/configure conftest.file`
8626   fi
8627   rm -f conftest.file
8628   if test "$*" != "X $srcdir/configure conftest.file" \
8629      && test "$*" != "X conftest.file $srcdir/configure"; then
8630
8631      # If neither matched, then we have a broken ls.  This can happen
8632      # if, for instance, CONFIG_SHELL is bash and it inherits a
8633      # broken ls alias from the environment.  This has actually
8634      # happened.  Such a system could not be considered "sane".
8635      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8636alias in your environment" >&5
8637echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8638alias in your environment" >&2;}
8639   { (exit 1); exit 1; }; }
8640   fi
8641
8642   test "$2" = conftest.file
8643   )
8644then
8645   # Ok.
8646   :
8647else
8648   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8649Check your system clock" >&5
8650echo "$as_me: error: newly created file is older than distributed files!
8651Check your system clock" >&2;}
8652   { (exit 1); exit 1; }; }
8653fi
8654echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
8656test "$program_prefix" != NONE &&
8657  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8658# Use a double $ so make ignores it.
8659test "$program_suffix" != NONE &&
8660  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8661# Double any \ or $.  echo might interpret backslashes.
8662# By default was `s,x,x', remove it if useless.
8663cat <<\_ACEOF >conftest.sed
8664s/[\\$]/&&/g;s/;s,x,x,$//
8665_ACEOF
8666program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8667rm conftest.sed
8668
8669# expand $ac_aux_dir to an absolute path
8670am_aux_dir=`cd $ac_aux_dir && pwd`
8671
8672test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8673# Use eval to expand $SHELL
8674if eval "$MISSING --run true"; then
8675  am_missing_run="$MISSING --run "
8676else
8677  am_missing_run=
8678  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8679echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8680fi
8681
8682if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8683  # We used to keeping the `.' as first argument, in order to
8684  # allow $(mkdir_p) to be used without argument.  As in
8685  #   $(mkdir_p) $(somedir)
8686  # where $(somedir) is conditionally defined.  However this is wrong
8687  # for two reasons:
8688  #  1. if the package is installed by a user who cannot write `.'
8689  #     make install will fail,
8690  #  2. the above comment should most certainly read
8691  #     $(mkdir_p) $(DESTDIR)$(somedir)
8692  #     so it does not work when $(somedir) is undefined and
8693  #     $(DESTDIR) is not.
8694  #  To support the latter case, we have to write
8695  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8696  #  so the `.' trick is pointless.
8697  mkdir_p='mkdir -p --'
8698else
8699  # On NextStep and OpenStep, the `mkdir' command does not
8700  # recognize any option.  It will interpret all options as
8701  # directories to create, and then abort because `.' already
8702  # exists.
8703  for d in ./-p ./--version;
8704  do
8705    test -d $d && rmdir $d
8706  done
8707  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8708  if test -f "$ac_aux_dir/mkinstalldirs"; then
8709    mkdir_p='$(mkinstalldirs)'
8710  else
8711    mkdir_p='$(install_sh) -d'
8712  fi
8713fi
8714
8715for ac_prog in gawk mawk nawk awk
8716do
8717  # Extract the first word of "$ac_prog", so it can be a program name with args.
8718set dummy $ac_prog; ac_word=$2
8719echo "$as_me:$LINENO: checking for $ac_word" >&5
8720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8721if test "${ac_cv_prog_AWK+set}" = set; then
8722  echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724  if test -n "$AWK"; then
8725  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8726else
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730  IFS=$as_save_IFS
8731  test -z "$as_dir" && as_dir=.
8732  for ac_exec_ext in '' $ac_executable_extensions; do
8733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734    ac_cv_prog_AWK="$ac_prog"
8735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8736    break 2
8737  fi
8738done
8739done
8740
8741fi
8742fi
8743AWK=$ac_cv_prog_AWK
8744if test -n "$AWK"; then
8745  echo "$as_me:$LINENO: result: $AWK" >&5
8746echo "${ECHO_T}$AWK" >&6
8747else
8748  echo "$as_me:$LINENO: result: no" >&5
8749echo "${ECHO_T}no" >&6
8750fi
8751
8752  test -n "$AWK" && break
8753done
8754
8755echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8756echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8757set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8758if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8759  echo $ECHO_N "(cached) $ECHO_C" >&6
8760else
8761  cat >conftest.make <<\_ACEOF
8762all:
8763        @echo 'ac_maketemp="$(MAKE)"'
8764_ACEOF
8765# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8766eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8767if test -n "$ac_maketemp"; then
8768  eval ac_cv_prog_make_${ac_make}_set=yes
8769else
8770  eval ac_cv_prog_make_${ac_make}_set=no
8771fi
8772rm -f conftest.make
8773fi
8774if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8775  echo "$as_me:$LINENO: result: yes" >&5
8776echo "${ECHO_T}yes" >&6
8777  SET_MAKE=
8778else
8779  echo "$as_me:$LINENO: result: no" >&5
8780echo "${ECHO_T}no" >&6
8781  SET_MAKE="MAKE=${MAKE-make}"
8782fi
8783
8784rm -rf .tst 2>/dev/null
8785mkdir .tst 2>/dev/null
8786if test -d .tst; then
8787  am__leading_dot=.
8788else
8789  am__leading_dot=_
8790fi
8791rmdir .tst 2>/dev/null
8792
8793DEPDIR="${am__leading_dot}deps"
8794
8795          ac_config_commands="$ac_config_commands depfiles"
8796
8797
8798am_make=${MAKE-make}
8799cat > confinc << 'END'
8800am__doit:
8801        @echo done
8802.PHONY: am__doit
8803END
8804# If we don't find an include directive, just comment out the code.
8805echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8806echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8807am__include="#"
8808am__quote=
8809_am_result=none
8810# First try GNU make style include.
8811echo "include confinc" > confmf
8812# We grep out `Entering directory' and `Leaving directory'
8813# messages which can occur if `w' ends up in MAKEFLAGS.
8814# In particular we don't look at `^make:' because GNU make might
8815# be invoked under some other name (usually "gmake"), in which
8816# case it prints its new name instead of `make'.
8817if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8818   am__include=include
8819   am__quote=
8820   _am_result=GNU
8821fi
8822# Now try BSD make style include.
8823if test "$am__include" = "#"; then
8824   echo '.include "confinc"' > confmf
8825   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8826      am__include=.include
8827      am__quote="\""
8828      _am_result=BSD
8829   fi
8830fi
8831
8832
8833echo "$as_me:$LINENO: result: $_am_result" >&5
8834echo "${ECHO_T}$_am_result" >&6
8835rm -f confinc confmf
8836
8837# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8838if test "${enable_dependency_tracking+set}" = set; then
8839  enableval="$enable_dependency_tracking"
8840
8841fi;
8842if test "x$enable_dependency_tracking" != xno; then
8843  am_depcomp="$ac_aux_dir/depcomp"
8844  AMDEPBACKSLASH='\'
8845fi
8846
8847
8848if test "x$enable_dependency_tracking" != xno; then
8849  AMDEP_TRUE=
8850  AMDEP_FALSE='#'
8851else
8852  AMDEP_TRUE='#'
8853  AMDEP_FALSE=
8854fi
8855
8856
8857
8858
8859
8860
8861# AC_MSG_NOTICE([Beginning automake initialisation.])
8862# Stuff for automake
8863# test to see if srcdir already configured
8864if test "`cd $srcdir && pwd`" != "`pwd`" &&
8865   test -f $srcdir/config.status; then
8866  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8867echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8868   { (exit 1); exit 1; }; }
8869fi
8870
8871# test whether we have cygpath
8872if test -z "$CYGPATH_W"; then
8873  if (cygpath --version) >/dev/null 2>/dev/null; then
8874    CYGPATH_W='cygpath -w'
8875  else
8876    CYGPATH_W=echo
8877  fi
8878fi
8879
8880
8881# Define the identity of the package.
8882 PACKAGE='thirdpartylapack'
8883 VERSION='trunk'
8884
8885
8886cat >>confdefs.h <<_ACEOF
8887#define PACKAGE "$PACKAGE"
8888_ACEOF
8889
8890
8891cat >>confdefs.h <<_ACEOF
8892#define VERSION "$VERSION"
8893_ACEOF
8894
8895# Some tools Automake needs.
8896
8897ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8898
8899
8900AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8901
8902
8903AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8904
8905
8906AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8907
8908
8909MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8910
8911install_sh=${install_sh-"$am_aux_dir/install-sh"}
8912
8913# Installed binaries are usually stripped using `strip' when the user
8914# run `make install-strip'.  However `strip' might not be the right
8915# tool to use in cross-compilation environments, therefore Automake
8916# will honor the `STRIP' environment variable to overrule this program.
8917if test "$cross_compiling" != no; then
8918  if test -n "$ac_tool_prefix"; then
8919  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8920set dummy ${ac_tool_prefix}strip; ac_word=$2
8921echo "$as_me:$LINENO: checking for $ac_word" >&5
8922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8923if test "${ac_cv_prog_STRIP+set}" = set; then
8924  echo $ECHO_N "(cached) $ECHO_C" >&6
8925else
8926  if test -n "$STRIP"; then
8927  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932  IFS=$as_save_IFS
8933  test -z "$as_dir" && as_dir=.
8934  for ac_exec_ext in '' $ac_executable_extensions; do
8935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8938    break 2
8939  fi
8940done
8941done
8942
8943fi
8944fi
8945STRIP=$ac_cv_prog_STRIP
8946if test -n "$STRIP"; then
8947  echo "$as_me:$LINENO: result: $STRIP" >&5
8948echo "${ECHO_T}$STRIP" >&6
8949else
8950  echo "$as_me:$LINENO: result: no" >&5
8951echo "${ECHO_T}no" >&6
8952fi
8953
8954fi
8955if test -z "$ac_cv_prog_STRIP"; then
8956  ac_ct_STRIP=$STRIP
8957  # Extract the first word of "strip", so it can be a program name with args.
8958set dummy strip; ac_word=$2
8959echo "$as_me:$LINENO: checking for $ac_word" >&5
8960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8961if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8962  echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964  if test -n "$ac_ct_STRIP"; then
8965  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8966else
8967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968for as_dir in $PATH
8969do
8970  IFS=$as_save_IFS
8971  test -z "$as_dir" && as_dir=.
8972  for ac_exec_ext in '' $ac_executable_extensions; do
8973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8974    ac_cv_prog_ac_ct_STRIP="strip"
8975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8976    break 2
8977  fi
8978done
8979done
8980
8981  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8982fi
8983fi
8984ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8985if test -n "$ac_ct_STRIP"; then
8986  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8987echo "${ECHO_T}$ac_ct_STRIP" >&6
8988else
8989  echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991fi
8992
8993  STRIP=$ac_ct_STRIP
8994else
8995  STRIP="$ac_cv_prog_STRIP"
8996fi
8997
8998fi
8999INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9000
9001# We need awk for the "check" target.  The system "awk" is bad on
9002# some platforms.
9003# Always define AMTAR for backward compatibility.
9004
9005AMTAR=${AMTAR-"${am_missing_run}tar"}
9006
9007am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
9008
9009
9010
9011
9012depcc="$CC"   am_compiler_list=
9013
9014echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9015echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9016if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9017  echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9020  # We make a subdir and do the tests there.  Otherwise we can end up
9021  # making bogus files that we don't know about and never remove.  For
9022  # instance it was reported that on HP-UX the gcc test will end up
9023  # making a dummy file named `D' -- because `-MD' means `put the output
9024  # in D'.
9025  mkdir conftest.dir
9026  # Copy depcomp to subdir because otherwise we won't find it if we're
9027  # using a relative directory.
9028  cp "$am_depcomp" conftest.dir
9029  cd conftest.dir
9030  # We will build objects and dependencies in a subdirectory because
9031  # it helps to detect inapplicable dependency modes.  For instance
9032  # both Tru64's cc and ICC support -MD to output dependencies as a
9033  # side effect of compilation, but ICC will put the dependencies in
9034  # the current directory while Tru64 will put them in the object
9035  # directory.
9036  mkdir sub
9037
9038  am_cv_CC_dependencies_compiler_type=none
9039  if test "$am_compiler_list" = ""; then
9040     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9041  fi
9042  for depmode in $am_compiler_list; do
9043    # Setup a source with many dependencies, because some compilers
9044    # like to wrap large dependency lists on column 80 (with \), and
9045    # we should not choose a depcomp mode which is confused by this.
9046    #
9047    # We need to recreate these files for each test, as the compiler may
9048    # overwrite some of them when testing with obscure command lines.
9049    # This happens at least with the AIX C compiler.
9050    : > sub/conftest.c
9051    for i in 1 2 3 4 5 6; do
9052      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9053      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9054      # Solaris 8's {/usr,}/bin/sh.
9055      touch sub/conftst$i.h
9056    done
9057    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9058
9059    case $depmode in
9060    nosideeffect)
9061      # after this tag, mechanisms are not by side-effect, so they'll
9062      # only be used when explicitly requested
9063      if test "x$enable_dependency_tracking" = xyes; then
9064        continue
9065      else
9066        break
9067      fi
9068      ;;
9069    none) break ;;
9070    esac
9071    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9072    # mode.  It turns out that the SunPro C++ compiler does not properly
9073    # handle `-M -o', and we need to detect this.
9074    if depmode=$depmode \
9075       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9076       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9077       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9078         >/dev/null 2>conftest.err &&
9079       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9080       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9081       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9082      # icc doesn't choke on unknown options, it will just issue warnings
9083      # or remarks (even with -Werror).  So we grep stderr for any message
9084      # that says an option was ignored or not supported.
9085      # When given -MP, icc 7.0 and 7.1 complain thusly:
9086      #   icc: Command line warning: ignoring option '-M'; no argument required
9087      # The diagnosis changed in icc 8.0:
9088      #   icc: Command line remark: option '-MP' not supported
9089      if (grep 'ignoring option' conftest.err ||
9090          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9091        am_cv_CC_dependencies_compiler_type=$depmode
9092        break
9093      fi
9094    fi
9095  done
9096
9097  cd ..
9098  rm -rf conftest.dir
9099else
9100  am_cv_CC_dependencies_compiler_type=none
9101fi
9102
9103fi
9104echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9105echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9106CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9107
9108
9109
9110if
9111  test "x$enable_dependency_tracking" != xno \
9112  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9113  am__fastdepCC_TRUE=
9114  am__fastdepCC_FALSE='#'
9115else
9116  am__fastdepCC_TRUE='#'
9117  am__fastdepCC_FALSE=
9118fi
9119
9120
9121
9122echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9123echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9124    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9125if test "${enable_maintainer_mode+set}" = set; then
9126  enableval="$enable_maintainer_mode"
9127  USE_MAINTAINER_MODE=$enableval
9128else
9129  USE_MAINTAINER_MODE=no
9130fi;
9131  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9132echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9133
9134
9135if test $USE_MAINTAINER_MODE = yes; then
9136  MAINTAINER_MODE_TRUE=
9137  MAINTAINER_MODE_FALSE='#'
9138else
9139  MAINTAINER_MODE_TRUE='#'
9140  MAINTAINER_MODE_FALSE=
9141fi
9142
9143  MAINT=$MAINTAINER_MODE_TRUE
9144
9145
9146
9147coin_have_externals=no
9148if test "$enable_maintainer_mode" = yes; then
9149
9150  # If maintainer mode is chosen, we make sure that the correct versions
9151  # of the tools are used, and that we know where libtool.m4 is (to
9152  # recreate acinclude.m4)
9153
9154
9155  LIBTOOLM4=
9156  # Normally, $HOME
9157  AUTOTOOLS_DFLT=$HOME
9158
9159  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9160echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9161if test "${ac_cv_use_correct_autotools+set}" = set; then
9162  echo $ECHO_N "(cached) $ECHO_C" >&6
9163else
9164  ac_cv_use_correct_autotools=check
9165fi
9166echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9167echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9168
9169  if test $ac_cv_use_correct_autotools = check; then
9170    ac_cv_use_correct_autotools=yes
9171    # Check if we have autoconf
9172    # Extract the first word of "autoconf", so it can be a program name with args.
9173set dummy autoconf; ac_word=$2
9174echo "$as_me:$LINENO: checking for $ac_word" >&5
9175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9176if test "${ac_cv_prog_have_autoconf+set}" = set; then
9177  echo $ECHO_N "(cached) $ECHO_C" >&6
9178else
9179  if test -n "$have_autoconf"; then
9180  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185  IFS=$as_save_IFS
9186  test -z "$as_dir" && as_dir=.
9187  for ac_exec_ext in '' $ac_executable_extensions; do
9188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9189    ac_cv_prog_have_autoconf="yes"
9190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9191    break 2
9192  fi
9193done
9194done
9195
9196  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9197fi
9198fi
9199have_autoconf=$ac_cv_prog_have_autoconf
9200if test -n "$have_autoconf"; then
9201  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9202echo "${ECHO_T}$have_autoconf" >&6
9203else
9204  echo "$as_me:$LINENO: result: no" >&5
9205echo "${ECHO_T}no" >&6
9206fi
9207
9208    if test $have_autoconf = no; then
9209      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9210echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9211   { (exit 1); exit 1; }; }
9212    fi
9213
9214    # Check whether autoconf is the correct version
9215    correct_version='2.59'
9216    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9217    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9218echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9219    autoconf --version > confauto.out 2>&1
9220    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9221      echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
9223    else
9224      rm -f confauto.out
9225      echo "$as_me:$LINENO: result: no" >&5
9226echo "${ECHO_T}no" >&6
9227      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9228echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9229   { (exit 1); exit 1; }; }
9230    fi
9231    rm -f confauto.out
9232
9233    # Check if the executable autoconf is picked up from the correct location
9234    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9235echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9236    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9237    autoconf_dir=`cd $autoconf_dir; pwd`
9238    if test x$AUTOTOOLS_DIR = x; then
9239      want_dir=$AUTOTOOLS_DFLT/bin
9240    else
9241      want_dir=$AUTOTOOLS_DIR/bin
9242    fi
9243    if test $autoconf_dir = `cd $want_dir; pwd`; then
9244      echo "$as_me:$LINENO: result: yes" >&5
9245echo "${ECHO_T}yes" >&6
9246    else
9247      rm -f confauto.out
9248      echo "$as_me:$LINENO: result: no" >&5
9249echo "${ECHO_T}no" >&6
9250      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9251echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9252   { (exit 1); exit 1; }; }
9253    fi
9254
9255    # Check if we have automake
9256    # Extract the first word of "automake", so it can be a program name with args.
9257set dummy automake; ac_word=$2
9258echo "$as_me:$LINENO: checking for $ac_word" >&5
9259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9260if test "${ac_cv_prog_have_automake+set}" = set; then
9261  echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263  if test -n "$have_automake"; then
9264  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9265else
9266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267for as_dir in $PATH
9268do
9269  IFS=$as_save_IFS
9270  test -z "$as_dir" && as_dir=.
9271  for ac_exec_ext in '' $ac_executable_extensions; do
9272  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9273    ac_cv_prog_have_automake="yes"
9274    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9275    break 2
9276  fi
9277done
9278done
9279
9280  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9281fi
9282fi
9283have_automake=$ac_cv_prog_have_automake
9284if test -n "$have_automake"; then
9285  echo "$as_me:$LINENO: result: $have_automake" >&5
9286echo "${ECHO_T}$have_automake" >&6
9287else
9288  echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
9290fi
9291
9292    if test $have_automake = no; then
9293      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9294echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9295   { (exit 1); exit 1; }; }
9296    fi
9297
9298    # Check whether automake is the correct version
9299    correct_version='1.9.6'
9300    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9301    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9302echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9303    automake --version > confauto.out 2>&1
9304    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9305      echo "$as_me:$LINENO: result: yes" >&5
9306echo "${ECHO_T}yes" >&6
9307    else
9308      rm -f confauto.out
9309      echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9312echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9313   { (exit 1); exit 1; }; }
9314    fi
9315    rm -f confauto.out
9316
9317    # Check if the executable automake is picked up from the correct location
9318    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9319echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9320    automake_dir=`which automake | sed -e 's=/automake=='`
9321    automake_dir=`cd $automake_dir; pwd`
9322    if test x$AUTOTOOLS_DIR = x; then
9323      want_dir=$AUTOTOOLS_DFLT/bin
9324    else
9325      want_dir=$AUTOTOOLS_DIR/bin
9326    fi
9327    if test $automake_dir = `cd $want_dir; pwd`; then
9328      echo "$as_me:$LINENO: result: yes" >&5
9329echo "${ECHO_T}yes" >&6
9330    else
9331      rm -f confauto.out
9332      echo "$as_me:$LINENO: result: no" >&5
9333echo "${ECHO_T}no" >&6
9334      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9335echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9336   { (exit 1); exit 1; }; }
9337    fi
9338
9339    # Check if this is the correct version of libtool (with escaped dots)
9340    if test x$AUTOTOOLS_DIR = x; then
9341      want_dir=$AUTOTOOLS_DFLT/share
9342    else
9343      want_dir=$AUTOTOOLS_DIR/share
9344    fi
9345    correct_version='1.5.22'
9346    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9347    if test -r $want_dir/libtool/ltmain.sh; then
9348  have_ltmain=yes
9349  :
9350else
9351  have_ltmain=no
9352  :
9353fi
9354
9355    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9356echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9357    if test $have_ltmain = yes; then
9358    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9359        echo "$as_me:$LINENO: result: yes" >&5
9360echo "${ECHO_T}yes" >&6
9361      else
9362        echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
9364        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9365echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9366   { (exit 1); exit 1; }; }
9367      fi
9368    else
9369      echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
9371      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9372echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9373   { (exit 1); exit 1; }; }
9374    fi
9375  fi
9376
9377  # Check if we can find the libtool file
9378  if test x$AUTOTOOLS_DIR = x; then
9379    want_dir=$AUTOTOOLS_DFLT/share
9380  else
9381    want_dir=$AUTOTOOLS_DIR/share
9382  fi
9383  if test -r $want_dir/aclocal/libtool.m4; then
9384  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9385  :
9386else
9387  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9388echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9389   { (exit 1); exit 1; }; }
9390  :
9391fi
9392
9393
9394  # Check if we have an Dependencies file
9395  if test -r $srcdir/Dependencies; then
9396    coin_have_externals=yes
9397  fi
9398  # Check if subversion is installed and understands https
9399  # Extract the first word of "svn", so it can be a program name with args.
9400set dummy svn; ac_word=$2
9401echo "$as_me:$LINENO: checking for $ac_word" >&5
9402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9403if test "${ac_cv_prog_have_svn+set}" = set; then
9404  echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406  if test -n "$have_svn"; then
9407  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9408else
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412  IFS=$as_save_IFS
9413  test -z "$as_dir" && as_dir=.
9414  for ac_exec_ext in '' $ac_executable_extensions; do
9415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9416    ac_cv_prog_have_svn="yes"
9417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9418    break 2
9419  fi
9420done
9421done
9422
9423  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9424fi
9425fi
9426have_svn=$ac_cv_prog_have_svn
9427if test -n "$have_svn"; then
9428  echo "$as_me:$LINENO: result: $have_svn" >&5
9429echo "${ECHO_T}$have_svn" >&6
9430else
9431  echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
9433fi
9434
9435  if test x$have_svn = xyes; then
9436    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9437echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9438if test "${ac_cv_svn_understands_https+set}" = set; then
9439  echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441  svn --version > confauto.out 2>&1
9442                    if $EGREP https confauto.out >/dev/null 2>&1; then
9443                      ac_cv_svn_understands_https=yes
9444                    else
9445                      ac_cv_svn_understands_https=no
9446                      have_svn=no
9447                      ac_cv_prog_have_svn=no
9448                    fi
9449                    rm -f confauto.out
9450fi
9451echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9452echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9453  fi
9454
9455  # Find the location of the BuildTools directory
9456  BUILDTOOLSDIR=
9457  if test -r $srcdir/BuildTools/coin.m4; then
9458    BUILDTOOLSDIR=$srcdir/BuildTools
9459  else
9460    if test -r $srcdir/../BuildTools/coin.m4; then
9461      BUILDTOOLSDIR=$srcdir/../BuildTools
9462    else
9463      if test -r $srcdir/../../BuildTools/coin.m4; then
9464        BUILDTOOLSDIR=$srcdir/../../BuildTools
9465      else
9466        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9467echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9468   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9469      fi
9470    fi
9471  fi
9472
9473
9474  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9475  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9476    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9477  fi
9478
9479  # The following variable is set to the name of the directory where
9480  # the autotool scripts are located
9481
9482  AUX_DIR=$ac_aux_dir
9483fi
9484
9485# helpful variable for the base directory of this package
9486abs_source_dir=`cd $srcdir; pwd`
9487
9488
9489# Stuff for example Makefiles
9490if test x$prefix = xNONE; then
9491  full_prefix=$ac_default_prefix
9492else
9493  full_prefix=$prefix
9494fi
9495full_prefix=`cd $full_prefix ; pwd`
9496
9497abs_lib_dir=$full_prefix/lib
9498
9499abs_include_dir=$full_prefix/include
9500
9501abs_bin_dir=$full_prefix/bin
9502
9503
9504
9505if test $coin_have_externals = yes && test x$have_svn = xyes; then
9506  HAVE_EXTERNALS_TRUE=
9507  HAVE_EXTERNALS_FALSE='#'
9508else
9509  HAVE_EXTERNALS_TRUE='#'
9510  HAVE_EXTERNALS_FALSE=
9511fi
9512
9513
9514# AC_MSG_NOTICE([End automake initialisation.])
9515
9516
9517
9518LIBTOOL=
9519if test -r ../libtool; then
9520  coin_config_dir=..
9521  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9522fi
9523if test "x$LIBTOOL" = x; then
9524  if test -r ../../libtool; then
9525    coin_config_dir=../..
9526    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9527  fi
9528fi
9529
9530if test "x$LIBTOOL" = x; then
9531# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9532  # Stuff for libtool
9533  # Check whether --enable-shared or --disable-shared was given.
9534if test "${enable_shared+set}" = set; then
9535  enableval="$enable_shared"
9536  p=${PACKAGE-default}
9537    case $enableval in
9538    yes) enable_shared=yes ;;
9539    no) enable_shared=no ;;
9540    *)
9541      enable_shared=no
9542      # Look at the argument we got.  We use all the common list separators.
9543      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9544      for pkg in $enableval; do
9545        IFS="$lt_save_ifs"
9546        if test "X$pkg" = "X$p"; then
9547          enable_shared=yes
9548        fi
9549      done
9550      IFS="$lt_save_ifs"
9551      ;;
9552    esac
9553else
9554  enable_shared=yes
9555fi;
9556
9557# Check whether --enable-fast-install or --disable-fast-install was given.
9558if test "${enable_fast_install+set}" = set; then
9559  enableval="$enable_fast_install"
9560  p=${PACKAGE-default}
9561    case $enableval in
9562    yes) enable_fast_install=yes ;;
9563    no) enable_fast_install=no ;;
9564    *)
9565      enable_fast_install=no
9566      # Look at the argument we got.  We use all the common list separators.
9567      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9568      for pkg in $enableval; do
9569        IFS="$lt_save_ifs"
9570        if test "X$pkg" = "X$p"; then
9571          enable_fast_install=yes
9572        fi
9573      done
9574      IFS="$lt_save_ifs"
9575      ;;
9576    esac
9577else
9578  enable_fast_install=yes
9579fi;
9580
9581echo "$as_me:$LINENO: checking host system type" >&5
9582echo $ECHO_N "checking host system type... $ECHO_C" >&6
9583if test "${ac_cv_host+set}" = set; then
9584  echo $ECHO_N "(cached) $ECHO_C" >&6
9585else
9586  ac_cv_host_alias=$host_alias
9587test -z "$ac_cv_host_alias" &&
9588  ac_cv_host_alias=$ac_cv_build_alias
9589ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9590  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9591echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9592   { (exit 1); exit 1; }; }
9593
9594fi
9595echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9596echo "${ECHO_T}$ac_cv_host" >&6
9597host=$ac_cv_host
9598host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9599host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9600host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9601
9602
9603echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9604echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9605if test "${lt_cv_path_SED+set}" = set; then
9606  echo $ECHO_N "(cached) $ECHO_C" >&6
9607else
9608  # Loop through the user's path and test for sed and gsed.
9609# Then use that list of sed's as ones to test for truncation.
9610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611for as_dir in $PATH
9612do
9613  IFS=$as_save_IFS
9614  test -z "$as_dir" && as_dir=.
9615  for lt_ac_prog in sed gsed; do
9616    for ac_exec_ext in '' $ac_executable_extensions; do
9617      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9618        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9619      fi
9620    done
9621  done
9622done
9623lt_ac_max=0
9624lt_ac_count=0
9625# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9626# along with /bin/sed that truncates output.
9627for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9628  test ! -f $lt_ac_sed && continue
9629  cat /dev/null > conftest.in
9630  lt_ac_count=0
9631  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9632  # Check for GNU sed and select it if it is found.
9633  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9634    lt_cv_path_SED=$lt_ac_sed
9635    break
9636  fi
9637  while true; do
9638    cat conftest.in conftest.in >conftest.tmp
9639    mv conftest.tmp conftest.in
9640    cp conftest.in conftest.nl
9641    echo >>conftest.nl
9642    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9643    cmp -s conftest.out conftest.nl || break
9644    # 10000 chars as input seems more than enough
9645    test $lt_ac_count -gt 10 && break
9646    lt_ac_count=`expr $lt_ac_count + 1`
9647    if test $lt_ac_count -gt $lt_ac_max; then
9648      lt_ac_max=$lt_ac_count
9649      lt_cv_path_SED=$lt_ac_sed
9650    fi
9651  done
9652done
9653
9654fi
9655
9656SED=$lt_cv_path_SED
9657echo "$as_me:$LINENO: result: $SED" >&5
9658echo "${ECHO_T}$SED" >&6
9659
9660
9661# Check whether --with-gnu-ld or --without-gnu-ld was given.
9662if test "${with_gnu_ld+set}" = set; then
9663  withval="$with_gnu_ld"
9664  test "$withval" = no || with_gnu_ld=yes
9665else
9666  with_gnu_ld=no
9667fi;
9668ac_prog=ld
9669if test "$GCC" = yes; then
9670  # Check if gcc -print-prog-name=ld gives a path.
9671  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9672echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9673  case $host in
9674  *-*-mingw*)
9675    # gcc leaves a trailing carriage return which upsets mingw
9676    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9677  *)
9678    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9679  esac
9680  case $ac_prog in
9681    # Accept absolute paths.
9682    [\\/]* | ?:[\\/]*)
9683      re_direlt='/[^/][^/]*/\.\./'
9684      # Canonicalize the pathname of ld
9685      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9686      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9687        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9688      done
9689      test -z "$LD" && LD="$ac_prog"
9690      ;;
9691  "")
9692    # If it fails, then pretend we aren't using GCC.
9693    ac_prog=ld
9694    ;;
9695  *)
9696    # If it is relative, then search for the first ld in PATH.
9697    with_gnu_ld=unknown
9698    ;;
9699  esac
9700elif test "$with_gnu_ld" = yes; then
9701  echo "$as_me:$LINENO: checking for GNU ld" >&5
9702echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9703else
9704  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9705echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9706fi
9707if test "${lt_cv_path_LD+set}" = set; then
9708  echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710  if test -z "$LD"; then
9711  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9712  for ac_dir in $PATH; do
9713    IFS="$lt_save_ifs"
9714    test -z "$ac_dir" && ac_dir=.
9715    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9716      lt_cv_path_LD="$ac_dir/$ac_prog"
9717      # Check to see if the program is GNU ld.  I'd rather use --version,
9718      # but apparently some variants of GNU ld only accept -v.
9719      # Break only if it was the GNU/non-GNU ld that we prefer.
9720      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9721      *GNU* | *'with BFD'*)
9722        test "$with_gnu_ld" != no && break
9723        ;;
9724      *)
9725        test "$with_gnu_ld" != yes && break
9726        ;;
9727      esac
9728    fi
9729  done
9730  IFS="$lt_save_ifs"
9731else
9732  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9733fi
9734fi
9735
9736LD="$lt_cv_path_LD"
9737if test -n "$LD"; then
9738  echo "$as_me:$LINENO: result: $LD" >&5
9739echo "${ECHO_T}$LD" >&6
9740else
9741  echo "$as_me:$LINENO: result: no" >&5
9742echo "${ECHO_T}no" >&6
9743fi
9744test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9745echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9746   { (exit 1); exit 1; }; }
9747echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9748echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9749if test "${lt_cv_prog_gnu_ld+set}" = set; then
9750  echo $ECHO_N "(cached) $ECHO_C" >&6
9751else
9752  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9753case `$LD -v 2>&1 </dev/null` in
9754*GNU* | *'with BFD'*)
9755  lt_cv_prog_gnu_ld=yes
9756  ;;
9757*)
9758  lt_cv_prog_gnu_ld=no
9759  ;;
9760esac
9761fi
9762echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9763echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9764with_gnu_ld=$lt_cv_prog_gnu_ld
9765
9766
9767echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9768echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9769if test "${lt_cv_ld_reload_flag+set}" = set; then
9770  echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772  lt_cv_ld_reload_flag='-r'
9773fi
9774echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9775echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9776reload_flag=$lt_cv_ld_reload_flag
9777case $reload_flag in
9778"" | " "*) ;;
9779*) reload_flag=" $reload_flag" ;;
9780esac
9781reload_cmds='$LD$reload_flag -o $output$reload_objs'
9782case $host_os in
9783  darwin*)
9784    if test "$GCC" = yes; then
9785      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9786    else
9787      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9788    fi
9789    ;;
9790esac
9791
9792echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9793echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9794if test "${lt_cv_path_NM+set}" = set; then
9795  echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797  if test -n "$NM"; then
9798  # Let the user override the test.
9799  lt_cv_path_NM="$NM"
9800else
9801  lt_nm_to_check="${ac_tool_prefix}nm"
9802  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9803    lt_nm_to_check="$lt_nm_to_check nm"
9804  fi
9805  for lt_tmp_nm in $lt_nm_to_check; do
9806    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9807    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9808      IFS="$lt_save_ifs"
9809      test -z "$ac_dir" && ac_dir=.
9810      tmp_nm="$ac_dir/$lt_tmp_nm"
9811      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9812        # Check to see if the nm accepts a BSD-compat flag.
9813        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9814        #   nm: unknown option "B" ignored
9815        # Tru64's nm complains that /dev/null is an invalid object file
9816        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9817        */dev/null* | *'Invalid file or object type'*)
9818          lt_cv_path_NM="$tmp_nm -B"
9819          break
9820          ;;
9821        *)
9822          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9823          */dev/null*)
9824            lt_cv_path_NM="$tmp_nm -p"
9825            break
9826            ;;
9827          *)
9828            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9829            continue # so that we can try to find one that supports BSD flags
9830            ;;
9831          esac
9832          ;;
9833        esac
9834      fi
9835    done
9836    IFS="$lt_save_ifs"
9837  done
9838  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9839fi
9840fi
9841echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9842echo "${ECHO_T}$lt_cv_path_NM" >&6
9843NM="$lt_cv_path_NM"
9844
9845echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9846echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9847if test "${lt_cv_deplibs_check_method+set}" = set; then
9848  echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850  lt_cv_file_magic_cmd='$MAGIC_CMD'
9851lt_cv_file_magic_test_file=
9852lt_cv_deplibs_check_method='unknown'
9853# Need to set the preceding variable on all platforms that support
9854# interlibrary dependencies.
9855# 'none' -- dependencies not supported.
9856# `unknown' -- same as none, but documents that we really don't know.
9857# 'pass_all' -- all dependencies passed with no checks.
9858# 'test_compile' -- check by making test program.
9859# 'file_magic [[regex]]' -- check by looking for files in library path
9860# which responds to the $file_magic_cmd with a given extended regex.
9861# If you have `file' or equivalent on your system and you're not sure
9862# whether `pass_all' will *always* work, you probably want this one.
9863
9864case $host_os in
9865aix4* | aix5*)
9866  lt_cv_deplibs_check_method=pass_all
9867  ;;
9868
9869beos*)
9870  lt_cv_deplibs_check_method=pass_all
9871  ;;
9872
9873bsdi[45]*)
9874  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9875  lt_cv_file_magic_cmd='/usr/bin/file -L'
9876  lt_cv_file_magic_test_file=/shlib/libc.so
9877  ;;
9878
9879cygwin*)
9880  # func_win32_libid is a shell function defined in ltmain.sh
9881  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9882  lt_cv_file_magic_cmd='func_win32_libid'
9883  ;;
9884
9885mingw* | pw32*)
9886  # Base MSYS/MinGW do not provide the 'file' command needed by
9887  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9888  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9889  lt_cv_file_magic_cmd='$OBJDUMP -f'
9890  ;;
9891
9892darwin* | rhapsody*)
9893  lt_cv_deplibs_check_method=pass_all
9894  ;;
9895
9896freebsd* | kfreebsd*-gnu | dragonfly*)
9897  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9898    case $host_cpu in
9899    i*86 )
9900      # Not sure whether the presence of OpenBSD here was a mistake.
9901      # Let's accept both of them until this is cleared up.
9902      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9903      lt_cv_file_magic_cmd=/usr/bin/file
9904      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9905      ;;
9906    esac
9907  else
9908    lt_cv_deplibs_check_method=pass_all
9909  fi
9910  ;;
9911
9912gnu*)
9913  lt_cv_deplibs_check_method=pass_all
9914  ;;
9915
9916hpux10.20* | hpux11*)
9917  lt_cv_file_magic_cmd=/usr/bin/file
9918  case $host_cpu in
9919  ia64*)
9920    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9921    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9922    ;;
9923  hppa*64*)
9924    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]'
9925    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9926    ;;
9927  *)
9928    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9929    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9930    ;;
9931  esac
9932  ;;
9933
9934interix3*)
9935  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9936  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9937  ;;
9938
9939irix5* | irix6* | nonstopux*)
9940  case $LD in
9941  *-32|*"-32 ") libmagic=32-bit;;
9942  *-n32|*"-n32 ") libmagic=N32;;
9943  *-64|*"-64 ") libmagic=64-bit;;
9944  *) libmagic=never-match;;
9945  esac
9946  lt_cv_deplibs_check_method=pass_all
9947  ;;
9948
9949# This must be Linux ELF.
9950linux*)
9951  lt_cv_deplibs_check_method=pass_all
9952  ;;
9953
9954netbsd*)
9955  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9956    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9957  else
9958    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9959  fi
9960  ;;
9961
9962newos6*)
9963  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9964  lt_cv_file_magic_cmd=/usr/bin/file
9965  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9966  ;;
9967
9968nto-qnx*)
9969  lt_cv_deplibs_check_method=unknown
9970  ;;
9971
9972openbsd*)
9973  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9974    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9975  else
9976    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9977  fi
9978  ;;
9979
9980osf3* | osf4* | osf5*)
9981  lt_cv_deplibs_check_method=pass_all
9982  ;;
9983
9984solaris*)
9985  lt_cv_deplibs_check_method=pass_all
9986  ;;
9987
9988sysv4 | sysv4.3*)
9989  case $host_vendor in
9990  motorola)
9991    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]'
9992    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9993    ;;
9994  ncr)
9995    lt_cv_deplibs_check_method=pass_all
9996    ;;
9997  sequent)
9998    lt_cv_file_magic_cmd='/bin/file'
9999    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10000    ;;
10001  sni)
10002    lt_cv_file_magic_cmd='/bin/file'
10003    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10004    lt_cv_file_magic_test_file=/lib/libc.so
10005    ;;
10006  siemens)
10007    lt_cv_deplibs_check_method=pass_all
10008    ;;
10009  pc)
10010    lt_cv_deplibs_check_method=pass_all
10011    ;;
10012  esac
10013  ;;
10014
10015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10016  lt_cv_deplibs_check_method=pass_all
10017  ;;
10018esac
10019
10020fi
10021echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10022echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10023file_magic_cmd=$lt_cv_file_magic_cmd
10024deplibs_check_method=$lt_cv_deplibs_check_method
10025test -z "$deplibs_check_method" && deplibs_check_method=unknown
10026
10027
10028
10029
10030# If no C compiler was specified, use CC.
10031LTCC=${LTCC-"$CC"}
10032
10033# If no C compiler flags were specified, use CFLAGS.
10034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10035
10036# Allow CC to be a program name with arguments.
10037compiler=$CC
10038
10039# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10040if test "${enable_libtool_lock+set}" = set; then
10041  enableval="$enable_libtool_lock"
10042
10043fi;
10044test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10045
10046# Some flags need to be propagated to the compiler or linker for good
10047# libtool support.
10048case $host in
10049ia64-*-hpux*)
10050  # Find out which ABI we are using.
10051  echo 'int i;' > conftest.$ac_ext
10052  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10053  (eval $ac_compile) 2>&5
10054  ac_status=$?
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); }; then
10057    case `/usr/bin/file conftest.$ac_objext` in
10058    *ELF-32*)
10059      HPUX_IA64_MODE="32"
10060      ;;
10061    *ELF-64*)
10062      HPUX_IA64_MODE="64"
10063      ;;
10064    esac
10065  fi
10066  rm -rf conftest*
10067  ;;
10068*-*-irix6*)
10069  # Find out which ABI we are using.
10070  echo '#line 10070 "configure"' > conftest.$ac_ext
10071  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072  (eval $ac_compile) 2>&5
10073  ac_status=$?
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); }; then
10076   if test "$lt_cv_prog_gnu_ld" = yes; then
10077    case `/usr/bin/file conftest.$ac_objext` in
10078    *32-bit*)
10079      LD="${LD-ld} -melf32bsmip"
10080      ;;
10081    *N32*)
10082      LD="${LD-ld} -melf32bmipn32"
10083      ;;
10084    *64-bit*)
10085      LD="${LD-ld} -melf64bmip"
10086      ;;
10087    esac
10088   else
10089    case `/usr/bin/file conftest.$ac_objext` in
10090    *32-bit*)
10091      LD="${LD-ld} -32"
10092      ;;
10093    *N32*)
10094      LD="${LD-ld} -n32"
10095      ;;
10096    *64-bit*)
10097      LD="${LD-ld} -64"
10098      ;;
10099    esac
10100   fi
10101  fi
10102  rm -rf conftest*
10103  ;;
10104
10105x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10106  # Find out which ABI we are using.
10107  echo 'int i;' > conftest.$ac_ext
10108  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109  (eval $ac_compile) 2>&5
10110  ac_status=$?
10111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112  (exit $ac_status); }; then
10113    case `/usr/bin/file conftest.o` in
10114    *32-bit*)
10115      case $host in
10116        x86_64-*linux*)
10117          LD="${LD-ld} -m elf_i386"
10118          ;;
10119        ppc64-*linux*|powerpc64-*linux*)
10120          LD="${LD-ld} -m elf32ppclinux"
10121          ;;
10122        s390x-*linux*)
10123          LD="${LD-ld} -m elf_s390"
10124          ;;
10125        sparc64-*linux*)
10126          LD="${LD-ld} -m elf32_sparc"
10127          ;;
10128      esac
10129      ;;
10130    *64-bit*)
10131      case $host in
10132        x86_64-*linux*)
10133          LD="${LD-ld} -m elf_x86_64"
10134          ;;
10135        ppc*-*linux*|powerpc*-*linux*)
10136          LD="${LD-ld} -m elf64ppc"
10137          ;;
10138        s390*-*linux*)
10139          LD="${LD-ld} -m elf64_s390"
10140          ;;
10141        sparc*-*linux*)
10142          LD="${LD-ld} -m elf64_sparc"
10143          ;;
10144      esac
10145      ;;
10146    esac
10147  fi
10148  rm -rf conftest*
10149  ;;
10150
10151*-*-sco3.2v5*)
10152  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10153  SAVE_CFLAGS="$CFLAGS"
10154  CFLAGS="$CFLAGS -belf"
10155  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10156echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10157if test "${lt_cv_cc_needs_belf+set}" = set; then
10158  echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160  ac_ext=c
10161ac_cpp='$CPP $CPPFLAGS'
10162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10164ac_compiler_gnu=$ac_cv_c_compiler_gnu
10165
10166     cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h.  */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h.  */
10172
10173#ifdef F77_DUMMY_MAIN
10174
10175#  ifdef __cplusplus
10176     extern "C"
10177#  endif
10178   int F77_DUMMY_MAIN() { return 1; }
10179
10180#endif
10181int
10182main ()
10183{
10184
10185  ;
10186  return 0;
10187}
10188_ACEOF
10189rm -f conftest.$ac_objext conftest$ac_exeext
10190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191  (eval $ac_link) 2>conftest.er1
10192  ac_status=$?
10193  grep -v '^ *+' conftest.er1 >conftest.err
10194  rm -f conftest.er1
10195  cat conftest.err >&5
10196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197  (exit $ac_status); } &&
10198         { ac_try='test -z "$ac_c_werror_flag"
10199                         || test ! -s conftest.err'
10200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201  (eval $ac_try) 2>&5
10202  ac_status=$?
10203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204  (exit $ac_status); }; } &&
10205         { ac_try='test -s conftest$ac_exeext'
10206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207  (eval $ac_try) 2>&5
10208  ac_status=$?
10209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210  (exit $ac_status); }; }; then
10211  lt_cv_cc_needs_belf=yes
10212else
10213  echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216lt_cv_cc_needs_belf=no
10217fi
10218rm -f conftest.err conftest.$ac_objext \
10219      conftest$ac_exeext conftest.$ac_ext
10220     ac_ext=c
10221ac_cpp='$CPP $CPPFLAGS'
10222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10224ac_compiler_gnu=$ac_cv_c_compiler_gnu
10225
10226fi
10227echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10228echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10229  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10230    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10231    CFLAGS="$SAVE_CFLAGS"
10232  fi
10233  ;;
10234sparc*-*solaris*)
10235  # Find out which ABI we are using.
10236  echo 'int i;' > conftest.$ac_ext
10237  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238  (eval $ac_compile) 2>&5
10239  ac_status=$?
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); }; then
10242    case `/usr/bin/file conftest.o` in
10243    *64-bit*)
10244      case $lt_cv_prog_gnu_ld in
10245      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10246      *)    LD="${LD-ld} -64" ;;
10247      esac
10248      ;;
10249    esac
10250  fi
10251  rm -rf conftest*
10252  ;;
10253
10254
10255esac
10256
10257need_locks="$enable_libtool_lock"
10258
10259
10260ac_ext=c
10261ac_cpp='$CPP $CPPFLAGS'
10262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10264ac_compiler_gnu=$ac_cv_c_compiler_gnu
10265echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10266echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10267# On Suns, sometimes $CPP names a directory.
10268if test -n "$CPP" && test -d "$CPP"; then
10269  CPP=
10270fi
10271if test -z "$CPP"; then
10272  if test "${ac_cv_prog_CPP+set}" = set; then
10273  echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275      # Double quotes because CPP needs to be expanded
10276    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10277    do
10278      ac_preproc_ok=false
10279for ac_c_preproc_warn_flag in '' yes
10280do
10281  # Use a header file that comes with gcc, so configuring glibc
10282  # with a fresh cross-compiler works.
10283  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10284  # <limits.h> exists even on freestanding compilers.
10285  # On the NeXT, cc -E runs the code through the compiler's parser,
10286  # not just through cpp. "Syntax error" is here to catch this case.
10287  cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h.  */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h.  */
10293#ifdef __STDC__
10294# include <limits.h>
10295#else
10296# include <assert.h>
10297#endif
10298                     Syntax error
10299_ACEOF
10300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302  ac_status=$?
10303  grep -v '^ *+' conftest.er1 >conftest.err
10304  rm -f conftest.er1
10305  cat conftest.err >&5
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); } >/dev/null; then
10308  if test -s conftest.err; then
10309    ac_cpp_err=$ac_c_preproc_warn_flag
10310    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10311  else
10312    ac_cpp_err=
10313  fi
10314else
10315  ac_cpp_err=yes
10316fi
10317if test -z "$ac_cpp_err"; then
10318  :
10319else
10320  echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323  # Broken: fails on valid input.
10324continue
10325fi
10326rm -f conftest.err conftest.$ac_ext
10327
10328  # OK, works on sane cases.  Now check whether non-existent headers
10329  # can be detected and how.
10330  cat >conftest.$ac_ext <<_ACEOF
10331/* confdefs.h.  */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h.  */
10336#include <ac_nonexistent.h>
10337_ACEOF
10338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10339  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10340  ac_status=$?
10341  grep -v '^ *+' conftest.er1 >conftest.err
10342  rm -f conftest.er1
10343  cat conftest.err >&5
10344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345  (exit $ac_status); } >/dev/null; then
10346  if test -s conftest.err; then
10347    ac_cpp_err=$ac_c_preproc_warn_flag
10348    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10349  else
10350    ac_cpp_err=
10351  fi
10352else
10353  ac_cpp_err=yes
10354fi
10355if test -z "$ac_cpp_err"; then
10356  # Broken: success on invalid input.
10357continue
10358else
10359  echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362  # Passes both tests.
10363ac_preproc_ok=:
10364break
10365fi
10366rm -f conftest.err conftest.$ac_ext
10367
10368done
10369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10370rm -f conftest.err conftest.$ac_ext
10371if $ac_preproc_ok; then
10372  break
10373fi
10374
10375    done
10376    ac_cv_prog_CPP=$CPP
10377
10378fi
10379  CPP=$ac_cv_prog_CPP
10380else
10381  ac_cv_prog_CPP=$CPP
10382fi
10383echo "$as_me:$LINENO: result: $CPP" >&5
10384echo "${ECHO_T}$CPP" >&6
10385ac_preproc_ok=false
10386for ac_c_preproc_warn_flag in '' yes
10387do
10388  # Use a header file that comes with gcc, so configuring glibc
10389  # with a fresh cross-compiler works.
10390  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391  # <limits.h> exists even on freestanding compilers.
10392  # On the NeXT, cc -E runs the code through the compiler's parser,
10393  # not just through cpp. "Syntax error" is here to catch this case.
10394  cat >conftest.$ac_ext <<_ACEOF
10395/* confdefs.h.  */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h.  */
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
10405                     Syntax error
10406_ACEOF
10407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409  ac_status=$?
10410  grep -v '^ *+' conftest.er1 >conftest.err
10411  rm -f conftest.er1
10412  cat conftest.err >&5
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); } >/dev/null; then
10415  if test -s conftest.err; then
10416    ac_cpp_err=$ac_c_preproc_warn_flag
10417    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10418  else
10419    ac_cpp_err=
10420  fi
10421else
10422  ac_cpp_err=yes
10423fi
10424if test -z "$ac_cpp_err"; then
10425  :
10426else
10427  echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430  # Broken: fails on valid input.
10431continue
10432fi
10433rm -f conftest.err conftest.$ac_ext
10434
10435  # OK, works on sane cases.  Now check whether non-existent headers
10436  # can be detected and how.
10437  cat >conftest.$ac_ext <<_ACEOF
10438/* confdefs.h.  */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h.  */
10443#include <ac_nonexistent.h>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447  ac_status=$?
10448  grep -v '^ *+' conftest.er1 >conftest.err
10449  rm -f conftest.er1
10450  cat conftest.err >&5
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); } >/dev/null; then
10453  if test -s conftest.err; then
10454    ac_cpp_err=$ac_c_preproc_warn_flag
10455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10456  else
10457    ac_cpp_err=
10458  fi
10459else
10460  ac_cpp_err=yes
10461fi
10462if test -z "$ac_cpp_err"; then
10463  # Broken: success on invalid input.
10464continue
10465else
10466  echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469  # Passes both tests.
10470ac_preproc_ok=:
10471break
10472fi
10473rm -f conftest.err conftest.$ac_ext
10474
10475done
10476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477rm -f conftest.err conftest.$ac_ext
10478if $ac_preproc_ok; then
10479  :
10480else
10481  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10482See \`config.log' for more details." >&5
10483echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10484See \`config.log' for more details." >&2;}
10485   { (exit 1); exit 1; }; }
10486fi
10487
10488ac_ext=c
10489ac_cpp='$CPP $CPPFLAGS'
10490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492ac_compiler_gnu=$ac_cv_c_compiler_gnu
10493
10494
10495echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10496echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10497if test "${ac_cv_header_stdc+set}" = set; then
10498  echo $ECHO_N "(cached) $ECHO_C" >&6
10499else
10500  cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h.  */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h.  */
10506#include <stdlib.h>
10507#include <stdarg.h>
10508#include <string.h>
10509#include <float.h>
10510
10511#ifdef F77_DUMMY_MAIN
10512
10513#  ifdef __cplusplus
10514     extern "C"
10515#  endif
10516   int F77_DUMMY_MAIN() { return 1; }
10517
10518#endif
10519int
10520main ()
10521{
10522
10523  ;
10524  return 0;
10525}
10526_ACEOF
10527rm -f conftest.$ac_objext
10528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10529  (eval $ac_compile) 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); } &&
10536         { ac_try='test -z "$ac_c_werror_flag"
10537                         || test ! -s conftest.err'
10538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539  (eval $ac_try) 2>&5
10540  ac_status=$?
10541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542  (exit $ac_status); }; } &&
10543         { ac_try='test -s conftest.$ac_objext'
10544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545  (eval $ac_try) 2>&5
10546  ac_status=$?
10547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548  (exit $ac_status); }; }; then
10549  ac_cv_header_stdc=yes
10550else
10551  echo "$as_me: failed program was:" >&5
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
10554ac_cv_header_stdc=no
10555fi
10556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10557
10558if test $ac_cv_header_stdc = yes; then
10559  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10560  cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h.  */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h.  */
10566#include <string.h>
10567
10568_ACEOF
10569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10570  $EGREP "memchr" >/dev/null 2>&1; then
10571  :
10572else
10573  ac_cv_header_stdc=no
10574fi
10575rm -f conftest*
10576
10577fi
10578
10579if test $ac_cv_header_stdc = yes; then
10580  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10581  cat >conftest.$ac_ext <<_ACEOF
10582/* confdefs.h.  */
10583_ACEOF
10584cat confdefs.h >>conftest.$ac_ext
10585cat >>conftest.$ac_ext <<_ACEOF
10586/* end confdefs.h.  */
10587#include <stdlib.h>
10588
10589_ACEOF
10590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10591  $EGREP "free" >/dev/null 2>&1; then
10592  :
10593else
10594  ac_cv_header_stdc=no
10595fi
10596rm -f conftest*
10597
10598fi
10599
10600if test $ac_cv_header_stdc = yes; then
10601  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10602  if test "$cross_compiling" = yes; then
10603  :
10604else
10605  cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h.  */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h.  */
10611#include <ctype.h>
10612#if ((' ' & 0x0FF) == 0x020)
10613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10615#else
10616# define ISLOWER(c) \
10617                   (('a' <= (c) && (c) <= 'i') \
10618                     || ('j' <= (c) && (c) <= 'r') \
10619                     || ('s' <= (c) && (c) <= 'z'))
10620# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10621#endif
10622
10623#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10624int
10625main ()
10626{
10627  int i;
10628  for (i = 0; i < 256; i++)
10629    if (XOR (islower (i), ISLOWER (i))
10630        || toupper (i) != TOUPPER (i))
10631      exit(2);
10632  exit (0);
10633}
10634_ACEOF
10635rm -f conftest$ac_exeext
10636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637  (eval $ac_link) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642  (eval $ac_try) 2>&5
10643  ac_status=$?
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); }; }; then
10646  :
10647else
10648  echo "$as_me: program exited with status $ac_status" >&5
10649echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652( exit $ac_status )
10653ac_cv_header_stdc=no
10654fi
10655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10656fi
10657fi
10658fi
10659echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10660echo "${ECHO_T}$ac_cv_header_stdc" >&6
10661if test $ac_cv_header_stdc = yes; then
10662
10663cat >>confdefs.h <<\_ACEOF
10664#define STDC_HEADERS 1
10665_ACEOF
10666
10667fi
10668
10669# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10680                  inttypes.h stdint.h unistd.h
10681do
10682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10683echo "$as_me:$LINENO: checking for $ac_header" >&5
10684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10685if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686  echo $ECHO_N "(cached) $ECHO_C" >&6
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$ac_includes_default
10695
10696#include <$ac_header>
10697_ACEOF
10698rm -f conftest.$ac_objext
10699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700  (eval $ac_compile) 2>conftest.er1
10701  ac_status=$?
10702  grep -v '^ *+' conftest.er1 >conftest.err
10703  rm -f conftest.er1
10704  cat conftest.err >&5
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); } &&
10707         { ac_try='test -z "$ac_c_werror_flag"
10708                         || test ! -s conftest.err'
10709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710  (eval $ac_try) 2>&5
10711  ac_status=$?
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); }; } &&
10714         { ac_try='test -s conftest.$ac_objext'
10715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716  (eval $ac_try) 2>&5
10717  ac_status=$?
10718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719  (exit $ac_status); }; }; then
10720  eval "$as_ac_Header=yes"
10721else
10722  echo "$as_me: failed program was:" >&5
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
10725eval "$as_ac_Header=no"
10726fi
10727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728fi
10729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10731if test `eval echo '${'$as_ac_Header'}'` = yes; then
10732  cat >>confdefs.h <<_ACEOF
10733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10734_ACEOF
10735
10736fi
10737
10738done
10739
10740
10741
10742for ac_header in dlfcn.h
10743do
10744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10745if eval "test \"\${$as_ac_Header+set}\" = set"; then
10746  echo "$as_me:$LINENO: checking for $ac_header" >&5
10747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10748if eval "test \"\${$as_ac_Header+set}\" = set"; then
10749  echo $ECHO_N "(cached) $ECHO_C" >&6
10750fi
10751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10753else
10754  # Is the header compilable?
10755echo "$as_me:$LINENO: checking $ac_header usability" >&5
10756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10757cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h.  */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h.  */
10763$ac_includes_default
10764#include <$ac_header>
10765_ACEOF
10766rm -f conftest.$ac_objext
10767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768  (eval $ac_compile) 2>conftest.er1
10769  ac_status=$?
10770  grep -v '^ *+' conftest.er1 >conftest.err
10771  rm -f conftest.er1
10772  cat conftest.err >&5
10773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774  (exit $ac_status); } &&
10775         { ac_try='test -z "$ac_c_werror_flag"
10776                         || test ! -s conftest.err'
10777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778  (eval $ac_try) 2>&5
10779  ac_status=$?
10780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781  (exit $ac_status); }; } &&
10782         { ac_try='test -s conftest.$ac_objext'
10783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784  (eval $ac_try) 2>&5
10785  ac_status=$?
10786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787  (exit $ac_status); }; }; then
10788  ac_header_compiler=yes
10789else
10790  echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
10793ac_header_compiler=no
10794fi
10795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10797echo "${ECHO_T}$ac_header_compiler" >&6
10798
10799# Is the header present?
10800echo "$as_me:$LINENO: checking $ac_header presence" >&5
10801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808#include <$ac_header>
10809_ACEOF
10810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10812  ac_status=$?
10813  grep -v '^ *+' conftest.er1 >conftest.err
10814  rm -f conftest.er1
10815  cat conftest.err >&5
10816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817  (exit $ac_status); } >/dev/null; then
10818  if test -s conftest.err; then
10819    ac_cpp_err=$ac_c_preproc_warn_flag
10820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10821  else
10822    ac_cpp_err=
10823  fi
10824else
10825  ac_cpp_err=yes
10826fi
10827if test -z "$ac_cpp_err"; then
10828  ac_header_preproc=yes
10829else
10830  echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833  ac_header_preproc=no
10834fi
10835rm -f conftest.err conftest.$ac_ext
10836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10837echo "${ECHO_T}$ac_header_preproc" >&6
10838
10839# So?  What about this header?
10840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10841  yes:no: )
10842    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10844    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10846    ac_header_preproc=yes
10847    ;;
10848  no:yes:* )
10849    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10851    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10852echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10853    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10855    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10856echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10859    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10861    (
10862      cat <<\_ASBOX
10863## --------------------------------------------------------------- ##
10864## Report this to http://projects.coin-or.org/BuildTools/newticket ##
10865## --------------------------------------------------------------- ##
10866_ASBOX
10867    ) |
10868      sed "s/^/$as_me: WARNING:     /" >&2
10869    ;;
10870esac
10871echo "$as_me:$LINENO: checking for $ac_header" >&5
10872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10873if eval "test \"\${$as_ac_Header+set}\" = set"; then
10874  echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876  eval "$as_ac_Header=\$ac_header_preproc"
10877fi
10878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10880
10881fi
10882if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883  cat >>confdefs.h <<_ACEOF
10884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10885_ACEOF
10886
10887fi
10888
10889done
10890
10891ac_ext=cc
10892ac_cpp='$CXXCPP $CPPFLAGS'
10893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10896if test -n "$ac_tool_prefix"; then
10897  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10898  do
10899    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10901echo "$as_me:$LINENO: checking for $ac_word" >&5
10902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10903if test "${ac_cv_prog_CXX+set}" = set; then
10904  echo $ECHO_N "(cached) $ECHO_C" >&6
10905else
10906  if test -n "$CXX"; then
10907  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10908else
10909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910for as_dir in $PATH
10911do
10912  IFS=$as_save_IFS
10913  test -z "$as_dir" && as_dir=.
10914  for ac_exec_ext in '' $ac_executable_extensions; do
10915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10916    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10918    break 2
10919  fi
10920done
10921done
10922
10923fi
10924fi
10925CXX=$ac_cv_prog_CXX
10926if test -n "$CXX"; then
10927  echo "$as_me:$LINENO: result: $CXX" >&5
10928echo "${ECHO_T}$CXX" >&6
10929else
10930  echo "$as_me:$LINENO: result: no" >&5
10931echo "${ECHO_T}no" >&6
10932fi
10933
10934    test -n "$CXX" && break
10935  done
10936fi
10937if test -z "$CXX"; then
10938  ac_ct_CXX=$CXX
10939  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10940do
10941  # Extract the first word of "$ac_prog", so it can be a program name with args.
10942set dummy $ac_prog; ac_word=$2
10943echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10946  echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948  if test -n "$ac_ct_CXX"; then
10949  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10950else
10951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952for as_dir in $PATH
10953do
10954  IFS=$as_save_IFS
10955  test -z "$as_dir" && as_dir=.
10956  for ac_exec_ext in '' $ac_executable_extensions; do
10957  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10958    ac_cv_prog_ac_ct_CXX="$ac_prog"
10959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10960    break 2
10961  fi
10962done
10963done
10964
10965fi
10966fi
10967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10968if test -n "$ac_ct_CXX"; then
10969  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10970echo "${ECHO_T}$ac_ct_CXX" >&6
10971else
10972  echo "$as_me:$LINENO: result: no" >&5
10973echo "${ECHO_T}no" >&6
10974fi
10975
10976  test -n "$ac_ct_CXX" && break
10977done
10978test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10979
10980  CXX=$ac_ct_CXX
10981fi
10982
10983
10984# Provide some information about the compiler.
10985echo "$as_me:$LINENO:" \
10986     "checking for C++ compiler version" >&5
10987ac_compiler=`set X $ac_compile; echo $2`
<