source: ThirdParty/Lapack/trunk/configure @ 2969

Last change on this file since 2969 was 2969, checked in by tkr, 7 years ago

Re-running the autotools

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