source: ThirdParty/Lapack/trunk/configure @ 1753

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

restoring BuildTools/ThirdParty/Lapack?/trunk

  • Property svn:executable set to *
File size: 745.1 KB
<
RevLine 
[49]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[1753]3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack trunk.
[49]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 Common 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'
[1753]432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyLapack trunk'
[49]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
[1680]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 ADDLIBS PCADDLIBS FADDLIBS 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 MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED LAPACK_PCLIBS DLAMCH_FFLAGS EGREP 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 LN_S 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'
[49]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
[141]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
[94]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
[49]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
[1548]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
[1178]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
[49]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
[1753]1008\`configure' configures ThirdPartyLapack trunk to adapt to many kinds of systems.
[49]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
[1753]1074     short | recursive ) echo "Configuration of ThirdPartyLapack trunk:";;
[49]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]
[94]1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-lapack compile this project (Lapack) with debug options
[141]1083  --enable-doscompile     Under Cygwin, compile so that executables run under
[214]1084                          DOS. Set to mingw to use gcc/g++/ld with
[903]1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
[1548]1088  --enable-pkg-config     use pkg-config if available (default is yes)
[49]1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
[141]1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
[49]1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
[94]1104  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1105  --with-lapack-checklevel
1106                          specify the sanity check level for project Lapack
[1548]1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
[49]1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
[141]1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
[94]1127  ADD_FFLAGS  Additional Fortran compiler options
1128  DBG_FFLAGS  Debug Fortran compiler options
1129  OPT_FFLAGS  Optimize Fortran compiler options
[49]1130  F77         Fortran 77 compiler command
1131  FFLAGS      Fortran 77 compiler flags
1132  MPIF77      Fortran MPI Compiler
[1548]1133  PKG_CONFIG  path to pkg-config utility
[1178]1134  DLAMCH_FFLAGS
1135              Fortran compiler options for DLAMCH.F
[49]1136  CPP         C preprocessor
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  CXXCPP      C++ preprocessor
1140
1141Use these variables to override the choices made by `configure' or to help
1142it to find libraries and programs with nonstandard names/locations.
1143
1144Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1145_ACEOF
1146fi
1147
1148if test "$ac_init_help" = "recursive"; then
1149  # If there are subdirs, report their specific --help.
1150  ac_popdir=`pwd`
1151  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1152    test -d $ac_dir || continue
1153    ac_builddir=.
1154
1155if test "$ac_dir" != .; then
1156  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1157  # A "../" for each directory in $ac_dir_suffix.
1158  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1159else
1160  ac_dir_suffix= ac_top_builddir=
1161fi
1162
1163case $srcdir in
1164  .)  # No --srcdir option.  We are building in place.
1165    ac_srcdir=.
1166    if test -z "$ac_top_builddir"; then
1167       ac_top_srcdir=.
1168    else
1169       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1170    fi ;;
1171  [\\/]* | ?:[\\/]* )  # Absolute path.
1172    ac_srcdir=$srcdir$ac_dir_suffix;
1173    ac_top_srcdir=$srcdir ;;
1174  *) # Relative path.
1175    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1176    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1177esac
1178
1179# Do not use `cd foo && pwd` to compute absolute paths, because
1180# the directories may not exist.
1181case `pwd` in
1182.) ac_abs_builddir="$ac_dir";;
1183*)
1184  case "$ac_dir" in
1185  .) ac_abs_builddir=`pwd`;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1187  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_builddir=${ac_top_builddir}.;;
1192*)
1193  case ${ac_top_builddir}. in
1194  .) ac_abs_top_builddir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1196  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1197  esac;;
1198esac
1199case $ac_abs_builddir in
1200.) ac_abs_srcdir=$ac_srcdir;;
1201*)
1202  case $ac_srcdir in
1203  .) ac_abs_srcdir=$ac_abs_builddir;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1205  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1206  esac;;
1207esac
1208case $ac_abs_builddir in
1209.) ac_abs_top_srcdir=$ac_top_srcdir;;
1210*)
1211  case $ac_top_srcdir in
1212  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1213  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1214  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1215  esac;;
1216esac
1217
1218    cd $ac_dir
1219    # Check for guested configure; otherwise get Cygnus style configure.
1220    if test -f $ac_srcdir/configure.gnu; then
1221      echo
1222      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1223    elif test -f $ac_srcdir/configure; then
1224      echo
1225      $SHELL $ac_srcdir/configure  --help=recursive
1226    elif test -f $ac_srcdir/configure.ac ||
1227           test -f $ac_srcdir/configure.in; then
1228      echo
1229      $ac_configure --help
1230    else
1231      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1232    fi
1233    cd $ac_popdir
1234  done
1235fi
1236
1237test -n "$ac_init_help" && exit 0
1238if $ac_init_version; then
1239  cat <<\_ACEOF
[1753]1240ThirdPartyLapack configure trunk
[49]1241generated by GNU Autoconf 2.59
1242
1243Copyright (C) 2003 Free Software Foundation, Inc.
1244This configure script is free software; the Free Software Foundation
1245gives unlimited permission to copy, distribute and modify it.
1246
1247
1248Copyright 2006 International Business Machines and others.
1249All Rights Reserved.
1250This file is part of the open source package Coin which is distributed
1251under the Common Public License.
1252_ACEOF
1253  exit 0
1254fi
1255exec 5>config.log
1256cat >&5 <<_ACEOF
1257This file contains any messages produced by compilers while
1258running configure, to aid debugging if configure makes a mistake.
1259
[1753]1260It was created by ThirdPartyLapack $as_me trunk, which was
[49]1261generated by GNU Autoconf 2.59.  Invocation command line was
1262
1263  $ $0 $@
1264
1265_ACEOF
1266{
1267cat <<_ASUNAME
1268## --------- ##
1269## Platform. ##
1270## --------- ##
1271
1272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1273uname -m = `(uname -m) 2>/dev/null || echo unknown`
1274uname -r = `(uname -r) 2>/dev/null || echo unknown`
1275uname -s = `(uname -s) 2>/dev/null || echo unknown`
1276uname -v = `(uname -v) 2>/dev/null || echo unknown`
1277
1278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1279/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1280
1281/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1282/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1284hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1285/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1286/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1287/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1288
1289_ASUNAME
1290
1291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1292for as_dir in $PATH
1293do
1294  IFS=$as_save_IFS
1295  test -z "$as_dir" && as_dir=.
1296  echo "PATH: $as_dir"
1297done
1298
1299} >&5
1300
1301cat >&5 <<_ACEOF
1302
1303
1304## ----------- ##
1305## Core tests. ##
1306## ----------- ##
1307
1308_ACEOF
1309
1310
1311# Keep a trace of the command line.
1312# Strip out --no-create and --no-recursion so they do not pile up.
1313# Strip out --silent because we don't want to record it for future runs.
1314# Also quote any args containing shell meta-characters.
1315# Make two passes to allow for proper duplicate-argument suppression.
1316ac_configure_args=
1317ac_configure_args0=
1318ac_configure_args1=
1319ac_sep=
1320ac_must_keep_next=false
1321for ac_pass in 1 2
1322do
1323  for ac_arg
1324  do
1325    case $ac_arg in
1326    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1327    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1328    | -silent | --silent | --silen | --sile | --sil)
1329      continue ;;
1330    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1332    esac
1333    case $ac_pass in
1334    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1335    2)
1336      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1337      if test $ac_must_keep_next = true; then
1338        ac_must_keep_next=false # Got value, back to normal.
1339      else
1340        case $ac_arg in
1341          *=* | --config-cache | -C | -disable-* | --disable-* \
1342          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1343          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1344          | -with-* | --with-* | -without-* | --without-* | --x)
1345            case "$ac_configure_args0 " in
1346              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1347            esac
1348            ;;
1349          -* ) ac_must_keep_next=true ;;
1350        esac
1351      fi
1352      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1353      # Get rid of the leading space.
1354      ac_sep=" "
1355      ;;
1356    esac
1357  done
1358done
1359$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1360$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1361
1362# When interrupted or exit'd, cleanup temporary files, and complete
1363# config.log.  We remove comments because anyway the quotes in there
1364# would cause problems or look ugly.
1365# WARNING: Be sure not to use single quotes in there, as some shells,
1366# such as our DU 5.0 friend, will then `close' the trap.
1367trap 'exit_status=$?
1368  # Save into config.log some information that might help in debugging.
1369  {
1370    echo
1371
1372    cat <<\_ASBOX
1373## ---------------- ##
1374## Cache variables. ##
1375## ---------------- ##
1376_ASBOX
1377    echo
1378    # The following way of writing the cache mishandles newlines in values,
1379{
1380  (set) 2>&1 |
1381    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1382    *ac_space=\ *)
1383      sed -n \
1384        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1385          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1386      ;;
1387    *)
1388      sed -n \
1389        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1390      ;;
1391    esac;
1392}
1393    echo
1394
1395    cat <<\_ASBOX
1396## ----------------- ##
1397## Output variables. ##
1398## ----------------- ##
1399_ASBOX
1400    echo
1401    for ac_var in $ac_subst_vars
1402    do
1403      eval ac_val=$`echo $ac_var`
1404      echo "$ac_var='"'"'$ac_val'"'"'"
1405    done | sort
1406    echo
1407
1408    if test -n "$ac_subst_files"; then
1409      cat <<\_ASBOX
1410## ------------- ##
1411## Output files. ##
1412## ------------- ##
1413_ASBOX
1414      echo
1415      for ac_var in $ac_subst_files
1416      do
1417        eval ac_val=$`echo $ac_var`
1418        echo "$ac_var='"'"'$ac_val'"'"'"
1419      done | sort
1420      echo
1421    fi
1422
1423    if test -s confdefs.h; then
1424      cat <<\_ASBOX
1425## ----------- ##
1426## confdefs.h. ##
1427## ----------- ##
1428_ASBOX
1429      echo
1430      sed "/^$/d" confdefs.h | sort
1431      echo
1432    fi
1433    test "$ac_signal" != 0 &&
1434      echo "$as_me: caught signal $ac_signal"
1435    echo "$as_me: exit $exit_status"
1436  } >&5
1437  rm -f core *.core &&
1438  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1439    exit $exit_status
1440     ' 0
1441for ac_signal in 1 2 13 15; do
1442  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1443done
1444ac_signal=0
1445
1446# confdefs.h avoids OS command line length limits that DEFS can exceed.
1447rm -rf conftest* confdefs.h
1448# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1449echo >confdefs.h
1450
1451# Predefined preprocessor variables.
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_NAME "$PACKAGE_NAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_VERSION "$PACKAGE_VERSION"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_STRING "$PACKAGE_STRING"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1475_ACEOF
1476
1477
1478# Let the site file select an alternate cache file if it wants to.
1479# Prefer explicitly selected file to automatically selected ones.
1480if test -z "$CONFIG_SITE"; then
1481  if test "x$prefix" != xNONE; then
1482    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1483  else
1484    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1485  fi
1486fi
1487for ac_site_file in $CONFIG_SITE; do
1488  if test -r "$ac_site_file"; then
1489    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1490echo "$as_me: loading site script $ac_site_file" >&6;}
1491    sed 's/^/| /' "$ac_site_file" >&5
1492    . "$ac_site_file"
1493  fi
1494done
1495
1496if test -r "$cache_file"; then
1497  # Some versions of bash will fail to source /dev/null (special
1498  # files actually), so we avoid doing that.
1499  if test -f "$cache_file"; then
1500    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1501echo "$as_me: loading cache $cache_file" >&6;}
1502    case $cache_file in
1503      [\\/]* | ?:[\\/]* ) . $cache_file;;
1504      *)                      . ./$cache_file;;
1505    esac
1506  fi
1507else
1508  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1509echo "$as_me: creating cache $cache_file" >&6;}
1510  >$cache_file
1511fi
1512
1513# Check that the precious variables saved in the cache have kept the same
1514# value.
1515ac_cache_corrupted=false
1516for ac_var in `(set) 2>&1 |
1517               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1518  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1519  eval ac_new_set=\$ac_env_${ac_var}_set
1520  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1521  eval ac_new_val="\$ac_env_${ac_var}_value"
1522  case $ac_old_set,$ac_new_set in
1523    set,)
1524      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1525echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1526      ac_cache_corrupted=: ;;
1527    ,set)
1528      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1529echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1530      ac_cache_corrupted=: ;;
1531    ,);;
1532    *)
1533      if test "x$ac_old_val" != "x$ac_new_val"; then
1534        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1535echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1536        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1537echo "$as_me:   former value:  $ac_old_val" >&2;}
1538        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1539echo "$as_me:   current value: $ac_new_val" >&2;}
1540        ac_cache_corrupted=:
1541      fi;;
1542  esac
1543  # Pass precious variables to config.status.
1544  if test "$ac_new_set" = set; then
1545    case $ac_new_val in
1546    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1547      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1548    *) ac_arg=$ac_var=$ac_new_val ;;
1549    esac
1550    case " $ac_configure_args " in
1551      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1552      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1553    esac
1554  fi
1555done
1556if $ac_cache_corrupted; then
1557  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1558echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1559  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1560echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1561   { (exit 1); exit 1; }; }
1562fi
1563
1564ac_ext=c
1565ac_cpp='$CPP $CPPFLAGS'
1566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1568ac_compiler_gnu=$ac_cv_c_compiler_gnu
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599# List one file in the package so that the configure script can test
1600# whether the package is actually there
1601
1602
1603# Where should everything be installed by default?  Here, we want it
1604# to be installed directly in 'bin', 'lib', 'include' subdirectories
1605# of the directory where configure is run.  The default would be
1606# /usr/local.
1607
1608
[75]1609# Initialize the ADDLIBS variable
[163]1610ADDLIBS="-lm $LIBS"
[75]1611
1612
[1617]1613# Initialize the PCADDLIBS variable.
1614# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1615# In certain cases, it may contain more flags than the ADDLIBS variable.
1616PCADDLIBS=""
1617
1618
[1328]1619# As backup, we make sure we don't loose an FLIBS if it has been set
1620# by the user
1621save_FLIBS="$FLIBS"
1622
[75]1623# Initialize the FADDLIBS variable (which is to be used with a fortran
1624# compiler and will not include FLIBS)
[163]1625FADDLIBS="$LIBS"
[75]1626
1627
1628# A useful makefile conditional that is always false
1629
1630
1631if false; then
1632  ALWAYS_FALSE_TRUE=
1633  ALWAYS_FALSE_FALSE='#'
1634else
1635  ALWAYS_FALSE_TRUE='#'
1636  ALWAYS_FALSE_FALSE=
1637fi
1638
1639
[1587]1640# We set the following variable so that we know later in AC_COIN_FINALIZE
1641# that we are in a project main directory
1642coin_projectdir=yes
[1548]1643
[1587]1644# Set the project's version number
1645if test "xLapack" != x; then
1646
[1548]1647cat >>confdefs.h <<_ACEOF
[1587]1648#define LAPACK_VERSION "$PACKAGE_VERSION"
[1548]1649_ACEOF
1650
1651fi
1652
[1680]1653# Set the project's SVN revision number. The complicated sed expression
1654# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1655# as a single number.
[1548]1656# Extract the first word of "svnversion", so it can be a program name with args.
1657set dummy svnversion; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_have_svnversion+set}" = set; then
1661  echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663  if test -n "$have_svnversion"; then
1664  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669  IFS=$as_save_IFS
1670  test -z "$as_dir" && as_dir=.
1671  for ac_exec_ext in '' $ac_executable_extensions; do
1672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673    ac_cv_prog_have_svnversion="yes"
1674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675    break 2
1676  fi
1677done
1678done
1679
1680  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1681fi
1682fi
1683have_svnversion=$ac_cv_prog_have_svnversion
1684if test -n "$have_svnversion"; then
1685  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1686echo "${ECHO_T}$have_svnversion" >&6
1687else
1688  echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
[1587]1692if test "x$have_svnversion" = xyes && test "xLapack" != x; then
[1548]1693
[1680]1694  svn_rev_tmp=`cd $srcdir/$coin_has_lapack ; svnversion`
1695  LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
[1587]1696  if test $LAPACK_SVN_REV != exported; then
[1548]1697
1698cat >>confdefs.h <<_ACEOF
[1680]1699#define LAPACK_SVN_REV $LAPACK_SVN_REV
[1548]1700_ACEOF
1701
1702  fi
1703fi
1704
[1587]1705# Capture libtool library version, if given.
[75]1706
1707
[1548]1708
[49]1709#############################################################################
1710#                         Standard build tool stuff                         #
1711#############################################################################
1712
1713# Get the system type
1714ac_aux_dir=
1715for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1716  if test -f $ac_dir/install-sh; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/install-sh -c"
1719    break
1720  elif test -f $ac_dir/install.sh; then
1721    ac_aux_dir=$ac_dir
1722    ac_install_sh="$ac_aux_dir/install.sh -c"
1723    break
1724  elif test -f $ac_dir/shtool; then
1725    ac_aux_dir=$ac_dir
1726    ac_install_sh="$ac_aux_dir/shtool install -c"
1727    break
1728  fi
1729done
1730if test -z "$ac_aux_dir"; then
1731  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1732echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1733   { (exit 1); exit 1; }; }
1734fi
1735ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1736ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1737ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1738
1739# Make sure we can run config.sub.
1740$ac_config_sub sun4 >/dev/null 2>&1 ||
1741  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743   { (exit 1); exit 1; }; }
1744
1745echo "$as_me:$LINENO: checking build system type" >&5
1746echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747if test "${ac_cv_build+set}" = set; then
1748  echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750  ac_cv_build_alias=$build_alias
1751test -z "$ac_cv_build_alias" &&
1752  ac_cv_build_alias=`$ac_config_guess`
1753test -z "$ac_cv_build_alias" &&
1754  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756   { (exit 1); exit 1; }; }
1757ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760   { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764echo "${ECHO_T}$ac_cv_build" >&6
1765build=$ac_cv_build
1766build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771
[524]1772#turn off warnings and pedantic mode since they could make trouble on some platforms,
1773#and we couldn't fix them anyway
1774coin_skip_warn_fflags=yes
1775
[49]1776# Check if user wants to produce debugging code
1777
1778echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1779echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1780
1781# Check whether --enable-debug or --disable-debug was given.
1782if test "${enable_debug+set}" = set; then
1783  enableval="$enable_debug"
1784  case "${enableval}" in
[94]1785   yes) coin_debug_compile=true
[444]1786        if test "${enable_shared+set}" = set; then :; else
1787          enable_shared=no
1788        fi
[94]1789        ;;
1790   no)  coin_debug_compile=false
1791        ;;
1792   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
[49]1793echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1794   { (exit 1); exit 1; }; }
[94]1795        ;;
1796esac
[49]1797else
1798  coin_debug_compile=false
1799fi;
1800
[94]1801# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1802if test "${enable_debug_lapack+set}" = set; then
1803  enableval="$enable_debug_lapack"
1804  case "${enableval}" in
1805    yes) coin_debug_compile=true
1806         enable_shared=no
1807         ;;
1808    no)  coin_debug_compile=false
1809         ;;
1810    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1811echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1812   { (exit 1); exit 1; }; }
1813         ;;
1814 esac
1815else
1816  :
1817fi;
1818
1819 # m4_ifvaln([Lapack],
1820
[49]1821if test $coin_debug_compile = true; then
1822  echo "$as_me:$LINENO: result: yes" >&5
1823echo "${ECHO_T}yes" >&6
1824else
1825  echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6
1827fi
1828
1829
[94]1830# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1831if test "${with_lapack_verbosity+set}" = set; then
1832  withval="$with_lapack_verbosity"
[296]1833  if test "$withval" = yes; then
1834                withval=1
1835              fi
1836              coin_lapack_verbosity=$withval
[94]1837else
1838  coin_lapack_verbosity=0
1839fi;
[49]1840
[94]1841cat >>confdefs.h <<_ACEOF
1842#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1843_ACEOF
1844
1845
1846
1847# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1848if test "${with_lapack_checklevel+set}" = set; then
1849  withval="$with_lapack_checklevel"
[296]1850  if test "$withval" = yes; then
1851                withval=1
1852              fi
1853              coin_lapack_checklevel=$withval
[49]1854else
[94]1855  coin_lapack_checklevel=0
1856fi;
[49]1857
[94]1858cat >>confdefs.h <<_ACEOF
1859#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1860_ACEOF
[49]1861
1862
[94]1863# We use the following variable to have a string with the upper case
1864# version of the project name
1865COIN_PRJCT=LAPACK
1866
1867
1868 # m4_ifvaln([Lapack],
1869
1870
1871
[49]1872# Get the name of the Fortran compiler and appropriate compiler options
1873case $build in
1874  *-mingw*)
1875    if test "${LD+set}" = set; then :; else
1876      LD=link
1877    fi
1878    ;;
[214]1879 esac
1880 case $enable_doscompile in
1881   msvc)
1882     if test "x${LD+set}" = xset; then :; else
1883       LD=link
1884     fi
1885     ;;
1886 esac
[49]1887
[214]1888
1889 # Check whether --enable-doscompile or --disable-doscompile was given.
[141]1890if test "${enable_doscompile+set}" = set; then
1891  enableval="$enable_doscompile"
[214]1892  if test "$enable_doscompile" != no; then
1893     case $build in
[524]1894       *-cygwin* | *-mingw*) ;;
1895       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1896echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
[141]1897   { (exit 1); exit 1; }; } ;;
[214]1898     esac
1899   fi
[141]1900else
1901  enable_doscompile=no
1902fi;
[214]1903 case "$enable_doscompile" in
[524]1904   mingw)
1905     case $build in
1906       *-mingw*) enable_doscompile=no ;;
1907     esac
1908     ;;
1909   msvc|no) ;;
[214]1910   yes) enable_doscompile=mingw ;;
1911   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1912                    Try configure --help=recursive." >&5
1913echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&2;}
1915   { (exit 1); exit 1; }; }
1916      ;;
1917  esac
1918  if test "$enable_doscompile" != no ; then
1919    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1920echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1921  fi
[49]1922
1923
1924
1925
[141]1926ac_ext=c
1927ac_cpp='$CPP $CPPFLAGS'
1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_c_compiler_gnu
[94]1931
1932
[141]1933# For consistency, we set the C compiler to the same value of the C++
1934# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1935if test x"$CXX" != x; then
1936  case "$CXX" in
[903]1937    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[141]1938      if test x"$CC" = x; then
1939        CC="$CXX"
1940        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1941echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1942      fi
1943      ;;
1944  esac
1945fi
[94]1946
1947
[49]1948
[141]1949
1950
1951
1952coin_has_cc=yes
1953
1954save_cflags="$CFLAGS"
[807]1955
1956# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1957# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1958# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1959# compiler. In this case, put cc after gcc.
1960
[49]1961case $build in
1962  *-cygwin* | *-mingw*)
[214]1963             if test "$enable_doscompile" = msvc ; then
[903]1964               comps="icl cl"
[214]1965             else
1966               comps="gcc cl"
1967             fi ;;
[807]1968  *-*-solaris*)
1969             # Extract the first word of "cc", so it can be a program name with args.
1970set dummy cc; ac_word=$2
1971echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  if test -n "$sol_cc_compiler"; then
1977  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1978else
1979  ac_prog_rejected=no
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  test -z "$as_dir" && as_dir=.
1985  for ac_exec_ext in '' $ac_executable_extensions; do
1986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988       ac_prog_rejected=yes
1989       continue
1990     fi
1991    ac_cv_prog_sol_cc_compiler="cc"
1992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993    break 2
1994  fi
1995done
1996done
1997
1998if test $ac_prog_rejected = yes; then
1999  # We found a bogon in the path, so make sure we never use it.
2000  set dummy $ac_cv_prog_sol_cc_compiler
2001  shift
2002  if test $# != 0; then
2003    # We chose a different compiler from the bogus one.
2004    # However, it has the same basename, so the bogon will be chosen
2005    # first if we set sol_cc_compiler to just the basename; use the full file name.
2006    shift
2007    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2008  fi
2009fi
2010fi
2011fi
2012sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2013if test -n "$sol_cc_compiler"; then
2014  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2015echo "${ECHO_T}$sol_cc_compiler" >&6
2016else
2017  echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021             if test "$sol_cc_compiler" = "cc" ; then
2022               comps="cc xlc gcc pgcc icc"
2023             else
2024               comps="xlc gcc pgcc icc cc"
2025             fi
2026             ;;
[255]2027  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2028  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
[49]2029esac
[75]2030
2031# We delete the cached value, since the test might not have been
[163]2032# performed with our choice of compilers earlier
[141]2033$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
[214]2034# AC_MSG_NOTICE([C compiler candidates: $comps])
[141]2035ac_ext=c
2036ac_cpp='$CPP $CPPFLAGS'
2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
[49]2040if test -n "$ac_tool_prefix"; then
2041  for ac_prog in $comps
2042  do
2043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
[141]2047if test "${ac_cv_prog_CC+set}" = set; then
[49]2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
[141]2050  if test -n "$CC"; then
2051  ac_cv_prog_CC="$CC" # Let the user override the test.
[49]2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[141]2060    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
[49]2061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066
2067fi
2068fi
[141]2069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071  echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6
[49]2073else
2074  echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
[141]2078    test -n "$CC" && break
[49]2079  done
2080fi
[141]2081if test -z "$CC"; then
2082  ac_ct_CC=$CC
[49]2083  for ac_prog in $comps
2084do
2085  # Extract the first word of "$ac_prog", so it can be a program name with args.
2086set dummy $ac_prog; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
[141]2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
[49]2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
[141]2092  if test -n "$ac_ct_CC"; then
2093  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
[49]2094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098  IFS=$as_save_IFS
2099  test -z "$as_dir" && as_dir=.
2100  for ac_exec_ext in '' $ac_executable_extensions; do
2101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
[141]2102    ac_cv_prog_ac_ct_CC="$ac_prog"
[49]2103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104    break 2
2105  fi
2106done
2107done
2108
2109fi
2110fi
[141]2111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
2113  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6
[49]2115else
2116  echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
[141]2120  test -n "$ac_ct_CC" && break
[49]2121done
2122
[141]2123  CC=$ac_ct_CC
[49]2124fi
2125
2126
[141]2127test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&5
2129echo "$as_me: error: no acceptable C compiler found in \$PATH
2130See \`config.log' for more details." >&2;}
2131   { (exit 1); exit 1; }; }
2132
[49]2133# Provide some information about the compiler.
[141]2134echo "$as_me:$LINENO:" \
2135     "checking for C compiler version" >&5
[49]2136ac_compiler=`set X $ac_compile; echo $2`
2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2138  (eval $ac_compiler --version </dev/null >&5) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }
2142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2143  (eval $ac_compiler -v </dev/null >&5) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }
2147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2148  (eval $ac_compiler -V </dev/null >&5) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }
2152
2153cat >conftest.$ac_ext <<_ACEOF
[141]2154/* confdefs.h.  */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h.  */
[49]2159
[141]2160int
2161main ()
2162{
2163
2164  ;
2165  return 0;
2166}
[49]2167_ACEOF
2168ac_clean_files_save=$ac_clean_files
2169ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170# Try to create an executable without -o first, disregard a.out.
2171# It will help us diagnose broken compilers, and finding out an intuition
2172# of exeext.
[141]2173echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
[49]2175ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177  (eval $ac_link_default) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; then
2181  # Find the output, starting from the most likely.  This scheme is
2182# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183# resort.
2184
2185# Be careful to initialize this variable, since it used to be cached.
2186# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187ac_cv_exeext=
2188# b.out is created by i960 compilers.
2189for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2190do
2191  test -f "$ac_file" || continue
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194        ;;
2195    conftest.$ac_ext )
2196        # This is the source file.
2197        ;;
2198    [ab].out )
2199        # We found the default executable, but exeext='' is most
2200        # certainly right.
2201        break;;
2202    *.* )
2203        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204        # FIXME: I believe we export ac_cv_exeext for Libtool,
2205        # but it would be cool to find out if it's true.  Does anybody
2206        # maintain Libtool? --akim.
2207        export ac_cv_exeext
2208        break;;
2209    * )
2210        break;;
2211  esac
2212done
2213else
2214  echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
[141]2217{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
[49]2218See \`config.log' for more details." >&5
[141]2219echo "$as_me: error: C compiler cannot create executables
[49]2220See \`config.log' for more details." >&2;}
2221   { (exit 77); exit 77; }; }
2222fi
2223
2224ac_exeext=$ac_cv_exeext
2225echo "$as_me:$LINENO: result: $ac_file" >&5
2226echo "${ECHO_T}$ac_file" >&6
2227
2228# Check the compiler produces executables we can run.  If not, either
2229# the compiler is broken, or we cross compile.
[141]2230echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
[49]2232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233# If not cross compiling, check that we can run a simple program.
2234if test "$cross_compiling" != yes; then
2235  if { ac_try='./$ac_file'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241    cross_compiling=no
2242  else
2243    if test "$cross_compiling" = maybe; then
2244        cross_compiling=yes
2245    else
[141]2246        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
[49]2247If you meant to cross compile, use \`--host'.
2248See \`config.log' for more details." >&5
[141]2249echo "$as_me: error: cannot run C compiled programs.
[49]2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&2;}
2252   { (exit 1); exit 1; }; }
2253    fi
2254  fi
2255fi
2256echo "$as_me:$LINENO: result: yes" >&5
2257echo "${ECHO_T}yes" >&6
2258
2259rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260ac_clean_files=$ac_clean_files_save
2261# Check the compiler produces executables we can run.  If not, either
2262# the compiler is broken, or we cross compile.
2263echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266echo "${ECHO_T}$cross_compiling" >&6
2267
2268echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271  (eval $ac_link) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; then
2275  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280  test -f "$ac_file" || continue
2281  case $ac_file in
2282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284          export ac_cv_exeext
2285          break;;
2286    * ) break;;
2287  esac
2288done
2289else
2290  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&2;}
2294   { (exit 1); exit 1; }; }
2295fi
2296
2297rm -f conftest$ac_cv_exeext
2298echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299echo "${ECHO_T}$ac_cv_exeext" >&6
2300
2301rm -f conftest.$ac_ext
2302EXEEXT=$ac_cv_exeext
2303ac_exeext=$EXEEXT
2304echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306if test "${ac_cv_objext+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  cat >conftest.$ac_ext <<_ACEOF
[141]2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
[49]2315
[141]2316int
2317main ()
2318{
2319
2320  ;
2321  return 0;
2322}
[49]2323_ACEOF
2324rm -f conftest.o conftest.obj
2325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326  (eval $ac_compile) 2>&5
2327  ac_status=$?
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); }; then
2330  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2331  case $ac_file in
2332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2333    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334       break;;
2335  esac
2336done
2337else
2338  echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&2;}
2345   { (exit 1); exit 1; }; }
2346fi
2347
2348rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349fi
2350echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351echo "${ECHO_T}$ac_cv_objext" >&6
2352OBJEXT=$ac_cv_objext
2353ac_objext=$OBJEXT
[141]2354echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365
2366int
2367main ()
2368{
2369#ifndef __GNUC__
2370       choke me
2371#endif
2372
2373  ;
2374  return 0;
2375}
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379  (eval $ac_compile) 2>conftest.er1
2380  ac_status=$?
2381  grep -v '^ *+' conftest.er1 >conftest.err
2382  rm -f conftest.er1
2383  cat conftest.err >&5
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); } &&
2386         { ac_try='test -z "$ac_c_werror_flag"
2387                         || test ! -s conftest.err'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; } &&
2393         { ac_try='test -s conftest.$ac_objext'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399  ac_compiler_gnu=yes
2400else
2401  echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404ac_compiler_gnu=no
2405fi
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408
2409fi
2410echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2412GCC=`test $ac_compiler_gnu = yes && echo yes`
2413ac_test_CFLAGS=${CFLAGS+set}
2414ac_save_CFLAGS=$CFLAGS
2415CFLAGS="-g"
2416echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2417echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2418if test "${ac_cv_prog_cc_g+set}" = set; then
2419  echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421  cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h.  */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h.  */
2427
2428int
2429main ()
2430{
2431
2432  ;
2433  return 0;
2434}
2435_ACEOF
2436rm -f conftest.$ac_objext
2437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438  (eval $ac_compile) 2>conftest.er1
2439  ac_status=$?
2440  grep -v '^ *+' conftest.er1 >conftest.err
2441  rm -f conftest.er1
2442  cat conftest.err >&5
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); } &&
2445         { ac_try='test -z "$ac_c_werror_flag"
2446                         || test ! -s conftest.err'
2447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448  (eval $ac_try) 2>&5
2449  ac_status=$?
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); }; } &&
2452         { ac_try='test -s conftest.$ac_objext'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; }; then
2458  ac_cv_prog_cc_g=yes
2459else
2460  echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463ac_cv_prog_cc_g=no
2464fi
2465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466fi
2467echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2468echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2469if test "$ac_test_CFLAGS" = set; then
2470  CFLAGS=$ac_save_CFLAGS
2471elif test $ac_cv_prog_cc_g = yes; then
2472  if test "$GCC" = yes; then
2473    CFLAGS="-g -O2"
2474  else
2475    CFLAGS="-g"
2476  fi
2477else
2478  if test "$GCC" = yes; then
2479    CFLAGS="-O2"
2480  else
2481    CFLAGS=
2482  fi
2483fi
2484echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2485echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2486if test "${ac_cv_prog_cc_stdc+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  ac_cv_prog_cc_stdc=no
2490ac_save_CC=$CC
2491cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497#include <stdarg.h>
2498#include <stdio.h>
2499#include <sys/types.h>
2500#include <sys/stat.h>
2501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2502struct buf { int x; };
2503FILE * (*rcsopen) (struct buf *, struct stat *, int);
2504static char *e (p, i)
2505     char **p;
2506     int i;
2507{
2508  return p[i];
2509}
2510static char *f (char * (*g) (char **, int), char **p, ...)
2511{
2512  char *s;
2513  va_list v;
2514  va_start (v,p);
2515  s = g (p, va_arg (v,int));
2516  va_end (v);
2517  return s;
2518}
2519
2520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2521   function prototypes and stuff, but not '\xHH' hex character constants.
2522   These don't provoke an error unfortunately, instead are silently treated
2523   as 'x'.  The following induces an error, until -std1 is added to get
2524   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2525   array size at least.  It's necessary to write '\x00'==0 to get something
2526   that's true only with -std1.  */
2527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2528
2529int test (int i, double x);
2530struct s1 {int (*f) (int a);};
2531struct s2 {int (*f) (double a);};
2532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2533int argc;
2534char **argv;
2535int
2536main ()
2537{
2538return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543# Don't try gcc -ansi; that turns off useful extensions and
2544# breaks some systems' header files.
2545# AIX                   -qlanglvl=ansi
2546# Ultrix and OSF/1      -std1
2547# HP-UX 10.20 and later -Ae
2548# HP-UX older versions  -Aa -D_HPUX_SOURCE
2549# SVR4                  -Xc -D__EXTENSIONS__
2550for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2551do
2552  CC="$ac_save_CC $ac_arg"
2553  rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562         { ac_try='test -z "$ac_c_werror_flag"
2563                         || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569         { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  ac_cv_prog_cc_stdc=$ac_arg
2576break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext
2583done
2584rm -f conftest.$ac_ext conftest.$ac_objext
2585CC=$ac_save_CC
2586
2587fi
2588
2589case "x$ac_cv_prog_cc_stdc" in
2590  x|xno)
2591    echo "$as_me:$LINENO: result: none needed" >&5
2592echo "${ECHO_T}none needed" >&6 ;;
2593  *)
2594    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2595echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2596    CC="$CC $ac_cv_prog_cc_stdc" ;;
2597esac
2598
2599# Some people use a C++ compiler to compile C.  Since we use `exit',
2600# in C++ we need to declare it.  In case someone uses the same compiler
2601# for both compiling C and C++ we need to have the C++ compiler decide
2602# the declaration of exit, since it's the most demanding environment.
2603cat >conftest.$ac_ext <<_ACEOF
2604#ifndef __cplusplus
2605  choke me
2606#endif
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610  (eval $ac_compile) 2>conftest.er1
2611  ac_status=$?
2612  grep -v '^ *+' conftest.er1 >conftest.err
2613  rm -f conftest.er1
2614  cat conftest.err >&5
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } &&
2617         { ac_try='test -z "$ac_c_werror_flag"
2618                         || test ! -s conftest.err'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; } &&
2624         { ac_try='test -s conftest.$ac_objext'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; }; then
2630  for ac_declaration in \
2631   '' \
2632   'extern "C" void std::exit (int) throw (); using std::exit;' \
2633   'extern "C" void std::exit (int); using std::exit;' \
2634   'extern "C" void exit (int) throw ();' \
2635   'extern "C" void exit (int);' \
2636   'void exit (int);'
2637do
2638  cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h.  */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h.  */
2644$ac_declaration
2645#include <stdlib.h>
2646int
2647main ()
2648{
2649exit (42);
2650  ;
2651  return 0;
2652}
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656  (eval $ac_compile) 2>conftest.er1
2657  ac_status=$?
2658  grep -v '^ *+' conftest.er1 >conftest.err
2659  rm -f conftest.er1
2660  cat conftest.err >&5
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); } &&
2663         { ac_try='test -z "$ac_c_werror_flag"
2664                         || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670         { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  :
2677else
2678  echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
2680
2681continue
2682fi
2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690$ac_declaration
2691int
2692main ()
2693{
2694exit (42);
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708         { ac_try='test -z "$ac_c_werror_flag"
2709                         || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715         { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  break
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728done
2729rm -f conftest*
2730if test -n "$ac_declaration"; then
2731  echo '#ifdef __cplusplus' >>confdefs.h
2732  echo $ac_declaration      >>confdefs.h
2733  echo '#endif'             >>confdefs.h
2734fi
2735
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747
[163]2748if test -z "$CC" ; then
2749  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2750echo "$as_me: error: Failed to find a C compiler!" >&2;}
2751   { (exit 1); exit 1; }; }
2752fi
2753# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2754case "$CC" in
[203]2755  cl* | */cl* | CL* | */CL* )
[163]2756    if test "$ac_cv_prog_cc_g" = yes ; then
2757      ac_cv_prog_cc_g=no
2758      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2759echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2760    fi ;;
2761esac
[141]2762CFLAGS="$save_cflags"
2763
2764# Check if a project specific CFLAGS variable has been set
2765if test x$COIN_PRJCT != x; then
2766  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2767  if test x$coin_tmp = xset; then
2768    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2769  fi
2770fi
2771
2772if test x"$CFLAGS" = x; then
2773
2774  coin_add_cflags=
2775  coin_opt_cflags=
2776  coin_dbg_cflags=
2777  coin_warn_cflags=
2778
2779  if test "$GCC" = "yes"; then
2780    case "$CC" in
2781      icc* | */icc*)
2782        ;;
2783      *)
[1587]2784        coin_opt_cflags="-O3"
[141]2785        coin_add_cflags="-pipe"
2786        coin_dbg_cflags="-g"
[1123]2787        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2788        case $build in
2789          *-darwin*)
2790            ;;
2791          *)
2792            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2793            ;;
2794        esac
[214]2795        case $enable_doscompile in
2796          mingw)
2797            CFLAGS="-mno-cygwin"
2798            cat >conftest.$ac_ext <<_ACEOF
[141]2799/* confdefs.h.  */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808int i=0; i++;
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext conftest$ac_exeext
2814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2815  (eval $ac_link) 2>conftest.er1
2816  ac_status=$?
2817  grep -v '^ *+' conftest.er1 >conftest.err
2818  rm -f conftest.er1
2819  cat conftest.err >&5
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); } &&
2822         { ac_try='test -z "$ac_c_werror_flag"
2823                         || test ! -s conftest.err'
2824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825  (eval $ac_try) 2>&5
2826  ac_status=$?
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); }; } &&
2829         { ac_try='test -s conftest$ac_exeext'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; }; then
2835  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840fi
2841rm -f conftest.err conftest.$ac_objext \
2842      conftest$ac_exeext conftest.$ac_ext
[214]2843            CFLAGS=
2844          ;;
2845        esac
[141]2846    esac
2847  fi
2848  if test -z "$coin_opt_cflags"; then
2849    case $build in
2850      *-cygwin* | *-mingw*)
2851        case "$CC" in
[197]2852          cl* | */cl* | CL* | */CL*)
[214]2853            coin_opt_cflags='-MT -O2'
[365]2854            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
[184]2855            coin_dbg_cflags='-MTd'
[141]2856            ;;
[903]2857          icl* | */icl* | ICL* | */ICL*)
2858            coin_opt_cflags='-MT -Ox'
2859            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2860            coin_dbg_cflags='-MTd -debug'
2861            ;;
[141]2862        esac
2863        ;;
2864      *-linux-*)
2865        case "$CC" in
2866          icc* | */icc*)
[1123]2867            coin_opt_cflags="-O3 -ip -mp1"
[141]2868            coin_add_cflags=""
2869            coin_dbg_cflags="-g"
2870            # Check if -i_dynamic is necessary (for new glibc library)
2871            CFLAGS=
2872            cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h.  */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h.  */
2878
2879int
2880main ()
2881{
2882int i=0; i++;
2883  ;
2884  return 0;
2885}
2886_ACEOF
2887rm -f conftest.$ac_objext conftest$ac_exeext
2888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2889  (eval $ac_link) 2>conftest.er1
2890  ac_status=$?
2891  grep -v '^ *+' conftest.er1 >conftest.err
2892  rm -f conftest.er1
2893  cat conftest.err >&5
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); } &&
2896         { ac_try='test -z "$ac_c_werror_flag"
2897                         || test ! -s conftest.err'
2898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899  (eval $ac_try) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }; } &&
2903         { ac_try='test -s conftest$ac_exeext'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; }; then
2909  :
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914coin_add_cflags="-i_dynamic $coin_add_cflags"
2915fi
2916rm -f conftest.err conftest.$ac_objext \
2917      conftest$ac_exeext conftest.$ac_ext
2918            ;;
2919          pgcc* | */pgcc*)
2920            coin_opt_cflags="-fast"
2921            coin_add_cflags="-Kieee -pc 64"
2922            coin_dbg_cflags="-g"
2923            ;;
2924        esac
2925        ;;
2926      *-ibm-*)
2927        case "$CC" in
2928          xlc* | */xlc* | mpxlc* | */mpxlc*)
[1053]2929            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[524]2930            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
[141]2931            coin_dbg_cflags="-g"
2932          ;;
2933        esac
2934        ;;
2935      *-hp-*)
2936        coin_opt_cflags="-O"
2937        coin_add_cflags="-Ae"
2938        coin_dbg_cflags="-g"
2939        ;;
[807]2940      *-*-solaris*)
[141]2941        coin_opt_cflags="-xO4"
2942        coin_dbg_cflags="-g"
2943        ;;
2944      *-sgi-*)
2945        coin_opt_cflags="-O -OPT:Olimit=0"
2946        coin_dbg_cflags="-g"
2947        ;;
2948    esac
2949  fi
2950
2951  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2952    coin_dbg_cflags="-g"
2953  fi
2954
2955  if test -z "$coin_opt_cflags"; then
2956    # Try if -O option works if nothing else is set
2957    CFLAGS="-O"
2958    cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964
2965int
2966main ()
2967{
2968int i=0; i++;
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext conftest$ac_exeext
2974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975  (eval $ac_link) 2>conftest.er1
2976  ac_status=$?
2977  grep -v '^ *+' conftest.er1 >conftest.err
2978  rm -f conftest.er1
2979  cat conftest.err >&5
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); } &&
2982         { ac_try='test -z "$ac_c_werror_flag"
2983                         || test ! -s conftest.err'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; } &&
2989         { ac_try='test -s conftest$ac_exeext'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; }; then
2995  coin_opt_cflags="-O"
2996else
2997  echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000fi
3001rm -f conftest.err conftest.$ac_objext \
3002      conftest$ac_exeext conftest.$ac_ext
3003  fi
3004
3005  # if PM doesn't want the warning messages, take them out
3006  if test x"$coin_skip_warn_cflags" = xyes; then
3007    coin_warn_cflags=
3008  fi
3009
3010  if test x${DBG_CFLAGS+set} != xset; then
3011    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3012  fi
3013  if test x${OPT_CFLAGS+set} != xset; then
3014    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3015  fi
3016
3017  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3018  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3019
3020  if test "$coin_debug_compile" = "true"; then
3021    CFLAGS="$DBG_CFLAGS"
3022  else
3023    CFLAGS="$OPT_CFLAGS"
3024  fi
3025else
3026  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3027  if test x${DBG_CFLAGS+set} != xset; then
3028    DBG_CFLAGS="$CFLAGS"
3029  fi
3030  if test x${OPT_CFLAGS+set} != xset; then
3031    OPT_CFLAGS="$CFLAGS"
3032  fi
3033fi
3034
[214]3035# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3036
3037case "$CFLAGS" in
3038  *-mno-cygwin*)
3039    if test x${CPPFLAGS+set} != xset ; then
3040      CPPFLAGS="-mno-cygwin"
3041    else
3042      case "$CPPFLAGS" in
3043        *-mno-cygwin*)
3044          ;;
3045        *)
3046          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3047          ;;
3048      esac
3049    fi ;;
3050esac
3051
[141]3052# Try if CFLAGS works
3053save_CFLAGS="$CFLAGS"
3054cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100if test -z "$CFLAGS"; then
3101  { 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
3102echo "$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;}
3103  CFLAGS='-O'
3104  cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h.  */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114int i=0; i++;
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119rm -f conftest.$ac_objext conftest$ac_exeext
3120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3121  (eval $ac_link) 2>conftest.er1
3122  ac_status=$?
3123  grep -v '^ *+' conftest.er1 >conftest.err
3124  rm -f conftest.er1
3125  cat conftest.err >&5
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); } &&
3128         { ac_try='test -z "$ac_c_werror_flag"
3129                         || test ! -s conftest.err'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; } &&
3135         { ac_try='test -s conftest$ac_exeext'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; }; then
3141  :
3142else
3143  echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146CFLAGS=
3147fi
3148rm -f conftest.err conftest.$ac_objext \
3149      conftest$ac_exeext conftest.$ac_ext
3150  if test -z "$CFLAGS"; then
3151    { 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
3152echo "$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;}
3153  fi
3154fi
3155
3156{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3157echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3158
3159
3160if test x"$MPICC" = x; then :; else
3161  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3162echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3163  CC="$MPICC"
3164fi
3165
3166# Correct ADDLIBS initialization if we are using the MS compiler
3167case "$CC" in
[903]3168  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
[141]3169    ADDLIBS=
3170    case $build in
3171  *-mingw*)
3172    if test "${LD+set}" = set; then :; else
3173      LD=link
3174    fi
3175    ;;
[214]3176 esac
3177 case $enable_doscompile in
3178   msvc)
3179     if test "x${LD+set}" = xset; then :; else
3180       LD=link
3181     fi
3182     ;;
3183 esac
[141]3184
3185    ;;
3186esac
3187
3188ac_ext=c
3189ac_cpp='$CPP $CPPFLAGS'
3190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193
3194
[163]3195case $build in
3196  *-cygwin* | *-mingw*)
[214]3197     if test "$enable_doscompile" = msvc ; then
[327]3198       coin_f77_comps="ifort fl32 compile_f2c"
[214]3199     else
[346]3200       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
[214]3201     fi ;;
[807]3202  *-*-solaris*)
[1123]3203     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3204  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
[214]3205 esac
[141]3206
3207
3208
3209
[163]3210
3211
[141]3212ac_ext=f
3213ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3214ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3216
3217
3218
3219
3220
3221
3222coin_has_f77=yes
3223
3224save_fflags="$FFLAGS"
3225
3226# We delete the cached value, since the test might not have been
[163]3227# performed with our choice of compilers earlier
[141]3228$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
[214]3229
3230# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3231# coin_f77_comps to see if there's a program that matches one of the names.
3232# If there's no such program, F77 = unavailable. If we match the name,
3233# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3234# compiler.
3235# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3236
3237
3238{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3239echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3240for ac_prog in $coin_f77_comps
3241do
3242  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243set dummy $ac_prog; ac_word=$2
3244echo "$as_me:$LINENO: checking for $ac_word" >&5
3245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246if test "${ac_cv_prog_F77+set}" = set; then
3247  echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249  if test -n "$F77"; then
3250  ac_cv_prog_F77="$F77" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257  for ac_exec_ext in '' $ac_executable_extensions; do
3258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_F77="$ac_prog"
3260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264done
3265
3266fi
3267fi
3268F77=$ac_cv_prog_F77
3269if test -n "$F77"; then
3270  echo "$as_me:$LINENO: result: $F77" >&5
3271echo "${ECHO_T}$F77" >&6
3272else
3273  echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275fi
3276
3277  test -n "$F77" && break
3278done
3279test -n "$F77" || F77="unavailable"
3280
3281
3282if test "$F77" != "unavailable" ; then
3283  ac_ext=f
[141]3284ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3285ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3287if test -n "$ac_tool_prefix"; then
[214]3288  for ac_prog in $coin_f77_comps
[141]3289  do
3290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3292echo "$as_me:$LINENO: checking for $ac_word" >&5
3293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294if test "${ac_cv_prog_F77+set}" = set; then
3295  echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297  if test -n "$F77"; then
3298  ac_cv_prog_F77="$F77" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305  for ac_exec_ext in '' $ac_executable_extensions; do
3306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312done
3313
3314fi
3315fi
3316F77=$ac_cv_prog_F77
3317if test -n "$F77"; then
3318  echo "$as_me:$LINENO: result: $F77" >&5
3319echo "${ECHO_T}$F77" >&6
3320else
3321  echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
3324
3325    test -n "$F77" && break
3326  done
3327fi
3328if test -z "$F77"; then
3329  ac_ct_F77=$F77
[214]3330  for ac_prog in $coin_f77_comps
[141]3331do
3332  # Extract the first word of "$ac_prog", so it can be a program name with args.
3333set dummy $ac_prog; ac_word=$2
3334echo "$as_me:$LINENO: checking for $ac_word" >&5
3335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3337  echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339  if test -n "$ac_ct_F77"; then
3340  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345  IFS=$as_save_IFS
3346  test -z "$as_dir" && as_dir=.
3347  for ac_exec_ext in '' $ac_executable_extensions; do
3348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349    ac_cv_prog_ac_ct_F77="$ac_prog"
3350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351    break 2
3352  fi
3353done
3354done
3355
3356fi
3357fi
3358ac_ct_F77=$ac_cv_prog_ac_ct_F77
3359if test -n "$ac_ct_F77"; then
3360  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3361echo "${ECHO_T}$ac_ct_F77" >&6
3362else
3363  echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365fi
3366
3367  test -n "$ac_ct_F77" && break
3368done
3369
3370  F77=$ac_ct_F77
3371fi
3372
3373
3374# Provide some information about the compiler.
[1680]3375echo "$as_me:3375:" \
[141]3376     "checking for Fortran 77 compiler version" >&5
3377ac_compiler=`set X $ac_compile; echo $2`
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3379  (eval $ac_compiler --version </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3384  (eval $ac_compiler -v </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3389  (eval $ac_compiler -V </dev/null >&5) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }
3393rm -f a.out
3394
[49]3395# If we don't use `.F' as extension, the preprocessor is not run on the
3396# input file.  (Note that this only needs to work for GNU compilers.)
3397ac_save_ext=$ac_ext
3398ac_ext=F
3399echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3400echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3401if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  cat >conftest.$ac_ext <<_ACEOF
3405      program main
3406#ifndef __GNUC__
3407       choke me
3408#endif
3409
3410      end
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414  (eval $ac_compile) 2>conftest.er1
3415  ac_status=$?
3416  grep -v '^ *+' conftest.er1 >conftest.err
3417  rm -f conftest.er1
3418  cat conftest.err >&5
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); } &&
3421         { ac_try='test -z "$ac_f77_werror_flag"
3422                         || test ! -s conftest.err'
3423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424  (eval $ac_try) 2>&5
3425  ac_status=$?
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); }; } &&
3428         { ac_try='test -s conftest.$ac_objext'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; }; then
3434  ac_compiler_gnu=yes
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439ac_compiler_gnu=no
3440fi
3441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3443
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3446echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3447ac_ext=$ac_save_ext
3448ac_test_FFLAGS=${FFLAGS+set}
3449ac_save_FFLAGS=$FFLAGS
3450FFLAGS=
3451echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3452echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3453if test "${ac_cv_prog_f77_g+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  FFLAGS=-g
3457cat >conftest.$ac_ext <<_ACEOF
3458      program main
3459
3460      end
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464  (eval $ac_compile) 2>conftest.er1
3465  ac_status=$?
3466  grep -v '^ *+' conftest.er1 >conftest.err
3467  rm -f conftest.er1
3468  cat conftest.err >&5
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); } &&
3471         { ac_try='test -z "$ac_f77_werror_flag"
3472                         || test ! -s conftest.err'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; } &&
3478         { ac_try='test -s conftest.$ac_objext'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; }; then
3484  ac_cv_prog_f77_g=yes
3485else
3486  echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489ac_cv_prog_f77_g=no
3490fi
3491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492
3493fi
3494echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3495echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3496if test "$ac_test_FFLAGS" = set; then
3497  FFLAGS=$ac_save_FFLAGS
3498elif test $ac_cv_prog_f77_g = yes; then
3499  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3500    FFLAGS="-g -O2"
3501  else
3502    FFLAGS="-g"
3503  fi
3504else
3505  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3506    FFLAGS="-O2"
3507  else
3508    FFLAGS=
3509  fi
3510fi
3511
3512G77=`test $ac_compiler_gnu = yes && echo yes`
3513ac_ext=f
3514ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3515ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3517
[214]3518else
[163]3519  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3520echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3521fi
[214]3522
[49]3523FFLAGS="$save_fflags"
3524
[94]3525# Check if a project specific FFLAGS variable has been set
3526if test x$COIN_PRJCT != x; then
3527  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3528  if test x$coin_tmp = xset; then
3529    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3530  fi
3531fi
[49]3532
[214]3533if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
[94]3534
[49]3535  coin_add_fflags=
3536  coin_opt_fflags=
3537  coin_dbg_fflags=
3538  coin_warn_fflags=
3539
3540  if test "$G77" = "yes"; then
[1587]3541    coin_opt_fflags="-O3"
[49]3542    coin_add_fflags="-pipe"
3543    coin_dbg_fflags="-g"
[214]3544    case $enable_doscompile in
3545      mingw)
3546        FFLAGS="-mno-cygwin"
3547        cat >conftest.$ac_ext <<_ACEOF
[49]3548      program main
3549      write(*,*) 'Hello world'
3550      end
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554  (eval $ac_link) 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } &&
3561         { ac_try='test -z "$ac_f77_werror_flag"
3562                         || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568         { ac_try='test -s conftest$ac_exeext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3575else
3576  echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579fi
3580rm -f conftest.err conftest.$ac_objext \
3581      conftest$ac_exeext conftest.$ac_ext
[214]3582        FFLAGS=
3583      ;;
3584    esac
[49]3585  else
3586    case $build in
3587      *-cygwin* | *-mingw*)
3588        case $F77 in
[203]3589          ifort* | */ifort* | IFORT* | */IFORT* )
[1123]3590            coin_opt_fflags='-MT -O3'
3591            coin_add_fflags='-fpp -nologo'
3592            coin_dbg_fflags='-MTd -debug'
[49]3593          ;;
[327]3594          compile_f2c*)
3595            coin_opt_fflags='-MT -O2'
3596            coin_add_fflags='-nologo -wd4996'
3597            coin_dbg_fflags='-MTd'
3598          ;;
[49]3599        esac
3600        ;;
3601      *-linux-*)
3602        case $F77 in
3603          ifc* | */ifc* | ifort* | */ifort*)
3604            coin_opt_fflags="-O3 -ip"
3605            coin_add_fflags="-cm -w90 -w95"
3606            coin_dbg_fflags="-g -CA -CB -CS"
3607            # Check if -i_dynamic is necessary (for new glibc library)
3608            FFLAGS=
3609            cat >conftest.$ac_ext <<_ACEOF
3610      program main
3611      write(*,*) 'Hello world'
3612      end
3613_ACEOF
3614rm -f conftest.$ac_objext conftest$ac_exeext
3615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3616  (eval $ac_link) 2>conftest.er1
3617  ac_status=$?
3618  grep -v '^ *+' conftest.er1 >conftest.err
3619  rm -f conftest.er1
3620  cat conftest.err >&5
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); } &&
3623         { ac_try='test -z "$ac_f77_werror_flag"
3624                         || test ! -s conftest.err'
3625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626  (eval $ac_try) 2>&5
3627  ac_status=$?
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); }; } &&
3630         { ac_try='test -s conftest$ac_exeext'
3631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632  (eval $ac_try) 2>&5
3633  ac_status=$?
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); }; }; then
3636  :
3637else
3638  echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641coin_add_fflags="-i_dynamic $coin_add_fflags"
3642fi
3643rm -f conftest.err conftest.$ac_objext \
3644      conftest$ac_exeext conftest.$ac_ext
3645            ;;
3646          pgf77* | */pgf77* | pgf90* | */pgf90*)
3647            coin_opt_fflags="-fast"
3648            coin_add_fflags="-Kieee -pc 64"
3649            coin_dbg_fflags="-g"
3650          ;;
3651        esac
3652        ;;
3653      *-ibm-*)
[79]3654        case "$F77" in
[49]3655          xlf* | */xlf* | mpxlf* | */mpxlf* )
[1053]3656            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
[524]3657            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
[49]3658            coin_dbg_fflags="-g -C"
3659            ;;
3660        esac
3661        ;;
3662      *-hp-*)
3663        coin_opt_fflags="+O3"
3664        coin_add_fflags="+U77"
3665        coin_dbg_fflags="-C -g"
3666        ;;
[807]3667      *-*-solaris*)
[49]3668        coin_opt_fflags="-O4"
3669        coin_dbg_fflags="-g"
3670        ;;
3671      *-sgi-*)
3672        coin_opt_fflags="-O5 -OPT:Olimit=0"
3673        coin_dbg_fflags="-g"
3674        ;;
3675    esac
3676  fi
3677
3678  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3679    coin_dbg_fflags="-g"
3680  fi
3681
[94]3682  if test -z "$coin_opt_fflags"; then
3683    # Try if -O option works if nothing else is set
3684    FFLAGS=-O
3685    cat >conftest.$ac_ext <<_ACEOF
[49]3686      program main
3687      integer i
3688      end
3689_ACEOF
3690rm -f conftest.$ac_objext conftest$ac_exeext
3691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3692  (eval $ac_link) 2>conftest.er1
3693  ac_status=$?
3694  grep -v '^ *+' conftest.er1 >conftest.err
3695  rm -f conftest.er1
3696  cat conftest.err >&5
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); } &&
3699         { ac_try='test -z "$ac_f77_werror_flag"
3700                         || test ! -s conftest.err'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; } &&
3706         { ac_try='test -s conftest$ac_exeext'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; }; then
3712  coin_opt_fflags="-O"
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717fi
3718rm -f conftest.err conftest.$ac_objext \
3719      conftest$ac_exeext conftest.$ac_ext
3720  fi
3721
[141]3722  # if PM doesn't want the warning messages, take them out
3723  if test x"$coin_skip_warn_fflags" = xyes; then
3724    coin_warn_fflags=
3725  fi
3726
[94]3727  if test x${DBG_FFLAGS+set} != xset; then
3728    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3729  fi
3730  if test x${OPT_FFLAGS+set} != xset; then
[100]3731    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
[94]3732  fi
[56]3733
[94]3734  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3735  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3736
3737  if test "$coin_debug_compile" = "true"; then
3738    FFLAGS="$DBG_FFLAGS"
3739  else
3740    FFLAGS="$OPT_FFLAGS"
3741  fi
3742else
[56]3743  FFLAGS="$FFLAGS $ADD_FFLAGS"
[94]3744  if test x${DBG_FFLAGS+set} != xset; then
3745    DBG_FFLAGS="$FFLAGS"
3746  fi
3747  if test x${OPT_FFLAGS+set} != xset; then
3748    OPT_FFLAGS="$FFLAGS"
3749  fi
[56]3750fi
3751
[214]3752# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3753case "$FFLAGS" in
3754  *-mno-cygwin*)
3755    if test x${CPPFLAGS+set} != xset ; then
3756      CPPFLAGS="-mno-cygwin"
3757    else
3758      case "$CPPFLAGS" in
3759        *-mno-cygwin*)
3760          ;;
3761        *)
3762          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3763          ;;
3764      esac
3765    fi ;;
3766esac
3767
[49]3768# Try if FFLAGS works
[214]3769if test "$F77" != "unavailable" ; then
3770  cat >conftest.$ac_ext <<_ACEOF
[49]3771      program main
3772      integer i
3773      end
3774_ACEOF
3775rm -f conftest.$ac_objext conftest$ac_exeext
3776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777  (eval $ac_link) 2>conftest.er1
3778  ac_status=$?
3779  grep -v '^ *+' conftest.er1 >conftest.err
3780  rm -f conftest.er1
3781  cat conftest.err >&5
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); } &&
3784         { ac_try='test -z "$ac_f77_werror_flag"
3785                         || test ! -s conftest.err'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; } &&
3791         { ac_try='test -s conftest$ac_exeext'
3792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793  (eval $ac_try) 2>&5
3794  ac_status=$?
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); }; }; then
3797  :
3798else
3799  echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802FFLAGS=
3803fi
3804rm -f conftest.err conftest.$ac_objext \
3805      conftest$ac_exeext conftest.$ac_ext
[214]3806  if test -z "$FFLAGS"; then
3807    { 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
[49]3808echo "$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;}
[214]3809    FFLAGS='-O'
3810    cat >conftest.$ac_ext <<_ACEOF
[49]3811      program main
3812      integer i
3813      end
3814_ACEOF
3815rm -f conftest.$ac_objext conftest$ac_exeext
3816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817  (eval $ac_link) 2>conftest.er1
3818  ac_status=$?
3819  grep -v '^ *+' conftest.er1 >conftest.err
3820  rm -f conftest.er1
3821  cat conftest.err >&5
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); } &&
3824         { ac_try='test -z "$ac_f77_werror_flag"
3825                         || test ! -s conftest.err'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; } &&
3831         { ac_try='test -s conftest$ac_exeext'
3832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833  (eval $ac_try) 2>&5
3834  ac_status=$?
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); }; }; then
3837  :
3838else
3839  echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842FFLAGS=
3843fi
3844rm -f conftest.err conftest.$ac_objext \
3845      conftest$ac_exeext conftest.$ac_ext
[214]3846    if test -z "$FFLAGS"; then
3847      { 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
[49]3848echo "$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;}
[214]3849    fi
[49]3850  fi
3851fi
3852
[94]3853{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3854echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
[49]3855
3856
3857if test x"$MPIF77" = x; then :; else
3858  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3859echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3860  F77="$MPIF77"
3861fi
3862
3863case "$F77" in
[214]3864  ifort* | */ifort* | IFORT* | */IFORT*)
[49]3865    case $build in
3866  *-mingw*)
3867    if test "${LD+set}" = set; then :; else
3868      LD=link
3869    fi
3870    ;;
[214]3871 esac
3872 case $enable_doscompile in
3873   msvc)
3874     if test "x${LD+set}" = xset; then :; else
3875       LD=link
3876     fi
3877     ;;
3878 esac
[49]3879
3880    ;;
3881esac
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890
[1548]3891# Get the linker flags (FLIBS) that are required for linking against this blas library
3892ac_ext=f
3893ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3894ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3896echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3897echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3898if test "${ac_cv_prog_f77_v+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  cat >conftest.$ac_ext <<_ACEOF
3902      program main
3903
3904      end
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908  (eval $ac_compile) 2>conftest.er1
3909  ac_status=$?
3910  grep -v '^ *+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); } &&
3915         { ac_try='test -z "$ac_f77_werror_flag"
3916                         || test ! -s conftest.err'
3917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918  (eval $ac_try) 2>&5
3919  ac_status=$?
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); }; } &&
3922         { ac_try='test -s conftest.$ac_objext'
3923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924  (eval $ac_try) 2>&5
3925  ac_status=$?
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); }; }; then
3928  ac_cv_prog_f77_v=
3929# Try some options frequently used verbose output
3930for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3931  cat >conftest.$ac_ext <<_ACEOF
3932      program main
3933
3934      end
3935_ACEOF
3936
3937# Compile and link our simple test program by passing a flag (argument
3938# 1 to this macro) to the Fortran compiler in order to get
3939# "verbose" output that we can then parse for the Fortran linker
3940# flags.
3941ac_save_FFLAGS=$FFLAGS
3942FFLAGS="$FFLAGS $ac_verb"
[1680]3943(eval echo $as_me:3943: \"$ac_link\") >&5
[1548]3944ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3945echo "$ac_f77_v_output" >&5
3946FFLAGS=$ac_save_FFLAGS
3947
3948rm -f conftest*
3949
3950# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3951# /foo, /bar, and /baz are search directories for the Fortran linker.
3952# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3953ac_f77_v_output="`echo $ac_f77_v_output |
3954        grep 'LPATH is:' |
3955        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3956
3957case $ac_f77_v_output in
3958  # If we are using xlf then replace all the commas with spaces.
3959  *xlfentry*)
3960    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3961
3962  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3963  # $LIBS confuse us, and the libraries appear later in the output anyway).
3964  *mGLOB_options_string*)
3965    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3966
3967  # If we are using Cray Fortran then delete quotes.
3968  # Use "\"" instead of '"' for font-lock-mode.
3969  # FIXME: a more general fix for quoted arguments with spaces?
3970  *cft90*)
3971    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3972esac
3973
3974
3975  # look for -l* and *.a constructs in the output
3976  for ac_arg in $ac_f77_v_output; do
3977     case $ac_arg in
3978        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3979          ac_cv_prog_f77_v=$ac_verb
3980          break 2 ;;
3981     esac
3982  done
3983done
3984if test -z "$ac_cv_prog_f77_v"; then
3985   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3986echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3987fi
3988else
3989  echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3993echo "$as_me: WARNING: compilation failed" >&2;}
3994fi
3995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996
3997fi
3998echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3999echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4000echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4001echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4002if test "${ac_cv_f77_libs+set}" = set; then
4003  echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
4005  if test "x$FLIBS" != "x"; then
4006  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4007else
4008
4009cat >conftest.$ac_ext <<_ACEOF
4010      program main
4011
4012      end
4013_ACEOF
4014
4015# Compile and link our simple test program by passing a flag (argument
4016# 1 to this macro) to the Fortran compiler in order to get
4017# "verbose" output that we can then parse for the Fortran linker
4018# flags.
4019ac_save_FFLAGS=$FFLAGS
4020FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
[1680]4021(eval echo $as_me:4021: \"$ac_link\") >&5
[1548]4022ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4023echo "$ac_f77_v_output" >&5
4024FFLAGS=$ac_save_FFLAGS
4025
4026rm -f conftest*
4027
4028# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4029# /foo, /bar, and /baz are search directories for the Fortran linker.
4030# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4031ac_f77_v_output="`echo $ac_f77_v_output |
4032        grep 'LPATH is:' |
4033        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4034
4035case $ac_f77_v_output in
4036  # If we are using xlf then replace all the commas with spaces.
4037  *xlfentry*)
4038    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4039
4040  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4041  # $LIBS confuse us, and the libraries appear later in the output anyway).
4042  *mGLOB_options_string*)
4043    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4044
4045  # If we are using Cray Fortran then delete quotes.
4046  # Use "\"" instead of '"' for font-lock-mode.
4047  # FIXME: a more general fix for quoted arguments with spaces?
4048  *cft90*)
4049    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4050esac
4051
4052
4053
4054ac_cv_f77_libs=
4055
4056# Save positional arguments (if any)
4057ac_save_positional="$@"
4058
4059set X $ac_f77_v_output
4060while test $# != 1; do
4061  shift
4062  ac_arg=$1
4063  case $ac_arg in
4064        [\\/]*.a | ?:[\\/]*.a)
4065            ac_exists=false
4066  for ac_i in $ac_cv_f77_libs; do
4067    if test x"$ac_arg" = x"$ac_i"; then
4068      ac_exists=true
4069      break
4070    fi
4071  done
4072
4073  if test x"$ac_exists" = xtrue; then
4074  :
4075else
4076  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4077fi
4078
4079          ;;
4080        -bI:*)
4081            ac_exists=false
4082  for ac_i in $ac_cv_f77_libs; do
4083    if test x"$ac_arg" = x"$ac_i"; then
4084      ac_exists=true
4085      break
4086    fi
4087  done
4088
4089  if test x"$ac_exists" = xtrue; then
4090  :
4091else
4092  if test "$ac_compiler_gnu" = yes; then
4093  for ac_link_opt in $ac_arg; do
4094    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4095  done
4096else
4097  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4098fi
4099fi
4100
4101          ;;
4102          # Ignore these flags.
4103        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4104          ;;
4105        -lkernel32)
4106          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4107          ;;
4108        -[LRuY])
4109          # These flags, when seen by themselves, take an argument.
4110          # We remove the space between option and argument and re-iterate
4111          # unless we find an empty arg or a new option (starting with -)
4112          case $2 in
4113             "" | -*);;
4114             *)
4115                ac_arg="$ac_arg$2"
4116                shift; shift
4117                set X $ac_arg "$@"
4118                ;;
4119          esac
4120          ;;
4121        -YP,*)
4122          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4123              ac_exists=false
4124  for ac_i in $ac_cv_f77_libs; do
4125    if test x"$ac_j" = x"$ac_i"; then
4126      ac_exists=true
4127      break
4128    fi
4129  done
4130
4131  if test x"$ac_exists" = xtrue; then
4132  :
4133else
4134  ac_arg="$ac_arg $ac_j"
4135                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4136fi
4137
4138          done
4139          ;;
4140        -[lLR]*)
4141            ac_exists=false
4142  for ac_i in $ac_cv_f77_libs; do
4143    if test x"$ac_arg" = x"$ac_i"; then
4144      ac_exists=true
4145      break
4146    fi
4147  done
4148
4149  if test x"$ac_exists" = xtrue; then
4150  :
4151else
4152  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4153fi
4154
4155          ;;
4156          # Ignore everything else.
4157  esac
4158done
4159# restore positional arguments
4160set X $ac_save_positional; shift
4161
4162# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4163# then we insist that the "run path" must be an absolute path (i.e. it
4164# must begin with a "/").
4165case `(uname -sr) 2>/dev/null` in
4166   "SunOS 5"*)
4167      ac_ld_run_path=`echo $ac_f77_v_output |
4168                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4169      test "x$ac_ld_run_path" != x &&
4170        if test "$ac_compiler_gnu" = yes; then
4171  for ac_link_opt in $ac_ld_run_path; do
4172    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4173  done
4174else
4175  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4176fi
4177      ;;
4178esac
4179fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4180
4181fi
4182echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4183echo "${ECHO_T}$ac_cv_f77_libs" >&6
4184FLIBS="$ac_cv_f77_libs"
4185
4186
4187ac_ext=f
4188ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4189ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4191
4192ac_ext=f
4193ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4194ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4196
4197echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4198echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4199if test "${ac_cv_f77_dummy_main+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  ac_f77_dm_save_LIBS=$LIBS
4203 LIBS="$LIBS $FLIBS"
4204 ac_fortran_dm_var=F77_DUMMY_MAIN
4205 ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211 # First, try linking without a dummy main:
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h.  */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h.  */
4218
4219#ifdef F77_DUMMY_MAIN
4220
4221#  ifdef __cplusplus
4222     extern "C"
4223#  endif
4224   int F77_DUMMY_MAIN() { return 1; }
4225
4226#endif
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235rm -f conftest.$ac_objext conftest$ac_exeext
4236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4237  (eval $ac_link) 2>conftest.er1
4238  ac_status=$?
4239  grep -v '^ *+' conftest.er1 >conftest.err
4240  rm -f conftest.er1
4241  cat conftest.err >&5
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); } &&
4244         { ac_try='test -z "$ac_c_werror_flag"
4245                         || test ! -s conftest.err'
4246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247  (eval $ac_try) 2>&5
4248  ac_status=$?
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); }; } &&
4251         { ac_try='test -s conftest$ac_exeext'
4252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253  (eval $ac_try) 2>&5
4254  ac_status=$?
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); }; }; then
4257  ac_cv_fortran_dummy_main=none
4258else
4259  echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262ac_cv_fortran_dummy_main=unknown
4263fi
4264rm -f conftest.err conftest.$ac_objext \
4265      conftest$ac_exeext conftest.$ac_ext
4266
4267 if test $ac_cv_fortran_dummy_main = unknown; then
4268   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4269     cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h.  */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h.  */
4275#define $ac_fortran_dm_var $ac_func
4276#ifdef F77_DUMMY_MAIN
4277
4278#  ifdef __cplusplus
4279     extern "C"
4280#  endif
4281   int F77_DUMMY_MAIN() { return 1; }
4282
4283#endif
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294  (eval $ac_link) 2>conftest.er1
4295  ac_status=$?
4296  grep -v '^ *+' conftest.er1 >conftest.err
4297  rm -f conftest.er1
4298  cat conftest.err >&5
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); } &&
4301         { ac_try='test -z "$ac_c_werror_flag"
4302                         || test ! -s conftest.err'
4303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304  (eval $ac_try) 2>&5
4305  ac_status=$?
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); }; } &&
4308         { ac_try='test -s conftest$ac_exeext'
4309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310  (eval $ac_try) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }; }; then
4314  ac_cv_fortran_dummy_main=$ac_func; break
4315else
4316  echo "$as_me: failed program was:" >&5
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
4319fi
4320rm -f conftest.err conftest.$ac_objext \
4321      conftest$ac_exeext conftest.$ac_ext
4322   done
4323 fi
4324 ac_ext=f
4325ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4326ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4328 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4329 rm -f conftest*
4330 LIBS=$ac_f77_dm_save_LIBS
4331
4332fi
4333echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4334echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4335F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4336if test "$F77_DUMMY_MAIN" != unknown; then
4337  if test $F77_DUMMY_MAIN != none; then
4338
4339cat >>confdefs.h <<_ACEOF
4340#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4341_ACEOF
4342
4343  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4344
4345cat >>confdefs.h <<\_ACEOF
4346#define FC_DUMMY_MAIN_EQ_F77 1
4347_ACEOF
4348
4349  fi
4350fi
4351else
4352  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4353See \`config.log' for more details." >&5
4354echo "$as_me: error: linking to Fortran libraries from C fails
4355See \`config.log' for more details." >&2;}
4356   { (exit 1); exit 1; }; }
4357fi
4358
4359
4360ac_ext=f
4361ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4362ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4364
4365ac_ext=f
4366ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4367ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4369echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4370echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4371if test "${ac_cv_f77_mangling+set}" = set; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374  cat >conftest.$ac_ext <<_ACEOF
4375      subroutine foobar()
4376      return
4377      end
4378      subroutine foo_bar()
4379      return
4380      end
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384  (eval $ac_compile) 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } &&
4391         { ac_try='test -z "$ac_f77_werror_flag"
4392                         || test ! -s conftest.err'
4393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394  (eval $ac_try) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; } &&
4398         { ac_try='test -s conftest.$ac_objext'
4399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400  (eval $ac_try) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }; }; then
4404  mv conftest.$ac_objext cfortran_test.$ac_objext
4405
4406  ac_save_LIBS=$LIBS
4407  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4408
4409  ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414  ac_success=no
4415  for ac_foobar in foobar FOOBAR; do
4416    for ac_underscore in "" "_"; do
4417      ac_func="$ac_foobar$ac_underscore"
4418      cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424
4425/* Override any gcc2 internal prototype to avoid an error.  */
4426#ifdef __cplusplus
4427extern "C"
4428#endif
4429/* We use char because int might match the return type of a gcc2
4430   builtin and then its argument prototype would still apply.  */
4431char $ac_func ();
4432#ifdef F77_DUMMY_MAIN
4433
4434#  ifdef __cplusplus
4435     extern "C"
4436#  endif
4437   int F77_DUMMY_MAIN() { return 1; }
4438
4439#endif
4440int
4441main ()
4442{
4443$ac_func ();
4444  ;
4445  return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext conftest$ac_exeext
4449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450  (eval $ac_link) 2>conftest.er1
4451  ac_status=$?
4452  grep -v '^ *+' conftest.er1 >conftest.err
4453  rm -f conftest.er1
4454  cat conftest.err >&5
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457         { ac_try='test -z "$ac_c_werror_flag"
4458                         || test ! -s conftest.err'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; } &&
4464         { ac_try='test -s conftest$ac_exeext'
4465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466  (eval $ac_try) 2>&5
4467  ac_status=$?
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); }; }; then
4470  ac_success=yes; break 2
4471else
4472  echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475fi
4476rm -f conftest.err conftest.$ac_objext \
4477      conftest$ac_exeext conftest.$ac_ext
4478    done
4479  done
4480  ac_ext=f
4481ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4482ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4484
4485  if test "$ac_success" = "yes"; then
4486     case $ac_foobar in
4487        foobar)
4488           ac_case=lower
4489           ac_foo_bar=foo_bar
4490           ;;
4491        FOOBAR)
4492           ac_case=upper
4493           ac_foo_bar=FOO_BAR
4494           ;;
4495     esac
4496
4497     ac_ext=c
4498ac_cpp='$CPP $CPPFLAGS'
4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502     ac_success_extra=no
4503     for ac_extra in "" "_"; do
4504        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4505        cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h.  */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h.  */
4511
4512/* Override any gcc2 internal prototype to avoid an error.  */
4513#ifdef __cplusplus
4514extern "C"
4515#endif
4516/* We use char because int might match the return type of a gcc2
4517   builtin and then its argument prototype would still apply.  */
4518char $ac_func ();
4519#ifdef F77_DUMMY_MAIN
4520
4521#  ifdef __cplusplus
4522     extern "C"
4523#  endif
4524   int F77_DUMMY_MAIN() { return 1; }
4525
4526#endif
4527int
4528main ()
4529{
4530$ac_func ();
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537  (eval $ac_link) 2>conftest.er1
4538  ac_status=$?
4539  grep -v '^ *+' conftest.er1 >conftest.err
4540  rm -f conftest.er1
4541  cat conftest.err >&5
4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543  (exit $ac_status); } &&
4544         { ac_try='test -z "$ac_c_werror_flag"
4545                         || test ! -s conftest.err'
4546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547  (eval $ac_try) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; } &&
4551         { ac_try='test -s conftest$ac_exeext'
4552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553  (eval $ac_try) 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; }; then
4557  ac_success_extra=yes; break
4558else
4559  echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
4562fi
4563rm -f conftest.err conftest.$ac_objext \
4564      conftest$ac_exeext conftest.$ac_ext
4565     done
4566     ac_ext=f
4567ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4568ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4570
4571     if test "$ac_success_extra" = "yes"; then
4572        ac_cv_f77_mangling="$ac_case case"
4573        if test -z "$ac_underscore"; then
4574           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4575        else
4576           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4577        fi
4578        if test -z "$ac_extra"; then
4579           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4580        else
4581           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4582        fi
4583      else
4584        ac_cv_f77_mangling="unknown"
4585      fi
4586  else
4587     ac_cv_f77_mangling="unknown"
4588  fi
4589
4590  LIBS=$ac_save_LIBS
4591  rm -f cfortran_test* conftest*
4592else
4593  echo "$as_me: failed program was:" >&5
4594sed 's/^/| /' conftest.$ac_ext >&5
4595
4596{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4597See \`config.log' for more details." >&5
4598echo "$as_me: error: cannot compile a simple Fortran program
4599See \`config.log' for more details." >&2;}
4600   { (exit 1); exit 1; }; }
4601fi
4602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603
4604fi
4605echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4606echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4607
4608ac_ext=f
4609ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4610ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4612
4613
4614ac_ext=f
4615ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4616ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4618
4619
4620ac_ext=f
4621ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4622ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4624
4625
4626case $ac_cv_f77_mangling in
4627  "lower case, no underscore, no extra underscore")
4628          cat >>confdefs.h <<\_ACEOF
4629#define F77_FUNC(name,NAME) name
4630_ACEOF
4631
4632          cat >>confdefs.h <<\_ACEOF
4633#define F77_FUNC_(name,NAME) name
4634_ACEOF
4635 ;;
4636  "lower case, no underscore, extra underscore")
4637          cat >>confdefs.h <<\_ACEOF
4638#define F77_FUNC(name,NAME) name
4639_ACEOF
4640
4641          cat >>confdefs.h <<\_ACEOF
4642#define F77_FUNC_(name,NAME) name ## _
4643_ACEOF
4644 ;;
4645  "lower case, underscore, no extra underscore")
4646          cat >>confdefs.h <<\_ACEOF
4647#define F77_FUNC(name,NAME) name ## _
4648_ACEOF
4649
4650          cat >>confdefs.h <<\_ACEOF
4651#define F77_FUNC_(name,NAME) name ## _
4652_ACEOF
4653 ;;
4654  "lower case, underscore, extra underscore")
4655          cat >>confdefs.h <<\_ACEOF
4656#define F77_FUNC(name,NAME) name ## _
4657_ACEOF
4658
4659          cat >>confdefs.h <<\_ACEOF
4660#define F77_FUNC_(name,NAME) name ## __
4661_ACEOF
4662 ;;
4663  "upper case, no underscore, no extra underscore")
4664          cat >>confdefs.h <<\_ACEOF
4665#define F77_FUNC(name,NAME) NAME
4666_ACEOF
4667
4668          cat >>confdefs.h <<\_ACEOF
4669#define F77_FUNC_(name,NAME) NAME
4670_ACEOF
4671 ;;
4672  "upper case, no underscore, extra underscore")
4673          cat >>confdefs.h <<\_ACEOF
4674#define F77_FUNC(name,NAME) NAME
4675_ACEOF
4676
4677          cat >>confdefs.h <<\_ACEOF
4678#define F77_FUNC_(name,NAME) NAME ## _
4679_ACEOF
4680 ;;
4681  "upper case, underscore, no extra underscore")
4682          cat >>confdefs.h <<\_ACEOF
4683#define F77_FUNC(name,NAME) NAME ## _
4684_ACEOF
4685
4686          cat >>confdefs.h <<\_ACEOF
4687#define F77_FUNC_(name,NAME) NAME ## _
4688_ACEOF
4689 ;;
4690  "upper case, underscore, extra underscore")
4691          cat >>confdefs.h <<\_ACEOF
4692#define F77_FUNC(name,NAME) NAME ## _
4693_ACEOF
4694
4695          cat >>confdefs.h <<\_ACEOF
4696#define F77_FUNC_(name,NAME) NAME ## __
4697_ACEOF
4698 ;;
4699  *)
4700          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4701echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4702          ;;
4703esac
4704
4705ac_ext=f
4706ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4707ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4709
4710
4711# If FLIBS has been set by the user, we just restore its value here
4712if test x"$save_FLIBS" != x; then
4713  FLIBS="$save_FLIBS"
4714else
4715  # This is to correct a missing exclusion in autoconf 2.59
4716  if test x"$FLIBS" != x; then
4717    my_flibs=
4718    for flag in $FLIBS; do
4719      case $flag in
4720        -lcrt*.o) ;;
4721        -lcygwin) ;;
4722               *) my_flibs="$my_flibs $flag" ;;
4723      esac
4724    done
4725    FLIBS="$my_flibs"
4726  fi
4727
4728  case $build in
4729  # The following is a fix to define FLIBS for ifort on Windows
4730  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4731  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4732  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
[1552]4733  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4734  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
[1548]4735     *-cygwin* | *-mingw*)
4736       case "$F77" in
[1552]4737#         ifort* | */ifort* | IFORT* | */IFORT*)
4738#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
[1548]4739#           if "$coin_debug_compile" = true ; then
4740#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4741#           else
4742#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4743#           fi
[1552]4744#           ;;
[1548]4745         compile_f2c*)
4746           FLIBS=`$F77 -FLIBS` ;;
4747       esac;;
4748     *-hp-*)
4749         FLIBS="$FLIBS -lm";;
4750     *-ibm-*)
4751         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4752     *-linux-*)
4753       case "$F77" in
4754         pgf77* | */pgf77* | pgf90* | */pgf90*)
4755# ask linker to go through the archives multiple times
[1552]4756# (the Fortran compiler seems to do that automatically...)
[1548]4757           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4758       esac
4759  esac
4760  ac_cv_f77_libs="$FLIBS"
4761fi
4762
4763ac_ext=c
4764ac_cpp='$CPP $CPPFLAGS'
4765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768
4769
4770
4771
4772# Check if pkg-config is available (to setup addlibs file)
4773
4774
4775# Check whether --enable-pkg-config or --disable-pkg-config was given.
4776if test "${enable_pkg_config+set}" = set; then
4777  enableval="$enable_pkg_config"
4778  use_pkgconfig="$enableval"
4779else
4780  use_pkgconfig=yes
4781fi;
4782
4783if test $use_pkgconfig = yes ; then
4784  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4785    if test -n "$ac_tool_prefix"; then
4786  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4788echo "$as_me:$LINENO: checking for $ac_word" >&5
4789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4791  echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793  case $PKG_CONFIG in
4794  [\\/]* | ?:[\\/]*)
4795  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4796  ;;
4797  *)
4798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803  for ac_exec_ext in '' $ac_executable_extensions; do
4804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807    break 2
4808  fi
4809done
4810done
4811
4812  ;;
4813esac
4814fi
4815PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4816
4817if test -n "$PKG_CONFIG"; then
4818  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4819echo "${ECHO_T}$PKG_CONFIG" >&6
4820else
4821  echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6
4823fi
4824
4825fi
4826if test -z "$ac_cv_path_PKG_CONFIG"; then
4827  ac_pt_PKG_CONFIG=$PKG_CONFIG
4828  # Extract the first word of "pkg-config", so it can be a program name with args.
4829set dummy pkg-config; ac_word=$2
4830echo "$as_me:$LINENO: checking for $ac_word" >&5
4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835  case $ac_pt_PKG_CONFIG in
4836  [\\/]* | ?:[\\/]*)
4837  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4838  ;;
4839  *)
4840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843  IFS=$as_save_IFS
4844  test -z "$as_dir" && as_dir=.
4845  for ac_exec_ext in '' $ac_executable_extensions; do
4846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849    break 2
4850  fi
4851done
4852done
4853
4854  ;;
4855esac
4856fi
4857ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4858
4859if test -n "$ac_pt_PKG_CONFIG"; then
4860  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4861echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4862else
4863  echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865fi
4866
4867  PKG_CONFIG=$ac_pt_PKG_CONFIG
4868else
4869  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4870fi
4871
4872  fi
4873  if test -n "$PKG_CONFIG"; then
4874    _pkg_min_version=0.9.0
4875    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4876echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4877    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4878      echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
4880    else
4881      echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883      PKG_CONFIG=""
4884    fi
4885  fi
4886
4887  # check if pkg-config supports the short-errors flag
4888  if test -n "$PKG_CONFIG" && \
4889    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4890    pkg_short_errors=" --short-errors "
4891  else
4892    pkg_short_errors=""
4893  fi
4894fi
4895
4896
4897
4898if test -n "$PKG_CONFIG"; then
4899  COIN_HAS_PKGCONFIG_TRUE=
4900  COIN_HAS_PKGCONFIG_FALSE='#'
4901else
4902  COIN_HAS_PKGCONFIG_TRUE='#'
4903  COIN_HAS_PKGCONFIG_FALSE=
4904fi
4905
4906
4907
[1634]4908# assemble pkg-config search path for installed projects
[1626]4909COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
[1548]4910
[1626]4911# 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
4912# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4913# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
[1736]4914if test "x${prefix}" = xNONE ; then
4915  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4916else
4917  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4918fi
[1548]4919
4920
4921# Check whether --with-coin-instdir or --without-coin-instdir was given.
4922if test "${with_coin_instdir+set}" = set; then
4923  withval="$with_coin_instdir"
4924  if test -d "$withval"; then : ; else
[1626]4925     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
[1548]4926echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4927   { (exit 1); exit 1; }; }
[1626]4928   fi
4929   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
[1548]4930
4931fi;
4932
[1634]4933
4934
4935# assemble additional pkg-config search paths for uninstalled projects
[1626]4936if test x$coin_projectdir = xyes ; then
4937  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
[1548]4938  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4939  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4940  # 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)
[1634]4941  COIN_PKG_CONFIG_PATH_UNINSTALLED=
[1548]4942  if test -e ../coin_subdirs.txt ; then
4943    for i in `cat ../coin_subdirs.txt` ; do
4944      if test -d ../$i ; then
[1634]4945        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
[1548]4946      fi
4947    done
4948  fi
4949
4950  if test -e ../../coin_subdirs.txt ; then
4951    for i in `cat ../../coin_subdirs.txt` ; do
4952      if test -d ../../$i ; then
[1634]4953        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
[1548]4954      fi
4955    done
4956  fi
4957
[1634]4958
[1548]4959fi
4960
4961
4962
[1680]4963# Add FLIBS to LAPACK_PCLIBS, so that they get into the .pc files
4964LAPACK_PCLIBS="$FLIBS"
[1548]4965
[1680]4966
[1255]4967# Take care that optimization is disbled for DLAMCH.F
[1178]4968
4969if test "x$DLAMCH_FFLAGS" = x ; then
4970  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
4971  case $F77 in
4972    ifort* | */ifort* | IFORT* | */IFORT* )
[1260]4973      case $build in
4974        *-cygwin* | *-mingw*)
4975          DLAMCH_FFLAGS="$FFLAGS -Od"
4976          ;;
4977        *)
4978          DLAMCH_FFLAGS="$FFLAGS -O0"
4979          ;;
4980      esac
[1178]4981      ;;
4982    compile_f2c*)
4983      case "$CC" in
4984        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4985          DLAMCH_FFLAGS="$FFLAGS -Od"
4986        ;;
4987        *)
4988          DLAMCH_FFLAGS="$FFLAGS -O0"
4989        ;;
4990      esac
4991      ;;
4992    *)
4993      DLAMCH_FFLAGS="$FFLAGS -O0"
4994      ;;
4995  esac
[1123]4996fi
4997
4998
[49]4999# Initialize autotools
[170]5000{
[49]5001
[170]5002
5003
5004# START
5005
[955]5006# Test if force_shared has been set
5007if test "x" = xforce_shared; then
5008  if test x$enable_shared = xno; then
5009    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5010echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5011   { (exit 1); exit 1; }; }
5012  fi
5013  enable_shared=yes;
5014else
5015  # On Cygwin and AIX, building DLLs doesn't work
5016  case $build in
5017    *-cygwin*)
5018      coin_disable_shared=yes
5019      platform=Cygwin
5020    ;;
5021    *-aix*)
5022      coin_disable_shared=yes
5023      platform=AIX
5024    ;;
5025    *-mingw*)
5026      coin_disable_shared=yes
5027      platform="Msys"
5028#      case "$CXX" in
5029#        cl*)
5030#          coin_disable_shared=yes
5031#          platform="Msys with cl"
5032#      ;;
5033#      esac
5034    ;;
5035  esac
5036fi
[49]5037if test x"$coin_disable_shared" = xyes; then
5038  if test x"$enable_shared" = xyes; then
5039    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5040echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5041  fi
5042  enable_shared=no
5043fi
5044# By default, we only want the shared objects to be compiled
5045# Check whether --enable-static or --disable-static was given.
5046if test "${enable_static+set}" = set; then
5047  enableval="$enable_static"
5048  p=${PACKAGE-default}
5049    case $enableval in
5050    yes) enable_static=yes ;;
5051    no) enable_static=no ;;
5052    *)
5053     enable_static=no
5054      # Look at the argument we got.  We use all the common list separators.
5055      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5056      for pkg in $enableval; do
5057        IFS="$lt_save_ifs"
5058        if test "X$pkg" = "X$p"; then
5059          enable_static=yes
5060        fi
5061      done
5062      IFS="$lt_save_ifs"
5063      ;;
5064    esac
5065else
5066  enable_static=no
5067fi;
5068
5069
5070
[170]5071
5072# Initialize automake
[49]5073echo "$as_me:$LINENO: checking for egrep" >&5
5074echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5075if test "${ac_cv_prog_egrep+set}" = set; then
5076  echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5079    then ac_cv_prog_egrep='grep -E'
5080    else ac_cv_prog_egrep='egrep'
5081    fi
5082fi
5083echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5084echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5085 EGREP=$ac_cv_prog_egrep
5086
5087
5088am__api_version="1.9"
5089# Find a good install program.  We prefer a C program (faster),
5090# so one script is as good as another.  But avoid the broken or
5091# incompatible versions:
5092# SysV /etc/install, /usr/sbin/install
5093# SunOS /usr/etc/install
5094# IRIX /sbin/install
5095# AIX /bin/install
5096# AmigaOS /C/install, which installs bootblocks on floppy discs
5097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5098# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5100# OS/2's system install, which has a completely different semantic
5101# ./install, which can be erroneously created by make from ./install.sh.
5102echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5103echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5104if test -z "$INSTALL"; then
5105if test "${ac_cv_path_install+set}" = set; then
5106  echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  test -z "$as_dir" && as_dir=.
5113  # Account for people who put trailing slashes in PATH elements.
5114case $as_dir/ in
5115  ./ | .// | /cC/* | \
5116  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5117  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5118  /usr/ucb/* ) ;;
5119  *)
5120    # OSF1 and SCO ODT 3.0 have their own names for install.
5121    # Don't use installbsd from OSF since it installs stuff as root
5122    # by default.
5123    for ac_prog in ginstall scoinst install; do
5124      for ac_exec_ext in '' $ac_executable_extensions; do
5125        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5126          if test $ac_prog = install &&
5127            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5128            # AIX install.  It has an incompatible calling convention.
5129            :
5130          elif test $ac_prog = install &&
5131            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5132            # program-specific install script used by HP pwplus--don't use.
5133            :
5134          else
5135            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5136            break 3
5137          fi
5138        fi
5139      done
5140    done
5141    ;;
5142esac
5143done
5144
5145
5146fi
5147  if test "${ac_cv_path_install+set}" = set; then
5148    INSTALL=$ac_cv_path_install
5149  else
5150    # As a last resort, use the slow shell script.  We don't cache a
5151    # path for INSTALL within a source directory, because that will
5152    # break other packages using the cache if that directory is
5153    # removed, or if the path is relative.
5154    INSTALL=$ac_install_sh
5155  fi
5156fi
5157echo "$as_me:$LINENO: result: $INSTALL" >&5
5158echo "${ECHO_T}$INSTALL" >&6
5159
5160# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5161# It thinks the first close brace ends the variable substitution.
5162test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5163
5164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5165
5166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5167
5168echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5169echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5170# Just in case
5171sleep 1
5172echo timestamp > conftest.file
5173# Do `set' in a subshell so we don't clobber the current shell's
5174# arguments.  Must try -L first in case configure is actually a
5175# symlink; some systems play weird games with the mod time of symlinks
5176# (eg FreeBSD returns the mod time of the symlink's containing
5177# directory).
5178if (
5179   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5180   if test "$*" = "X"; then
5181      # -L didn't work.
5182      set X `ls -t $srcdir/configure conftest.file`
5183   fi
5184   rm -f conftest.file
5185   if test "$*" != "X $srcdir/configure conftest.file" \
5186      && test "$*" != "X conftest.file $srcdir/configure"; then
5187
5188      # If neither matched, then we have a broken ls.  This can happen
5189      # if, for instance, CONFIG_SHELL is bash and it inherits a
5190      # broken ls alias from the environment.  This has actually
5191      # happened.  Such a system could not be considered "sane".
5192      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5193alias in your environment" >&5
5194echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5195alias in your environment" >&2;}
5196   { (exit 1); exit 1; }; }
5197   fi
5198
5199   test "$2" = conftest.file
5200   )
5201then
5202   # Ok.
5203   :
5204else
5205   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5206Check your system clock" >&5
5207echo "$as_me: error: newly created file is older than distributed files!
5208Check your system clock" >&2;}
5209   { (exit 1); exit 1; }; }
5210fi
5211echo "$as_me:$LINENO: result: yes" >&5
5212echo "${ECHO_T}yes" >&6
5213test "$program_prefix" != NONE &&
5214  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5215# Use a double $ so make ignores it.
5216test "$program_suffix" != NONE &&
5217  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5218# Double any \ or $.  echo might interpret backslashes.
5219# By default was `s,x,x', remove it if useless.
5220cat <<\_ACEOF >conftest.sed
5221s/[\\$]/&&/g;s/;s,x,x,$//
5222_ACEOF
5223program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5224rm conftest.sed
5225
5226# expand $ac_aux_dir to an absolute path
5227am_aux_dir=`cd $ac_aux_dir && pwd`
5228
5229test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5230# Use eval to expand $SHELL
5231if eval "$MISSING --run true"; then
5232  am_missing_run="$MISSING --run "
5233else
5234  am_missing_run=
5235  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5236echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5237fi
5238
5239if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5240  # We used to keeping the `.' as first argument, in order to
5241  # allow $(mkdir_p) to be used without argument.  As in
5242  #   $(mkdir_p) $(somedir)
5243  # where $(somedir) is conditionally defined.  However this is wrong
5244  # for two reasons:
5245  #  1. if the package is installed by a user who cannot write `.'
5246  #     make install will fail,
5247  #  2. the above comment should most certainly read
5248  #     $(mkdir_p) $(DESTDIR)$(somedir)
5249  #     so it does not work when $(somedir) is undefined and
5250  #     $(DESTDIR) is not.
5251  #  To support the latter case, we have to write
5252  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5253  #  so the `.' trick is pointless.
5254  mkdir_p='mkdir -p --'
5255else
5256  # On NextStep and OpenStep, the `mkdir' command does not
5257  # recognize any option.  It will interpret all options as
5258  # directories to create, and then abort because `.' already
5259  # exists.
5260  for d in ./-p ./--version;
5261  do
5262    test -d $d && rmdir $d
5263  done
5264  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5265  if test -f "$ac_aux_dir/mkinstalldirs"; then
5266    mkdir_p='$(mkinstalldirs)'
5267  else
5268    mkdir_p='$(install_sh) -d'
5269  fi