source: ThirdParty/Mumps/stable/1.4/configure @ 2315

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

sync with trunk rev2312

File size: 866.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps 1.4.
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 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='1.4'
433PACKAGE_STRING='ThirdPartyMumps 1.4'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS CPP EGREP MY_DEFS LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB 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 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps 1.4 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps 1.4:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-mumps compile project Mumps with debug compiler flags
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --disable-dependency-tracking  speeds up one-time build
1088  --enable-dependency-tracking   do not reject slow dependency extractors
1089  --enable-maintainer-mode  enable make rules and dependencies not useful
1090                          (and sometimes confusing) to the casual installer
1091  --enable-shared[=PKGS]
1092                          build shared libraries [default=yes]
1093  --enable-fast-install[=PKGS]
1094                          optimize for fast installation [default=yes]
1095  --disable-libtool-lock  avoid locking (might break parallel builds)
1096  --disable-pkg-config    disable use of pkg-config (if available)
1097  --disable-interpackage-dependencies
1098                          disables deduction of Makefile dependencies from
1099                          package linker flags
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1104  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1105  --with-mumps-checklevel specify the sanity check level for project Mumps
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111  --with-blas             specify BLAS library (or BUILD to enforce use of
1112                          ThirdParty/Blas)
1113
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-blas-lib linker flags for using package Blas
1117  --with-blas-incdir directory with header files for using package Blas
1118  --with-blas-datadir directory with data files for using package Blas
1119  --with-metis-lib linker flags for using package Metis
1120  --with-metis-incdir directory with header files for using package Metis
1121  --with-metis-datadir directory with data files for using package Metis
1122
1123Some influential environment variables:
1124  CDEFS       Additional -D flags to be used when compiling C code.
1125  ADD_CFLAGS  Additional C compiler options
1126  DBG_CFLAGS  Debug C compiler options
1127  OPT_CFLAGS  Optimize C compiler options
1128  CC          C compiler command
1129  CFLAGS      C compiler flags
1130  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1131              nonstandard directory <lib dir>
1132  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1133              headers in a nonstandard directory <include dir>
1134  MPICC       C MPI Compiler
1135  ADD_FFLAGS  Additional Fortran compiler options
1136  DBG_FFLAGS  Debug Fortran compiler options
1137  OPT_FFLAGS  Optimize Fortran compiler options
1138  F77         Fortran 77 compiler command
1139  FFLAGS      Fortran 77 compiler flags
1140  MPIF77      Fortran MPI Compiler
1141  CPP         C preprocessor
1142  CXX         C++ compiler command
1143  CXXFLAGS    C++ compiler flags
1144  CXXCPP      C++ preprocessor
1145  PKG_CONFIG  path to pkg-config utility
1146
1147Use these variables to override the choices made by `configure' or to help
1148it to find libraries and programs with nonstandard names/locations.
1149
1150Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1151_ACEOF
1152fi
1153
1154if test "$ac_init_help" = "recursive"; then
1155  # If there are subdirs, report their specific --help.
1156  ac_popdir=`pwd`
1157  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1158    test -d $ac_dir || continue
1159    ac_builddir=.
1160
1161if test "$ac_dir" != .; then
1162  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1163  # A "../" for each directory in $ac_dir_suffix.
1164  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1165else
1166  ac_dir_suffix= ac_top_builddir=
1167fi
1168
1169case $srcdir in
1170  .)  # No --srcdir option.  We are building in place.
1171    ac_srcdir=.
1172    if test -z "$ac_top_builddir"; then
1173       ac_top_srcdir=.
1174    else
1175       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1176    fi ;;
1177  [\\/]* | ?:[\\/]* )  # Absolute path.
1178    ac_srcdir=$srcdir$ac_dir_suffix;
1179    ac_top_srcdir=$srcdir ;;
1180  *) # Relative path.
1181    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1182    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1183esac
1184
1185# Do not use `cd foo && pwd` to compute absolute paths, because
1186# the directories may not exist.
1187case `pwd` in
1188.) ac_abs_builddir="$ac_dir";;
1189*)
1190  case "$ac_dir" in
1191  .) ac_abs_builddir=`pwd`;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1193  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_top_builddir=${ac_top_builddir}.;;
1198*)
1199  case ${ac_top_builddir}. in
1200  .) ac_abs_top_builddir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1202  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1203  esac;;
1204esac
1205case $ac_abs_builddir in
1206.) ac_abs_srcdir=$ac_srcdir;;
1207*)
1208  case $ac_srcdir in
1209  .) ac_abs_srcdir=$ac_abs_builddir;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1211  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1212  esac;;
1213esac
1214case $ac_abs_builddir in
1215.) ac_abs_top_srcdir=$ac_top_srcdir;;
1216*)
1217  case $ac_top_srcdir in
1218  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1220  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1221  esac;;
1222esac
1223
1224    cd $ac_dir
1225    # Check for guested configure; otherwise get Cygnus style configure.
1226    if test -f $ac_srcdir/configure.gnu; then
1227      echo
1228      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1229    elif test -f $ac_srcdir/configure; then
1230      echo
1231      $SHELL $ac_srcdir/configure  --help=recursive
1232    elif test -f $ac_srcdir/configure.ac ||
1233           test -f $ac_srcdir/configure.in; then
1234      echo
1235      $ac_configure --help
1236    else
1237      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1238    fi
1239    cd $ac_popdir
1240  done
1241fi
1242
1243test -n "$ac_init_help" && exit 0
1244if $ac_init_version; then
1245  cat <<\_ACEOF
1246ThirdPartyMumps configure 1.4
1247generated by GNU Autoconf 2.59
1248
1249Copyright (C) 2003 Free Software Foundation, Inc.
1250This configure script is free software; the Free Software Foundation
1251gives unlimited permission to copy, distribute and modify it.
1252
1253
1254Copyright 2007-2009 International Business Machines and others.
1255All Rights Reserved.
1256This file is part of the open source package Coin which is distributed
1257under the Eclipse Public License.
1258_ACEOF
1259  exit 0
1260fi
1261exec 5>config.log
1262cat >&5 <<_ACEOF
1263This file contains any messages produced by compilers while
1264running configure, to aid debugging if configure makes a mistake.
1265
1266It was created by ThirdPartyMumps $as_me 1.4, which was
1267generated by GNU Autoconf 2.59.  Invocation command line was
1268
1269  $ $0 $@
1270
1271_ACEOF
1272{
1273cat <<_ASUNAME
1274## --------- ##
1275## Platform. ##
1276## --------- ##
1277
1278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1279uname -m = `(uname -m) 2>/dev/null || echo unknown`
1280uname -r = `(uname -r) 2>/dev/null || echo unknown`
1281uname -s = `(uname -s) 2>/dev/null || echo unknown`
1282uname -v = `(uname -v) 2>/dev/null || echo unknown`
1283
1284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1285/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1286
1287/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1288/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1290hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1291/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1292/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1293/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1294
1295_ASUNAME
1296
1297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1298for as_dir in $PATH
1299do
1300  IFS=$as_save_IFS
1301  test -z "$as_dir" && as_dir=.
1302  echo "PATH: $as_dir"
1303done
1304
1305} >&5
1306
1307cat >&5 <<_ACEOF
1308
1309
1310## ----------- ##
1311## Core tests. ##
1312## ----------- ##
1313
1314_ACEOF
1315
1316
1317# Keep a trace of the command line.
1318# Strip out --no-create and --no-recursion so they do not pile up.
1319# Strip out --silent because we don't want to record it for future runs.
1320# Also quote any args containing shell meta-characters.
1321# Make two passes to allow for proper duplicate-argument suppression.
1322ac_configure_args=
1323ac_configure_args0=
1324ac_configure_args1=
1325ac_sep=
1326ac_must_keep_next=false
1327for ac_pass in 1 2
1328do
1329  for ac_arg
1330  do
1331    case $ac_arg in
1332    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1333    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1334    | -silent | --silent | --silen | --sile | --sil)
1335      continue ;;
1336    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1338    esac
1339    case $ac_pass in
1340    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1341    2)
1342      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1343      if test $ac_must_keep_next = true; then
1344        ac_must_keep_next=false # Got value, back to normal.
1345      else
1346        case $ac_arg in
1347          *=* | --config-cache | -C | -disable-* | --disable-* \
1348          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1349          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1350          | -with-* | --with-* | -without-* | --without-* | --x)
1351            case "$ac_configure_args0 " in
1352              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1353            esac
1354            ;;
1355          -* ) ac_must_keep_next=true ;;
1356        esac
1357      fi
1358      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1359      # Get rid of the leading space.
1360      ac_sep=" "
1361      ;;
1362    esac
1363  done
1364done
1365$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1366$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1367
1368# When interrupted or exit'd, cleanup temporary files, and complete
1369# config.log.  We remove comments because anyway the quotes in there
1370# would cause problems or look ugly.
1371# WARNING: Be sure not to use single quotes in there, as some shells,
1372# such as our DU 5.0 friend, will then `close' the trap.
1373trap 'exit_status=$?
1374  # Save into config.log some information that might help in debugging.
1375  {
1376    echo
1377
1378    cat <<\_ASBOX
1379## ---------------- ##
1380## Cache variables. ##
1381## ---------------- ##
1382_ASBOX
1383    echo
1384    # The following way of writing the cache mishandles newlines in values,
1385{
1386  (set) 2>&1 |
1387    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1388    *ac_space=\ *)
1389      sed -n \
1390        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1391          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1392      ;;
1393    *)
1394      sed -n \
1395        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1396      ;;
1397    esac;
1398}
1399    echo
1400
1401    cat <<\_ASBOX
1402## ----------------- ##
1403## Output variables. ##
1404## ----------------- ##
1405_ASBOX
1406    echo
1407    for ac_var in $ac_subst_vars
1408    do
1409      eval ac_val=$`echo $ac_var`
1410      echo "$ac_var='"'"'$ac_val'"'"'"
1411    done | sort
1412    echo
1413
1414    if test -n "$ac_subst_files"; then
1415      cat <<\_ASBOX
1416## ------------- ##
1417## Output files. ##
1418## ------------- ##
1419_ASBOX
1420      echo
1421      for ac_var in $ac_subst_files
1422      do
1423        eval ac_val=$`echo $ac_var`
1424        echo "$ac_var='"'"'$ac_val'"'"'"
1425      done | sort
1426      echo
1427    fi
1428
1429    if test -s confdefs.h; then
1430      cat <<\_ASBOX
1431## ----------- ##
1432## confdefs.h. ##
1433## ----------- ##
1434_ASBOX
1435      echo
1436      sed "/^$/d" confdefs.h | sort
1437      echo
1438    fi
1439    test "$ac_signal" != 0 &&
1440      echo "$as_me: caught signal $ac_signal"
1441    echo "$as_me: exit $exit_status"
1442  } >&5
1443  rm -f core *.core &&
1444  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1445    exit $exit_status
1446     ' 0
1447for ac_signal in 1 2 13 15; do
1448  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1449done
1450ac_signal=0
1451
1452# confdefs.h avoids OS command line length limits that DEFS can exceed.
1453rm -rf conftest* confdefs.h
1454# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1455echo >confdefs.h
1456
1457# Predefined preprocessor variables.
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_NAME "$PACKAGE_NAME"
1461_ACEOF
1462
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1466_ACEOF
1467
1468
1469cat >>confdefs.h <<_ACEOF
1470#define PACKAGE_VERSION "$PACKAGE_VERSION"
1471_ACEOF
1472
1473
1474cat >>confdefs.h <<_ACEOF
1475#define PACKAGE_STRING "$PACKAGE_STRING"
1476_ACEOF
1477
1478
1479cat >>confdefs.h <<_ACEOF
1480#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1481_ACEOF
1482
1483
1484# Let the site file select an alternate cache file if it wants to.
1485# Prefer explicitly selected file to automatically selected ones.
1486if test -z "$CONFIG_SITE"; then
1487  if test "x$prefix" != xNONE; then
1488    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1489  else
1490    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1491  fi
1492fi
1493for ac_site_file in $CONFIG_SITE; do
1494  if test -r "$ac_site_file"; then
1495    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1496echo "$as_me: loading site script $ac_site_file" >&6;}
1497    sed 's/^/| /' "$ac_site_file" >&5
1498    . "$ac_site_file"
1499  fi
1500done
1501
1502if test -r "$cache_file"; then
1503  # Some versions of bash will fail to source /dev/null (special
1504  # files actually), so we avoid doing that.
1505  if test -f "$cache_file"; then
1506    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1507echo "$as_me: loading cache $cache_file" >&6;}
1508    case $cache_file in
1509      [\\/]* | ?:[\\/]* ) . $cache_file;;
1510      *)                      . ./$cache_file;;
1511    esac
1512  fi
1513else
1514  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1515echo "$as_me: creating cache $cache_file" >&6;}
1516  >$cache_file
1517fi
1518
1519# Check that the precious variables saved in the cache have kept the same
1520# value.
1521ac_cache_corrupted=false
1522for ac_var in `(set) 2>&1 |
1523               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1524  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1525  eval ac_new_set=\$ac_env_${ac_var}_set
1526  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1527  eval ac_new_val="\$ac_env_${ac_var}_value"
1528  case $ac_old_set,$ac_new_set in
1529    set,)
1530      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1531echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1532      ac_cache_corrupted=: ;;
1533    ,set)
1534      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1535echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1536      ac_cache_corrupted=: ;;
1537    ,);;
1538    *)
1539      if test "x$ac_old_val" != "x$ac_new_val"; then
1540        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1541echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1542        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1543echo "$as_me:   former value:  $ac_old_val" >&2;}
1544        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1545echo "$as_me:   current value: $ac_new_val" >&2;}
1546        ac_cache_corrupted=:
1547      fi;;
1548  esac
1549  # Pass precious variables to config.status.
1550  if test "$ac_new_set" = set; then
1551    case $ac_new_val in
1552    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1553      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1554    *) ac_arg=$ac_var=$ac_new_val ;;
1555    esac
1556    case " $ac_configure_args " in
1557      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1558      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1559    esac
1560  fi
1561done
1562if $ac_cache_corrupted; then
1563  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1564echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1565  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1566echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1567   { (exit 1); exit 1; }; }
1568fi
1569
1570ac_ext=c
1571ac_cpp='$CPP $CPPFLAGS'
1572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1600
1601
1602
1603
1604
1605# List one file in the package so that the configure script can test
1606# whether the package is actually there
1607
1608
1609# Where should everything be installed by default?  Here, we want it
1610# to be installed directly in 'bin', 'lib', 'include' subdirectories
1611# of the directory where configure is run.  The default would be
1612# /usr/local.
1613
1614
1615
1616# As backup, we make sure we don't loose an FLIBS if it has been set
1617# by the user
1618save_FLIBS="$FLIBS"
1619
1620# A useful makefile conditional that is always false
1621
1622
1623if false; then
1624  ALWAYS_FALSE_TRUE=
1625  ALWAYS_FALSE_FALSE='#'
1626else
1627  ALWAYS_FALSE_TRUE='#'
1628  ALWAYS_FALSE_FALSE=
1629fi
1630
1631
1632# We set the following variable so that we know later in AC_COIN_FINALIZE
1633# that we are in a project main directory
1634coin_projectdir=yes
1635
1636# Set the project's version numbers
1637
1638
1639cat >>confdefs.h <<_ACEOF
1640#define MUMPS_VERSION "$PACKAGE_VERSION"
1641_ACEOF
1642
1643
1644  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1645  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1646  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1647  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1648  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1649  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1650
1651cat >>confdefs.h <<_ACEOF
1652#define MUMPS_VERSION_MAJOR $coin_majorver
1653_ACEOF
1654
1655
1656cat >>confdefs.h <<_ACEOF
1657#define MUMPS_VERSION_MINOR $coin_minorver
1658_ACEOF
1659
1660
1661cat >>confdefs.h <<_ACEOF
1662#define MUMPS_VERSION_RELEASE $coin_releasever
1663_ACEOF
1664
1665
1666  # We use the following variable to have a string with the upper case
1667  # version of the project name
1668  COIN_PRJCT=MUMPS
1669
1670  # Set the project's SVN revision number. The complicated sed expression
1671  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1672  # as a single number.
1673  # Extract the first word of "svnversion", so it can be a program name with args.
1674set dummy svnversion; ac_word=$2
1675echo "$as_me:$LINENO: checking for $ac_word" >&5
1676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677if test "${ac_cv_prog_have_svnversion+set}" = set; then
1678  echo $ECHO_N "(cached) $ECHO_C" >&6
1679else
1680  if test -n "$have_svnversion"; then
1681  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1682else
1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686  IFS=$as_save_IFS
1687  test -z "$as_dir" && as_dir=.
1688  for ac_exec_ext in '' $ac_executable_extensions; do
1689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690    ac_cv_prog_have_svnversion="yes"
1691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692    break 2
1693  fi
1694done
1695done
1696
1697  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1698fi
1699fi
1700have_svnversion=$ac_cv_prog_have_svnversion
1701if test -n "$have_svnversion"; then
1702  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1703echo "${ECHO_T}$have_svnversion" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709  if test "x$have_svnversion" = xyes; then
1710
1711    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1712    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1713      MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1714
1715cat >>confdefs.h <<_ACEOF
1716#define MUMPS_SVN_REV $MUMPS_SVN_REV
1717_ACEOF
1718
1719    fi
1720  fi
1721
1722
1723
1724# Capture libtool library version, if given.
1725
1726
1727
1728
1729#############################################################################
1730#                         Standard build tool stuff                         #
1731#############################################################################
1732
1733# Get the system type
1734ac_aux_dir=
1735for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1736  if test -f $ac_dir/install-sh; then
1737    ac_aux_dir=$ac_dir
1738    ac_install_sh="$ac_aux_dir/install-sh -c"
1739    break
1740  elif test -f $ac_dir/install.sh; then
1741    ac_aux_dir=$ac_dir
1742    ac_install_sh="$ac_aux_dir/install.sh -c"
1743    break
1744  elif test -f $ac_dir/shtool; then
1745    ac_aux_dir=$ac_dir
1746    ac_install_sh="$ac_aux_dir/shtool install -c"
1747    break
1748  fi
1749done
1750if test -z "$ac_aux_dir"; then
1751  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1752echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1753   { (exit 1); exit 1; }; }
1754fi
1755ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1756ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1757ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1758
1759# Make sure we can run config.sub.
1760$ac_config_sub sun4 >/dev/null 2>&1 ||
1761  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763   { (exit 1); exit 1; }; }
1764
1765echo "$as_me:$LINENO: checking build system type" >&5
1766echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767if test "${ac_cv_build+set}" = set; then
1768  echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770  ac_cv_build_alias=$build_alias
1771test -z "$ac_cv_build_alias" &&
1772  ac_cv_build_alias=`$ac_config_guess`
1773test -z "$ac_cv_build_alias" &&
1774  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776   { (exit 1); exit 1; }; }
1777ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780   { (exit 1); exit 1; }; }
1781
1782fi
1783echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784echo "${ECHO_T}$ac_cv_build" >&6
1785build=$ac_cv_build
1786build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791
1792#turn off warnings and pedantic mode since they could make trouble on some platforms,
1793#and we couldn't fix them anyway
1794coin_skip_warn_cflags=yes
1795coin_skip_warn_fflags=yes
1796
1797# Check if user wants to produce debugging code
1798
1799echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1800echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1801
1802# Check whether --enable-debug or --disable-debug was given.
1803if test "${enable_debug+set}" = set; then
1804  enableval="$enable_debug"
1805  case "${enableval}" in
1806   yes) coin_debug_compile=true
1807        if test "${enable_shared+set}" = set; then :; else
1808          enable_shared=no
1809        fi
1810        ;;
1811   no)  coin_debug_compile=false
1812        ;;
1813   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1814echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1815   { (exit 1); exit 1; }; }
1816        ;;
1817esac
1818else
1819  coin_debug_compile=false
1820fi;
1821
1822# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1823if test "${enable_debug_mumps+set}" = set; then
1824  enableval="$enable_debug_mumps"
1825  case "${enableval}" in
1826    yes) coin_debug_compile=true
1827         ;;
1828    no)  coin_debug_compile=false
1829         ;;
1830    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1831echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1832   { (exit 1); exit 1; }; }
1833         ;;
1834 esac
1835else
1836  :
1837fi;
1838
1839 # m4_ifvaln([Mumps],
1840
1841if test $coin_debug_compile = true; then
1842  echo "$as_me:$LINENO: result: yes" >&5
1843echo "${ECHO_T}yes" >&6
1844else
1845  echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849
1850# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1851if test "${with_mumps_verbosity+set}" = set; then
1852  withval="$with_mumps_verbosity"
1853  if test "$withval" = yes; then
1854                withval=1
1855              fi
1856              coin_mumps_verbosity=$withval
1857else
1858  coin_mumps_verbosity=0
1859fi;
1860
1861cat >>confdefs.h <<_ACEOF
1862#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1863_ACEOF
1864
1865
1866
1867# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1868if test "${with_mumps_checklevel+set}" = set; then
1869  withval="$with_mumps_checklevel"
1870  if test "$withval" = yes; then
1871                withval=1
1872              fi
1873              coin_mumps_checklevel=$withval
1874else
1875  coin_mumps_checklevel=0
1876fi;
1877
1878cat >>confdefs.h <<_ACEOF
1879#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1880_ACEOF
1881
1882
1883 # m4_ifvaln([Mumps],
1884
1885
1886
1887# Get the name of the C compiler
1888case $build in
1889  *-mingw*)
1890    if test "${LD+set}" = set; then :; else
1891      LD=link
1892    fi
1893    ;;
1894 esac
1895 case $enable_doscompile in
1896   msvc)
1897     if test "x${LD+set}" = xset; then :; else
1898       LD=link
1899     fi
1900     ;;
1901 esac
1902
1903
1904 # Check whether --enable-doscompile or --disable-doscompile was given.
1905if test "${enable_doscompile+set}" = set; then
1906  enableval="$enable_doscompile"
1907  if test "$enable_doscompile" != no; then
1908     case $build in
1909       *-cygwin* | *-mingw*) ;;
1910       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1911echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1912   { (exit 1); exit 1; }; } ;;
1913     esac
1914   fi
1915else
1916  enable_doscompile=no
1917fi;
1918 case "$enable_doscompile" in
1919   mingw)
1920     case $build in
1921       *-mingw*) enable_doscompile=no ;;
1922     esac
1923     ;;
1924   msvc|no) ;;
1925   yes) enable_doscompile=mingw ;;
1926   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1927                    Try configure --help=recursive." >&5
1928echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1929                    Try configure --help=recursive." >&2;}
1930   { (exit 1); exit 1; }; }
1931      ;;
1932  esac
1933  if test "$enable_doscompile" != no ; then
1934    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1935echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1936  fi
1937
1938
1939
1940
1941ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946
1947
1948# For consistency, we set the C compiler to the same value of the C++
1949# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1950if test x"$CXX" != x; then
1951  case "$CXX" in
1952    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1953      if test x"$CC" = x; then
1954        CC="$CXX"
1955        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1956echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1957      fi
1958      ;;
1959  esac
1960fi
1961
1962
1963
1964
1965
1966
1967coin_has_cc=yes
1968
1969save_cflags="$CFLAGS"
1970
1971# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1972# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1973# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1974# compiler. In this case, put cc after gcc.
1975
1976case $build in
1977  *-cygwin* | *-mingw*)
1978             if test "$enable_doscompile" = msvc ; then
1979               comps="icl cl"
1980             else
1981               comps="gcc cl"
1982             fi ;;
1983  *-*-solaris*)
1984             # Extract the first word of "cc", so it can be a program name with args.
1985set dummy cc; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1989  echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991  if test -n "$sol_cc_compiler"; then
1992  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1993else
1994  ac_prog_rejected=no
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998  IFS=$as_save_IFS
1999  test -z "$as_dir" && as_dir=.
2000  for ac_exec_ext in '' $ac_executable_extensions; do
2001  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2003       ac_prog_rejected=yes
2004       continue
2005     fi
2006    ac_cv_prog_sol_cc_compiler="cc"
2007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008    break 2
2009  fi
2010done
2011done
2012
2013if test $ac_prog_rejected = yes; then
2014  # We found a bogon in the path, so make sure we never use it.
2015  set dummy $ac_cv_prog_sol_cc_compiler
2016  shift
2017  if test $# != 0; then
2018    # We chose a different compiler from the bogus one.
2019    # However, it has the same basename, so the bogon will be chosen
2020    # first if we set sol_cc_compiler to just the basename; use the full file name.
2021    shift
2022    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2023  fi
2024fi
2025fi
2026fi
2027sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2028if test -n "$sol_cc_compiler"; then
2029  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2030echo "${ECHO_T}$sol_cc_compiler" >&6
2031else
2032  echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6
2034fi
2035
2036             if test "$sol_cc_compiler" = "cc" ; then
2037               comps="cc xlc gcc pgcc icc"
2038             else
2039               comps="xlc gcc pgcc icc cc"
2040             fi
2041             ;;
2042  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2043  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2044  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2045esac
2046
2047# We delete the cached value, since the test might not have been
2048# performed with our choice of compilers earlier
2049$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2050# AC_MSG_NOTICE([C compiler candidates: $comps])
2051ac_ext=c
2052ac_cpp='$CPP $CPPFLAGS'
2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056if test -n "$ac_tool_prefix"; then
2057  for ac_prog in $comps
2058  do
2059    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063if test "${ac_cv_prog_CC+set}" = set; then
2064  echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066  if test -n "$CC"; then
2067  ac_cv_prog_CC="$CC" # Let the user override the test.
2068else
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072  IFS=$as_save_IFS
2073  test -z "$as_dir" && as_dir=.
2074  for ac_exec_ext in '' $ac_executable_extensions; do
2075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078    break 2
2079  fi
2080done
2081done
2082
2083fi
2084fi
2085CC=$ac_cv_prog_CC
2086if test -n "$CC"; then
2087  echo "$as_me:$LINENO: result: $CC" >&5
2088echo "${ECHO_T}$CC" >&6
2089else
2090  echo "$as_me:$LINENO: result: no" >&5
2091echo "${ECHO_T}no" >&6
2092fi
2093
2094    test -n "$CC" && break
2095  done
2096fi
2097if test -z "$CC"; then
2098  ac_ct_CC=$CC
2099  for ac_prog in $comps
2100do
2101  # Extract the first word of "$ac_prog", so it can be a program name with args.
2102set dummy $ac_prog; ac_word=$2
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  if test -n "$ac_ct_CC"; then
2109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110else
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_exec_ext in '' $ac_executable_extensions; do
2117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118    ac_cv_prog_ac_ct_CC="$ac_prog"
2119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120    break 2
2121  fi
2122done
2123done
2124
2125fi
2126fi
2127ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128if test -n "$ac_ct_CC"; then
2129  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130echo "${ECHO_T}$ac_ct_CC" >&6
2131else
2132  echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6
2134fi
2135
2136  test -n "$ac_ct_CC" && break
2137done
2138
2139  CC=$ac_ct_CC
2140fi
2141
2142
2143test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2144See \`config.log' for more details." >&5
2145echo "$as_me: error: no acceptable C compiler found in \$PATH
2146See \`config.log' for more details." >&2;}
2147   { (exit 1); exit 1; }; }
2148
2149# Provide some information about the compiler.
2150echo "$as_me:$LINENO:" \
2151     "checking for C compiler version" >&5
2152ac_compiler=`set X $ac_compile; echo $2`
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2154  (eval $ac_compiler --version </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2159  (eval $ac_compiler -v </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2164  (eval $ac_compiler -V </dev/null >&5) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }
2168
2169cat >conftest.$ac_ext <<_ACEOF
2170/* confdefs.h.  */
2171_ACEOF
2172cat confdefs.h >>conftest.$ac_ext
2173cat >>conftest.$ac_ext <<_ACEOF
2174/* end confdefs.h.  */
2175
2176int
2177main ()
2178{
2179
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184ac_clean_files_save=$ac_clean_files
2185ac_clean_files="$ac_clean_files a.out a.exe b.out"
2186# Try to create an executable without -o first, disregard a.out.
2187# It will help us diagnose broken compilers, and finding out an intuition
2188# of exeext.
2189echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2190echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2191ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2192if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2193  (eval $ac_link_default) 2>&5
2194  ac_status=$?
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); }; then
2197  # Find the output, starting from the most likely.  This scheme is
2198# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2199# resort.
2200
2201# Be careful to initialize this variable, since it used to be cached.
2202# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2203ac_cv_exeext=
2204# b.out is created by i960 compilers.
2205for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2206do
2207  test -f "$ac_file" || continue
2208  case $ac_file in
2209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2210        ;;
2211    conftest.$ac_ext )
2212        # This is the source file.
2213        ;;
2214    [ab].out )
2215        # We found the default executable, but exeext='' is most
2216        # certainly right.
2217        break;;
2218    *.* )
2219        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220        # FIXME: I believe we export ac_cv_exeext for Libtool,
2221        # but it would be cool to find out if it's true.  Does anybody
2222        # maintain Libtool? --akim.
2223        export ac_cv_exeext
2224        break;;
2225    * )
2226        break;;
2227  esac
2228done
2229else
2230  echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: C compiler cannot create executables
2236See \`config.log' for more details." >&2;}
2237   { (exit 77); exit 77; }; }
2238fi
2239
2240ac_exeext=$ac_cv_exeext
2241echo "$as_me:$LINENO: result: $ac_file" >&5
2242echo "${ECHO_T}$ac_file" >&6
2243
2244# Check the compiler produces executables we can run.  If not, either
2245# the compiler is broken, or we cross compile.
2246echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2248# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249# If not cross compiling, check that we can run a simple program.
2250if test "$cross_compiling" != yes; then
2251  if { ac_try='./$ac_file'
2252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253  (eval $ac_try) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; }; then
2257    cross_compiling=no
2258  else
2259    if test "$cross_compiling" = maybe; then
2260        cross_compiling=yes
2261    else
2262        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263If you meant to cross compile, use \`--host'.
2264See \`config.log' for more details." >&5
2265echo "$as_me: error: cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details." >&2;}
2268   { (exit 1); exit 1; }; }
2269    fi
2270  fi
2271fi
2272echo "$as_me:$LINENO: result: yes" >&5
2273echo "${ECHO_T}yes" >&6
2274
2275rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276ac_clean_files=$ac_clean_files_save
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2281echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282echo "${ECHO_T}$cross_compiling" >&6
2283
2284echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2287  (eval $ac_link) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); }; then
2291  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2293# work properly (i.e., refer to `conftest.exe'), while it won't with
2294# `rm'.
2295for ac_file in conftest.exe conftest conftest.*; do
2296  test -f "$ac_file" || continue
2297  case $ac_file in
2298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2299    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300          export ac_cv_exeext
2301          break;;
2302    * ) break;;
2303  esac
2304done
2305else
2306  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309See \`config.log' for more details." >&2;}
2310   { (exit 1); exit 1; }; }
2311fi
2312
2313rm -f conftest$ac_cv_exeext
2314echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315echo "${ECHO_T}$ac_cv_exeext" >&6
2316
2317rm -f conftest.$ac_ext
2318EXEEXT=$ac_cv_exeext
2319ac_exeext=$EXEEXT
2320echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2322if test "${ac_cv_objext+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h.  */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
2330/* end confdefs.h.  */
2331
2332int
2333main ()
2334{
2335
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340rm -f conftest.o conftest.obj
2341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342  (eval $ac_compile) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; then
2346  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2347  case $ac_file in
2348    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2349    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350       break;;
2351  esac
2352done
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&5
2359echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&2;}
2361   { (exit 1); exit 1; }; }
2362fi
2363
2364rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365fi
2366echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367echo "${ECHO_T}$ac_cv_objext" >&6
2368OBJEXT=$ac_cv_objext
2369ac_objext=$OBJEXT
2370echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2372if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373  echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375  cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h.  */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h.  */
2381
2382int
2383main ()
2384{
2385#ifndef __GNUC__
2386       choke me
2387#endif
2388
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395  (eval $ac_compile) 2>conftest.er1
2396  ac_status=$?
2397  grep -v '^ *+' conftest.er1 >conftest.err
2398  rm -f conftest.er1
2399  cat conftest.err >&5
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); } &&
2402         { ac_try='test -z "$ac_c_werror_flag"
2403                         || test ! -s conftest.err'
2404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405  (eval $ac_try) 2>&5
2406  ac_status=$?
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); }; } &&
2409         { ac_try='test -s conftest.$ac_objext'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; }; then
2415  ac_compiler_gnu=yes
2416else
2417  echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420ac_compiler_gnu=no
2421fi
2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424
2425fi
2426echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2428GCC=`test $ac_compiler_gnu = yes && echo yes`
2429ac_test_CFLAGS=${CFLAGS+set}
2430ac_save_CFLAGS=$CFLAGS
2431CFLAGS="-g"
2432echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434if test "${ac_cv_prog_cc_g+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443
2444int
2445main ()
2446{
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  ac_cv_prog_cc_g=yes
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479ac_cv_prog_cc_g=no
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485if test "$ac_test_CFLAGS" = set; then
2486  CFLAGS=$ac_save_CFLAGS
2487elif test $ac_cv_prog_cc_g = yes; then
2488  if test "$GCC" = yes; then
2489    CFLAGS="-g -O2"
2490  else
2491    CFLAGS="-g"
2492  fi
2493else
2494  if test "$GCC" = yes; then
2495    CFLAGS="-O2"
2496  else
2497    CFLAGS=
2498  fi
2499fi
2500echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503  echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505  ac_cv_prog_cc_stdc=no
2506ac_save_CC=$CC
2507cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h.  */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h.  */
2513#include <stdarg.h>
2514#include <stdio.h>
2515#include <sys/types.h>
2516#include <sys/stat.h>
2517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2518struct buf { int x; };
2519FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520static char *e (p, i)
2521     char **p;
2522     int i;
2523{
2524  return p[i];
2525}
2526static char *f (char * (*g) (char **, int), char **p, ...)
2527{
2528  char *s;
2529  va_list v;
2530  va_start (v,p);
2531  s = g (p, va_arg (v,int));
2532  va_end (v);
2533  return s;
2534}
2535
2536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2537   function prototypes and stuff, but not '\xHH' hex character constants.
2538   These don't provoke an error unfortunately, instead are silently treated
2539   as 'x'.  The following induces an error, until -std1 is added to get
2540   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2541   array size at least.  It's necessary to write '\x00'==0 to get something
2542   that's true only with -std1.  */
2543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2544
2545int test (int i, double x);
2546struct s1 {int (*f) (int a);};
2547struct s2 {int (*f) (double a);};
2548int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549int argc;
2550char **argv;
2551int
2552main ()
2553{
2554return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2555  ;
2556  return 0;
2557}
2558_ACEOF
2559# Don't try gcc -ansi; that turns off useful extensions and
2560# breaks some systems' header files.
2561# AIX                   -qlanglvl=ansi
2562# Ultrix and OSF/1      -std1
2563# HP-UX 10.20 and later -Ae
2564# HP-UX older versions  -Aa -D_HPUX_SOURCE
2565# SVR4                  -Xc -D__EXTENSIONS__
2566for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567do
2568  CC="$ac_save_CC $ac_arg"
2569  rm -f conftest.$ac_objext
2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571  (eval $ac_compile) 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578         { ac_try='test -z "$ac_c_werror_flag"
2579                         || test ! -s conftest.err'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; } &&
2585         { ac_try='test -s conftest.$ac_objext'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591  ac_cv_prog_cc_stdc=$ac_arg
2592break
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext
2599done
2600rm -f conftest.$ac_ext conftest.$ac_objext
2601CC=$ac_save_CC
2602
2603fi
2604
2605case "x$ac_cv_prog_cc_stdc" in
2606  x|xno)
2607    echo "$as_me:$LINENO: result: none needed" >&5
2608echo "${ECHO_T}none needed" >&6 ;;
2609  *)
2610    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2611echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2612    CC="$CC $ac_cv_prog_cc_stdc" ;;
2613esac
2614
2615# Some people use a C++ compiler to compile C.  Since we use `exit',
2616# in C++ we need to declare it.  In case someone uses the same compiler
2617# for both compiling C and C++ we need to have the C++ compiler decide
2618# the declaration of exit, since it's the most demanding environment.
2619cat >conftest.$ac_ext <<_ACEOF
2620#ifndef __cplusplus
2621  choke me
2622#endif
2623_ACEOF
2624rm -f conftest.$ac_objext
2625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626  (eval $ac_compile) 2>conftest.er1
2627  ac_status=$?
2628  grep -v '^ *+' conftest.er1 >conftest.err
2629  rm -f conftest.er1
2630  cat conftest.err >&5
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); } &&
2633         { ac_try='test -z "$ac_c_werror_flag"
2634                         || test ! -s conftest.err'
2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636  (eval $ac_try) 2>&5
2637  ac_status=$?
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); }; } &&
2640         { ac_try='test -s conftest.$ac_objext'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; }; then
2646  for ac_declaration in \
2647   '' \
2648   'extern "C" void std::exit (int) throw (); using std::exit;' \
2649   'extern "C" void std::exit (int); using std::exit;' \
2650   'extern "C" void exit (int) throw ();' \
2651   'extern "C" void exit (int);' \
2652   'void exit (int);'
2653do
2654  cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h.  */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h.  */
2660$ac_declaration
2661#include <stdlib.h>
2662int
2663main ()
2664{
2665exit (42);
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672  (eval $ac_compile) 2>conftest.er1
2673  ac_status=$?
2674  grep -v '^ *+' conftest.er1 >conftest.err
2675  rm -f conftest.er1
2676  cat conftest.err >&5
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); } &&
2679         { ac_try='test -z "$ac_c_werror_flag"
2680                         || test ! -s conftest.err'
2681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682  (eval $ac_try) 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; } &&
2686         { ac_try='test -s conftest.$ac_objext'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; }; then
2692  :
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697continue
2698fi
2699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700  cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h.  */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h.  */
2706$ac_declaration
2707int
2708main ()
2709{
2710exit (42);
2711  ;
2712  return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717  (eval $ac_compile) 2>conftest.er1
2718  ac_status=$?
2719  grep -v '^ *+' conftest.er1 >conftest.err
2720  rm -f conftest.er1
2721  cat conftest.err >&5
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); } &&
2724         { ac_try='test -z "$ac_c_werror_flag"
2725                         || test ! -s conftest.err'
2726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727  (eval $ac_try) 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }; } &&
2731         { ac_try='test -s conftest.$ac_objext'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; }; then
2737  break
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744done
2745rm -f conftest*
2746if test -n "$ac_declaration"; then
2747  echo '#ifdef __cplusplus' >>confdefs.h
2748  echo $ac_declaration      >>confdefs.h
2749  echo '#endif'             >>confdefs.h
2750fi
2751
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756fi
2757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764if test -z "$CC" ; then
2765  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2766echo "$as_me: error: Failed to find a C compiler!" >&2;}
2767   { (exit 1); exit 1; }; }
2768fi
2769# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2770case "$CC" in
2771  cl* | */cl* | CL* | */CL* )
2772    if test "$ac_cv_prog_cc_g" = yes ; then
2773      ac_cv_prog_cc_g=no
2774      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2775echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2776    fi ;;
2777esac
2778CFLAGS="$save_cflags"
2779
2780# add automake conditional so we can recognize cl compiler in makefile
2781coin_cc_is_cl=false
2782case "$CC" in
2783  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2784    coin_cc_is_cl=true
2785    ;;
2786esac
2787
2788
2789if test $coin_cc_is_cl = true; then
2790  COIN_CC_IS_CL_TRUE=
2791  COIN_CC_IS_CL_FALSE='#'
2792else
2793  COIN_CC_IS_CL_TRUE='#'
2794  COIN_CC_IS_CL_FALSE=
2795fi
2796
2797
2798# Check if a project specific CFLAGS variable has been set
2799if test x$COIN_PRJCT != x; then
2800  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2801  if test x$coin_tmp = xset; then
2802    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2803  fi
2804fi
2805
2806if test x"$CFLAGS" = x; then
2807
2808  coin_add_cflags=
2809  coin_opt_cflags=
2810  coin_dbg_cflags=
2811  coin_warn_cflags=
2812
2813  if test "$GCC" = "yes"; then
2814    case "$CC" in
2815      icc* | */icc*)
2816        ;;
2817      *)
2818        coin_opt_cflags="-O3"
2819        coin_add_cflags="-pipe"
2820        coin_dbg_cflags="-g -O0"
2821        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2822        case $build in
2823          *-darwin*)
2824            ;;
2825          *)
2826            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2827            ;;
2828        esac
2829        case $enable_doscompile in
2830          mingw)
2831            CFLAGS="-mno-cygwin"
2832            cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h.  */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h.  */
2838
2839int
2840main ()
2841{
2842int i=0; i++;
2843  ;
2844  return 0;
2845}
2846_ACEOF
2847rm -f conftest.$ac_objext conftest$ac_exeext
2848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849  (eval $ac_link) 2>conftest.er1
2850  ac_status=$?
2851  grep -v '^ *+' conftest.er1 >conftest.err
2852  rm -f conftest.er1
2853  cat conftest.err >&5
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); } &&
2856         { ac_try='test -z "$ac_c_werror_flag"
2857                         || test ! -s conftest.err'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; } &&
2863         { ac_try='test -s conftest$ac_exeext'
2864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865  (eval $ac_try) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }; }; then
2869  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2870else
2871  echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874fi
2875rm -f conftest.err conftest.$ac_objext \
2876      conftest$ac_exeext conftest.$ac_ext
2877            CFLAGS=
2878          ;;
2879        esac
2880    esac
2881  fi
2882  if test -z "$coin_opt_cflags"; then
2883    case $build in
2884      *-cygwin* | *-mingw*)
2885        case "$CC" in
2886          cl* | */cl* | CL* | */CL*)
2887            coin_opt_cflags='-MT -O2'
2888            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2889            coin_dbg_cflags='-MTd'
2890            ;;
2891          icl* | */icl* | ICL* | */ICL*)
2892            coin_opt_cflags='-MT -Ox'
2893            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2894            coin_dbg_cflags='-MTd -debug'
2895            ;;
2896        esac
2897        ;;
2898      *-linux-*)
2899        case "$CC" in
2900          icc* | */icc*)
2901            coin_opt_cflags="-O3 -ip -mp1"
2902            coin_add_cflags=""
2903            coin_dbg_cflags="-g"
2904            # Check if -i_dynamic is necessary (for new glibc library)
2905            CFLAGS=
2906            cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h.  */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h.  */
2912
2913int
2914main ()
2915{
2916int i=0; i++;
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921rm -f conftest.$ac_objext conftest$ac_exeext
2922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923  (eval $ac_link) 2>conftest.er1
2924  ac_status=$?
2925  grep -v '^ *+' conftest.er1 >conftest.err
2926  rm -f conftest.er1
2927  cat conftest.err >&5
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); } &&
2930         { ac_try='test -z "$ac_c_werror_flag"
2931                         || test ! -s conftest.err'
2932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933  (eval $ac_try) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }; } &&
2937         { ac_try='test -s conftest$ac_exeext'
2938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939  (eval $ac_try) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; }; then
2943  :
2944else
2945  echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948coin_add_cflags="-i_dynamic $coin_add_cflags"
2949fi
2950rm -f conftest.err conftest.$ac_objext \
2951      conftest$ac_exeext conftest.$ac_ext
2952            ;;
2953          pgcc* | */pgcc*)
2954            coin_opt_cflags="-fast"
2955            coin_add_cflags="-Kieee -pc 64"
2956            coin_dbg_cflags="-g"
2957            ;;
2958        esac
2959        ;;
2960      *-ibm-*)
2961        case "$CC" in
2962          xlc* | */xlc* | mpxlc* | */mpxlc*)
2963            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2964            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2965            coin_dbg_cflags="-g"
2966          ;;
2967        esac
2968        ;;
2969      *-hp-*)
2970        coin_opt_cflags="-O"
2971        coin_add_cflags="-Ae"
2972        coin_dbg_cflags="-g"
2973        ;;
2974      *-*-solaris*)
2975        coin_opt_cflags="-xO4"
2976        coin_dbg_cflags="-g"
2977        ;;
2978      *-sgi-*)
2979        coin_opt_cflags="-O -OPT:Olimit=0"
2980        coin_dbg_cflags="-g"
2981        ;;
2982    esac
2983  fi
2984
2985  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2986    coin_dbg_cflags="-g"
2987  fi
2988
2989  if test -z "$coin_opt_cflags"; then
2990    # Try if -O option works if nothing else is set
2991    CFLAGS="-O"
2992    cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h.  */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h.  */
2998
2999int
3000main ()
3001{
3002int i=0; i++;
3003  ;
3004  return 0;
3005}
3006_ACEOF
3007rm -f conftest.$ac_objext conftest$ac_exeext
3008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3009  (eval $ac_link) 2>conftest.er1
3010  ac_status=$?
3011  grep -v '^ *+' conftest.er1 >conftest.err
3012  rm -f conftest.er1
3013  cat conftest.err >&5
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); } &&
3016         { ac_try='test -z "$ac_c_werror_flag"
3017                         || test ! -s conftest.err'
3018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019  (eval $ac_try) 2>&5
3020  ac_status=$?
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); }; } &&
3023         { ac_try='test -s conftest$ac_exeext'
3024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025  (eval $ac_try) 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); }; }; then
3029  coin_opt_cflags="-O"
3030else
3031  echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034fi
3035rm -f conftest.err conftest.$ac_objext \
3036      conftest$ac_exeext conftest.$ac_ext
3037  fi
3038
3039  # if PM doesn't want the warning messages, take them out
3040  if test x"$coin_skip_warn_cflags" = xyes; then
3041    coin_warn_cflags=
3042  fi
3043
3044  if test x${DBG_CFLAGS+set} != xset; then
3045    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3046  fi
3047  if test x${OPT_CFLAGS+set} != xset; then
3048    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3049  fi
3050
3051  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3052  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3053
3054  if test "$coin_debug_compile" = "true"; then
3055    CFLAGS="$DBG_CFLAGS"
3056  else
3057    CFLAGS="$OPT_CFLAGS"
3058  fi
3059else
3060  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3061  if test x${DBG_CFLAGS+set} != xset; then
3062    DBG_CFLAGS="$CFLAGS"
3063  fi
3064  if test x${OPT_CFLAGS+set} != xset; then
3065    OPT_CFLAGS="$CFLAGS"
3066  fi
3067fi
3068
3069# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3070
3071case "$CFLAGS" in
3072  *-mno-cygwin*)
3073    if test x${CPPFLAGS+set} != xset ; then
3074      CPPFLAGS="-mno-cygwin"
3075    else
3076      case "$CPPFLAGS" in
3077        *-mno-cygwin*)
3078          ;;
3079        *)
3080          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3081          ;;
3082      esac
3083    fi ;;
3084esac
3085
3086# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3087if test x$COIN_PRJCT != x; then
3088  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3089fi
3090
3091# Try if CFLAGS works
3092save_CFLAGS="$CFLAGS"
3093cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099
3100int
3101main ()
3102{
3103int i=0; i++;
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext conftest$ac_exeext
3109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3110  (eval $ac_link) 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } &&
3117         { ac_try='test -z "$ac_c_werror_flag"
3118                         || test ! -s conftest.err'
3119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120  (eval $ac_try) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); }; } &&
3124         { ac_try='test -s conftest$ac_exeext'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  :
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135CFLAGS=
3136fi
3137rm -f conftest.err conftest.$ac_objext \
3138      conftest$ac_exeext conftest.$ac_ext
3139if test -z "$CFLAGS"; then
3140  { 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
3141echo "$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;}
3142  CFLAGS='-O'
3143  cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149
3150int
3151main ()
3152{
3153int i=0; i++;
3154  ;
3155  return 0;
3156}
3157_ACEOF
3158rm -f conftest.$ac_objext conftest$ac_exeext
3159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3160  (eval $ac_link) 2>conftest.er1
3161  ac_status=$?
3162  grep -v '^ *+' conftest.er1 >conftest.err
3163  rm -f conftest.er1
3164  cat conftest.err >&5
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); } &&
3167         { ac_try='test -z "$ac_c_werror_flag"
3168                         || test ! -s conftest.err'
3169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170  (eval $ac_try) 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; } &&
3174         { ac_try='test -s conftest$ac_exeext'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; }; then
3180  :
3181else
3182  echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185CFLAGS=
3186fi
3187rm -f conftest.err conftest.$ac_objext \
3188      conftest$ac_exeext conftest.$ac_ext
3189  if test -z "$CFLAGS"; then
3190    { 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
3191echo "$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;}
3192  fi
3193fi
3194
3195{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3196echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3197
3198
3199if test x"$MPICC" = x; then :; else
3200  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3201echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3202  CC="$MPICC"
3203fi
3204
3205# Correct the LD variable if we are using the MS or Intel-windows compiler
3206case "$CC" in
3207  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3208    case $build in
3209  *-mingw*)
3210    if test "${LD+set}" = set; then :; else
3211      LD=link
3212    fi
3213    ;;
3214 esac
3215 case $enable_doscompile in
3216   msvc)
3217     if test "x${LD+set}" = xset; then :; else
3218       LD=link
3219     fi
3220     ;;
3221 esac
3222
3223    ;;
3224esac
3225
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
3233
3234# Get the name of the Fortran compiler and appropriate compiler options
3235case $build in
3236  *-cygwin* | *-mingw*)
3237     if test "$enable_doscompile" = msvc ; then
3238       coin_f77_comps="ifort fl32 compile_f2c"
3239     else
3240       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3241     fi ;;
3242  *-*-solaris*)
3243     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3244  *-linux-gnu*)
3245     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3246  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3247 esac
3248
3249
3250
3251
3252
3253
3254ac_ext=f
3255ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3256ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3258
3259
3260
3261
3262
3263
3264coin_has_f77=yes
3265
3266save_fflags="$FFLAGS"
3267
3268# We delete the cached value, since the test might not have been
3269# performed with our choice of compilers earlier
3270$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3271
3272# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3273# coin_f77_comps to see if there's a program that matches one of the names.
3274# If there's no such program, F77 = unavailable. If we match the name,
3275# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3276# compiler.
3277# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3278
3279
3280{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3281echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3282if test -n "$ac_tool_prefix"; then
3283  for ac_prog in $coin_f77_comps
3284  do
3285    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287echo "$as_me:$LINENO: checking for $ac_word" >&5
3288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289if test "${ac_cv_prog_F77+set}" = set; then
3290  echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292  if test -n "$F77"; then
3293  ac_cv_prog_F77="$F77" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300  for ac_exec_ext in '' $ac_executable_extensions; do
3301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307done
3308
3309fi
3310fi
3311F77=$ac_cv_prog_F77
3312if test -n "$F77"; then
3313  echo "$as_me:$LINENO: result: $F77" >&5
3314echo "${ECHO_T}$F77" >&6
3315else
3316  echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318fi
3319
3320    test -n "$F77" && break
3321  done
3322fi
3323if test -z "$F77"; then
3324  ac_ct_F77=$F77
3325  for ac_prog in $coin_f77_comps
3326do
3327  # Extract the first word of "$ac_prog", so it can be a program name with args.
3328set dummy $ac_prog; ac_word=$2
3329echo "$as_me:$LINENO: checking for $ac_word" >&5
3330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3332  echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334  if test -n "$ac_ct_F77"; then
3335  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342  for ac_exec_ext in '' $ac_executable_extensions; do
3343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_ac_ct_F77="$ac_prog"
3345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349done
3350
3351fi
3352fi
3353ac_ct_F77=$ac_cv_prog_ac_ct_F77
3354if test -n "$ac_ct_F77"; then
3355  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3356echo "${ECHO_T}$ac_ct_F77" >&6
3357else
3358  echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360fi
3361
3362  test -n "$ac_ct_F77" && break
3363done
3364test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3365
3366  F77=$ac_ct_F77
3367fi
3368
3369
3370if test "$F77" != "unavailable" ; then
3371  ac_ext=f
3372ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3373ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3375if test -n "$ac_tool_prefix"; then
3376  for ac_prog in $coin_f77_comps
3377  do
3378    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380echo "$as_me:$LINENO: checking for $ac_word" >&5
3381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382if test "${ac_cv_prog_F77+set}" = set; then
3383  echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385  if test -n "$F77"; then
3386  ac_cv_prog_F77="$F77" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391  IFS=$as_save_IFS
3392  test -z "$as_dir" && as_dir=.
3393  for ac_exec_ext in '' $ac_executable_extensions; do
3394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400done
3401
3402fi
3403fi
3404F77=$ac_cv_prog_F77
3405if test -n "$F77"; then
3406  echo "$as_me:$LINENO: result: $F77" >&5
3407echo "${ECHO_T}$F77" >&6
3408else
3409  echo "$as_me:$LINENO: result: no" >&5
3410echo "${ECHO_T}no" >&6
3411fi
3412
3413    test -n "$F77" && break
3414  done
3415fi
3416if test -z "$F77"; then
3417  ac_ct_F77=$F77
3418  for ac_prog in $coin_f77_comps
3419do
3420  # Extract the first word of "$ac_prog", so it can be a program name with args.
3421set dummy $ac_prog; ac_word=$2
3422echo "$as_me:$LINENO: checking for $ac_word" >&5
3423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3425  echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427  if test -n "$ac_ct_F77"; then
3428  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433  IFS=$as_save_IFS
3434  test -z "$as_dir" && as_dir=.
3435  for ac_exec_ext in '' $ac_executable_extensions; do
3436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437    ac_cv_prog_ac_ct_F77="$ac_prog"
3438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439    break 2
3440  fi
3441done
3442done
3443
3444fi
3445fi
3446ac_ct_F77=$ac_cv_prog_ac_ct_F77
3447if test -n "$ac_ct_F77"; then
3448  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3449echo "${ECHO_T}$ac_ct_F77" >&6
3450else
3451  echo "$as_me:$LINENO: result: no" >&5
3452echo "${ECHO_T}no" >&6
3453fi
3454
3455  test -n "$ac_ct_F77" && break
3456done
3457
3458  F77=$ac_ct_F77
3459fi
3460
3461
3462# Provide some information about the compiler.
3463echo "$as_me:3463:" \
3464     "checking for Fortran 77 compiler version" >&5
3465ac_compiler=`set X $ac_compile; echo $2`
3466{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3467  (eval $ac_compiler --version </dev/null >&5) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }
3471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3472  (eval $ac_compiler -v </dev/null >&5) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }
3476{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3477  (eval $ac_compiler -V </dev/null >&5) 2>&5
3478  ac_status=$?
3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480  (exit $ac_status); }
3481rm -f a.out
3482
3483# If we don't use `.F' as extension, the preprocessor is not run on the
3484# input file.  (Note that this only needs to work for GNU compilers.)
3485ac_save_ext=$ac_ext
3486ac_ext=F
3487echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3488echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3489if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  cat >conftest.$ac_ext <<_ACEOF
3493      program main
3494#ifndef __GNUC__
3495       choke me
3496#endif
3497
3498      end
3499_ACEOF
3500rm -f conftest.$ac_objext
3501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502  (eval $ac_compile) 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } &&
3509         { ac_try='test -z "$ac_f77_werror_flag"
3510                         || test ! -s conftest.err'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; } &&
3516         { ac_try='test -s conftest.$ac_objext'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; }; then
3522  ac_compiler_gnu=yes
3523else
3524  echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
3526
3527ac_compiler_gnu=no
3528fi
3529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3531
3532fi
3533echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3534echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3535ac_ext=$ac_save_ext
3536ac_test_FFLAGS=${FFLAGS+set}
3537ac_save_FFLAGS=$FFLAGS
3538FFLAGS=
3539echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3540echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3541if test "${ac_cv_prog_f77_g+set}" = set; then
3542  echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544  FFLAGS=-g
3545cat >conftest.$ac_ext <<_ACEOF
3546      program main
3547
3548      end
3549_ACEOF
3550rm -f conftest.$ac_objext
3551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552  (eval $ac_compile) 2>conftest.er1
3553  ac_status=$?
3554  grep -v '^ *+' conftest.er1 >conftest.err
3555  rm -f conftest.er1
3556  cat conftest.err >&5
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); } &&
3559         { ac_try='test -z "$ac_f77_werror_flag"
3560                         || test ! -s conftest.err'
3561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562  (eval $ac_try) 2>&5
3563  ac_status=$?
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); }; } &&
3566         { ac_try='test -s conftest.$ac_objext'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; }; then
3572  ac_cv_prog_f77_g=yes
3573else
3574  echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577ac_cv_prog_f77_g=no
3578fi
3579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3580
3581fi
3582echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3583echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3584if test "$ac_test_FFLAGS" = set; then
3585  FFLAGS=$ac_save_FFLAGS
3586elif test $ac_cv_prog_f77_g = yes; then
3587  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3588    FFLAGS="-g -O2"
3589  else
3590    FFLAGS="-g"
3591  fi
3592else
3593  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3594    FFLAGS="-O2"
3595  else
3596    FFLAGS=
3597  fi
3598fi
3599
3600G77=`test $ac_compiler_gnu = yes && echo yes`
3601ac_ext=f
3602ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3603ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3605
3606else
3607  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3608echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3609fi
3610
3611FFLAGS="$save_fflags"
3612
3613# Check if a project specific FFLAGS variable has been set
3614if test x$COIN_PRJCT != x; then
3615  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3616  if test x$coin_tmp = xset; then
3617    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3618  fi
3619fi
3620
3621if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3622
3623  coin_add_fflags=
3624  coin_opt_fflags=
3625  coin_dbg_fflags=
3626  coin_warn_fflags=
3627
3628  if test "$G77" = "yes"; then
3629    coin_opt_fflags="-O3"
3630    coin_add_fflags="-pipe"
3631    coin_dbg_fflags="-g -O0"
3632    case $enable_doscompile in
3633      mingw)
3634        FFLAGS="-mno-cygwin"
3635        cat >conftest.$ac_ext <<_ACEOF
3636      program main
3637      write(*,*) 'Hello world'
3638      end
3639_ACEOF
3640rm -f conftest.$ac_objext conftest$ac_exeext
3641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642  (eval $ac_link) 2>conftest.er1
3643  ac_status=$?
3644  grep -v '^ *+' conftest.er1 >conftest.err
3645  rm -f conftest.er1
3646  cat conftest.err >&5
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); } &&
3649         { ac_try='test -z "$ac_f77_werror_flag"
3650                         || test ! -s conftest.err'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; } &&
3656         { ac_try='test -s conftest$ac_exeext'
3657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658  (eval $ac_try) 2>&5
3659  ac_status=$?
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); }; }; then
3662  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667fi
3668rm -f conftest.err conftest.$ac_objext \
3669      conftest$ac_exeext conftest.$ac_ext
3670        FFLAGS=
3671      ;;
3672    esac
3673  else
3674    case $build in
3675      *-cygwin* | *-mingw*)
3676        case $F77 in
3677          ifort* | */ifort* | IFORT* | */IFORT* )
3678            coin_opt_fflags='-MT -O3'
3679            coin_add_fflags='-fpp -nologo'
3680            coin_dbg_fflags='-MTd -debug'
3681          ;;
3682          compile_f2c*)
3683            coin_opt_fflags='-MT -O2'
3684            coin_add_fflags='-nologo -wd4996'
3685            coin_dbg_fflags='-MTd'
3686          ;;
3687        esac
3688        ;;
3689      *-linux-*)
3690        case $F77 in
3691          ifc* | */ifc* | ifort* | */ifort*)
3692            coin_opt_fflags="-O3 -ip"
3693            coin_add_fflags="-cm -w90 -w95"
3694            coin_dbg_fflags="-g -CA -CB -CS"
3695            # Check if -i_dynamic is necessary (for new glibc library)
3696            FFLAGS=
3697            cat >conftest.$ac_ext <<_ACEOF
3698      program main
3699      write(*,*) 'Hello world'
3700      end
3701_ACEOF
3702rm -f conftest.$ac_objext conftest$ac_exeext
3703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704  (eval $ac_link) 2>conftest.er1
3705  ac_status=$?
3706  grep -v '^ *+' conftest.er1 >conftest.err
3707  rm -f conftest.er1
3708  cat conftest.err >&5
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); } &&
3711         { ac_try='test -z "$ac_f77_werror_flag"
3712                         || test ! -s conftest.err'
3713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714  (eval $ac_try) 2>&5
3715  ac_status=$?
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); }; } &&
3718         { ac_try='test -s conftest$ac_exeext'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; }; then
3724  :
3725else
3726  echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729coin_add_fflags="-i_dynamic $coin_add_fflags"
3730fi
3731rm -f conftest.err conftest.$ac_objext \
3732      conftest$ac_exeext conftest.$ac_ext
3733            ;;
3734          pgf77* | */pgf77* | pgf90* | */pgf90*)
3735            coin_opt_fflags="-fast"
3736            coin_add_fflags="-Kieee -pc 64"
3737            coin_dbg_fflags="-g"
3738          ;;
3739        esac
3740        ;;
3741      *-ibm-*)
3742        case "$F77" in
3743          xlf* | */xlf* | mpxlf* | */mpxlf* )
3744            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3745            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3746            coin_dbg_fflags="-g -C"
3747            ;;
3748        esac
3749        ;;
3750      *-hp-*)
3751        coin_opt_fflags="+O3"
3752        coin_add_fflags="+U77"
3753        coin_dbg_fflags="-C -g"
3754        ;;
3755      *-*-solaris*)
3756        coin_opt_fflags="-O4"
3757        coin_dbg_fflags="-g"
3758        ;;
3759      *-sgi-*)
3760        coin_opt_fflags="-O5 -OPT:Olimit=0"
3761        coin_dbg_fflags="-g"
3762        ;;
3763    esac
3764  fi
3765
3766  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3767    coin_dbg_fflags="-g"
3768  fi
3769
3770  if test -z "$coin_opt_fflags"; then
3771    # Try if -O option works if nothing else is set
3772    FFLAGS=-O
3773    cat >conftest.$ac_ext <<_ACEOF
3774      program main
3775      integer i
3776      end
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780  (eval $ac_link) 2>conftest.er1
3781  ac_status=$?
3782  grep -v '^ *+' conftest.er1 >conftest.err
3783  rm -f conftest.er1
3784  cat conftest.err >&5
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); } &&
3787         { ac_try='test -z "$ac_f77_werror_flag"
3788                         || test ! -s conftest.err'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; } &&
3794         { ac_try='test -s conftest$ac_exeext'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; }; then
3800  coin_opt_fflags="-O"
3801else
3802  echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805fi
3806rm -f conftest.err conftest.$ac_objext \
3807      conftest$ac_exeext conftest.$ac_ext
3808  fi
3809
3810  # if PM doesn't want the warning messages, take them out
3811  if test x"$coin_skip_warn_fflags" = xyes; then
3812    coin_warn_fflags=
3813  fi
3814
3815  if test x${DBG_FFLAGS+set} != xset; then
3816    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3817  fi
3818  if test x${OPT_FFLAGS+set} != xset; then
3819    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3820  fi
3821
3822  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3823  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3824
3825  if test "$coin_debug_compile" = "true"; then
3826    FFLAGS="$DBG_FFLAGS"
3827  else
3828    FFLAGS="$OPT_FFLAGS"
3829  fi
3830else
3831  FFLAGS="$FFLAGS $ADD_FFLAGS"
3832  if test x${DBG_FFLAGS+set} != xset; then
3833    DBG_FFLAGS="$FFLAGS"
3834  fi
3835  if test x${OPT_FFLAGS+set} != xset; then
3836    OPT_FFLAGS="$FFLAGS"
3837  fi
3838fi
3839
3840# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3841case "$FFLAGS" in
3842  *-mno-cygwin*)
3843    if test x${CPPFLAGS+set} != xset ; then
3844      CPPFLAGS="-mno-cygwin"
3845    else
3846      case "$CPPFLAGS" in
3847        *-mno-cygwin*)
3848          ;;
3849        *)
3850          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3851          ;;
3852      esac
3853    fi ;;
3854esac
3855
3856# Try if FFLAGS works
3857if test "$F77" != "unavailable" ; then
3858  cat >conftest.$ac_ext <<_ACEOF
3859      program main
3860      integer i
3861      end
3862_ACEOF
3863rm -f conftest.$ac_objext conftest$ac_exeext
3864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865  (eval $ac_link) 2>conftest.er1
3866  ac_status=$?
3867  grep -v '^ *+' conftest.er1 >conftest.err
3868  rm -f conftest.er1
3869  cat conftest.err >&5
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); } &&
3872         { ac_try='test -z "$ac_f77_werror_flag"
3873                         || test ! -s conftest.err'
3874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875  (eval $ac_try) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; } &&
3879         { ac_try='test -s conftest$ac_exeext'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; }; then
3885  :
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890FFLAGS=
3891fi
3892rm -f conftest.err conftest.$ac_objext \
3893      conftest$ac_exeext conftest.$ac_ext
3894  if test -z "$FFLAGS"; then
3895    { 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
3896echo "$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;}
3897    FFLAGS='-O'
3898    cat >conftest.$ac_ext <<_ACEOF
3899      program main
3900      integer i
3901      end
3902_ACEOF
3903rm -f conftest.$ac_objext conftest$ac_exeext
3904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3905  (eval $ac_link) 2>conftest.er1
3906  ac_status=$?
3907  grep -v '^ *+' conftest.er1 >conftest.err
3908  rm -f conftest.er1
3909  cat conftest.err >&5
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); } &&
3912         { ac_try='test -z "$ac_f77_werror_flag"
3913                         || test ! -s conftest.err'
3914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915  (eval $ac_try) 2>&5
3916  ac_status=$?
3917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918  (exit $ac_status); }; } &&
3919         { ac_try='test -s conftest$ac_exeext'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; }; then
3925  :
3926else
3927  echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930FFLAGS=
3931fi
3932rm -f conftest.err conftest.$ac_objext \
3933      conftest$ac_exeext conftest.$ac_ext
3934    if test -z "$FFLAGS"; then
3935      { 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
3936echo "$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;}
3937    fi
3938  fi
3939fi
3940
3941{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3942echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3943
3944
3945if test x"$MPIF77" = x; then :; else
3946  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3947echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3948  F77="$MPIF77"
3949fi
3950
3951# correct the LD variable if we use the intel fortran compiler in windows
3952case "$F77" in
3953  ifort* | */ifort* | IFORT* | */IFORT*)
3954    case $build in
3955  *-mingw*)
3956    if test "${LD+set}" = set; then :; else
3957      LD=link
3958    fi
3959    ;;
3960 esac
3961 case $enable_doscompile in
3962   msvc)
3963     if test "x${LD+set}" = xset; then :; else
3964       LD=link
3965     fi
3966     ;;
3967 esac
3968
3969    ;;
3970esac
3971
3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978
3979
3980# Find out how to call Fortran from C and determine Fortran runtime libraries
3981
3982# get FLIBS
3983ac_ext=f
3984ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3985ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3987echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3988echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3989if test "${ac_cv_prog_f77_v+set}" = set; then
3990  echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992  cat >conftest.$ac_ext <<_ACEOF
3993      program main
3994
3995      end
3996_ACEOF
3997rm -f conftest.$ac_objext
3998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3999  (eval $ac_compile) 2>conftest.er1
4000  ac_status=$?
4001  grep -v '^ *+' conftest.er1 >conftest.err
4002  rm -f conftest.er1
4003  cat conftest.err >&5
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); } &&
4006         { ac_try='test -z "$ac_f77_werror_flag"
4007                         || test ! -s conftest.err'
4008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009  (eval $ac_try) 2>&5
4010  ac_status=$?
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); }; } &&
4013         { ac_try='test -s conftest.$ac_objext'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; }; then
4019  ac_cv_prog_f77_v=
4020# Try some options frequently used verbose output
4021for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4022  cat >conftest.$ac_ext <<_ACEOF
4023      program main
4024
4025      end
4026_ACEOF
4027
4028# Compile and link our simple test program by passing a flag (argument
4029# 1 to this macro) to the Fortran compiler in order to get
4030# "verbose" output that we can then parse for the Fortran linker
4031# flags.
4032ac_save_FFLAGS=$FFLAGS
4033FFLAGS="$FFLAGS $ac_verb"
4034(eval echo $as_me:4034: \"$ac_link\") >&5
4035ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4036echo "$ac_f77_v_output" >&5
4037FFLAGS=$ac_save_FFLAGS
4038
4039rm -f conftest*
4040
4041# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4042# /foo, /bar, and /baz are search directories for the Fortran linker.
4043# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4044ac_f77_v_output="`echo $ac_f77_v_output |
4045        grep 'LPATH is:' |
4046        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4047
4048case $ac_f77_v_output in
4049  # If we are using xlf then replace all the commas with spaces.
4050  *xlfentry*)
4051    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4052
4053  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4054  # $LIBS confuse us, and the libraries appear later in the output anyway).
4055  *mGLOB_options_string*)
4056    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4057
4058  # If we are using Cray Fortran then delete quotes.
4059  # Use "\"" instead of '"' for font-lock-mode.
4060  # FIXME: a more general fix for quoted arguments with spaces?
4061  *cft90*)
4062    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4063esac
4064
4065
4066  # look for -l* and *.a constructs in the output
4067  for ac_arg in $ac_f77_v_output; do
4068     case $ac_arg in
4069        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4070          ac_cv_prog_f77_v=$ac_verb
4071          break 2 ;;
4072     esac
4073  done
4074done
4075if test -z "$ac_cv_prog_f77_v"; then
4076   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4077echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4078fi
4079else
4080  echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4084echo "$as_me: WARNING: compilation failed" >&2;}
4085fi
4086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4087
4088fi
4089echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4090echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4091echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4092echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4093if test "${ac_cv_f77_libs+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  if test "x$FLIBS" != "x"; then
4097  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4098else
4099
4100cat >conftest.$ac_ext <<_ACEOF
4101      program main
4102
4103      end
4104_ACEOF
4105
4106# Compile and link our simple test program by passing a flag (argument
4107# 1 to this macro) to the Fortran compiler in order to get
4108# "verbose" output that we can then parse for the Fortran linker
4109# flags.
4110ac_save_FFLAGS=$FFLAGS
4111FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4112(eval echo $as_me:4112: \"$ac_link\") >&5
4113ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4114echo "$ac_f77_v_output" >&5
4115FFLAGS=$ac_save_FFLAGS
4116
4117rm -f conftest*
4118
4119# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4120# /foo, /bar, and /baz are search directories for the Fortran linker.
4121# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4122ac_f77_v_output="`echo $ac_f77_v_output |
4123        grep 'LPATH is:' |
4124        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4125
4126case $ac_f77_v_output in
4127  # If we are using xlf then replace all the commas with spaces.
4128  *xlfentry*)
4129    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4130
4131  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4132  # $LIBS confuse us, and the libraries appear later in the output anyway).
4133  *mGLOB_options_string*)
4134    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4135
4136  # If we are using Cray Fortran then delete quotes.
4137  # Use "\"" instead of '"' for font-lock-mode.
4138  # FIXME: a more general fix for quoted arguments with spaces?
4139  *cft90*)
4140    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4141esac
4142
4143
4144
4145ac_cv_f77_libs=
4146
4147# Save positional arguments (if any)
4148ac_save_positional="$@"
4149
4150set X $ac_f77_v_output
4151while test $# != 1; do
4152  shift
4153  ac_arg=$1
4154  case $ac_arg in
4155        [\\/]*.a | ?:[\\/]*.a)
4156            ac_exists=false
4157  for ac_i in $ac_cv_f77_libs; do
4158    if test x"$ac_arg" = x"$ac_i"; then
4159      ac_exists=true
4160      break
4161    fi
4162  done
4163
4164  if test x"$ac_exists" = xtrue; then
4165  :
4166else
4167  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4168fi
4169
4170          ;;
4171        -bI:*)
4172            ac_exists=false
4173  for ac_i in $ac_cv_f77_libs; do
4174    if test x"$ac_arg" = x"$ac_i"; then
4175      ac_exists=true
4176      break
4177    fi
4178  done
4179
4180  if test x"$ac_exists" = xtrue; then
4181  :
4182else
4183  if test "$ac_compiler_gnu" = yes; then
4184  for ac_link_opt in $ac_arg; do
4185    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4186  done
4187else
4188  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4189fi
4190fi
4191
4192          ;;
4193          # Ignore these flags.
4194        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4195          ;;
4196        -lkernel32)
4197          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4198          ;;
4199        -[LRuY])
4200          # These flags, when seen by themselves, take an argument.
4201          # We remove the space between option and argument and re-iterate
4202          # unless we find an empty arg or a new option (starting with -)
4203          case $2 in
4204             "" | -*);;
4205             *)
4206                ac_arg="$ac_arg$2"
4207                shift; shift
4208                set X $ac_arg "$@"
4209                ;;
4210          esac
4211          ;;
4212        -YP,*)
4213          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4214              ac_exists=false
4215  for ac_i in $ac_cv_f77_libs; do
4216    if test x"$ac_j" = x"$ac_i"; then
4217      ac_exists=true
4218      break
4219    fi
4220  done
4221
4222  if test x"$ac_exists" = xtrue; then
4223  :
4224else
4225  ac_arg="$ac_arg $ac_j"
4226                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4227fi
4228
4229          done
4230          ;;
4231        -[lLR]*)
4232            ac_exists=false
4233  for ac_i in $ac_cv_f77_libs; do
4234    if test x"$ac_arg" = x"$ac_i"; then
4235      ac_exists=true
4236      break
4237    fi
4238  done
4239
4240  if test x"$ac_exists" = xtrue; then
4241  :
4242else
4243  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4244fi
4245
4246          ;;
4247          # Ignore everything else.
4248  esac
4249done
4250# restore positional arguments
4251set X $ac_save_positional; shift
4252
4253# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4254# then we insist that the "run path" must be an absolute path (i.e. it
4255# must begin with a "/").
4256case `(uname -sr) 2>/dev/null` in
4257   "SunOS 5"*)
4258      ac_ld_run_path=`echo $ac_f77_v_output |
4259                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4260      test "x$ac_ld_run_path" != x &&
4261        if test "$ac_compiler_gnu" = yes; then
4262  for ac_link_opt in $ac_ld_run_path; do
4263    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4264  done
4265else
4266  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4267fi
4268      ;;
4269esac
4270fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4271
4272fi
4273echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4274echo "${ECHO_T}$ac_cv_f77_libs" >&6
4275FLIBS="$ac_cv_f77_libs"
4276
4277
4278ac_ext=c
4279ac_cpp='$CPP $CPPFLAGS'
4280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284orig_FLIBS="$FLIBS"
4285
4286# If FLIBS has been set by the user, we just restore its value here
4287if test x"$save_FLIBS" != x; then
4288  FLIBS="$save_FLIBS"
4289else
4290  # This is to correct a missing exclusion in autoconf 2.59
4291  if test x"$FLIBS" != x; then
4292    my_flibs=
4293    for flag in $FLIBS; do
4294      case $flag in
4295        -lcrt*.o) ;;
4296        -lcygwin) ;;
4297               *) my_flibs="$my_flibs $flag" ;;
4298      esac
4299    done
4300    FLIBS="$my_flibs"
4301  fi
4302
4303  case $build in
4304  # The following is a fix to define FLIBS for ifort on Windows
4305  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4306  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4307  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4308  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4309  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4310     *-cygwin* | *-mingw*)
4311       case "$F77" in
4312#         ifort* | */ifort* | IFORT* | */IFORT*)
4313#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4314#           if "$coin_debug_compile" = true ; then
4315#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4316#           else
4317#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4318#           fi
4319#           ;;
4320         compile_f2c*)
4321           FLIBS=`$F77 -FLIBS` ;;
4322       esac;;
4323     *-hp-*)
4324         FLIBS="$FLIBS -lm";;
4325     *-ibm-*)
4326         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4327     *-linux-*)
4328       case "$F77" in
4329         pgf77* | */pgf77* | pgf90* | */pgf90*)
4330# ask linker to go through the archives multiple times
4331# (the Fortran compiler seems to do that automatically...)
4332           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4333       esac
4334  esac
4335  ac_cv_f77_libs="$FLIBS"
4336fi
4337
4338if test "x$orig_FLIBS" != "x$FLIBS" ; then
4339  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4340echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4341fi
4342
4343ac_ext=f
4344ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4345ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4347
4348echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4349echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4350if test "${ac_cv_f77_dummy_main+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  ac_f77_dm_save_LIBS=$LIBS
4354 LIBS="$LIBS $FLIBS"
4355 ac_fortran_dm_var=F77_DUMMY_MAIN
4356 ac_ext=c
4357ac_cpp='$CPP $CPPFLAGS'
4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362 # First, try linking without a dummy main:
4363 cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369
4370#ifdef F77_DUMMY_MAIN
4371
4372#  ifdef __cplusplus
4373     extern "C"
4374#  endif
4375   int F77_DUMMY_MAIN() { return 1; }
4376
4377#endif
4378int
4379main ()
4380{
4381
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386rm -f conftest.$ac_objext conftest$ac_exeext
4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388  (eval $ac_link) 2>conftest.er1
4389  ac_status=$?
4390  grep -v '^ *+' conftest.er1 >conftest.err
4391  rm -f conftest.er1
4392  cat conftest.err >&5
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } &&
4395         { ac_try='test -z "$ac_c_werror_flag"
4396                         || test ! -s conftest.err'
4397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398  (eval $ac_try) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; } &&
4402         { ac_try='test -s conftest$ac_exeext'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; }; then
4408  ac_cv_fortran_dummy_main=none
4409else
4410  echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413ac_cv_fortran_dummy_main=unknown
4414fi
4415rm -f conftest.err conftest.$ac_objext \
4416      conftest$ac_exeext conftest.$ac_ext
4417
4418 if test $ac_cv_fortran_dummy_main = unknown; then
4419   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4420     cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426#define $ac_fortran_dm_var $ac_func
4427#ifdef F77_DUMMY_MAIN
4428
4429#  ifdef __cplusplus
4430     extern "C"
4431#  endif
4432   int F77_DUMMY_MAIN() { return 1; }
4433
4434#endif
4435int
4436main ()
4437{
4438
4439  ;
4440  return 0;
4441}
4442_ACEOF
4443rm -f conftest.$ac_objext conftest$ac_exeext
4444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4445  (eval $ac_link) 2>conftest.er1
4446  ac_status=$?
4447  grep -v '^ *+' conftest.er1 >conftest.err
4448  rm -f conftest.er1
4449  cat conftest.err >&5
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } &&
4452         { ac_try='test -z "$ac_c_werror_flag"
4453                         || test ! -s conftest.err'
4454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455  (eval $ac_try) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); }; } &&
4459         { ac_try='test -s conftest$ac_exeext'
4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461  (eval $ac_try) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; }; then
4465  ac_cv_fortran_dummy_main=$ac_func; break
4466else
4467  echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
4470fi
4471rm -f conftest.err conftest.$ac_objext \
4472      conftest$ac_exeext conftest.$ac_ext
4473   done
4474 fi
4475 ac_ext=f
4476ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4477ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4479 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4480 rm -f conftest*
4481 LIBS=$ac_f77_dm_save_LIBS
4482
4483fi
4484echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4485echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4486F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4487if test "$F77_DUMMY_MAIN" != unknown; then
4488  if test $F77_DUMMY_MAIN != none; then
4489
4490cat >>confdefs.h <<_ACEOF
4491#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4492_ACEOF
4493
4494  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4495
4496cat >>confdefs.h <<\_ACEOF
4497#define FC_DUMMY_MAIN_EQ_F77 1
4498_ACEOF
4499
4500  fi
4501fi
4502else
4503  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4504See \`config.log' for more details." >&5
4505echo "$as_me: error: linking to Fortran libraries from C fails
4506See \`config.log' for more details." >&2;}
4507   { (exit 1); exit 1; }; }
4508fi
4509
4510
4511ac_ext=f
4512ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4513ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4515
4516ac_ext=f
4517ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4518ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4520echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4521echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4522if test "${ac_cv_f77_mangling+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  cat >conftest.$ac_ext <<_ACEOF
4526      subroutine foobar()
4527      return
4528      end
4529      subroutine foo_bar()
4530      return
4531      end
4532_ACEOF
4533rm -f conftest.$ac_objext
4534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535  (eval $ac_compile) 2>conftest.er1
4536  ac_status=$?
4537  grep -v '^ *+' conftest.er1 >conftest.err
4538  rm -f conftest.er1
4539  cat conftest.err >&5
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); } &&
4542         { ac_try='test -z "$ac_f77_werror_flag"
4543                         || test ! -s conftest.err'
4544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545  (eval $ac_try) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; } &&
4549         { ac_try='test -s conftest.$ac_objext'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; }; then
4555  mv conftest.$ac_objext cfortran_test.$ac_objext
4556
4557  ac_save_LIBS=$LIBS
4558  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4559
4560  ac_ext=c
4561ac_cpp='$CPP $CPPFLAGS'
4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565  ac_success=no
4566  for ac_foobar in foobar FOOBAR; do
4567    for ac_underscore in "" "_"; do
4568      ac_func="$ac_foobar$ac_underscore"
4569      cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h.  */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h.  */
4575
4576/* Override any gcc2 internal prototype to avoid an error.  */
4577#ifdef __cplusplus
4578extern "C"
4579#endif
4580/* We use char because int might match the return type of a gcc2
4581   builtin and then its argument prototype would still apply.  */
4582char $ac_func ();
4583#ifdef F77_DUMMY_MAIN
4584
4585#  ifdef __cplusplus
4586     extern "C"
4587#  endif
4588   int F77_DUMMY_MAIN() { return 1; }
4589
4590#endif
4591int
4592main ()
4593{
4594$ac_func ();
4595  ;
4596  return 0;
4597}
4598_ACEOF
4599rm -f conftest.$ac_objext conftest$ac_exeext
4600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601  (eval $ac_link) 2>conftest.er1
4602  ac_status=$?
4603  grep -v '^ *+' conftest.er1 >conftest.err
4604  rm -f conftest.er1
4605  cat conftest.err >&5
4606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); } &&
4608         { ac_try='test -z "$ac_c_werror_flag"
4609                         || test ! -s conftest.err'
4610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611  (eval $ac_try) 2>&5
4612  ac_status=$?
4613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); }; } &&
4615         { ac_try='test -s conftest$ac_exeext'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; }; then
4621  ac_success=yes; break 2
4622else
4623  echo "$as_me: failed program was:" >&5
4624sed 's/^/| /' conftest.$ac_ext >&5
4625
4626fi
4627rm -f conftest.err conftest.$ac_objext \
4628      conftest$ac_exeext conftest.$ac_ext
4629    done
4630  done
4631  ac_ext=f
4632ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4633ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4635
4636  if test "$ac_success" = "yes"; then
4637     case $ac_foobar in
4638        foobar)
4639           ac_case=lower
4640           ac_foo_bar=foo_bar
4641           ;;
4642        FOOBAR)
4643           ac_case=upper
4644           ac_foo_bar=FOO_BAR
4645           ;;
4646     esac
4647
4648     ac_ext=c
4649ac_cpp='$CPP $CPPFLAGS'
4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653     ac_success_extra=no
4654     for ac_extra in "" "_"; do
4655        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4656        cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h.  */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h.  */
4662
4663/* Override any gcc2 internal prototype to avoid an error.  */
4664#ifdef __cplusplus
4665extern "C"
4666#endif
4667/* We use char because int might match the return type of a gcc2
4668   builtin and then its argument prototype would still apply.  */
4669char $ac_func ();
4670#ifdef F77_DUMMY_MAIN
4671
4672#  ifdef __cplusplus
4673     extern "C"
4674#  endif
4675   int F77_DUMMY_MAIN() { return 1; }
4676
4677#endif
4678int
4679main ()
4680{
4681$ac_func ();
4682  ;
4683  return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext conftest$ac_exeext
4687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688  (eval $ac_link) 2>conftest.er1
4689  ac_status=$?
4690  grep -v '^ *+' conftest.er1 >conftest.err
4691  rm -f conftest.er1
4692  cat conftest.err >&5
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } &&
4695         { ac_try='test -z "$ac_c_werror_flag"
4696                         || test ! -s conftest.err'
4697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698  (eval $ac_try) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); }; } &&
4702         { ac_try='test -s conftest$ac_exeext'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; }; then
4708  ac_success_extra=yes; break
4709else
4710  echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713fi
4714rm -f conftest.err conftest.$ac_objext \
4715      conftest$ac_exeext conftest.$ac_ext
4716     done
4717     ac_ext=f
4718ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4719ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4721
4722     if test "$ac_success_extra" = "yes"; then
4723        ac_cv_f77_mangling="$ac_case case"
4724        if test -z "$ac_underscore"; then
4725           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4726        else
4727           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4728        fi
4729        if test -z "$ac_extra"; then
4730           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4731        else
4732           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4733        fi
4734      else
4735        ac_cv_f77_mangling="unknown"
4736      fi
4737  else
4738     ac_cv_f77_mangling="unknown"
4739  fi
4740
4741  LIBS=$ac_save_LIBS
4742  rm -f cfortran_test* conftest*
4743else
4744  echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
4747{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4748See \`config.log' for more details." >&5
4749echo "$as_me: error: cannot compile a simple Fortran program
4750See \`config.log' for more details." >&2;}
4751   { (exit 1); exit 1; }; }
4752fi
4753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754
4755fi
4756echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4757echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4758
4759ac_ext=f
4760ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4761ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4763
4764
4765ac_ext=f
4766ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4767ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4769
4770ac_ext=f
4771ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4772ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4774
4775
4776case $ac_cv_f77_mangling in
4777  "lower case, no underscore, no extra underscore")
4778          cat >>confdefs.h <<\_ACEOF
4779#define F77_FUNC(name,NAME) name
4780_ACEOF
4781
4782          cat >>confdefs.h <<\_ACEOF
4783#define F77_FUNC_(name,NAME) name
4784_ACEOF
4785 ;;
4786  "lower case, no underscore, extra underscore")
4787          cat >>confdefs.h <<\_ACEOF
4788#define F77_FUNC(name,NAME) name
4789_ACEOF
4790
4791          cat >>confdefs.h <<\_ACEOF
4792#define F77_FUNC_(name,NAME) name ## _
4793_ACEOF
4794 ;;
4795  "lower case, underscore, no extra underscore")
4796          cat >>confdefs.h <<\_ACEOF
4797#define F77_FUNC(name,NAME) name ## _
4798_ACEOF
4799
4800          cat >>confdefs.h <<\_ACEOF
4801#define F77_FUNC_(name,NAME) name ## _
4802_ACEOF
4803 ;;
4804  "lower case, underscore, extra underscore")
4805          cat >>confdefs.h <<\_ACEOF
4806#define F77_FUNC(name,NAME) name ## _
4807_ACEOF
4808
4809          cat >>confdefs.h <<\_ACEOF
4810#define F77_FUNC_(name,NAME) name ## __
4811_ACEOF
4812 ;;
4813  "upper case, no underscore, no extra underscore")
4814          cat >>confdefs.h <<\_ACEOF
4815#define F77_FUNC(name,NAME) NAME
4816_ACEOF
4817
4818          cat >>confdefs.h <<\_ACEOF
4819#define F77_FUNC_(name,NAME) NAME
4820_ACEOF
4821 ;;
4822  "upper case, no underscore, extra underscore")
4823          cat >>confdefs.h <<\_ACEOF
4824#define F77_FUNC(name,NAME) NAME
4825_ACEOF
4826
4827          cat >>confdefs.h <<\_ACEOF
4828#define F77_FUNC_(name,NAME) NAME ## _
4829_ACEOF
4830 ;;
4831  "upper case, underscore, no extra underscore")
4832          cat >>confdefs.h <<\_ACEOF
4833#define F77_FUNC(name,NAME) NAME ## _
4834_ACEOF
4835
4836          cat >>confdefs.h <<\_ACEOF
4837#define F77_FUNC_(name,NAME) NAME ## _
4838_ACEOF
4839 ;;
4840  "upper case, underscore, extra underscore")
4841          cat >>confdefs.h <<\_ACEOF
4842#define F77_FUNC(name,NAME) NAME ## _
4843_ACEOF
4844
4845          cat >>confdefs.h <<\_ACEOF
4846#define F77_FUNC_(name,NAME) NAME ## __
4847_ACEOF
4848 ;;
4849  *)
4850          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4851echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4852          ;;
4853esac
4854
4855ac_ext=f
4856ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4857ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4859
4860ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865
4866
4867
4868
4869# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4870MUMPS_PCLIBS="$FLIBS"
4871
4872# We need to translate the result from autoconf to what MUMPS wants
4873case "$ac_cv_f77_mangling" in
4874  "lower case, no underscore, no extra underscore")
4875  ;;
4876  "lower case, underscore, no extra underscore")
4877  MY_DEFS="-DAdd_"
4878  ;;
4879  "lower case, no underscore, extra underscore")
4880  MY_DEFS="-DAdd_"
4881  ;;
4882  "lower case, underscore, extra underscore")
4883  MY_DEFS="-DAdd__"
4884  ;;
4885  "upper case, no underscore, no extra underscore")
4886  MY_DEFS="-DUPPER"
4887  ;;
4888  "upper case, no underscore, extra underscore")
4889  MY_DEFS="-DUPPER"
4890  ;;
4891  "upper case, underscore, no extra underscore")
4892  MY_DEFS="-DUPPER"
4893  ;;
4894  "upper case, underscore, extra underscore")
4895  MY_DEFS="-DUPPER"
4896  ;;
4897esac
4898
4899# check for pthread.h header file
4900ac_ext=c
4901ac_cpp='$CPP $CPPFLAGS'
4902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4906echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4907# On Suns, sometimes $CPP names a directory.
4908if test -n "$CPP" && test -d "$CPP"; then
4909  CPP=
4910fi
4911if test -z "$CPP"; then
4912  if test "${ac_cv_prog_CPP+set}" = set; then
4913  echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
4915      # Double quotes because CPP needs to be expanded
4916    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4917    do
4918      ac_preproc_ok=false
4919for ac_c_preproc_warn_flag in '' yes
4920do
4921  # Use a header file that comes with gcc, so configuring glibc
4922  # with a fresh cross-compiler works.
4923  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924  # <limits.h> exists even on freestanding compilers.
4925  # On the NeXT, cc -E runs the code through the compiler's parser,
4926  # not just through cpp. "Syntax error" is here to catch this case.
4927  cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h.  */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h.  */
4933#ifdef __STDC__
4934# include <limits.h>
4935#else
4936# include <assert.h>
4937#endif
4938                     Syntax error
4939_ACEOF
4940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942  ac_status=$?
4943  grep -v '^ *+' conftest.er1 >conftest.err
4944  rm -f conftest.er1
4945  cat conftest.err >&5
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); } >/dev/null; then
4948  if test -s conftest.err; then
4949    ac_cpp_err=$ac_c_preproc_warn_flag
4950    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4951  else
4952    ac_cpp_err=
4953  fi
4954else
4955  ac_cpp_err=yes
4956fi
4957if test -z "$ac_cpp_err"; then
4958  :
4959else
4960  echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963  # Broken: fails on valid input.
4964continue
4965fi
4966rm -f conftest.err conftest.$ac_ext
4967
4968  # OK, works on sane cases.  Now check whether non-existent headers
4969  # can be detected and how.
4970  cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h.  */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h.  */
4976#include <ac_nonexistent.h>
4977_ACEOF
4978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } >/dev/null; then
4986  if test -s conftest.err; then
4987    ac_cpp_err=$ac_c_preproc_warn_flag
4988    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4989  else
4990    ac_cpp_err=
4991  fi
4992else
4993  ac_cpp_err=yes
4994fi
4995if test -z "$ac_cpp_err"; then
4996  # Broken: success on invalid input.
4997continue
4998else
4999  echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002  # Passes both tests.
5003ac_preproc_ok=:
5004break
5005fi
5006rm -f conftest.err conftest.$ac_ext
5007
5008done
5009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010rm -f conftest.err conftest.$ac_ext
5011if $ac_preproc_ok; then
5012  break
5013fi
5014
5015    done
5016    ac_cv_prog_CPP=$CPP
5017
5018fi
5019  CPP=$ac_cv_prog_CPP
5020else
5021  ac_cv_prog_CPP=$CPP
5022fi
5023echo "$as_me:$LINENO: result: $CPP" >&5
5024echo "${ECHO_T}$CPP" >&6
5025ac_preproc_ok=false
5026for ac_c_preproc_warn_flag in '' yes
5027do
5028  # Use a header file that comes with gcc, so configuring glibc
5029  # with a fresh cross-compiler works.
5030  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031  # <limits.h> exists even on freestanding compilers.
5032  # On the NeXT, cc -E runs the code through the compiler's parser,
5033  # not just through cpp. "Syntax error" is here to catch this case.
5034  cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h.  */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h.  */
5040#ifdef __STDC__
5041# include <limits.h>
5042#else
5043# include <assert.h>
5044#endif
5045                     Syntax error
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049  ac_status=$?
5050  grep -v '^ *+' conftest.er1 >conftest.err
5051  rm -f conftest.er1
5052  cat conftest.err >&5
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); } >/dev/null; then
5055  if test -s conftest.err; then
5056    ac_cpp_err=$ac_c_preproc_warn_flag
5057    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5058  else
5059    ac_cpp_err=
5060  fi
5061else
5062  ac_cpp_err=yes
5063fi
5064if test -z "$ac_cpp_err"; then
5065  :
5066else
5067  echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070  # Broken: fails on valid input.
5071continue
5072fi
5073rm -f conftest.err conftest.$ac_ext
5074
5075  # OK, works on sane cases.  Now check whether non-existent headers
5076  # can be detected and how.
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083#include <ac_nonexistent.h>
5084_ACEOF
5085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } >/dev/null; then
5093  if test -s conftest.err; then
5094    ac_cpp_err=$ac_c_preproc_warn_flag
5095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5096  else
5097    ac_cpp_err=
5098  fi
5099else
5100  ac_cpp_err=yes
5101fi
5102if test -z "$ac_cpp_err"; then
5103  # Broken: success on invalid input.
5104continue
5105else
5106  echo "$as_me: failed program was:" >&5
5107sed 's/^/| /' conftest.$ac_ext >&5
5108
5109  # Passes both tests.
5110ac_preproc_ok=:
5111break
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114
5115done
5116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117rm -f conftest.err conftest.$ac_ext
5118if $ac_preproc_ok; then
5119  :
5120else
5121  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5122See \`config.log' for more details." >&5
5123echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5124See \`config.log' for more details." >&2;}
5125   { (exit 1); exit 1; }; }
5126fi
5127
5128ac_ext=c
5129ac_cpp='$CPP $CPPFLAGS'
5130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135echo "$as_me:$LINENO: checking for egrep" >&5
5136echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5137if test "${ac_cv_prog_egrep+set}" = set; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5141    then ac_cv_prog_egrep='grep -E'
5142    else ac_cv_prog_egrep='egrep'
5143    fi
5144fi
5145echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5146echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5147 EGREP=$ac_cv_prog_egrep
5148
5149
5150echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5151echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5152if test "${ac_cv_header_stdc+set}" = set; then
5153  echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155  cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h.  */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h.  */
5161#include <stdlib.h>
5162#include <stdarg.h>
5163#include <string.h>
5164#include <float.h>
5165
5166#ifdef F77_DUMMY_MAIN
5167
5168#  ifdef __cplusplus
5169     extern "C"
5170#  endif
5171   int F77_DUMMY_MAIN() { return 1; }
5172
5173#endif
5174int
5175main ()
5176{
5177
5178  ;
5179  return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184  (eval $ac_compile) 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } &&
5191         { ac_try='test -z "$ac_c_werror_flag"
5192                         || test ! -s conftest.err'
5193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194  (eval $ac_try) 2>&5
5195  ac_status=$?
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); }; } &&
5198         { ac_try='test -s conftest.$ac_objext'
5199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200  (eval $ac_try) 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; }; then
5204  ac_cv_header_stdc=yes
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209ac_cv_header_stdc=no
5210fi
5211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212
5213if test $ac_cv_header_stdc = yes; then
5214  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5215  cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221#include <string.h>
5222
5223_ACEOF
5224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225  $EGREP "memchr" >/dev/null 2>&1; then
5226  :
5227else
5228  ac_cv_header_stdc=no
5229fi
5230rm -f conftest*
5231
5232fi
5233
5234if test $ac_cv_header_stdc = yes; then
5235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5236  cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h.  */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h.  */
5242#include <stdlib.h>
5243
5244_ACEOF
5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246  $EGREP "free" >/dev/null 2>&1; then
5247  :
5248else
5249  ac_cv_header_stdc=no
5250fi
5251rm -f conftest*
5252
5253fi
5254
5255if test $ac_cv_header_stdc = yes; then
5256  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5257  if test "$cross_compiling" = yes; then
5258  :
5259else
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#include <ctype.h>
5267#if ((' ' & 0x0FF) == 0x020)
5268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5270#else
5271# define ISLOWER(c) \
5272                   (('a' <= (c) && (c) <= 'i') \
5273                     || ('j' <= (c) && (c) <= 'r') \
5274                     || ('s' <= (c) && (c) <= 'z'))
5275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5276#endif
5277
5278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5279int
5280main ()
5281{
5282  int i;
5283  for (i = 0; i < 256; i++)
5284    if (XOR (islower (i), ISLOWER (i))
5285        || toupper (i) != TOUPPER (i))
5286      exit(2);
5287  exit (0);
5288}
5289_ACEOF
5290rm -f conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292  (eval $ac_link) 2>&5
5293  ac_status=$?
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297  (eval $ac_try) 2>&5
5298  ac_status=$?
5299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300  (exit $ac_status); }; }; then
5301  :
5302else
5303  echo "$as_me: program exited with status $ac_status" >&5
5304echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307( exit $ac_status )
5308ac_cv_header_stdc=no
5309fi
5310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311fi
5312fi
5313fi
5314echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5315echo "${ECHO_T}$ac_cv_header_stdc" >&6
5316if test $ac_cv_header_stdc = yes; then
5317
5318cat >>confdefs.h <<\_ACEOF
5319#define STDC_HEADERS 1
5320_ACEOF
5321
5322fi
5323
5324# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5335                  inttypes.h stdint.h unistd.h
5336do
5337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5338echo "$as_me:$LINENO: checking for $ac_header" >&5
5339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5340if eval "test \"\${$as_ac_Header+set}\" = set"; then
5341  echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343  cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h.  */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h.  */
5349$ac_includes_default
5350
5351#include <$ac_header>
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355  (eval $ac_compile) 2>conftest.er1
5356  ac_status=$?
5357  grep -v '^ *+' conftest.er1 >conftest.err
5358  rm -f conftest.er1
5359  cat conftest.err >&5
5360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361  (exit $ac_status); } &&
5362         { ac_try='test -z "$ac_c_werror_flag"
5363                         || test ! -s conftest.err'
5364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365  (eval $ac_try) 2>&5
5366  ac_status=$?
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); }; } &&
5369         { ac_try='test -s conftest.$ac_objext'
5370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371  (eval $ac_try) 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; }; then
5375  eval "$as_ac_Header=yes"
5376else
5377  echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380eval "$as_ac_Header=no"
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387  cat >>confdefs.h <<_ACEOF
5388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389_ACEOF
5390
5391fi
5392
5393done
5394
5395
5396#if test x"" = x; then
5397#  hdr="#include <pthread.h>"
5398#else
5399#  hdr=""
5400#fi
5401#AC_CHECK_HEADERS([pthread.h],[],[MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"],[$hdr])
5402
5403for ac_header in pthread.h
5404do
5405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5406if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407  echo "$as_me:$LINENO: checking for $ac_header" >&5
5408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411fi
5412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5414else
5415  # Is the header compilable?
5416echo "$as_me:$LINENO: checking $ac_header usability" >&5
5417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5418cat >conftest.$ac_ext <<_ACEOF
5419/* confdefs.h.  */
5420_ACEOF
5421cat confdefs.h >>conftest.$ac_ext
5422cat >>conftest.$ac_ext <<_ACEOF
5423/* end confdefs.h.  */
5424$ac_includes_default
5425#include <$ac_header>
5426_ACEOF
5427rm -f conftest.$ac_objext
5428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429  (eval $ac_compile) 2>conftest.er1
5430  ac_status=$?
5431  grep -v '^ *+' conftest.er1 >conftest.err
5432  rm -f conftest.er1
5433  cat conftest.err >&5
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } &&
5436         { ac_try='test -z "$ac_c_werror_flag"
5437                         || test ! -s conftest.err'
5438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439  (eval $ac_try) 2>&5
5440  ac_status=$?
5441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); }; } &&
5443         { ac_try='test -s conftest.$ac_objext'
5444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445  (eval $ac_try) 2>&5
5446  ac_status=$?
5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); }; }; then
5449  ac_header_compiler=yes
5450else
5451  echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454ac_header_compiler=no
5455fi
5456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5458echo "${ECHO_T}$ac_header_compiler" >&6
5459
5460# Is the header present?
5461echo "$as_me:$LINENO: checking $ac_header presence" >&5
5462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469#include <$ac_header>
5470_ACEOF
5471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5472  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5473  ac_status=$?
5474  grep -v '^ *+' conftest.er1 >conftest.err
5475  rm -f conftest.er1
5476  cat conftest.err >&5
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); } >/dev/null; then
5479  if test -s conftest.err; then
5480    ac_cpp_err=$ac_c_preproc_warn_flag
5481    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5482  else
5483    ac_cpp_err=
5484  fi
5485else
5486  ac_cpp_err=yes
5487fi
5488if test -z "$ac_cpp_err"; then
5489  ac_header_preproc=yes
5490else
5491  echo "$as_me: failed program was:" >&5
5492sed 's/^/| /' conftest.$ac_ext >&5
5493
5494  ac_header_preproc=no
5495fi
5496rm -f conftest.err conftest.$ac_ext
5497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5498echo "${ECHO_T}$ac_header_preproc" >&6
5499
5500# So?  What about this header?
5501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5502  yes:no: )
5503    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5507    ac_header_preproc=yes
5508    ;;
5509  no:yes:* )
5510    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5512    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5513echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5514    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5516    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5517echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5520    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5522    (
5523      cat <<\_ASBOX
5524## --------------------------------------------------------------- ##
5525## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5526## --------------------------------------------------------------- ##
5527_ASBOX
5528    ) |
5529      sed "s/^/$as_me: WARNING:     /" >&2
5530    ;;
5531esac
5532echo "$as_me:$LINENO: checking for $ac_header" >&5
5533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5534if eval "test \"\${$as_ac_Header+set}\" = set"; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537  eval "$as_ac_Header=\$ac_header_preproc"
5538fi
5539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5541
5542fi
5543if test `eval echo '${'$as_ac_Header'}'` = yes; then
5544  cat >>confdefs.h <<_ACEOF
5545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5546_ACEOF
5547
5548else
5549  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5550fi
5551
5552done
5553
5554
5555
5556MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5557
5558
5559# Initialize automake
5560{
5561
5562
5563
5564# START
5565
5566# Test if force_shared has been set
5567if test "x" = xforce_shared; then
5568  if test x$enable_shared = xno; then
5569    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5570echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5571   { (exit 1); exit 1; }; }
5572  fi
5573  enable_shared=yes;
5574else
5575  # On Cygwin and AIX, building DLLs doesn't work
5576  case $build in
5577    *-cygwin*)
5578      coin_disable_shared=yes
5579      platform=Cygwin
5580    ;;
5581    *-aix*)
5582      coin_disable_shared=yes
5583      platform=AIX
5584    ;;
5585    *-mingw*)
5586      coin_disable_shared=yes
5587      platform="Msys"
5588#      case "$CXX" in
5589#        cl*)
5590#          coin_disable_shared=yes
5591#          platform="Msys with cl"
5592#      ;;
5593#      esac
5594    ;;
5595  esac
5596fi
5597if test x"$coin_disable_shared" = xyes; then
5598  if test x"$enable_shared" = xyes; then
5599    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5600echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5601  fi
5602  enable_shared=no
5603fi
5604# By default, we only want the shared objects to be compiled
5605# Check whether --enable-static or --disable-static was given.
5606if test "${enable_static+set}" = set; then
5607  enableval="$enable_static"
5608  p=${PACKAGE-default}
5609    case $enableval in
5610    yes) enable_static=yes ;;
5611    no) enable_static=no ;;
5612    *)
5613     enable_static=no
5614      # Look at the argument we got.  We use all the common list separators.
5615      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5616      for pkg in $enableval; do
5617        IFS="$lt_save_ifs"
5618        if test "X$pkg" = "X$p"; then
5619          enable_static=yes
5620        fi
5621      done
5622      IFS="$lt_save_ifs"
5623      ;;
5624    esac
5625else
5626  enable_static=no
5627fi;
5628
5629
5630
5631
5632# Initialize automake
5633echo "$as_me:$LINENO: checking whether ln -s works" >&5
5634echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5635LN_S=$as_ln_s
5636if test "$LN_S" = "ln -s"; then
5637  echo "$as_me:$LINENO: result: yes" >&5
5638echo "${ECHO_T}yes" >&6
5639else
5640  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5641echo "${ECHO_T}no, using $LN_S" >&6
5642fi
5643
5644am__api_version="1.9"
5645# Find a good install program.  We prefer a C program (faster),
5646# so one script is as good as another.  But avoid the broken or
5647# incompatible versions:
5648# SysV /etc/install, /usr/sbin/install
5649# SunOS /usr/etc/install
5650# IRIX /sbin/install
5651# AIX /bin/install
5652# AmigaOS /C/install, which installs bootblocks on floppy discs
5653# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5654# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5655# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5656# OS/2's system install, which has a completely different semantic
5657# ./install, which can be erroneously created by make from ./install.sh.
5658echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5659echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5660if test -z "$INSTALL"; then
5661if test "${ac_cv_path_install+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667  IFS=$as_save_IFS
5668  test -z "$as_dir" && as_dir=.
5669  # Account for people who put trailing slashes in PATH elements.
5670case $as_dir/ in
5671  ./ | .// | /cC/* | \
5672  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5673  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5674  /usr/ucb/* ) ;;
5675  *)
5676    # OSF1 and SCO ODT 3.0 have their own names for install.
5677    # Don't use installbsd from OSF since it installs stuff as root
5678    # by default.
5679    for ac_prog in ginstall scoinst install; do
5680      for ac_exec_ext in '' $ac_executable_extensions; do
5681        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5682          if test $ac_prog = install &&
5683            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5684            # AIX install.  It has an incompatible calling convention.
5685            :
5686          elif test $ac_prog = install &&
5687            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5688            # program-specific install script used by HP pwplus--don't use.
5689            :
5690          else
5691            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5692            break 3
5693          fi
5694        fi
5695      done
5696    done
5697    ;;
5698esac
5699done
5700
5701
5702fi
5703  if test "${ac_cv_path_install+set}" = set; then
5704    INSTALL=$ac_cv_path_install
5705  else
5706    # As a last resort, use the slow shell script.  We don't cache a
5707    # path for INSTALL within a source directory, because that will
5708    # break other packages using the cache if that directory is
5709    # removed, or if the path is relative.
5710    INSTALL=$ac_install_sh
5711  fi
5712fi
5713echo "$as_me:$LINENO: result: $INSTALL" >&5
5714echo "${ECHO_T}$INSTALL" >&6
5715
5716# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5717# It thinks the first close brace ends the variable substitution.
5718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5719
5720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5721
5722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5723
5724echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5725echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5726# Just in case
5727sleep 1
5728echo timestamp > conftest.file
5729# Do `set' in a subshell so we don't clobber the current shell's
5730# arguments.  Must try -L first in case configure is actually a
5731# symlink; some systems play weird games with the mod time of symlinks
5732# (eg FreeBSD returns the mod time of the symlink's containing
5733# directory).
5734if (
5735   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5736   if test "$*" = "X"; then
5737      # -L didn't work.
5738      set X `ls -t $srcdir/configure conftest.file`
5739   fi
5740   rm -f conftest.file
5741   if test "$*" != "X $srcdir/configure conftest.file" \
5742      && test "$*" != "X conftest.file $srcdir/configure"; then
5743
5744      # If neither matched, then we have a broken ls.  This can happen
5745      # if, for instance, CONFIG_SHELL is bash and it inherits a
5746      # broken ls alias from the environment.  This has actually
5747      # happened.  Such a system could not be considered "sane".
5748      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5749alias in your environment" >&5
5750echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5751alias in your environment" >&2;}
5752   { (exit 1); exit 1; }; }
5753   fi
5754
5755   test "$2" = conftest.file
5756   )
5757then
5758   # Ok.
5759   :
5760else
5761   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5762Check your system clock" >&5
5763echo "$as_me: error: newly created file is older than distributed files!
5764Check your system clock" >&2;}
5765   { (exit 1); exit 1; }; }
5766fi
5767echo "$as_me:$LINENO: result: yes" >&5
5768echo "${ECHO_T}yes" >&6
5769test "$program_prefix" != NONE &&
5770  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5771# Use a double $ so make ignores it.
5772test "$program_suffix" != NONE &&
5773  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5774# Double any \ or $.  echo might interpret backslashes.
5775# By default was `s,x,x', remove it if useless.
5776cat <<\_ACEOF >conftest.sed
5777s/[\\$]/&&/g;s/;s,x,x,$//
5778_ACEOF
5779program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5780rm conftest.sed
5781
5782# expand $ac_aux_dir to an absolute path
5783am_aux_dir=`cd $ac_aux_dir && pwd`
5784
5785test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5786# Use eval to expand $SHELL
5787if eval "$MISSING --run true"; then
5788  am_missing_run="$MISSING --run "
5789else
5790  am_missing_run=
5791  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5792echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5793fi
5794
5795if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5796  # We used to keeping the `.' as first argument, in order to
5797  # allow $(mkdir_p) to be used without argument.  As in
5798  #   $(mkdir_p) $(somedir)
5799  # where $(somedir) is conditionally defined.  However this is wrong
5800  # for two reasons:
5801  #  1. if the package is installed by a user who cannot write `.'
5802  #     make install will fail,
5803  #  2. the above comment should most certainly read
5804  #     $(mkdir_p) $(DESTDIR)$(somedir)
5805  #     so it does not work when $(somedir) is undefined and
5806  #     $(DESTDIR) is not.
5807  #  To support the latter case, we have to write
5808  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5809  #  so the `.' trick is pointless.
5810  mkdir_p='mkdir -p --'
5811else
5812  # On NextStep and OpenStep, the `mkdir' command does not
5813  # recognize any option.  It will interpret all options as
5814  # directories to create, and then abort because `.' already
5815  # exists.
5816  for d in ./-p ./--version;
5817  do
5818    test -d $d && rmdir $d
5819  done
5820  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5821  if test -f "$ac_aux_dir/mkinstalldirs"; then
5822    mkdir_p='$(mkinstalldirs)'
5823  else
5824    mkdir_p='$(install_sh) -d'
5825  fi
5826fi
5827
5828for ac_prog in gawk mawk nawk awk
5829do
5830  # Extract the first word of "$ac_prog", so it can be a program name with args.
5831set dummy $ac_prog; ac_word=$2
5832echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834if test "${ac_cv_prog_AWK+set}" = set; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  if test -n "$AWK"; then
5838  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845  for ac_exec_ext in '' $ac_executable_extensions; do
5846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847    ac_cv_prog_AWK="$ac_prog"
5848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852done
5853
5854fi
5855fi
5856AWK=$ac_cv_prog_AWK
5857if test -n "$AWK"; then
5858  echo "$as_me:$LINENO: result: $AWK" >&5
5859echo "${ECHO_T}$AWK" >&6
5860else
5861  echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863fi
5864
5865  test -n "$AWK" && break
5866done
5867
5868echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5869echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5870set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5871if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874  cat >conftest.make <<\_ACEOF
5875all:
5876        @echo 'ac_maketemp="$(MAKE)"'
5877_ACEOF
5878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5879eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5880if test -n "$ac_maketemp"; then
5881  eval ac_cv_prog_make_${ac_make}_set=yes
5882else
5883  eval ac_cv_prog_make_${ac_make}_set=no
5884fi
5885rm -f conftest.make
5886fi
5887if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5888  echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890  SET_MAKE=
5891else
5892  echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894  SET_MAKE="MAKE=${MAKE-make}"
5895fi
5896
5897rm -rf .tst 2>/dev/null
5898mkdir .tst 2>/dev/null
5899if test -d .tst; then
5900  am__leading_dot=.
5901else
5902  am__leading_dot=_
5903fi
5904rmdir .tst 2>/dev/null
5905
5906DEPDIR="${am__leading_dot}deps"
5907
5908          ac_config_commands="$ac_config_commands depfiles"
5909
5910
5911am_make=${MAKE-make}
5912cat > confinc << 'END'
5913am__doit:
5914        @echo done
5915.PHONY: am__doit
5916END
5917# If we don't find an include directive, just comment out the code.
5918echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5919echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5920am__include="#"
5921am__quote=
5922_am_result=none
5923# First try GNU make style include.
5924echo "include confinc" > confmf
5925# We grep out `Entering directory' and `Leaving directory'
5926# messages which can occur if `w' ends up in MAKEFLAGS.
5927# In particular we don't look at `^make:' because GNU make might
5928# be invoked under some other name (usually "gmake"), in which
5929# case it prints its new name instead of `make'.
5930if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5931   am__include=include
5932   am__quote=
5933   _am_result=GNU
5934fi
5935# Now try BSD make style include.
5936if test "$am__include" = "#"; then
5937   echo '.include "confinc"' > confmf
5938   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5939      am__include=.include
5940      am__quote="\""
5941      _am_result=BSD
5942   fi
5943fi
5944
5945
5946echo "$as_me:$LINENO: result: $_am_result" >&5
5947echo "${ECHO_T}$_am_result" >&6
5948rm -f confinc confmf
5949
5950# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5951if test "${enable_dependency_tracking+set}" = set; then
5952  enableval="$enable_dependency_tracking"
5953
5954fi;
5955if test "x$enable_dependency_tracking" != xno; then
5956  am_depcomp="$ac_aux_dir/depcomp"
5957  AMDEPBACKSLASH='\'
5958fi
5959
5960
5961if test "x$enable_dependency_tracking" != xno; then
5962  AMDEP_TRUE=
5963  AMDEP_FALSE='#'
5964else
5965  AMDEP_TRUE='#'
5966  AMDEP_FALSE=
5967fi
5968
5969
5970
5971
5972
5973
5974# AC_MSG_NOTICE([Beginning automake initialisation.])
5975# Stuff for automake
5976# test to see if srcdir already configured
5977if test "`cd $srcdir && pwd`" != "`pwd`" &&
5978   test -f $srcdir/config.status; then
5979  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5980echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5981   { (exit 1); exit 1; }; }
5982fi
5983
5984# test whether we have cygpath
5985if test -z "$CYGPATH_W"; then
5986  if (cygpath --version) >/dev/null 2>/dev/null; then
5987    CYGPATH_W='cygpath -w'
5988  else
5989    CYGPATH_W=echo
5990  fi
5991fi
5992
5993
5994# Define the identity of the package.
5995 PACKAGE='thirdpartymumps'
5996 VERSION='1.4'
5997
5998
5999cat >>confdefs.h <<_ACEOF
6000#define PACKAGE "$PACKAGE"
6001_ACEOF
6002
6003
6004cat >>confdefs.h <<_ACEOF
6005#define VERSION "$VERSION"
6006_ACEOF
6007
6008# Some tools Automake needs.
6009
6010ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6011
6012
6013AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6014
6015
6016AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6017
6018
6019AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6020
6021
6022MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6023
6024install_sh=${install_sh-"$am_aux_dir/install-sh"}
6025
6026# Installed binaries are usually stripped using `strip' when the user
6027# run `make install-strip'.  However `strip' might not be the right
6028# tool to use in cross-compilation environments, therefore Automake
6029# will honor the `STRIP' environment variable to overrule this program.
6030if test "$cross_compiling" != no; then
6031  if test -n "$ac_tool_prefix"; then
6032  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}strip; ac_word=$2
6034echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036if test "${ac_cv_prog_STRIP+set}" = set; then
6037  echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039  if test -n "$STRIP"; then
6040  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047  for ac_exec_ext in '' $ac_executable_extensions; do
6048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054done
6055
6056fi
6057fi
6058STRIP=$ac_cv_prog_STRIP
6059if test -n "$STRIP"; then
6060  echo "$as_me:$LINENO: result: $STRIP" >&5
6061echo "${ECHO_T}$STRIP" >&6
6062else
6063  echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065fi
6066
6067fi
6068if test -z "$ac_cv_prog_STRIP"; then
6069  ac_ct_STRIP=$STRIP
6070  # Extract the first word of "strip", so it can be a program name with args.
6071set dummy strip; ac_word=$2
6072echo "$as_me:$LINENO: checking for $ac_word" >&5
6073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6074if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077  if test -n "$ac_ct_STRIP"; then
6078  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6079else
6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083  IFS=$as_save_IFS
6084  test -z "$as_dir" && as_dir=.
6085  for ac_exec_ext in '' $ac_executable_extensions; do
6086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087    ac_cv_prog_ac_ct_STRIP="strip"
6088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089    break 2
6090  fi
6091done
6092done
6093
6094  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6095fi
6096fi
6097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6098if test -n "$ac_ct_STRIP"; then
6099  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6100echo "${ECHO_T}$ac_ct_STRIP" >&6
6101else
6102  echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104fi
6105
6106  STRIP=$ac_ct_STRIP
6107else
6108  STRIP="$ac_cv_prog_STRIP"
6109fi
6110
6111fi
6112INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6113
6114# We need awk for the "check" target.  The system "awk" is bad on
6115# some platforms.
6116# Always define AMTAR for backward compatibility.
6117
6118AMTAR=${AMTAR-"${am_missing_run}tar"}
6119
6120am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6121
6122
6123
6124
6125depcc="$CC"   am_compiler_list=
6126
6127echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6128echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6129if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6130  echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6133  # We make a subdir and do the tests there.  Otherwise we can end up
6134  # making bogus files that we don't know about and never remove.  For
6135  # instance it was reported that on HP-UX the gcc test will end up
6136  # making a dummy file named `D' -- because `-MD' means `put the output
6137  # in D'.
6138  mkdir conftest.dir
6139  # Copy depcomp to subdir because otherwise we won't find it if we're
6140  # using a relative directory.
6141  cp "$am_depcomp" conftest.dir
6142  cd conftest.dir
6143  # We will build objects and dependencies in a subdirectory because
6144  # it helps to detect inapplicable dependency modes.  For instance
6145  # both Tru64's cc and ICC support -MD to output dependencies as a
6146  # side effect of compilation, but ICC will put the dependencies in
6147  # the current directory while Tru64 will put them in the object
6148  # directory.
6149  mkdir sub
6150
6151  am_cv_CC_dependencies_compiler_type=none
6152  if test "$am_compiler_list" = ""; then
6153     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6154  fi
6155  for depmode in $am_compiler_list; do
6156    # Setup a source with many dependencies, because some compilers
6157    # like to wrap large dependency lists on column 80 (with \), and
6158    # we should not choose a depcomp mode which is confused by this.
6159    #
6160    # We need to recreate these files for each test, as the compiler may
6161    # overwrite some of them when testing with obscure command lines.
6162    # This happens at least with the AIX C compiler.
6163    : > sub/conftest.c
6164    for i in 1 2 3 4 5 6; do
6165      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6166      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6167      # Solaris 8's {/usr,}/bin/sh.
6168      touch sub/conftst$i.h
6169    done
6170    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6171
6172    case $depmode in
6173    nosideeffect)
6174      # after this tag, mechanisms are not by side-effect, so they'll
6175      # only be used when explicitly requested
6176      if test "x$enable_dependency_tracking" = xyes; then
6177        continue
6178      else
6179        break
6180      fi
6181      ;;
6182    none) break ;;
6183    esac
6184    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6185    # mode.  It turns out that the SunPro C++ compiler does not properly
6186    # handle `-M -o', and we need to detect this.
6187    if depmode=$depmode \
6188       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6189       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6190       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6191         >/dev/null 2>conftest.err &&
6192       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6193       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6194       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6195      # icc doesn't choke on unknown options, it will just issue warnings
6196      # or remarks (even with -Werror).  So we grep stderr for any message
6197      # that says an option was ignored or not supported.
6198      # When given -MP, icc 7.0 and 7.1 complain thusly:
6199      #   icc: Command line warning: ignoring option '-M'; no argument required
6200      # The diagnosis changed in icc 8.0:
6201      #   icc: Command line remark: option '-MP' not supported
6202      if (grep 'ignoring option' conftest.err ||
6203          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6204        am_cv_CC_dependencies_compiler_type=$depmode
6205        break
6206      fi
6207    fi
6208  done
6209
6210  cd ..
6211  rm -rf conftest.dir
6212else
6213  am_cv_CC_dependencies_compiler_type=none
6214fi
6215
6216fi
6217echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6218echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6220
6221
6222
6223if
6224  test "x$enable_dependency_tracking" != xno \
6225  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6226  am__fastdepCC_TRUE=
6227  am__fastdepCC_FALSE='#'
6228else
6229  am__fastdepCC_TRUE='#'
6230  am__fastdepCC_FALSE=
6231fi
6232
6233
6234
6235echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6236echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6237    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6238if test "${enable_maintainer_mode+set}" = set; then
6239  enableval="$enable_maintainer_mode"
6240  USE_MAINTAINER_MODE=$enableval
6241else
6242  USE_MAINTAINER_MODE=no
6243fi;
6244  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6245echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6246
6247
6248if test $USE_MAINTAINER_MODE = yes; then
6249  MAINTAINER_MODE_TRUE=
6250  MAINTAINER_MODE_FALSE='#'
6251else
6252  MAINTAINER_MODE_TRUE='#'
6253  MAINTAINER_MODE_FALSE=
6254fi
6255
6256  MAINT=$MAINTAINER_MODE_TRUE
6257
6258
6259
6260coin_have_externals=no
6261if test "$enable_maintainer_mode" = yes; then
6262
6263  # If maintainer mode is chosen, we make sure that the correct versions
6264  # of the tools are used, and that we know where libtool.m4 is (to
6265  # recreate acinclude.m4)
6266
6267
6268  LIBTOOLM4=
6269  # Normally, $HOME
6270  AUTOTOOLS_DFLT=$HOME
6271
6272  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6273echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6274if test "${ac_cv_use_correct_autotools+set}" = set; then
6275  echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277  ac_cv_use_correct_autotools=check
6278fi
6279echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6280echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6281
6282  if test $ac_cv_use_correct_autotools = check; then
6283    ac_cv_use_correct_autotools=yes
6284    # Check if we have autoconf
6285    # Extract the first word of "autoconf", so it can be a program name with args.
6286set dummy autoconf; ac_word=$2
6287echo "$as_me:$LINENO: checking for $ac_word" >&5
6288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6289if test "${ac_cv_prog_have_autoconf+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292  if test -n "$have_autoconf"; then
6293  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298  IFS=$as_save_IFS
6299  test -z "$as_dir" && as_dir=.
6300  for ac_exec_ext in '' $ac_executable_extensions; do
6301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302    ac_cv_prog_have_autoconf="yes"
6303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304    break 2
6305  fi
6306done
6307done
6308
6309  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6310fi
6311fi
6312have_autoconf=$ac_cv_prog_have_autoconf
6313if test -n "$have_autoconf"; then
6314  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6315echo "${ECHO_T}$have_autoconf" >&6
6316else
6317  echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
6319fi
6320
6321    if test $have_autoconf = no; then
6322      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6323echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6324   { (exit 1); exit 1; }; }
6325    fi
6326
6327    # Check whether autoconf is the correct version
6328    correct_version='2.59'
6329    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6330    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6331echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6332    autoconf --version > confauto.out 2>&1
6333    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6334      echo "$as_me:$LINENO: result: yes" >&5
6335echo "${ECHO_T}yes" >&6
6336    else
6337      rm -f confauto.out
6338      echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6
6340      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6341echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6342   { (exit 1); exit 1; }; }
6343    fi
6344    rm -f confauto.out
6345
6346    # Check if the executable autoconf is picked up from the correct location
6347    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6348echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6349    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6350    autoconf_dir=`cd $autoconf_dir; pwd`
6351    if test x$AUTOTOOLS_DIR = x; then
6352      want_dir=$AUTOTOOLS_DFLT/bin
6353    else
6354      want_dir=$AUTOTOOLS_DIR/bin
6355    fi
6356    if test $autoconf_dir = `cd $want_dir; pwd`; then
6357      echo "$as_me:$LINENO: result: yes" >&5
6358echo "${ECHO_T}yes" >&6
6359    else
6360      rm -f confauto.out
6361      echo "$as_me:$LINENO: result: no" >&5
6362echo "${ECHO_T}no" >&6
6363      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6364echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6365   { (exit 1); exit 1; }; }
6366    fi
6367
6368    # Check if we have automake
6369    # Extract the first word of "automake", so it can be a program name with args.
6370set dummy automake; ac_word=$2
6371echo "$as_me:$LINENO: checking for $ac_word" >&5
6372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6373if test "${ac_cv_prog_have_automake+set}" = set; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376  if test -n "$have_automake"; then
6377  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382  IFS=$as_save_IFS
6383  test -z "$as_dir" && as_dir=.
6384  for ac_exec_ext in '' $ac_executable_extensions; do
6385  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386    ac_cv_prog_have_automake="yes"
6387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388    break 2
6389  fi
6390done
6391done
6392
6393  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6394fi
6395fi
6396have_automake=$ac_cv_prog_have_automake
6397if test -n "$have_automake"; then
6398  echo "$as_me:$LINENO: result: $have_automake" >&5
6399echo "${ECHO_T}$have_automake" >&6
6400else
6401  echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
6403fi
6404
6405    if test $have_automake = no; then
6406      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6407echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6408   { (exit 1); exit 1; }; }
6409    fi
6410
6411    # Check whether automake is the correct version
6412    correct_version='1.9.6'
6413    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6414    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6415echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6416    automake --version > confauto.out 2>&1
6417    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6418      echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420    else
6421      rm -f confauto.out
6422      echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
6424      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6425echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6426   { (exit 1); exit 1; }; }
6427    fi
6428    rm -f confauto.out
6429
6430    # Check if the executable automake is picked up from the correct location
6431    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6432echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6433    automake_dir=`which automake | sed -e 's=/automake=='`
6434    automake_dir=`cd $automake_dir; pwd`
6435    if test x$AUTOTOOLS_DIR = x; then
6436      want_dir=$AUTOTOOLS_DFLT/bin
6437    else
6438      want_dir=$AUTOTOOLS_DIR/bin
6439    fi
6440    if test $automake_dir = `cd $want_dir; pwd`; then
6441      echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6
6443    else
6444      rm -f confauto.out
6445      echo "$as_me:$LINENO: result: no" >&5
6446echo "${ECHO_T}no" >&6
6447      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6448echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6449   { (exit 1); exit 1; }; }
6450    fi
6451
6452    # Check if this is the correct version of libtool (with escaped dots)
6453    if test x$AUTOTOOLS_DIR = x; then
6454      want_dir=$AUTOTOOLS_DFLT/share
6455    else
6456      want_dir=$AUTOTOOLS_DIR/share
6457    fi
6458    correct_version='1.5.22'
6459    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6460    if test -r $want_dir/libtool/ltmain.sh; then
6461  have_ltmain=yes
6462  :
6463else
6464  have_ltmain=no
6465  :
6466fi
6467
6468    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6469echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6470    if test $have_ltmain = yes; then
6471    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6472        echo "$as_me:$LINENO: result: yes" >&5
6473echo "${ECHO_T}yes" >&6
6474      else
6475        echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
6477        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6478echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6479   { (exit 1); exit 1; }; }
6480      fi
6481    else
6482      echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
6484      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6485echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6486   { (exit 1); exit 1; }; }
6487    fi
6488  fi
6489
6490  # Check if we can find the libtool file
6491  if test x$AUTOTOOLS_DIR = x; then
6492    want_dir=$AUTOTOOLS_DFLT/share
6493  else
6494    want_dir=$AUTOTOOLS_DIR/share
6495  fi
6496  if test -r $want_dir/aclocal/libtool.m4; then
6497  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6498  :
6499else
6500  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6501echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6502   { (exit 1); exit 1; }; }
6503  :
6504fi
6505
6506
6507  # Check if we have an Dependencies file
6508  if test -r $srcdir/Dependencies; then
6509    coin_have_externals=yes
6510  fi
6511  # Check if subversion is installed and understands https
6512  # Extract the first word of "svn", so it can be a program name with args.
6513set dummy svn; ac_word=$2
6514echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516if test "${ac_cv_prog_have_svn+set}" = set; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519  if test -n "$have_svn"; then
6520  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525  IFS=$as_save_IFS
6526  test -z "$as_dir" && as_dir=.
6527  for ac_exec_ext in '' $ac_executable_extensions; do
6528  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529    ac_cv_prog_have_svn="yes"
6530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531    break 2
6532  fi
6533done
6534done
6535
6536  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6537fi
6538fi
6539have_svn=$ac_cv_prog_have_svn
6540if test -n "$have_svn"; then
6541  echo "$as_me:$LINENO: result: $have_svn" >&5
6542echo "${ECHO_T}$have_svn" >&6
6543else
6544  echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546fi
6547
6548  if test x$have_svn = xyes; then
6549    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6550echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6551if test "${ac_cv_svn_understands_https+set}" = set; then
6552  echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554  svn --version > confauto.out 2>&1
6555                    if $EGREP https confauto.out >/dev/null 2>&1; then
6556                      ac_cv_svn_understands_https=yes
6557                    else
6558                      ac_cv_svn_understands_https=no
6559                      have_svn=no
6560                      ac_cv_prog_have_svn=no
6561                    fi
6562                    rm -f confauto.out
6563fi
6564echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6565echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6566  fi
6567
6568  # Find the location of the BuildTools directory
6569  BUILDTOOLSDIR=
6570  if test -r $srcdir/BuildTools/coin.m4; then
6571    BUILDTOOLSDIR=$srcdir/BuildTools
6572  else
6573    if test -r $srcdir/../BuildTools/coin.m4; then
6574      BUILDTOOLSDIR=$srcdir/../BuildTools
6575    else
6576      if test -r $srcdir/../../BuildTools/coin.m4; then
6577        BUILDTOOLSDIR=$srcdir/../../BuildTools
6578      else
6579        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6580echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6581   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6582      fi
6583    fi
6584  fi
6585
6586
6587  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6588  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6589    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6590  fi
6591
6592  # The following variable is set to the name of the directory where
6593  # the autotool scripts are located
6594
6595  AUX_DIR=$ac_aux_dir
6596fi
6597
6598# helpful variable for the base directory of this package
6599abs_source_dir=`cd $srcdir; pwd`
6600
6601
6602# Stuff for example Makefiles
6603if test x$prefix = xNONE; then
6604  full_prefix=$ac_default_prefix
6605else
6606  full_prefix=$prefix
6607fi
6608full_prefix=`cd $full_prefix ; pwd`
6609
6610abs_lib_dir=$full_prefix/lib
6611
6612abs_include_dir=$full_prefix/include
6613
6614abs_bin_dir=$full_prefix/bin
6615
6616
6617
6618if test $coin_have_externals = yes && test x$have_svn = xyes; then
6619  HAVE_EXTERNALS_TRUE=
6620  HAVE_EXTERNALS_FALSE='#'
6621else
6622  HAVE_EXTERNALS_TRUE='#'
6623  HAVE_EXTERNALS_FALSE=
6624fi
6625
6626
6627# AC_MSG_NOTICE([End automake initialisation.])
6628
6629
6630
6631LIBTOOL=
6632if test -r ../libtool; then
6633  coin_config_dir=..
6634  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6635fi
6636if test "x$LIBTOOL" = x; then
6637  if test -r ../../libtool; then
6638    coin_config_dir=../..
6639    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6640  fi
6641fi
6642
6643if test "x$LIBTOOL" = x; then
6644# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6645  # Stuff for libtool
6646  # Check whether --enable-shared or --disable-shared was given.
6647if test "${enable_shared+set}" = set; then
6648  enableval="$enable_shared"
6649  p=${PACKAGE-default}
6650    case $enableval in
6651    yes) enable_shared=yes ;;
6652    no) enable_shared=no ;;
6653    *)
6654      enable_shared=no
6655      # Look at the argument we got.  We use all the common list separators.
6656      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657      for pkg in $enableval; do
6658        IFS="$lt_save_ifs"
6659        if test "X$pkg" = "X$p"; then
6660          enable_shared=yes
6661        fi
6662      done
6663      IFS="$lt_save_ifs"
6664      ;;
6665    esac
6666else
6667  enable_shared=yes
6668fi;
6669
6670# Check whether --enable-fast-install or --disable-fast-install was given.
6671if test "${enable_fast_install+set}" = set; then
6672  enableval="$enable_fast_install"
6673  p=${PACKAGE-default}
6674    case $enableval in
6675    yes) enable_fast_install=yes ;;
6676    no) enable_fast_install=no ;;
6677    *)
6678      enable_fast_install=no
6679      # Look at the argument we got.  We use all the common list separators.
6680      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6681      for pkg in $enableval; do
6682        IFS="$lt_save_ifs"
6683        if test "X$pkg" = "X$p"; then
6684          enable_fast_install=yes
6685        fi
6686      done
6687      IFS="$lt_save_ifs"
6688      ;;
6689    esac
6690else
6691  enable_fast_install=yes
6692fi;
6693
6694echo "$as_me:$LINENO: checking host system type" >&5
6695echo $ECHO_N "checking host system type... $ECHO_C" >&6
6696if test "${ac_cv_host+set}" = set; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  ac_cv_host_alias=$host_alias
6700test -z "$ac_cv_host_alias" &&
6701  ac_cv_host_alias=$ac_cv_build_alias
6702ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6703  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6704echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6705   { (exit 1); exit 1; }; }
6706
6707fi
6708echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6709echo "${ECHO_T}$ac_cv_host" >&6
6710host=$ac_cv_host
6711host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6712host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6713host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6714
6715
6716echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6717echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6718if test "${lt_cv_path_SED+set}" = set; then
6719  echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721  # Loop through the user's path and test for sed and gsed.
6722# Then use that list of sed's as ones to test for truncation.
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726  IFS=$as_save_IFS
6727  test -z "$as_dir" && as_dir=.
6728  for lt_ac_prog in sed gsed; do
6729    for ac_exec_ext in '' $ac_executable_extensions; do
6730      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6731        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6732      fi
6733    done
6734  done
6735done
6736lt_ac_max=0
6737lt_ac_count=0
6738# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6739# along with /bin/sed that truncates output.
6740for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6741  test ! -f $lt_ac_sed && continue
6742  cat /dev/null > conftest.in
6743  lt_ac_count=0
6744  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6745  # Check for GNU sed and select it if it is found.
6746  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6747    lt_cv_path_SED=$lt_ac_sed
6748    break
6749  fi
6750  while true; do
6751    cat conftest.in conftest.in >conftest.tmp
6752    mv conftest.tmp conftest.in
6753    cp conftest.in conftest.nl
6754    echo >>conftest.nl
6755    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6756    cmp -s conftest.out conftest.nl || break
6757    # 10000 chars as input seems more than enough
6758    test $lt_ac_count -gt 10 && break
6759    lt_ac_count=`expr $lt_ac_count + 1`
6760    if test $lt_ac_count -gt $lt_ac_max; then
6761      lt_ac_max=$lt_ac_count
6762      lt_cv_path_SED=$lt_ac_sed
6763    fi
6764  done
6765done
6766
6767fi
6768
6769SED=$lt_cv_path_SED
6770echo "$as_me:$LINENO: result: $SED" >&5
6771echo "${ECHO_T}$SED" >&6
6772
6773
6774# Check whether --with-gnu-ld or --without-gnu-ld was given.
6775if test "${with_gnu_ld+set}" = set; then
6776  withval="$with_gnu_ld"
6777  test "$withval" = no || with_gnu_ld=yes
6778else
6779  with_gnu_ld=no
6780fi;
6781ac_prog=ld
6782if test "$GCC" = yes; then
6783  # Check if gcc -print-prog-name=ld gives a path.
6784  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6785echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6786  case $host in
6787  *-*-mingw*)
6788    # gcc leaves a trailing carriage return which upsets mingw
6789    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6790  *)
6791    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6792  esac
6793  case $ac_prog in
6794    # Accept absolute paths.
6795    [\\/]* | ?:[\\/]*)
6796      re_direlt='/[^/][^/]*/\.\./'
6797      # Canonicalize the pathname of ld
6798      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6799      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6800        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6801      done
6802      test -z "$LD" && LD="$ac_prog"
6803      ;;
6804  "")
6805    # If it fails, then pretend we aren't using GCC.
6806    ac_prog=ld
6807    ;;
6808  *)
6809    # If it is relative, then search for the first ld in PATH.
6810    with_gnu_ld=unknown
6811    ;;
6812  esac
6813elif test "$with_gnu_ld" = yes; then
6814  echo "$as_me:$LINENO: checking for GNU ld" >&5
6815echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6816else
6817  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6818echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6819fi
6820if test "${lt_cv_path_LD+set}" = set; then
6821  echo $ECHO_N "(cached) $ECHO_C" >&6
6822else
6823  if test -z "$LD"; then
6824  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6825  for ac_dir in $PATH; do
6826    IFS="$lt_save_ifs"
6827    test -z "$ac_dir" && ac_dir=.
6828    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6829      lt_cv_path_LD="$ac_dir/$ac_prog"
6830      # Check to see if the program is GNU ld.  I'd rather use --version,
6831      # but apparently some variants of GNU ld only accept -v.
6832      # Break only if it was the GNU/non-GNU ld that we prefer.
6833      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6834      *GNU* | *'with BFD'*)
6835        test "$with_gnu_ld" != no && break
6836        ;;
6837      *)
6838        test "$with_gnu_ld" != yes && break
6839        ;;
6840      esac
6841    fi
6842  done
6843  IFS="$lt_save_ifs"
6844else
6845  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6846fi
6847fi
6848
6849LD="$lt_cv_path_LD"
6850if test -n "$LD"; then
6851  echo "$as_me:$LINENO: result: $LD" >&5
6852echo "${ECHO_T}$LD" >&6
6853else
6854  echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6
6856fi
6857test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6858echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6859   { (exit 1); exit 1; }; }
6860echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6861echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6862if test "${lt_cv_prog_gnu_ld+set}" = set; then
6863  echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6866case `$LD -v 2>&1 </dev/null` in
6867*GNU* | *'with BFD'*)
6868  lt_cv_prog_gnu_ld=yes
6869  ;;
6870*)
6871  lt_cv_prog_gnu_ld=no
6872  ;;
6873esac
6874fi
6875echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6876echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6877with_gnu_ld=$lt_cv_prog_gnu_ld
6878
6879
6880echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6881echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6882if test "${lt_cv_ld_reload_flag+set}" = set; then
6883  echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885  lt_cv_ld_reload_flag='-r'
6886fi
6887echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6888echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6889reload_flag=$lt_cv_ld_reload_flag
6890case $reload_flag in
6891"" | " "*) ;;
6892*) reload_flag=" $reload_flag" ;;
6893esac
6894reload_cmds='$LD$reload_flag -o $output$reload_objs'
6895case $host_os in
6896  darwin*)
6897    if test "$GCC" = yes; then
6898      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6899    else
6900      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6901    fi
6902    ;;
6903esac
6904
6905echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6906echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6907if test "${lt_cv_path_NM+set}" = set; then
6908  echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910  if test -n "$NM"; then
6911  # Let the user override the test.
6912  lt_cv_path_NM="$NM"
6913else
6914  lt_nm_to_check="${ac_tool_prefix}nm"
6915  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6916    lt_nm_to_check="$lt_nm_to_check nm"
6917  fi
6918  for lt_tmp_nm in $lt_nm_to_check; do
6919    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6920    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6921      IFS="$lt_save_ifs"
6922      test -z "$ac_dir" && ac_dir=.
6923      tmp_nm="$ac_dir/$lt_tmp_nm"
6924      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6925        # Check to see if the nm accepts a BSD-compat flag.
6926        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6927        #   nm: unknown option "B" ignored
6928        # Tru64's nm complains that /dev/null is an invalid object file
6929        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6930        */dev/null* | *'Invalid file or object type'*)
6931          lt_cv_path_NM="$tmp_nm -B"
6932          break
6933          ;;
6934        *)
6935          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6936          */dev/null*)
6937            lt_cv_path_NM="$tmp_nm -p"
6938            break
6939            ;;
6940          *)
6941            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6942            continue # so that we can try to find one that supports BSD flags
6943            ;;
6944          esac
6945          ;;
6946        esac
6947      fi
6948    done
6949    IFS="$lt_save_ifs"
6950  done
6951  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6952fi
6953fi
6954echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6955echo "${ECHO_T}$lt_cv_path_NM" >&6
6956NM="$lt_cv_path_NM"
6957
6958echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6959echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6960if test "${lt_cv_deplibs_check_method+set}" = set; then
6961  echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963  lt_cv_file_magic_cmd='$MAGIC_CMD'
6964lt_cv_file_magic_test_file=
6965lt_cv_deplibs_check_method='unknown'
6966# Need to set the preceding variable on all platforms that support
6967# interlibrary dependencies.
6968# 'none' -- dependencies not supported.
6969# `unknown' -- same as none, but documents that we really don't know.
6970# 'pass_all' -- all dependencies passed with no checks.
6971# 'test_compile' -- check by making test program.
6972# 'file_magic [[regex]]' -- check by looking for files in library path
6973# which responds to the $file_magic_cmd with a given extended regex.
6974# If you have `file' or equivalent on your system and you're not sure
6975# whether `pass_all' will *always* work, you probably want this one.
6976
6977case $host_os in
6978aix4* | aix5*)
6979  lt_cv_deplibs_check_method=pass_all
6980  ;;
6981
6982beos*)
6983  lt_cv_deplibs_check_method=pass_all
6984  ;;
6985
6986bsdi[45]*)
6987  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6988  lt_cv_file_magic_cmd='/usr/bin/file -L'
6989  lt_cv_file_magic_test_file=/shlib/libc.so
6990  ;;
6991
6992cygwin*)
6993  # func_win32_libid is a shell function defined in ltmain.sh
6994  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6995  lt_cv_file_magic_cmd='func_win32_libid'
6996  ;;
6997
6998mingw* | pw32*)
6999  # Base MSYS/MinGW do not provide the 'file' command needed by
7000  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7001  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7002  lt_cv_file_magic_cmd='$OBJDUMP -f'
7003  ;;
7004
7005darwin* | rhapsody*)
7006  lt_cv_deplibs_check_method=pass_all
7007  ;;
7008
7009freebsd* | kfreebsd*-gnu | dragonfly*)
7010  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7011    case $host_cpu in
7012    i*86 )
7013      # Not sure whether the presence of OpenBSD here was a mistake.
7014      # Let's accept both of them until this is cleared up.
7015      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7016      lt_cv_file_magic_cmd=/usr/bin/file
7017      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7018      ;;
7019    esac
7020  else
7021    lt_cv_deplibs_check_method=pass_all
7022  fi
7023  ;;
7024
7025gnu*)
7026  lt_cv_deplibs_check_method=pass_all
7027  ;;
7028
7029hpux10.20* | hpux11*)
7030  lt_cv_file_magic_cmd=/usr/bin/file
7031  case $host_cpu in
7032  ia64*)
7033    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7034    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7035    ;;
7036  hppa*64*)
7037    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7038    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7039    ;;
7040  *)
7041    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7042    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7043    ;;
7044  esac
7045  ;;
7046
7047interix3*)
7048  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7049  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7050  ;;
7051
7052irix5* | irix6* | nonstopux*)
7053  case $LD in
7054  *-32|*"-32 ") libmagic=32-bit;;
7055  *-n32|*"-n32 ") libmagic=N32;;
7056  *-64|*"-64 ") libmagic=64-bit;;
7057  *) libmagic=never-match;;
7058  esac
7059  lt_cv_deplibs_check_method=pass_all
7060  ;;
7061
7062# This must be Linux ELF.
7063linux*)
7064  lt_cv_deplibs_check_method=pass_all
7065  ;;
7066
7067netbsd*)
7068  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7069    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7070  else
7071    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7072  fi
7073  ;;
7074
7075newos6*)
7076  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7077  lt_cv_file_magic_cmd=/usr/bin/file
7078  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7079  ;;
7080
7081nto-qnx*)
7082  lt_cv_deplibs_check_method=unknown
7083  ;;
7084
7085openbsd*)
7086  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7087    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7088  else
7089    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7090  fi
7091  ;;
7092
7093osf3* | osf4* | osf5*)
7094  lt_cv_deplibs_check_method=pass_all
7095  ;;
7096
7097solaris*)
7098  lt_cv_deplibs_check_method=pass_all
7099  ;;
7100
7101sysv4 | sysv4.3*)
7102  case $host_vendor in
7103  motorola)
7104    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7105    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7106    ;;
7107  ncr)
7108    lt_cv_deplibs_check_method=pass_all
7109    ;;
7110  sequent)
7111    lt_cv_file_magic_cmd='/bin/file'
7112    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7113    ;;
7114  sni)
7115    lt_cv_file_magic_cmd='/bin/file'
7116    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7117    lt_cv_file_magic_test_file=/lib/libc.so
7118    ;;
7119  siemens)
7120    lt_cv_deplibs_check_method=pass_all
7121    ;;
7122  pc)
7123    lt_cv_deplibs_check_method=pass_all
7124    ;;
7125  esac
7126  ;;
7127
7128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7129  lt_cv_deplibs_check_method=pass_all
7130  ;;
7131esac
7132
7133fi
7134echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7135echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7136file_magic_cmd=$lt_cv_file_magic_cmd
7137deplibs_check_method=$lt_cv_deplibs_check_method
7138test -z "$deplibs_check_method" && deplibs_check_method=unknown
7139
7140
7141
7142
7143# If no C compiler was specified, use CC.
7144LTCC=${LTCC-"$CC"}
7145
7146# If no C compiler flags were specified, use CFLAGS.
7147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7148
7149# Allow CC to be a program name with arguments.
7150compiler=$CC
7151
7152# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7153if test "${enable_libtool_lock+set}" = set; then
7154  enableval="$enable_libtool_lock"
7155
7156fi;
7157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7158
7159# Some flags need to be propagated to the compiler or linker for good
7160# libtool support.
7161case $host in
7162ia64-*-hpux*)
7163  # Find out which ABI we are using.
7164  echo 'int i;' > conftest.$ac_ext
7165  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166  (eval $ac_compile) 2>&5
7167  ac_status=$?
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); }; then
7170    case `/usr/bin/file conftest.$ac_objext` in
7171    *ELF-32*)
7172      HPUX_IA64_MODE="32"
7173      ;;
7174    *ELF-64*)
7175      HPUX_IA64_MODE="64"
7176      ;;
7177    esac
7178  fi
7179  rm -rf conftest*
7180  ;;
7181*-*-irix6*)
7182  # Find out which ABI we are using.
7183  echo '#line 7183 "configure"' > conftest.$ac_ext
7184  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185  (eval $ac_compile) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; then
7189   if test "$lt_cv_prog_gnu_ld" = yes; then
7190    case `/usr/bin/file conftest.$ac_objext` in
7191    *32-bit*)
7192      LD="${LD-ld} -melf32bsmip"
7193      ;;
7194    *N32*)
7195      LD="${LD-ld} -melf32bmipn32"
7196      ;;
7197    *64-bit*)
7198      LD="${LD-ld} -melf64bmip"
7199      ;;
7200    esac
7201   else
7202    case `/usr/bin/file conftest.$ac_objext` in
7203    *32-bit*)
7204      LD="${LD-ld} -32"
7205      ;;
7206    *N32*)
7207      LD="${LD-ld} -n32"
7208      ;;
7209    *64-bit*)
7210      LD="${LD-ld} -64"
7211      ;;
7212    esac
7213   fi
7214  fi
7215  rm -rf conftest*
7216  ;;
7217
7218x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7219  # Find out which ABI we are using.
7220  echo 'int i;' > conftest.$ac_ext
7221  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222  (eval $ac_compile) 2>&5
7223  ac_status=$?
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); }; then
7226    case `/usr/bin/file conftest.o` in
7227    *32-bit*)
7228      case $host in
7229        x86_64-*linux*)
7230          LD="${LD-ld} -m elf_i386"
7231          ;;
7232        ppc64-*linux*|powerpc64-*linux*)
7233          LD="${LD-ld} -m elf32ppclinux"
7234          ;;
7235        s390x-*linux*)
7236          LD="${LD-ld} -m elf_s390"
7237          ;;
7238        sparc64-*linux*)
7239          LD="${LD-ld} -m elf32_sparc"
7240          ;;
7241      esac
7242      ;;
7243    *64-bit*)
7244      case $host in
7245        x86_64-*linux*)
7246          LD="${LD-ld} -m elf_x86_64"
7247          ;;
7248        ppc*-*linux*|powerpc*-*linux*)
7249          LD="${LD-ld} -m elf64ppc"
7250          ;;
7251        s390*-*linux*)
7252          LD="${LD-ld} -m elf64_s390"
7253          ;;
7254        sparc*-*linux*)
7255          LD="${LD-ld} -m elf64_sparc"
7256          ;;
7257      esac
7258      ;;
7259    esac
7260  fi
7261  rm -rf conftest*
7262  ;;
7263
7264*-*-sco3.2v5*)
7265  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7266  SAVE_CFLAGS="$CFLAGS"
7267  CFLAGS="$CFLAGS -belf"
7268  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7270if test "${lt_cv_cc_needs_belf+set}" = set; then
7271  echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273  ac_ext=c
7274ac_cpp='$CPP $CPPFLAGS'
7275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278
7279     cat >conftest.$ac_ext <<_ACEOF
7280/* confdefs.h.  */
7281_ACEOF
7282cat confdefs.h >>conftest.$ac_ext
7283cat >>conftest.$ac_ext <<_ACEOF
7284/* end confdefs.h.  */
7285
7286#ifdef F77_DUMMY_MAIN
7287
7288#  ifdef __cplusplus
7289     extern "C"
7290#  endif
7291   int F77_DUMMY_MAIN() { return 1; }
7292
7293#endif
7294int
7295main ()
7296{
7297
7298  ;
7299  return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext conftest$ac_exeext
7303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304  (eval $ac_link) 2>conftest.er1
7305  ac_status=$?
7306  grep -v '^ *+' conftest.er1 >conftest.err
7307  rm -f conftest.er1
7308  cat conftest.err >&5
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); } &&
7311         { ac_try='test -z "$ac_c_werror_flag"
7312                         || test ! -s conftest.err'
7313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314  (eval $ac_try) 2>&5
7315  ac_status=$?
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); }; } &&
7318         { ac_try='test -s conftest$ac_exeext'
7319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320  (eval $ac_try) 2>&5
7321  ac_status=$?
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); }; }; then
7324  lt_cv_cc_needs_belf=yes
7325else
7326  echo "$as_me: failed program was:" >&5
7327sed 's/^/| /' conftest.$ac_ext >&5
7328
7329lt_cv_cc_needs_belf=no
7330fi
7331rm -f conftest.err conftest.$ac_objext \
7332      conftest$ac_exeext conftest.$ac_ext
7333     ac_ext=c
7334ac_cpp='$CPP $CPPFLAGS'
7335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339fi
7340echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7341echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7342  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7343    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7344    CFLAGS="$SAVE_CFLAGS"
7345  fi
7346  ;;
7347sparc*-*solaris*)
7348  # Find out which ABI we are using.
7349  echo 'int i;' > conftest.$ac_ext
7350  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351  (eval $ac_compile) 2>&5
7352  ac_status=$?
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); }; then
7355    case `/usr/bin/file conftest.o` in
7356    *64-bit*)
7357      case $lt_cv_prog_gnu_ld in
7358      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7359      *)    LD="${LD-ld} -64" ;;
7360      esac
7361      ;;
7362    esac
7363  fi
7364  rm -rf conftest*
7365  ;;
7366
7367
7368esac
7369
7370need_locks="$enable_libtool_lock"
7371
7372
7373
7374for ac_header in dlfcn.h
7375do
7376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7377if eval "test \"\${$as_ac_Header+set}\" = set"; then
7378  echo "$as_me:$LINENO: checking for $ac_header" >&5
7379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382fi
7383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7385else
7386  # Is the header compilable?
7387echo "$as_me:$LINENO: checking $ac_header usability" >&5
7388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7389cat >conftest.$ac_ext <<_ACEOF
7390/* confdefs.h.  */
7391_ACEOF
7392cat confdefs.h >>conftest.$ac_ext
7393cat >>conftest.$ac_ext <<_ACEOF
7394/* end confdefs.h.  */
7395$ac_includes_default
7396#include <$ac_header>
7397_ACEOF
7398rm -f conftest.$ac_objext
7399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400  (eval $ac_compile) 2>conftest.er1
7401  ac_status=$?
7402  grep -v '^ *+' conftest.er1 >conftest.err
7403  rm -f conftest.er1
7404  cat conftest.err >&5
7405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); } &&
7407         { ac_try='test -z "$ac_c_werror_flag"
7408                         || test ! -s conftest.err'
7409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410  (eval $ac_try) 2>&5
7411  ac_status=$?
7412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413  (exit $ac_status); }; } &&
7414         { ac_try='test -s conftest.$ac_objext'
7415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416  (eval $ac_try) 2>&5
7417  ac_status=$?
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); }; }; then
7420  ac_header_compiler=yes
7421else
7422  echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
7425ac_header_compiler=no
7426fi
7427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7429echo "${ECHO_T}$ac_header_compiler" >&6
7430
7431# Is the header present?
7432echo "$as_me:$LINENO: checking $ac_header presence" >&5
7433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7434cat >conftest.$ac_ext <<_ACEOF
7435/* confdefs.h.  */
7436_ACEOF
7437cat confdefs.h >>conftest.$ac_ext
7438cat >>conftest.$ac_ext <<_ACEOF
7439/* end confdefs.h.  */
7440#include <$ac_header>
7441_ACEOF
7442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7443  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7444  ac_status=$?
7445  grep -v '^ *+' conftest.er1 >conftest.err
7446  rm -f conftest.er1
7447  cat conftest.err >&5
7448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449  (exit $ac_status); } >/dev/null; then
7450  if test -s conftest.err; then
7451    ac_cpp_err=$ac_c_preproc_warn_flag
7452    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7453  else
7454    ac_cpp_err=
7455  fi
7456else
7457  ac_cpp_err=yes
7458fi
7459if test -z "$ac_cpp_err"; then
7460  ac_header_preproc=yes
7461else
7462  echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
7465  ac_header_preproc=no
7466fi
7467rm -f conftest.err conftest.$ac_ext
7468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7469echo "${ECHO_T}$ac_header_preproc" >&6
7470
7471# So?  What about this header?
7472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7473  yes:no: )
7474    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7476    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7478    ac_header_preproc=yes
7479    ;;
7480  no:yes:* )
7481    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7483    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7484echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7485    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7487    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7488echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7489    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7491    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7493    (
7494      cat <<\_ASBOX
7495## --------------------------------------------------------------- ##
7496## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7497## --------------------------------------------------------------- ##
7498_ASBOX
7499    ) |
7500      sed "s/^/$as_me: WARNING:     /" >&2
7501    ;;
7502esac
7503echo "$as_me:$LINENO: checking for $ac_header" >&5
7504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7505if eval "test \"\${$as_ac_Header+set}\" = set"; then
7506  echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508  eval "$as_ac_Header=\$ac_header_preproc"
7509fi
7510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7512
7513fi
7514if test `eval echo '${'$as_ac_Header'}'` = yes; then
7515  cat >>confdefs.h <<_ACEOF
7516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7517_ACEOF
7518
7519fi
7520
7521done
7522
7523ac_ext=cc
7524ac_cpp='$CXXCPP $CPPFLAGS'
7525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7528if test -n "$ac_tool_prefix"; then
7529  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7530  do
7531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7533echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535if test "${ac_cv_prog_CXX+set}" = set; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538  if test -n "$CXX"; then
7539  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546  for ac_exec_ext in '' $ac_executable_extensions; do
7547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553done
7554
7555fi
7556fi
7557CXX=$ac_cv_prog_CXX
7558if test -n "$CXX"; then
7559  echo "$as_me:$LINENO: result: $CXX" >&5
7560echo "${ECHO_T}$CXX" >&6
7561else
7562  echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6
7564fi
7565
7566    test -n "$CXX" && break
7567  done
7568fi
7569if test -z "$CXX"; then
7570  ac_ct_CXX=$CXX
7571  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7572do
7573  # Extract the first word of "$ac_prog", so it can be a program name with args.
7574set dummy $ac_prog; ac_word=$2
7575echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7578  echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580  if test -n "$ac_ct_CXX"; then
7581  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588  for ac_exec_ext in '' $ac_executable_extensions; do
7589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590    ac_cv_prog_ac_ct_CXX="$ac_prog"
7591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595done
7596
7597fi
7598fi
7599ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7600if test -n "$ac_ct_CXX"; then
7601  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7602echo "${ECHO_T}$ac_ct_CXX" >&6
7603else
7604  echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606fi
7607
7608  test -n "$ac_ct_CXX" && break
7609done
7610test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7611
7612  CXX=$ac_ct_CXX
7613fi
7614
7615
7616# Provide some information about the compiler.
7617echo "$as_me:$LINENO:" \
7618     "checking for C++ compiler version" >&5
7619ac_compiler=`set X $ac_compile; echo $2`
7620{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7621  (eval $ac_compiler --version </dev/null >&5) 2>&5
7622  ac_status=$?
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); }
7625{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7626  (eval $ac_compiler -v </dev/null >&5) 2>&5
7627  ac_status=$?
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); }
7630{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7631  (eval $ac_compiler -V </dev/null >&5) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); }
7635
7636echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7637echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7638if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h.  */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h.  */
7647
7648#ifdef F77_DUMMY_MAIN
7649
7650#  ifdef __cplusplus
7651     extern "C"
7652#  endif
7653   int F77_DUMMY_MAIN() { return 1; }
7654
7655#endif
7656int
7657main ()
7658{
7659#ifndef __GNUC__
7660       choke me
7661#endif
7662
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667rm -f conftest.$ac_objext
7668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7669  (eval $ac_compile) 2>conftest.er1
7670  ac_status=$?
7671  grep -v '^ *+' conftest.er1 >conftest.err
7672  rm -f conftest.er1
7673  cat conftest.err >&5
7674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675  (exit $ac_status); } &&
7676         { ac_try='test -z "$ac_cxx_werror_flag"
7677                         || test ! -s conftest.err'
7678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679  (eval $ac_try) 2>&5
7680  ac_status=$?
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); }; } &&
7683         { ac_try='test -s conftest.$ac_objext'
7684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685  (eval $ac_try) 2>&5
7686  ac_status=$?
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); }; }; then
7689  ac_compiler_gnu=yes
7690else
7691  echo "$as_me: failed program was:" >&5
7692sed 's/^/| /' conftest.$ac_ext >&5
7693
7694ac_compiler_gnu=no
7695fi
7696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7697ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7698
7699fi
7700echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7701echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7702GXX=`test $ac_compiler_gnu = yes && echo yes`
7703ac_test_CXXFLAGS=${CXXFLAGS+set}
7704ac_save_CXXFLAGS=$CXXFLAGS
7705CXXFLAGS="-g"
7706echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7707echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7708if test "${ac_cv_prog_cxx_g+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h.  */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h.  */
7717
7718#ifdef F77_DUMMY_MAIN
7719
7720#  ifdef __cplusplus
7721     extern "C"
7722#  endif
7723   int F77_DUMMY_MAIN() { return 1; }
7724
7725#endif
7726int
7727main ()
7728{
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
7735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736  (eval $ac_compile) 2>conftest.er1
7737  ac_status=$?
7738  grep -v '^ *+' conftest.er1 >conftest.err
7739  rm -f conftest.er1
7740  cat conftest.err >&5
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); } &&
7743         { ac_try='test -z "$ac_cxx_werror_flag"
7744                         || test ! -s conftest.err'
7745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746  (eval $ac_try) 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); }; } &&
7750         { ac_try='test -s conftest.$ac_objext'
7751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752  (eval $ac_try) 2>&5
7753  ac_status=$?
7754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755  (exit $ac_status); }; }; then
7756  ac_cv_prog_cxx_g=yes
7757else
7758  echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761ac_cv_prog_cxx_g=no
7762fi
7763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764fi
7765echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7766echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7767if test "$ac_test_CXXFLAGS" = set; then
7768  CXXFLAGS=$ac_save_CXXFLAGS
7769elif test $ac_cv_prog_cxx_g = yes; then
7770  if test "$GXX" = yes; then
7771    CXXFLAGS="-g -O2"
7772  else
7773    CXXFLAGS="-g"
7774  fi
7775else
7776  if test "$GXX" = yes; then
7777    CXXFLAGS="-O2"
7778  else
7779    CXXFLAGS=
7780  fi
7781fi
7782for ac_declaration in \
7783   '' \
7784   'extern "C" void std::exit (int) throw (); using std::exit;' \
7785   'extern "C" void std::exit (int); using std::exit;' \
7786   'extern "C" void exit (int) throw ();' \
7787   'extern "C" void exit (int);' \
7788   'void exit (int);'
7789do
7790  cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h.  */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h.  */
7796$ac_declaration
7797#include <stdlib.h>
7798#ifdef F77_DUMMY_MAIN
7799
7800#  ifdef __cplusplus
7801     extern "C"
7802#  endif
7803   int F77_DUMMY_MAIN() { return 1; }
7804
7805#endif
7806int
7807main ()
7808{
7809exit (42);
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext
7815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816  (eval $ac_compile) 2>conftest.er1
7817  ac_status=$?
7818  grep -v '^ *+' conftest.er1 >conftest.err
7819  rm -f conftest.er1
7820  cat conftest.err >&5
7821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822  (exit $ac_status); } &&
7823         { ac_try='test -z "$ac_cxx_werror_flag"
7824                         || test ! -s conftest.err'
7825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826  (eval $ac_try) 2>&5
7827  ac_status=$?
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); }; } &&
7830         { ac_try='test -s conftest.$ac_objext'
7831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832  (eval $ac_try) 2>&5
7833  ac_status=$?
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); }; }; then
7836  :
7837else
7838  echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
7841continue
7842fi
7843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7844  cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h.  */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
7849/* end confdefs.h.  */
7850$ac_declaration
7851#ifdef F77_DUMMY_MAIN
7852
7853#  ifdef __cplusplus
7854     extern "C"
7855#  endif
7856   int F77_DUMMY_MAIN() { return 1; }
7857
7858#endif
7859int
7860main ()
7861{
7862exit (42);
7863  ;
7864  return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext
7868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869  (eval $ac_compile) 2>conftest.er1
7870  ac_status=$?
7871  grep -v '^ *+' conftest.er1 >conftest.err
7872  rm -f conftest.er1
7873  cat conftest.err >&5
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); } &&
7876         { ac_try='test -z "$ac_cxx_werror_flag"
7877                         || test ! -s conftest.err'
7878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879  (eval $ac_try) 2>&5
7880  ac_status=$?
7881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882  (exit $ac_status); }; } &&
7883         { ac_try='test -s conftest.$ac_objext'
7884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885  (eval $ac_try) 2>&5
7886  ac_status=$?
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); }; }; then
7889  break
7890else
7891  echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894fi
7895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896done
7897rm -f conftest*
7898if test -n "$ac_declaration"; then
7899  echo '#ifdef __cplusplus' >>confdefs.h
7900  echo $ac_declaration      >>confdefs.h
7901  echo '#endif'             >>confdefs.h
7902fi
7903
7904ac_ext=cc
7905ac_cpp='$CXXCPP $CPPFLAGS'
7906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7909
7910depcc="$CXX"  am_compiler_list=
7911
7912echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7913echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7914if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7915  echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7918  # We make a subdir and do the tests there.  Otherwise we can end up
7919  # making bogus files that we don't know about and never remove.  For
7920  # instance it was reported that on HP-UX the gcc test will end up
7921  # making a dummy file named `D' -- because `-MD' means `put the output
7922  # in D'.
7923  mkdir conftest.dir
7924  # Copy depcomp to subdir because otherwise we won't find it if we're
7925  # using a relative directory.
7926  cp "$am_depcomp" conftest.dir
7927  cd conftest.dir
7928  # We will build objects and dependencies in a subdirectory because
7929  # it helps to detect inapplicable dependency modes.  For instance
7930  # both Tru64's cc and ICC support -MD to output dependencies as a
7931  # side effect of compilation, but ICC will put the dependencies in
7932  # the current directory while Tru64 will put them in the object
7933  # directory.
7934  mkdir sub
7935
7936  am_cv_CXX_dependencies_compiler_type=none
7937  if test "$am_compiler_list" = ""; then
7938     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7939  fi
7940  for depmode in $am_compiler_list; do
7941    # Setup a source with many dependencies, because some compilers
7942    # like to wrap large dependency lists on column 80 (with \), and
7943    # we should not choose a depcomp mode which is confused by this.
7944    #
7945    # We need to recreate these files for each test, as the compiler may
7946    # overwrite some of them when testing with obscure command lines.
7947    # This happens at least with the AIX C compiler.
7948    : > sub/conftest.c
7949    for i in 1 2 3 4 5 6; do
7950      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7951      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7952      # Solaris 8's {/usr,}/bin/sh.
7953      touch sub/conftst$i.h
7954    done
7955    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7956
7957    case $depmode in
7958    nosideeffect)
7959      # after this tag, mechanisms are not by side-effect, so they'll
7960      # only be used when explicitly requested
7961      if test "x$enable_dependency_tracking" = xyes; then
7962        continue
7963      else
7964        break
7965      fi
7966      ;;
7967    none) break ;;
7968    esac
7969    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7970    # mode.  It turns out that the SunPro C++ compiler does not properly
7971    # handle `-M -o', and we need to detect this.
7972    if depmode=$depmode \
7973       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7974       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7975       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7976         >/dev/null 2>conftest.err &&
7977       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7978       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7979       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7980      # icc doesn't choke on unknown options, it will just issue warnings
7981      # or remarks (even with -Werror).  So we grep stderr for any message
7982      # that says an option was ignored or not supported.
7983      # When given -MP, icc 7.0 and 7.1 complain thusly:
7984      #   icc: Command line warning: ignoring option '-M'; no argument required
7985      # The diagnosis changed in icc 8.0:
7986      #   icc: Command line remark: option '-MP' not supported
7987      if (grep 'ignoring option' conftest.err ||
7988          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7989        am_cv_CXX_dependencies_compiler_type=$depmode
7990        break
7991      fi
7992    fi
7993  done
7994
7995  cd ..
7996  rm -rf conftest.dir
7997else
7998  am_cv_CXX_dependencies_compiler_type=none
7999fi
8000
8001fi
8002echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8003echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8004CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8005
8006
8007
8008if
8009  test "x$enable_dependency_tracking" != xno \
8010  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8011  am__fastdepCXX_TRUE=
8012  am__fastdepCXX_FALSE='#'
8013else
8014  am__fastdepCXX_TRUE='#'
8015  am__fastdepCXX_FALSE=
8016fi
8017
8018
8019
8020
8021if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8022    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8023    (test "X$CXX" != "Xg++"))) ; then
8024  ac_ext=cc
8025ac_cpp='$CXXCPP $CPPFLAGS'
8026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8029echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8030echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8031if test -z "$CXXCPP"; then
8032  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035      # Double quotes because CXXCPP needs to be expanded
8036    for CXXCPP in "$CXX -E" "/lib/cpp"
8037    do
8038      ac_preproc_ok=false
8039for ac_cxx_preproc_warn_flag in '' yes
8040do
8041  # Use a header file that comes with gcc, so configuring glibc
8042  # with a fresh cross-compiler works.
8043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8044  # <limits.h> exists even on freestanding compilers.
8045  # On the NeXT, cc -E runs the code through the compiler's parser,
8046  # not just through cpp. "Syntax error" is here to catch this case.
8047  cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h.  */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h.  */
8053#ifdef __STDC__
8054# include <limits.h>
8055#else
8056# include <assert.h>
8057#endif
8058                     Syntax error
8059_ACEOF
8060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8062  ac_status=$?
8063  grep -v '^ *+' conftest.er1 >conftest.err
8064  rm -f conftest.er1
8065  cat conftest.err >&5
8066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } >/dev/null; then
8068  if test -s conftest.err; then
8069    ac_cpp_err=$ac_cxx_preproc_warn_flag
8070    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8071  else
8072    ac_cpp_err=
8073  fi
8074else
8075  ac_cpp_err=yes
8076fi
8077if test -z "$ac_cpp_err"; then
8078  :
8079else
8080  echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083  # Broken: fails on valid input.
8084continue
8085fi
8086rm -f conftest.err conftest.$ac_ext
8087
8088  # OK, works on sane cases.  Now check whether non-existent headers
8089  # can be detected and how.
8090  cat >conftest.$ac_ext <<_ACEOF
8091/* confdefs.h.  */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h.  */
8096#include <ac_nonexistent.h>
8097_ACEOF
8098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8099  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8100  ac_status=$?
8101  grep -v '^ *+' conftest.er1 >conftest.err
8102  rm -f conftest.er1
8103  cat conftest.err >&5
8104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105  (exit $ac_status); } >/dev/null; then
8106  if test -s conftest.err; then
8107    ac_cpp_err=$ac_cxx_preproc_warn_flag
8108    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8109  else
8110    ac_cpp_err=
8111  fi
8112else
8113  ac_cpp_err=yes
8114fi
8115if test -z "$ac_cpp_err"; then
8116  # Broken: success on invalid input.
8117continue
8118else
8119  echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122  # Passes both tests.
8123ac_preproc_ok=:
8124break
8125fi
8126rm -f conftest.err conftest.$ac_ext
8127
8128done
8129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8130rm -f conftest.err conftest.$ac_ext
8131if $ac_preproc_ok; then
8132  break
8133fi
8134
8135    done
8136    ac_cv_prog_CXXCPP=$CXXCPP
8137
8138fi
8139  CXXCPP=$ac_cv_prog_CXXCPP
8140else
8141  ac_cv_prog_CXXCPP=$CXXCPP
8142fi
8143echo "$as_me:$LINENO: result: $CXXCPP" >&5
8144echo "${ECHO_T}$CXXCPP" >&6
8145ac_preproc_ok=false
8146for ac_cxx_preproc_warn_flag in '' yes
8147do
8148  # Use a header file that comes with gcc, so configuring glibc
8149  # with a fresh cross-compiler works.
8150  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8151  # <limits.h> exists even on freestanding compilers.
8152  # On the NeXT, cc -E runs the code through the compiler's parser,
8153  # not just through cpp. "Syntax error" is here to catch this case.
8154  cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h.  */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h.  */
8160#ifdef __STDC__
8161# include <limits.h>
8162#else
8163# include <assert.h>
8164#endif
8165                     Syntax error
8166_ACEOF
8167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8168  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8169  ac_status=$?
8170  grep -v '^ *+' conftest.er1 >conftest.err
8171  rm -f conftest.er1
8172  cat conftest.err >&5
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); } >/dev/null; then
8175  if test -s conftest.err; then
8176    ac_cpp_err=$ac_cxx_preproc_warn_flag
8177    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8178  else
8179    ac_cpp_err=
8180  fi
8181else
8182  ac_cpp_err=yes
8183fi
8184if test -z "$ac_cpp_err"; then
8185  :
8186else
8187  echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190  # Broken: fails on valid input.
8191continue
8192fi
8193rm -f conftest.err conftest.$ac_ext
8194
8195  # OK, works on sane cases.  Now check whether non-existent headers
8196  # can be detected and how.
8197  cat >conftest.$ac_ext <<_ACEOF
8198/* confdefs.h.  */
8199_ACEOF
8200cat confdefs.h >>conftest.$ac_ext
8201cat >>conftest.$ac_ext <<_ACEOF
8202/* end confdefs.h.  */
8203#include <ac_nonexistent.h>
8204_ACEOF
8205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8207  ac_status=$?
8208  grep -v '^ *+' conftest.er1 >conftest.err
8209  rm -f conftest.er1
8210  cat conftest.err >&5
8211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212  (exit $ac_status); } >/dev/null; then
8213  if test -s conftest.err; then
8214    ac_cpp_err=$ac_cxx_preproc_warn_flag
8215    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8216  else
8217    ac_cpp_err=
8218  fi
8219else
8220  ac_cpp_err=yes
8221fi
8222if test -z "$ac_cpp_err"; then
8223  # Broken: success on invalid input.
8224continue
8225else
8226  echo "$as_me: failed program was:" >&5
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
8229  # Passes both tests.
8230ac_preproc_ok=:
8231break
8232fi
8233rm -f conftest.err conftest.$ac_ext
8234
8235done
8236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8237rm -f conftest.err conftest.$ac_ext
8238if $ac_preproc_ok; then
8239  :
8240else
8241  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8242See \`config.log' for more details." >&5
8243echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8244See \`config.log' for more details." >&2;}
8245   { (exit 1); exit 1; }; }
8246fi
8247
8248ac_ext=cc
8249ac_cpp='$CXXCPP $CPPFLAGS'
8250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8253
8254fi
8255
8256
8257
8258# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8259
8260# find the maximum length of command line arguments
8261echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8262echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8263if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8264  echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266    i=0
8267  teststring="ABCD"
8268
8269  case $build_os in
8270  msdosdjgpp*)
8271    # On DJGPP, this test can blow up pretty badly due to problems in libc
8272    # (any single argument exceeding 2000 bytes causes a buffer overrun
8273    # during glob expansion).  Even if it were fixed, the result of this
8274    # check would be larger than it should be.
8275    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8276    ;;
8277
8278  gnu*)
8279    # Under GNU Hurd, this test is not required because there is
8280    # no limit to the length of command line arguments.
8281    # Libtool will interpret -1 as no limit whatsoever
8282    lt_cv_sys_max_cmd_len=-1;
8283    ;;
8284
8285  cygwin* | mingw*)
8286    # On Win9x/ME, this test blows up -- it succeeds, but takes
8287    # about 5 minutes as the teststring grows exponentially.
8288    # Worse, since 9x/ME are not pre-emptively multitasking,
8289    # you end up with a "frozen" computer, even though with patience
8290    # the test eventually succeeds (with a max line length of 256k).
8291    # Instead, let's just punt: use the minimum linelength reported by
8292    # all of the supported platforms: 8192 (on NT/2K/XP).
8293    lt_cv_sys_max_cmd_len=8192;
8294    ;;
8295
8296  amigaos*)
8297    # On AmigaOS with pdksh, this test takes hours, literally.
8298    # So we just punt and use a minimum line length of 8192.
8299    lt_cv_sys_max_cmd_len=8192;
8300    ;;
8301
8302  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8303    # This has been around since 386BSD, at least.  Likely further.
8304    if test -x /sbin/sysctl; then
8305      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8306    elif test -x /usr/sbin/sysctl; then
8307      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8308    else
8309      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8310    fi
8311    # And add a safety zone
8312    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8313    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8314    ;;
8315
8316  interix*)
8317    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8318    lt_cv_sys_max_cmd_len=196608
8319    ;;
8320
8321  osf*)
8322    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8323    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8324    # nice to cause kernel panics so lets avoid the loop below.
8325    # First set a reasonable default.
8326    lt_cv_sys_max_cmd_len=16384
8327    #
8328    if test -x /sbin/sysconfig; then
8329      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8330        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8331      esac
8332    fi
8333    ;;
8334  sco3.2v5*)
8335    lt_cv_sys_max_cmd_len=102400
8336    ;;
8337  sysv5* | sco5v6* | sysv4.2uw2*)
8338    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8339    if test -n "$kargmax"; then
8340      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8341    else
8342      lt_cv_sys_max_cmd_len=32768
8343    fi
8344    ;;
8345  *)
8346    # If test is not a shell built-in, we'll probably end up computing a
8347    # maximum length that is only half of the actual maximum length, but
8348    # we can't tell.
8349    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8350    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8351               = "XX$teststring") >/dev/null 2>&1 &&
8352            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8353            lt_cv_sys_max_cmd_len=$new_result &&
8354            test $i != 17 # 1/2 MB should be enough
8355    do
8356      i=`expr $i + 1`
8357      teststring=$teststring$teststring
8358    done
8359    teststring=
8360    # Add a significant safety factor because C++ compilers can tack on massive
8361    # amounts of additional arguments before passing them to the linker.
8362    # It appears as though 1/2 is a usable value.
8363    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8364    ;;
8365  esac
8366
8367fi
8368
8369if test -n $lt_cv_sys_max_cmd_len ; then
8370  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8371echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8372else
8373  echo "$as_me:$LINENO: result: none" >&5
8374echo "${ECHO_T}none" >&6
8375fi
8376
8377
8378
8379
8380# Check for command to grab the raw symbol name followed by C symbol from nm.
8381echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8382echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8383if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8384  echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386
8387# These are sane defaults that work on at least a few old systems.
8388# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8389
8390# Character class describing NM global symbol codes.
8391symcode='[BCDEGRST]'
8392
8393# Regexp to match symbols that can be accessed directly from C.
8394sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8395
8396# Transform an extracted symbol line into a proper C declaration
8397lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8398
8399# Transform an extracted symbol line into symbol name and symbol address
8400lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8401
8402# Define system-specific variables.
8403case $host_os in
8404aix*)
8405  symcode='[BCDT]'
8406  ;;
8407cygwin* | mingw* | pw32*)
8408  symcode='[ABCDGISTW]'
8409  ;;
8410hpux*) # Its linker distinguishes data from code symbols
8411  if test "$host_cpu" = ia64; then
8412    symcode='[ABCDEGRST]'
8413  fi
8414  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8415  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8416  ;;
8417linux*)
8418  if test "$host_cpu" = ia64; then
8419    symcode='[ABCDGIRSTW]'
8420    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8421    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8422  fi
8423  ;;
8424irix* | nonstopux*)
8425  symcode='[BCDEGRST]'
8426  ;;
8427osf*)
8428  symcode='[BCDEGQRST]'
8429  ;;
8430solaris*)
8431  symcode='[BDRT]'
8432  ;;
8433sco3.2v5*)
8434  symcode='[DT]'
8435  ;;
8436sysv4.2uw2*)
8437  symcode='[DT]'
8438  ;;
8439sysv5* | sco5v6* | unixware* | OpenUNIX*)
8440  symcode='[ABDT]'
8441  ;;
8442sysv4)
8443  symcode='[DFNSTU]'
8444  ;;
8445esac
8446
8447# Handle CRLF in mingw tool chain
8448opt_cr=
8449case $build_os in
8450mingw*)
8451  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8452  ;;
8453esac
8454
8455# If we're using GNU nm, then use its standard symbol codes.
8456case `$NM -V 2>&1` in
8457*GNU* | *'with BFD'*)
8458  symcode='[ABCDGIRSTW]' ;;
8459esac
8460
8461# Try without a prefix undercore, then with it.
8462for ac_symprfx in "" "_"; do
8463
8464  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8465  symxfrm="\\1 $ac_symprfx\\2 \\2"
8466
8467  # Write the raw and C identifiers.
8468  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8469
8470  # Check to see that the pipe works correctly.
8471  pipe_works=no
8472
8473  rm -f conftest*
8474  cat > conftest.$ac_ext <<EOF
8475#ifdef __cplusplus
8476extern "C" {
8477#endif
8478char nm_test_var;
8479void nm_test_func(){}
8480#ifdef __cplusplus
8481}
8482#endif
8483int main(){nm_test_var='a';nm_test_func();return(0);}
8484EOF
8485
8486  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8487  (eval $ac_compile) 2>&5
8488  ac_status=$?
8489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); }; then
8491    # Now try to grab the symbols.
8492    nlist=conftest.nm
8493    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8494  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8495  ac_status=$?
8496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497  (exit $ac_status); } && test -s "$nlist"; then
8498      # Try sorting and uniquifying the output.
8499      if sort "$nlist" | uniq > "$nlist"T; then
8500        mv -f "$nlist"T "$nlist"
8501      else
8502        rm -f "$nlist"T
8503      fi
8504
8505      # Make sure that we snagged all the symbols we need.
8506      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8507        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8508          cat <<EOF > conftest.$ac_ext
8509#ifdef __cplusplus
8510extern "C" {
8511#endif
8512
8513EOF
8514          # Now generate the symbol file.
8515          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8516
8517          cat <<EOF >> conftest.$ac_ext
8518#if defined (__STDC__) && __STDC__
8519# define lt_ptr_t void *
8520#else
8521# define lt_ptr_t char *
8522# define const
8523#endif
8524
8525/* The mapping between symbol names and symbols. */
8526const struct {
8527  const char *name;
8528  lt_ptr_t address;
8529}
8530lt_preloaded_symbols[] =
8531{
8532EOF
8533          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8534          cat <<\EOF >> conftest.$ac_ext
8535  {0, (lt_ptr_t) 0}
8536};
8537
8538#ifdef __cplusplus
8539}
8540#endif
8541EOF
8542          # Now try linking the two files.
8543          mv conftest.$ac_objext conftstm.$ac_objext
8544          lt_save_LIBS="$LIBS"
8545          lt_save_CFLAGS="$CFLAGS"
8546          LIBS="conftstm.$ac_objext"
8547          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8548          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549  (eval $ac_link) 2>&5
8550  ac_status=$?
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8553            pipe_works=yes
8554          fi
8555          LIBS="$lt_save_LIBS"
8556          CFLAGS="$lt_save_CFLAGS"
8557        else
8558          echo "cannot find nm_test_func in $nlist" >&5
8559        fi
8560      else
8561        echo "cannot find nm_test_var in $nlist" >&5
8562      fi
8563    else
8564      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8565    fi
8566  else
8567    echo "$progname: failed program was:" >&5
8568    cat conftest.$ac_ext >&5
8569  fi
8570  rm -f conftest* conftst*
8571
8572  # Do not use the global_symbol_pipe unless it works.
8573  if test "$pipe_works" = yes; then
8574    break
8575  else
8576    lt_cv_sys_global_symbol_pipe=
8577  fi
8578done
8579
8580fi
8581
8582if test -z "$lt_cv_sys_global_symbol_pipe"; then
8583  lt_cv_sys_global_symbol_to_cdecl=
8584fi
8585if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8586  echo "$as_me:$LINENO: result: failed" >&5
8587echo "${ECHO_T}failed" >&6
8588else
8589  echo "$as_me:$LINENO: result: ok" >&5
8590echo "${ECHO_T}ok" >&6
8591fi
8592
8593echo "$as_me:$LINENO: checking for objdir" >&5
8594echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8595if test "${lt_cv_objdir+set}" = set; then
8596  echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598  rm -f .libs 2>/dev/null
8599mkdir .libs 2>/dev/null
8600if test -d .libs; then
8601  lt_cv_objdir=.libs
8602else
8603  # MS-DOS does not allow filenames that begin with a dot.
8604  lt_cv_objdir=_libs
8605fi
8606rmdir .libs 2>/dev/null
8607fi
8608echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8609echo "${ECHO_T}$lt_cv_objdir" >&6
8610objdir=$lt_cv_objdir
8611
8612
8613
8614
8615
8616case $host_os in
8617aix3*)
8618  # AIX sometimes has problems with the GCC collect2 program.  For some
8619  # reason, if we set the COLLECT_NAMES environment variable, the problems
8620  # vanish in a puff of smoke.
8621  if test "X${COLLECT_NAMES+set}" != Xset; then
8622    COLLECT_NAMES=
8623    export COLLECT_NAMES
8624  fi
8625  ;;
8626esac
8627
8628# Sed substitution that helps us do robust quoting.  It backslashifies
8629# metacharacters that are still active within double-quoted strings.
8630Xsed='sed -e 1s/^X//'
8631sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8632
8633# Same as above, but do not quote variable references.
8634double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8635
8636# Sed substitution to delay expansion of an escaped shell variable in a
8637# double_quote_subst'ed string.
8638delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8639
8640# Sed substitution to avoid accidental globbing in evaled expressions
8641no_glob_subst='s/\*/\\\*/g'
8642
8643# Constants:
8644rm="rm -f"
8645
8646# Global variables:
8647default_ofile=libtool
8648can_build_shared=yes
8649
8650# All known linkers require a `.a' archive for static linking (except MSVC,
8651# which needs '.lib').
8652libext=a
8653ltmain="$ac_aux_dir/ltmain.sh"
8654ofile="$default_ofile"
8655with_gnu_ld="$lt_cv_prog_gnu_ld"
8656
8657if test -n "$ac_tool_prefix"; then
8658  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8659set dummy ${ac_tool_prefix}ar; ac_word=$2
8660echo "$as_me:$LINENO: checking for $ac_word" >&5
8661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662if test "${ac_cv_prog_AR+set}" = set; then
8663  echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665  if test -n "$AR"; then
8666  ac_cv_prog_AR="$AR" # Let the user override the test.
8667else
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671  IFS=$as_save_IFS
8672  test -z "$as_dir" && as_dir=.
8673  for ac_exec_ext in '' $ac_executable_extensions; do
8674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675    ac_cv_prog_AR="${ac_tool_prefix}ar"
8676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8677    break 2
8678  fi
8679done
8680done
8681
8682fi
8683fi
8684AR=$ac_cv_prog_AR
8685if test -n "$AR"; then
8686  echo "$as_me:$LINENO: result: $AR" >&5
8687echo "${ECHO_T}$AR" >&6
8688else
8689  echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
8691fi
8692
8693fi
8694if test -z "$ac_cv_prog_AR"; then
8695  ac_ct_AR=$AR
8696  # Extract the first word of "ar", so it can be a program name with args.
8697set dummy ar; ac_word=$2
8698echo "$as_me:$LINENO: checking for $ac_word" >&5
8699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8701  echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703  if test -n "$ac_ct_AR"; then
8704  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8705else
8706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709  IFS=$as_save_IFS
8710  test -z "$as_dir" && as_dir=.
8711  for ac_exec_ext in '' $ac_executable_extensions; do
8712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713    ac_cv_prog_ac_ct_AR="ar"
8714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715    break 2
8716  fi
8717done
8718done
8719
8720  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8721fi
8722fi
8723ac_ct_AR=$ac_cv_prog_ac_ct_AR
8724if test -n "$ac_ct_AR"; then
8725  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8726echo "${ECHO_T}$ac_ct_AR" >&6
8727else
8728  echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
8730fi
8731
8732  AR=$ac_ct_AR
8733else
8734  AR="$ac_cv_prog_AR"
8735fi
8736
8737if test -n "$ac_tool_prefix"; then
8738  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8739set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8740echo "$as_me:$LINENO: checking for $ac_word" >&5
8741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8742if test "${ac_cv_prog_RANLIB+set}" = set; then
8743  echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
8745  if test -n "$RANLIB"; then
8746  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8747else
8748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749for as_dir in $PATH
8750do
8751  IFS=$as_save_IFS
8752  test -z "$as_dir" && as_dir=.
8753  for ac_exec_ext in '' $ac_executable_extensions; do
8754  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8757    break 2
8758  fi
8759done
8760done
8761
8762fi
8763fi
8764RANLIB=$ac_cv_prog_RANLIB
8765if test -n "$RANLIB"; then
8766  echo "$as_me:$LINENO: result: $RANLIB" >&5
8767echo "${ECHO_T}$RANLIB" >&6
8768else
8769  echo "$as_me:$LINENO: result: no" >&5
8770echo "${ECHO_T}no" >&6
8771fi
8772
8773fi
8774if test -z "$ac_cv_prog_RANLIB"; then
8775  ac_ct_RANLIB=$RANLIB
8776  # Extract the first word of "ranlib", so it can be a program name with args.
8777set dummy ranlib; ac_word=$2
8778echo "$as_me:$LINENO: checking for $ac_word" >&5
8779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8781  echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783  if test -n "$ac_ct_RANLIB"; then
8784  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8785else
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789  IFS=$as_save_IFS
8790  test -z "$as_dir" && as_dir=.
8791  for ac_exec_ext in '' $ac_executable_extensions; do
8792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793    ac_cv_prog_ac_ct_RANLIB="ranlib"
8794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795    break 2
8796  fi
8797done
8798done
8799
8800  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8801fi
8802fi
8803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8804if test -n "$ac_ct_RANLIB"; then
8805  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8806echo "${ECHO_T}$ac_ct_RANLIB" >&6
8807else
8808  echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810fi
8811
8812  RANLIB=$ac_ct_RANLIB
8813else
8814  RANLIB="$ac_cv_prog_RANLIB"
8815fi
8816
8817if test -n "$ac_tool_prefix"; then
8818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8819set dummy ${ac_tool_prefix}strip; ac_word=$2
8820echo "$as_me:$LINENO: checking for $ac_word" >&5
8821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8822if test "${ac_cv_prog_STRIP+set}" = set; then
8823  echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825  if test -n "$STRIP"; then
8826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8827else
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831  IFS=$as_save_IFS
8832  test -z "$as_dir" && as_dir=.
8833  for ac_exec_ext in '' $ac_executable_extensions; do
8834  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8837    break 2
8838  fi
8839done
8840done
8841
8842fi
8843fi
8844STRIP=$ac_cv_prog_STRIP
8845if test -n "$STRIP"; then
8846  echo "$as_me:$LINENO: result: $STRIP" >&5
8847echo "${ECHO_T}$STRIP" >&6
8848else
8849  echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851fi
8852
8853fi
8854if test -z "$ac_cv_prog_STRIP"; then
8855  ac_ct_STRIP=$STRIP
8856  # Extract the first word of "strip", so it can be a program name with args.
8857set dummy strip; ac_word=$2
8858echo "$as_me:$LINENO: checking for $ac_word" >&5
8859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8860if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8861  echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863  if test -n "$ac_ct_STRIP"; then
8864  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8865else
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869  IFS=$as_save_IFS
8870  test -z "$as_dir" && as_dir=.
8871  for ac_exec_ext in '' $ac_executable_extensions; do
8872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8873    ac_cv_prog_ac_ct_STRIP="strip"
8874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875    break 2
8876  fi
8877done
8878done
8879
8880  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8881fi
8882fi
8883ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8884if test -n "$ac_ct_STRIP"; then
8885  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8886echo "${ECHO_T}$ac_ct_STRIP" >&6
8887else
8888  echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
8890fi
8891
8892  STRIP=$ac_ct_STRIP
8893else
8894  STRIP="$ac_cv_prog_STRIP"
8895fi
8896
8897
8898old_CC="$CC"
8899old_CFLAGS="$CFLAGS"
8900
8901# Set sane defaults for various variables
8902test -z "$AR" && AR=ar
8903test -z "$AR_FLAGS" && AR_FLAGS=cru
8904test -z "$AS" && AS=as
8905test -z "$CC" && CC=cc
8906test -z "$LTCC" && LTCC=$CC
8907test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8908test -z "$DLLTOOL" && DLLTOOL=dlltool
8909test -z "$LD" && LD=ld
8910test -z "$LN_S" && LN_S="ln -s"
8911test -z "$MAGIC_CMD" && MAGIC_CMD=file
8912test -z "$NM" && NM=nm
8913test -z "$SED" && SED=sed
8914test -z "$OBJDUMP" && OBJDUMP=objdump
8915test -z "$RANLIB" && RANLIB=:
8916test -z "$STRIP" && STRIP=:
8917test -z "$ac_objext" && ac_objext=o
8918
8919# Determine commands to create old-style static archives.
8920old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8921old_postinstall_cmds='chmod 644 $oldlib'
8922old_postuninstall_cmds=
8923
8924if test -n "$RANLIB"; then
8925  case $host_os in
8926  openbsd*)
8927    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8928    ;;
8929  *)
8930    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8931    ;;
8932  esac
8933  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8934fi
8935
8936for cc_temp in $compiler""; do
8937  case $cc_temp in
8938    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8939    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8940    \-*) ;;
8941    *) break;;
8942  esac
8943done
8944cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8945
8946
8947# Only perform the check for file, if the check method requires it
8948case $deplibs_check_method in
8949file_magic*)
8950  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8951    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8952echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8953if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8954  echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956  case $MAGIC_CMD in
8957[\\/*] |  ?:[\\/]*)
8958  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8959  ;;
8960*)
8961  lt_save_MAGIC_CMD="$MAGIC_CMD"
8962  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8963  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8964  for ac_dir in $ac_dummy; do
8965    IFS="$lt_save_ifs"
8966    test -z "$ac_dir" && ac_dir=.
8967    if test -f $ac_dir/${ac_tool_prefix}file; then
8968      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8969      if test -n "$file_magic_test_file"; then
8970        case $deplibs_check_method in
8971        "file_magic "*)
8972          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8973          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8974          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8975            $EGREP "$file_magic_regex" > /dev/null; then
8976            :
8977          else
8978            cat <<EOF 1>&2
8979
8980*** Warning: the command libtool uses to detect shared libraries,
8981*** $file_magic_cmd, produces output that libtool cannot recognize.
8982*** The result is that libtool may fail to recognize shared libraries
8983*** as such.  This will affect the creation of libtool libraries that
8984*** depend on shared libraries, but programs linked with such libtool
8985*** libraries will work regardless of this problem.  Nevertheless, you
8986*** may want to report the problem to your system manager and/or to
8987*** bug-libtool@gnu.org
8988
8989EOF
8990          fi ;;
8991        esac
8992      fi
8993      break
8994    fi
8995  done
8996  IFS="$lt_save_ifs"
8997  MAGIC_CMD="$lt_save_MAGIC_CMD"
8998  ;;
8999esac
9000fi
9001
9002MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9003if test -n "$MAGIC_CMD"; then
9004  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9005echo "${ECHO_T}$MAGIC_CMD" >&6
9006else
9007  echo "$as_me:$LINENO: result: no" >&5
9008echo "${ECHO_T}no" >&6
9009fi
9010
9011if test -z "$lt_cv_path_MAGIC_CMD"; then
9012  if test -n "$ac_tool_prefix"; then
9013    echo "$as_me:$LINENO: checking for file" >&5
9014echo $ECHO_N "checking for file... $ECHO_C" >&6
9015if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9016  echo $ECHO_N "(cached) $ECHO_C" >&6
9017else
9018  case $MAGIC_CMD in
9019[\\/*] |  ?:[\\/]*)
9020  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9021  ;;
9022*)
9023  lt_save_MAGIC_CMD="$MAGIC_CMD"
9024  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9025  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9026  for ac_dir in $ac_dummy; do
9027    IFS="$lt_save_ifs"
9028    test -z "$ac_dir" && ac_dir=.
9029    if test -f $ac_dir/file; then
9030      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9031      if test -n "$file_magic_test_file"; then
9032        case $deplibs_check_method in
9033        "file_magic "*)
9034          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9035          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9036          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9037            $EGREP "$file_magic_regex" > /dev/null; then
9038            :
9039          else
9040            cat <<EOF 1>&2
9041
9042*** Warning: the command libtool uses to detect shared libraries,
9043*** $file_magic_cmd, produces output that libtool cannot recognize.
9044*** The result is that libtool may fail to recognize shared libraries
9045*** as such.  This will affect the creation of libtool libraries that
9046*** depend on shared libraries, but programs linked with such libtool
9047*** libraries will work regardless of this problem.  Nevertheless, you
9048*** may want to report the problem to your system manager and/or to
9049*** bug-libtool@gnu.org
9050
9051EOF
9052          fi ;;
9053        esac
9054      fi
9055      break
9056    fi
9057  done
9058  IFS="$lt_save_ifs"
9059  MAGIC_CMD="$lt_save_MAGIC_CMD"
9060  ;;
9061esac
9062fi
9063
9064MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9065if test -n "$MAGIC_CMD"; then
9066  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9067echo "${ECHO_T}$MAGIC_CMD" >&6
9068else
9069  echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
9071fi
9072
9073  else
9074    MAGIC_CMD=:
9075  fi
9076fi
9077
9078  fi
9079  ;;
9080esac
9081
9082enable_dlopen=no
9083enable_win32_dll=no
9084
9085# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9086if test "${enable_libtool_lock+set}" = set; then
9087  enableval="$enable_libtool_lock"
9088
9089fi;
9090test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9091
9092
9093# Check whether --with-pic or --without-pic was given.
9094if test "${with_pic+set}" = set; then
9095  withval="$with_pic"
9096  pic_mode="$withval"
9097else
9098  pic_mode=default
9099fi;
9100test -z "$pic_mode" && pic_mode=default
9101
9102# Use C for the default configuration in the libtool script
9103tagname=
9104lt_save_CC="$CC"
9105ac_ext=c
9106ac_cpp='$CPP $CPPFLAGS'
9107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9109ac_compiler_gnu=$ac_cv_c_compiler_gnu
9110
9111
9112# Source file extension for C test sources.
9113ac_ext=c
9114
9115# Object file extension for compiled C test sources.
9116objext=o
9117objext=$objext
9118
9119# Code to be used in simple compile tests
9120lt_simple_compile_test_code="int some_variable = 0;\n"
9121
9122# Code to be used in simple link tests
9123lt_simple_link_test_code='int main(){return(0);}\n'
9124
9125
9126# If no C compiler was specified, use CC.
9127LTCC=${LTCC-"$CC"}
9128
9129# If no C compiler flags were specified, use CFLAGS.
9130LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9131
9132# Allow CC to be a program name with arguments.
9133compiler=$CC
9134
9135
9136# save warnings/boilerplate of simple test code
9137ac_outfile=conftest.$ac_objext
9138printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9139eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9140_lt_compiler_boilerplate=`cat conftest.err`
9141$rm conftest*
9142
9143ac_outfile=conftest.$ac_objext
9144printf "$lt_simple_link_test_code" >conftest.$ac_ext
9145eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9146_lt_linker_boilerplate=`cat conftest.err`
9147$rm conftest*
9148
9149
9150## CAVEAT EMPTOR:
9151## There is no encapsulation within the following macros, do not change
9152## the running order or otherwise move them around unless you know exactly
9153## what you are doing...
9154
9155lt_prog_compiler_no_builtin_flag=
9156
9157if test "$GCC" = yes; then
9158  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9159
9160
9161echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9162echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9163if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9164  echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166  lt_cv_prog_compiler_rtti_exceptions=no
9167  ac_outfile=conftest.$ac_objext
9168   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9169   lt_compiler_flag="-fno-rtti -fno-exceptions"
9170   # Insert the option either (1) after the last *FLAGS variable, or
9171   # (2) before a word containing "conftest.", or (3) at the end.
9172   # Note that $ac_compile itself does not contain backslashes and begins
9173   # with a dollar sign (not a hyphen), so the echo should work correctly.
9174   # The option is referenced via a variable to avoid confusing sed.
9175   lt_compile=`echo "$ac_compile" | $SED \
9176   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178   -e 's:$: $lt_compiler_flag:'`
9179   (eval echo "\"\$as_me:9179: $lt_compile\"" >&5)
9180   (eval "$lt_compile" 2>conftest.err)
9181   ac_status=$?
9182   cat conftest.err >&5
9183   echo "$as_me:9183: \$? = $ac_status" >&5
9184   if (exit $ac_status) && test -s "$ac_outfile"; then
9185     # The compiler can only warn and ignore the option if not recognized
9186     # So say no if there are warnings other than the usual output.
9187     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9188     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9189     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9190       lt_cv_prog_compiler_rtti_exceptions=yes
9191     fi
9192   fi
9193   $rm conftest*
9194
9195fi
9196echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9197echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9198
9199if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9200    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9201else
9202    :
9203fi
9204
9205fi
9206
9207lt_prog_compiler_wl=
9208lt_prog_compiler_pic=
9209lt_prog_compiler_static=
9210
9211echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9212echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9213
9214  if test "$GCC" = yes; then
9215    lt_prog_compiler_wl='-Wl,'
9216    lt_prog_compiler_static='-static'
9217
9218    case $host_os in
9219      aix*)
9220      # All AIX code is PIC.
9221      if test "$host_cpu" = ia64; then
9222        # AIX 5 now supports IA64 processor
9223        lt_prog_compiler_static='-Bstatic'
9224      fi
9225      ;;
9226
9227    amigaos*)
9228      # FIXME: we need at least 68020 code to build shared libraries, but
9229      # adding the `-m68020' flag to GCC prevents building anything better,
9230      # like `-m68040'.
9231      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9232      ;;
9233
9234    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9235      # PIC is the default for these OSes.
9236      ;;
9237
9238    mingw* | pw32* | os2*)
9239      # This hack is so that the source file can tell whether it is being
9240      # built for inclusion in a dll (and should export symbols for example).
9241      lt_prog_compiler_pic='-DDLL_EXPORT'
9242      ;;
9243
9244    darwin* | rhapsody*)
9245      # PIC is the default on this platform
9246      # Common symbols not allowed in MH_DYLIB files
9247      lt_prog_compiler_pic='-fno-common'
9248      ;;
9249
9250    interix3*)
9251      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9252      # Instead, we relocate shared libraries at runtime.
9253      ;;
9254
9255    msdosdjgpp*)
9256      # Just because we use GCC doesn't mean we suddenly get shared libraries
9257      # on systems that don't support them.
9258      lt_prog_compiler_can_build_shared=no
9259      enable_shared=no
9260      ;;
9261
9262    sysv4*MP*)
9263      if test -d /usr/nec; then
9264        lt_prog_compiler_pic=-Kconform_pic
9265      fi
9266      ;;
9267
9268    hpux*)
9269      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9270      # not for PA HP-UX.
9271      case $host_cpu in
9272      hppa*64*|ia64*)
9273        # +Z the default
9274        ;;
9275      *)
9276        lt_prog_compiler_pic='-fPIC'
9277        ;;
9278      esac
9279      ;;
9280
9281    *)
9282      lt_prog_compiler_pic='-fPIC'
9283      ;;
9284    esac
9285  else
9286    # PORTME Check for flag to pass linker flags through the system compiler.
9287    case $host_os in
9288    aix*)
9289      lt_prog_compiler_wl='-Wl,'
9290      if test "$host_cpu" = ia64; then
9291        # AIX 5 now supports IA64 processor
9292        lt_prog_compiler_static='-Bstatic'
9293      else
9294        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9295      fi
9296      ;;
9297      darwin*)
9298        # PIC is the default on this platform
9299        # Common symbols not allowed in MH_DYLIB files
9300       case $cc_basename in
9301         xlc*)
9302         lt_prog_compiler_pic='-qnocommon'
9303         lt_prog_compiler_wl='-Wl,'
9304         ;;
9305       esac
9306       ;;
9307
9308    mingw* | pw32* | os2*)
9309      # This hack is so that the source file can tell whether it is being
9310      # built for inclusion in a dll (and should export symbols for example).
9311      lt_prog_compiler_pic='-DDLL_EXPORT'
9312      ;;
9313
9314    hpux9* | hpux10* | hpux11*)
9315      lt_prog_compiler_wl='-Wl,'
9316      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9317      # not for PA HP-UX.
9318      case $host_cpu in
9319      hppa*64*|ia64*)
9320        # +Z the default
9321        ;;
9322      *)
9323        lt_prog_compiler_pic='+Z'
9324        ;;
9325      esac
9326      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9327      lt_prog_compiler_static='${wl}-a ${wl}archive'
9328      ;;
9329
9330    irix5* | irix6* | nonstopux*)
9331      lt_prog_compiler_wl='-Wl,'
9332      # PIC (with -KPIC) is the default.
9333      lt_prog_compiler_static='-non_shared'
9334      ;;
9335
9336    newsos6)
9337      lt_prog_compiler_pic='-KPIC'
9338      lt_prog_compiler_static='-Bstatic'
9339      ;;
9340
9341    linux*)
9342      case $cc_basename in
9343      icc* | ecc*)
9344        lt_prog_compiler_wl='-Wl,'
9345        lt_prog_compiler_pic='-KPIC'
9346        lt_prog_compiler_static='-static'
9347        ;;
9348      pgcc* | pgf77* | pgf90* | pgf95*)
9349        # Portland Group compilers (*not* the Pentium gcc compiler,
9350        # which looks to be a dead project)
9351        lt_prog_compiler_wl='-Wl,'
9352        lt_prog_compiler_pic='-fpic'
9353        lt_prog_compiler_static='-Bstatic'
9354        ;;
9355      ccc*)
9356        lt_prog_compiler_wl='-Wl,'
9357        # All Alpha code is PIC.
9358        lt_prog_compiler_static='-non_shared'
9359        ;;
9360      esac
9361      ;;
9362
9363    osf3* | osf4* | osf5*)
9364      lt_prog_compiler_wl='-Wl,'
9365      # All OSF/1 code is PIC.
9366      lt_prog_compiler_static='-non_shared'
9367      ;;
9368
9369    solaris*)
9370      lt_prog_compiler_pic='-KPIC'
9371      lt_prog_compiler_static='-Bstatic'
9372      case $cc_basename in
9373      f77* | f90* | f95*)
9374        lt_prog_compiler_wl='-Qoption ld ';;
9375      *)
9376        lt_prog_compiler_wl='-Wl,';;
9377      esac
9378      ;;
9379
9380    sunos4*)
9381      lt_prog_compiler_wl='-Qoption ld '
9382      lt_prog_compiler_pic='-PIC'
9383      lt_prog_compiler_static='-Bstatic'
9384      ;;
9385
9386    sysv4 | sysv4.2uw2* | sysv4.3*)
9387      lt_prog_compiler_wl='-Wl,'
9388      lt_prog_compiler_pic='-KPIC'
9389      lt_prog_compiler_static='-Bstatic'
9390      ;;
9391
9392    sysv4*MP*)
9393      if test -d /usr/nec ;then
9394        lt_prog_compiler_pic='-Kconform_pic'
9395        lt_prog_compiler_static='-Bstatic'
9396      fi
9397      ;;
9398
9399    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9400      lt_prog_compiler_wl='-Wl,'
9401      lt_prog_compiler_pic='-KPIC'
9402      lt_prog_compiler_static='-Bstatic'
9403      ;;
9404
9405    unicos*)
9406      lt_prog_compiler_wl='-Wl,'
9407      lt_prog_compiler_can_build_shared=no
9408      ;;
9409
9410    uts4*)
9411      lt_prog_compiler_pic='-pic'
9412      lt_prog_compiler_static='-Bstatic'
9413      ;;
9414
9415    *)
9416      lt_prog_compiler_can_build_shared=no
9417      ;;
9418    esac
9419  fi
9420
9421echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9422echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9423
9424#
9425# Check to make sure the PIC flag actually works.
9426#
9427if test -n "$lt_prog_compiler_pic"; then
9428
9429echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9430echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9431if test "${lt_prog_compiler_pic_works+set}" = set; then
9432  echo $ECHO_N "(cached) $ECHO_C" >&6
9433else
9434  lt_prog_compiler_pic_works=no
9435  ac_outfile=conftest.$ac_objext
9436   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9437   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9438   # Insert the option either (1) after the last *FLAGS variable, or
9439   # (2) before a word containing "conftest.", or (3) at the end.
9440   # Note that $ac_compile itself does not contain backslashes and begins
9441   # with a dollar sign (not a hyphen), so the echo should work correctly.
9442   # The option is referenced via a variable to avoid confusing sed.
9443   lt_compile=`echo "$ac_compile" | $SED \
9444   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9445   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9446   -e 's:$: $lt_compiler_flag:'`
9447   (eval echo "\"\$as_me:9447: $lt_compile\"" >&5)
9448   (eval "$lt_compile" 2>conftest.err)
9449   ac_status=$?
9450   cat conftest.err >&5
9451   echo "$as_me:9451: \$? = $ac_status" >&5
9452   if (exit $ac_status) && test -s "$ac_outfile"; then
9453     # The compiler can only warn and ignore the option if not recognized
9454     # So say no if there are warnings other than the usual output.
9455     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9456     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9457     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9458       lt_prog_compiler_pic_works=yes
9459     fi
9460   fi
9461   $rm conftest*
9462
9463fi
9464echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9465echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9466
9467if test x"$lt_prog_compiler_pic_works" = xyes; then
9468    case $lt_prog_compiler_pic in
9469     "" | " "*) ;;
9470     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9471     esac
9472else
9473    lt_prog_compiler_pic=
9474     lt_prog_compiler_can_build_shared=no
9475fi
9476
9477fi
9478case $host_os in
9479  # For platforms which do not support PIC, -DPIC is meaningless:
9480  *djgpp*)
9481    lt_prog_compiler_pic=
9482    ;;
9483  *)
9484    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9485    ;;
9486esac
9487
9488#
9489# Check to make sure the static flag actually works.
9490#
9491wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9492echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9493echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9494if test "${lt_prog_compiler_static_works+set}" = set; then
9495  echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497  lt_prog_compiler_static_works=no
9498   save_LDFLAGS="$LDFLAGS"
9499   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9500   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9501   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9502     # The linker can only warn and ignore the option if not recognized
9503     # So say no if there are warnings
9504     if test -s conftest.err; then
9505       # Append any errors to the config.log.
9506       cat conftest.err 1>&5
9507       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9508       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9509       if diff conftest.exp conftest.er2 >/dev/null; then
9510         lt_prog_compiler_static_works=yes
9511       fi
9512     else
9513       lt_prog_compiler_static_works=yes
9514     fi
9515   fi
9516   $rm conftest*
9517   LDFLAGS="$save_LDFLAGS"
9518
9519fi
9520echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9521echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9522
9523if test x"$lt_prog_compiler_static_works" = xyes; then
9524    :
9525else
9526    lt_prog_compiler_static=
9527fi
9528
9529
9530echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9531echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9532if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9533  echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535  lt_cv_prog_compiler_c_o=no
9536   $rm -r conftest 2>/dev/null
9537   mkdir conftest
9538   cd conftest
9539   mkdir out
9540   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9541
9542   lt_compiler_flag="-o out/conftest2.$ac_objext"
9543   # Insert the option either (1) after the last *FLAGS variable, or
9544   # (2) before a word containing "conftest.", or (3) at the end.
9545   # Note that $ac_compile itself does not contain backslashes and begins
9546   # with a dollar sign (not a hyphen), so the echo should work correctly.
9547   lt_compile=`echo "$ac_compile" | $SED \
9548   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9550   -e 's:$: $lt_compiler_flag:'`
9551   (eval echo "\"\$as_me:9551: $lt_compile\"" >&5)
9552   (eval "$lt_compile" 2>out/conftest.err)
9553   ac_status=$?
9554   cat out/conftest.err >&5
9555   echo "$as_me:9555: \$? = $ac_status" >&5
9556   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9557   then
9558     # The compiler can only warn and ignore the option if not recognized
9559     # So say no if there are warnings
9560     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9561     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9562     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9563       lt_cv_prog_compiler_c_o=yes
9564     fi
9565   fi
9566   chmod u+w . 2>&5
9567   $rm conftest*
9568   # SGI C++ compiler will create directory out/ii_files/ for
9569   # template instantiation
9570   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9571   $rm out/* && rmdir out
9572   cd ..
9573   rmdir conftest
9574   $rm conftest*
9575
9576fi
9577echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9578echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9579
9580
9581hard_links="nottested"
9582if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9583  # do not overwrite the value of need_locks provided by the user
9584  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9585echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9586  hard_links=yes
9587  $rm conftest*
9588  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9589  touch conftest.a
9590  ln conftest.a conftest.b 2>&5 || hard_links=no
9591  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9592  echo "$as_me:$LINENO: result: $hard_links" >&5
9593echo "${ECHO_T}$hard_links" >&6
9594  if test "$hard_links" = no; then
9595    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9596echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9597    need_locks=warn
9598  fi
9599else
9600  need_locks=no
9601fi
9602
9603echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9605
9606  runpath_var=
9607  allow_undefined_flag=
9608  enable_shared_with_static_runtimes=no
9609  archive_cmds=
9610  archive_expsym_cmds=
9611  old_archive_From_new_cmds=
9612  old_archive_from_expsyms_cmds=
9613  export_dynamic_flag_spec=
9614  whole_archive_flag_spec=
9615  thread_safe_flag_spec=
9616  hardcode_libdir_flag_spec=
9617  hardcode_libdir_flag_spec_ld=
9618  hardcode_libdir_separator=
9619  hardcode_direct=no
9620  hardcode_minus_L=no
9621  hardcode_shlibpath_var=unsupported
9622  link_all_deplibs=unknown
9623  hardcode_automatic=no
9624  module_cmds=
9625  module_expsym_cmds=
9626  always_export_symbols=no
9627  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9628  # include_expsyms should be a list of space-separated symbols to be *always*
9629  # included in the symbol list
9630  include_expsyms=
9631  # exclude_expsyms can be an extended regexp of symbols to exclude
9632  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9633  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9634  # as well as any symbol that contains `d'.
9635  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9636  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9637  # platforms (ab)use it in PIC code, but their linkers get confused if
9638  # the symbol is explicitly referenced.  Since portable code cannot
9639  # rely on this symbol name, it's probably fine to never include it in
9640  # preloaded symbol tables.
9641  extract_expsyms_cmds=
9642  # Just being paranoid about ensuring that cc_basename is set.
9643  for cc_temp in $compiler""; do
9644  case $cc_temp in
9645    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9646    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9647    \-*) ;;
9648    *) break;;
9649  esac
9650done
9651cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9652
9653  case $host_os in
9654  cygwin* | mingw* | pw32*)
9655    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9656    # When not using gcc, we currently assume that we are using
9657    # Microsoft Visual C++.
9658    if test "$GCC" != yes; then
9659      with_gnu_ld=no
9660    fi
9661    ;;
9662  interix*)
9663    # we just hope/assume this is gcc and not c89 (= MSVC++)
9664    with_gnu_ld=yes
9665    ;;
9666  openbsd*)
9667    with_gnu_ld=no
9668    ;;
9669  esac
9670
9671  ld_shlibs=yes
9672  if test "$with_gnu_ld" = yes; then
9673    # If archive_cmds runs LD, not CC, wlarc should be empty
9674    wlarc='${wl}'
9675
9676    # Set some defaults for GNU ld with shared library support. These
9677    # are reset later if shared libraries are not supported. Putting them
9678    # here allows them to be overridden if necessary.
9679    runpath_var=LD_RUN_PATH
9680    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9681    export_dynamic_flag_spec='${wl}--export-dynamic'
9682    # ancient GNU ld didn't support --whole-archive et. al.
9683    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9684        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9685      else
9686        whole_archive_flag_spec=
9687    fi
9688    supports_anon_versioning=no
9689    case `$LD -v 2>/dev/null` in
9690      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9691      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9692      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9693      *\ 2.11.*) ;; # other 2.11 versions
9694      *) supports_anon_versioning=yes ;;
9695    esac
9696
9697    # See if GNU ld supports shared libraries.
9698    case $host_os in
9699    aix3* | aix4* | aix5*)
9700      # On AIX/PPC, the GNU linker is very broken
9701      if test "$host_cpu" != ia64; then
9702        ld_shlibs=no
9703        cat <<EOF 1>&2
9704
9705*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9706*** to be unable to reliably create shared libraries on AIX.
9707*** Therefore, libtool is disabling shared libraries support.  If you
9708*** really care for shared libraries, you may want to modify your PATH
9709*** so that a non-GNU linker is found, and then restart.
9710
9711EOF
9712      fi
9713      ;;
9714
9715    amigaos*)
9716      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9717      hardcode_libdir_flag_spec='-L$libdir'
9718      hardcode_minus_L=yes
9719
9720      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9721      # that the semantics of dynamic libraries on AmigaOS, at least up
9722      # to version 4, is to share data among multiple programs linked
9723      # with the same dynamic library.  Since this doesn't match the
9724      # behavior of shared libraries on other platforms, we can't use
9725      # them.
9726      ld_shlibs=no
9727      ;;
9728
9729    beos*)
9730      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9731        allow_undefined_flag=unsupported
9732        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9733        # support --undefined.  This deserves some investigation.  FIXME
9734        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735      else
9736        ld_shlibs=no
9737      fi
9738      ;;
9739
9740    cygwin* | mingw* | pw32*)
9741      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9742      # as there is no search path for DLLs.
9743      hardcode_libdir_flag_spec='-L$libdir'
9744      allow_undefined_flag=unsupported
9745      always_export_symbols=no
9746      enable_shared_with_static_runtimes=yes
9747      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9748
9749      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9750        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9751        # If the export-symbols file already is a .def file (1st line
9752        # is EXPORTS), use it as is; otherwise, prepend...
9753        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9754          cp $export_symbols $output_objdir/$soname.def;
9755        else
9756          echo EXPORTS > $output_objdir/$soname.def;
9757          cat $export_symbols >> $output_objdir/$soname.def;
9758        fi~
9759        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9760      else
9761        ld_shlibs=no
9762      fi
9763      ;;
9764
9765    interix3*)
9766      hardcode_direct=no
9767      hardcode_shlibpath_var=no
9768      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9769      export_dynamic_flag_spec='${wl}-E'
9770      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9771      # Instead, shared libraries are loaded at an image base (0x10000000 by
9772      # default) and relocated if they conflict, which is a slow very memory
9773      # consuming and fragmenting process.  To avoid this, we pick a random,
9774      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9775      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9776      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9777      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9778      ;;
9779
9780    linux*)
9781      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9782        tmp_addflag=
9783        case $cc_basename,$host_cpu in
9784        pgcc*)                          # Portland Group C compiler
9785          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9786          tmp_addflag=' $pic_flag'
9787          ;;
9788        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9789          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9790          tmp_addflag=' $pic_flag -Mnomain' ;;
9791        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9792          tmp_addflag=' -i_dynamic' ;;
9793        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9794          tmp_addflag=' -i_dynamic -nofor_main' ;;
9795        ifc* | ifort*)                  # Intel Fortran compiler
9796          tmp_addflag=' -nofor_main' ;;
9797        esac
9798        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9799
9800        if test $supports_anon_versioning = yes; then
9801          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9802  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9803  $echo "local: *; };" >> $output_objdir/$libname.ver~
9804          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9805        fi
9806      else
9807        ld_shlibs=no
9808      fi
9809      ;;
9810
9811    netbsd*)
9812      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9813        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9814        wlarc=
9815      else
9816        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9818      fi
9819      ;;
9820
9821    solaris*)
9822      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9823        ld_shlibs=no
9824        cat <<EOF 1>&2
9825
9826*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9827*** create shared libraries on Solaris systems.  Therefore, libtool
9828*** is disabling shared libraries support.  We urge you to upgrade GNU
9829*** binutils to release 2.9.1 or newer.  Another option is to modify
9830*** your PATH or compiler configuration so that the native linker is
9831*** used, and then restart.
9832
9833EOF
9834      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9835        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9837      else
9838        ld_shlibs=no
9839      fi
9840      ;;
9841
9842    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9843      case `$LD -v 2>&1` in
9844        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9845        ld_shlibs=no
9846        cat <<_LT_EOF 1>&2
9847
9848*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9849*** reliably create shared libraries on SCO systems.  Therefore, libtool
9850*** is disabling shared libraries support.  We urge you to upgrade GNU
9851*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9852*** your PATH or compiler configuration so that the native linker is
9853*** used, and then restart.
9854
9855_LT_EOF
9856        ;;
9857        *)
9858          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9859            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9860            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9861            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9862          else
9863            ld_shlibs=no
9864          fi
9865        ;;
9866      esac
9867      ;;
9868
9869    sunos4*)
9870      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871      wlarc=
9872      hardcode_direct=yes
9873      hardcode_shlibpath_var=no
9874      ;;
9875
9876    *)
9877      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9878        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9879        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9880      else
9881        ld_shlibs=no
9882      fi
9883      ;;
9884    esac
9885
9886    if test "$ld_shlibs" = no; then
9887      runpath_var=
9888      hardcode_libdir_flag_spec=
9889      export_dynamic_flag_spec=
9890      whole_archive_flag_spec=
9891    fi
9892  else
9893    # PORTME fill in a description of your system's linker (not GNU ld)
9894    case $host_os in
9895    aix3*)
9896      allow_undefined_flag=unsupported
9897      always_export_symbols=yes
9898      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9899      # Note: this linker hardcodes the directories in LIBPATH if there
9900      # are no directories specified by -L.
9901      hardcode_minus_L=yes
9902      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9903        # Neither direct hardcoding nor static linking is supported with a
9904        # broken collect2.
9905        hardcode_direct=unsupported
9906      fi
9907      ;;
9908
9909    aix4* | aix5*)
9910      if test "$host_cpu" = ia64; then
9911        # On IA64, the linker does run time linking by default, so we don't
9912        # have to do anything special.
9913        aix_use_runtimelinking=no
9914        exp_sym_flag='-Bexport'
9915        no_entry_flag=""
9916      else
9917        # If we're using GNU nm, then we don't want the "-C" option.
9918        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9919        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9920          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9921        else
9922          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9923        fi
9924        aix_use_runtimelinking=no
9925
9926        # Test if we are trying to use run time linking or normal
9927        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9928        # need to do runtime linking.
9929        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9930          for ld_flag in $LDFLAGS; do
9931          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9932            aix_use_runtimelinking=yes
9933            break
9934          fi
9935          done
9936          ;;
9937        esac
9938
9939        exp_sym_flag='-bexport'
9940        no_entry_flag='-bnoentry'
9941      fi
9942
9943      # When large executables or shared objects are built, AIX ld can
9944      # have problems creating the table of contents.  If linking a library
9945      # or program results in "error TOC overflow" add -mminimal-toc to
9946      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9947      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9948
9949      archive_cmds=''
9950      hardcode_direct=yes
9951      hardcode_libdir_separator=':'
9952      link_all_deplibs=yes
9953
9954      if test "$GCC" = yes; then
9955        case $host_os in aix4.[012]|aix4.[012].*)
9956        # We only want to do this on AIX 4.2 and lower, the check
9957        # below for broken collect2 doesn't work under 4.3+
9958          collect2name=`${CC} -print-prog-name=collect2`
9959          if test -f "$collect2name" && \
9960           strings "$collect2name" | grep resolve_lib_name >/dev/null
9961          then
9962          # We have reworked collect2
9963          hardcode_direct=yes
9964          else
9965          # We have old collect2
9966          hardcode_direct=unsupported
9967          # It fails to find uninstalled libraries when the uninstalled
9968          # path is not listed in the libpath.  Setting hardcode_minus_L
9969          # to unsupported forces relinking
9970          hardcode_minus_L=yes
9971          hardcode_libdir_flag_spec='-L$libdir'
9972          hardcode_libdir_separator=
9973          fi
9974          ;;
9975        esac
9976        shared_flag='-shared'
9977        if test "$aix_use_runtimelinking" = yes; then
9978          shared_flag="$shared_flag "'${wl}-G'
9979        fi
9980      else
9981        # not using gcc
9982        if test "$host_cpu" = ia64; then
9983        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9984        # chokes on -Wl,-G. The following line is correct:
9985          shared_flag='-G'
9986        else
9987          if test "$aix_use_runtimelinking" = yes; then
9988            shared_flag='${wl}-G'
9989          else
9990            shared_flag='${wl}-bM:SRE'
9991          fi
9992        fi
9993      fi
9994
9995      # It seems that -bexpall does not export symbols beginning with
9996      # underscore (_), so it is better to generate a list of symbols to export.
9997      always_export_symbols=yes
9998      if test "$aix_use_runtimelinking" = yes; then
9999        # Warning - without using the other runtime loading flags (-brtl),
10000        # -berok will link without error, but may produce a broken library.
10001        allow_undefined_flag='-berok'
10002       # Determine the default libpath from the value encoded in an empty executable.
10003       cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h.  */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h.  */
10009
10010#ifdef F77_DUMMY_MAIN
10011
10012#  ifdef __cplusplus
10013     extern "C"
10014#  endif
10015   int F77_DUMMY_MAIN() { return 1; }
10016
10017#endif
10018int
10019main ()
10020{
10021
10022  ;
10023  return 0;
10024}
10025_ACEOF
10026rm -f conftest.$ac_objext conftest$ac_exeext
10027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028  (eval $ac_link) 2>conftest.er1
10029  ac_status=$?
10030  grep -v '^ *+' conftest.er1 >conftest.err
10031  rm -f conftest.er1
10032  cat conftest.err >&5
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); } &&
10035         { ac_try='test -z "$ac_c_werror_flag"
10036                         || test ! -s conftest.err'
10037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038  (eval $ac_try) 2>&5
10039  ac_status=$?
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); }; } &&
10042         { ac_try='test -s conftest$ac_exeext'
10043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044  (eval $ac_try) 2>&5
10045  ac_status=$?
10046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047  (exit $ac_status); }; }; then
10048
10049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10050}'`
10051# Check for a 64-bit object if we didn't find anything.
10052if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10053}'`; fi
10054else
10055  echo "$as_me: failed program was:" >&5
10056sed 's/^/| /' conftest.$ac_ext >&5
10057
10058fi
10059rm -f conftest.err conftest.$ac_objext \
10060      conftest$ac_exeext conftest.$ac_ext
10061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10062
10063       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10064        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10065       else
10066        if test "$host_cpu" = ia64; then
10067          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10068          allow_undefined_flag="-z nodefs"
10069          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10070        else
10071         # Determine the default libpath from the value encoded in an empty executable.
10072         cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h.  */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h.  */
10078
10079#ifdef F77_DUMMY_MAIN
10080
10081#  ifdef __cplusplus
10082     extern "C"
10083#  endif
10084   int F77_DUMMY_MAIN() { return 1; }
10085
10086#endif
10087int
10088main ()
10089{
10090
10091  ;
10092  return 0;
10093}
10094_ACEOF
10095rm -f conftest.$ac_objext conftest$ac_exeext
10096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097  (eval $ac_link) 2>conftest.er1
10098  ac_status=$?
10099  grep -v '^ *+' conftest.er1 >conftest.err
10100  rm -f conftest.er1
10101  cat conftest.err >&5
10102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103  (exit $ac_status); } &&
10104         { ac_try='test -z "$ac_c_werror_flag"
10105                         || test ! -s conftest.err'
10106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107  (eval $ac_try) 2>&5
10108  ac_status=$?
10109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110  (exit $ac_status); }; } &&
10111         { ac_try='test -s conftest$ac_exeext'
10112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113  (eval $ac_try) 2>&5
10114  ac_status=$?
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); }; }; then
10117
10118aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10119}'`
10120# Check for a 64-bit object if we didn't find anything.
10121if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10122}'`; fi
10123else
10124  echo "$as_me: failed program was:" >&5
10125sed 's/^/| /' conftest.$ac_ext >&5
10126
10127fi
10128rm -f conftest.err conftest.$ac_objext \
10129      conftest$ac_exeext conftest.$ac_ext
10130if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10131
10132         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10133          # Warning - without using the other run time loading flags,
10134          # -berok will link without error, but may produce a broken library.
10135          no_undefined_flag=' ${wl}-bernotok'
10136          allow_undefined_flag=' ${wl}-berok'
10137          # Exported symbols can be pulled into shared objects from archives
10138          whole_archive_flag_spec='$convenience'
10139          archive_cmds_need_lc=yes
10140          # This is similar to how AIX traditionally builds its shared libraries.
10141          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10142        fi
10143      fi
10144      ;;
10145
10146    amigaos*)
10147      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10148      hardcode_libdir_flag_spec='-L$libdir'
10149      hardcode_minus_L=yes
10150      # see comment about different semantics on the GNU ld section
10151      ld_shlibs=no
10152      ;;
10153
10154    bsdi[45]*)
10155      export_dynamic_flag_spec=-rdynamic
10156      ;;
10157
10158    cygwin* | mingw* | pw32*)
10159      # When not using gcc, we currently assume that we are using
10160      # Microsoft Visual C++.
10161      # hardcode_libdir_flag_spec is actually meaningless, as there is
10162      # no search path for DLLs.
10163      hardcode_libdir_flag_spec=' '
10164      allow_undefined_flag=unsupported
10165      # Tell ltmain to make .lib files, not .a files.
10166      libext=lib
10167      # Tell ltmain to make .dll files, not .so files.
10168      shrext_cmds=".dll"
10169      # FIXME: Setting linknames here is a bad hack.
10170      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10171      # The linker will automatically build a .lib file if we build a DLL.
10172      old_archive_From_new_cmds='true'
10173      # FIXME: Should let the user specify the lib program.
10174      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10175      fix_srcfile_path='`cygpath -w "$srcfile"`'
10176      enable_shared_with_static_runtimes=yes
10177      ;;
10178
10179    darwin* | rhapsody*)
10180      case $host_os in
10181        rhapsody* | darwin1.[012])
10182         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10183         ;;
10184       *) # Darwin 1.3 on
10185         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10186           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10187         else
10188           case ${MACOSX_DEPLOYMENT_TARGET} in
10189             10.[012])
10190               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10191               ;;
10192             10.*)
10193               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10194               ;;
10195           esac
10196         fi
10197         ;;
10198      esac
10199      archive_cmds_need_lc=no
10200      hardcode_direct=no
10201      hardcode_automatic=yes
10202      hardcode_shlibpath_var=unsupported
10203      whole_archive_flag_spec=''
10204      link_all_deplibs=yes
10205    if test "$GCC" = yes ; then
10206        output_verbose_link_cmd='echo'
10207        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10208      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10209      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10210      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10211      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10212    else
10213      case $cc_basename in
10214        xlc*)
10215         output_verbose_link_cmd='echo'
10216         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10217         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10218          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10219         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10220          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10221          ;;
10222       *)
10223         ld_shlibs=no
10224          ;;
10225      esac
10226    fi
10227      ;;
10228
10229    dgux*)
10230      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231      hardcode_libdir_flag_spec='-L$libdir'
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    freebsd1*)
10236      ld_shlibs=no
10237      ;;
10238
10239    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10240    # support.  Future versions do this automatically, but an explicit c++rt0.o
10241    # does not break anything, and helps significantly (at the cost of a little
10242    # extra space).
10243    freebsd2.2*)
10244      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10245      hardcode_libdir_flag_spec='-R$libdir'
10246      hardcode_direct=yes
10247      hardcode_shlibpath_var=no
10248      ;;
10249
10250    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10251    freebsd2*)
10252      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10253      hardcode_direct=yes
10254      hardcode_minus_L=yes
10255      hardcode_shlibpath_var=no
10256      ;;
10257
10258    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10259    freebsd* | kfreebsd*-gnu | dragonfly*)
10260      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10261      hardcode_libdir_flag_spec='-R$libdir'
10262      hardcode_direct=yes
10263      hardcode_shlibpath_var=no
10264      ;;
10265
10266    hpux9*)
10267      if test "$GCC" = yes; then
10268        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10269      else
10270        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10271      fi
10272      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10273      hardcode_libdir_separator=:
10274      hardcode_direct=yes
10275
10276      # hardcode_minus_L: Not really in the search PATH,
10277      # but as the default location of the library.
10278      hardcode_minus_L=yes
10279      export_dynamic_flag_spec='${wl}-E'
10280      ;;
10281
10282    hpux10*)
10283      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10284        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10285      else
10286        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10287      fi
10288      if test "$with_gnu_ld" = no; then
10289        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10290        hardcode_libdir_separator=:
10291
10292        hardcode_direct=yes
10293        export_dynamic_flag_spec='${wl}-E'
10294
10295        # hardcode_minus_L: Not really in the search PATH,
10296        # but as the default location of the library.
10297        hardcode_minus_L=yes
10298      fi
10299      ;;
10300
10301    hpux11*)
10302      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10303        case $host_cpu in
10304        hppa*64*)
10305          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10306          ;;
10307        ia64*)
10308          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10309          ;;
10310        *)
10311          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10312          ;;
10313        esac
10314      else
10315        case $host_cpu in
10316        hppa*64*)
10317          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10318          ;;
10319        ia64*)
10320          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10321          ;;
10322        *)
10323          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10324          ;;
10325        esac
10326      fi
10327      if test "$with_gnu_ld" = no; then
10328        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10329        hardcode_libdir_separator=:
10330
10331        case $host_cpu in
10332        hppa*64*|ia64*)
10333          hardcode_libdir_flag_spec_ld='+b $libdir'
10334          hardcode_direct=no
10335          hardcode_shlibpath_var=no
10336          ;;
10337        *)
10338          hardcode_direct=yes
10339          export_dynamic_flag_spec='${wl}-E'
10340
10341          # hardcode_minus_L: Not really in the search PATH,
10342          # but as the default location of the library.
10343          hardcode_minus_L=yes
10344          ;;
10345        esac
10346      fi
10347      ;;
10348
10349    irix5* | irix6* | nonstopux*)
10350      if test "$GCC" = yes; then
10351        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10352      else
10353        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10354        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10355      fi
10356      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10357      hardcode_libdir_separator=:
10358      link_all_deplibs=yes
10359      ;;
10360
10361    netbsd*)
10362      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10363        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10364      else
10365        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10366      fi
10367      hardcode_libdir_flag_spec='-R$libdir'
10368      hardcode_direct=yes
10369      hardcode_shlibpath_var=no
10370      ;;
10371
10372    newsos6)
10373      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10374      hardcode_direct=yes
10375      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10376      hardcode_libdir_separator=:
10377      hardcode_shlibpath_var=no
10378      ;;
10379
10380    openbsd*)
10381      hardcode_direct=yes
10382      hardcode_shlibpath_var=no
10383      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10384        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10385        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10386        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10387        export_dynamic_flag_spec='${wl}-E'
10388      else
10389       case $host_os in
10390         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10391           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392           hardcode_libdir_flag_spec='-R$libdir'
10393           ;;
10394         *)
10395           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10396           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10397           ;;
10398       esac
10399      fi
10400      ;;
10401
10402    os2*)
10403      hardcode_libdir_flag_spec='-L$libdir'
10404      hardcode_minus_L=yes
10405      allow_undefined_flag=unsupported
10406      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10407      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10408      ;;
10409
10410    osf3*)
10411      if test "$GCC" = yes; then
10412        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10413        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10414      else
10415        allow_undefined_flag=' -expect_unresolved \*'
10416        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10417      fi
10418      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10419      hardcode_libdir_separator=:
10420      ;;
10421
10422    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10423      if test "$GCC" = yes; then
10424        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10425        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10426        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10427      else
10428        allow_undefined_flag=' -expect_unresolved \*'
10429        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10430        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10431        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10432
10433        # Both c and cxx compiler support -rpath directly
10434        hardcode_libdir_flag_spec='-rpath $libdir'
10435      fi
10436      hardcode_libdir_separator=:
10437      ;;
10438
10439    solaris*)
10440      no_undefined_flag=' -z text'
10441      if test "$GCC" = yes; then
10442        wlarc='${wl}'
10443        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10444        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10445          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10446      else
10447        wlarc=''
10448        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10450        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10451      fi
10452      hardcode_libdir_flag_spec='-R$libdir'
10453      hardcode_shlibpath_var=no
10454      case $host_os in
10455      solaris2.[0-5] | solaris2.[0-5].*) ;;
10456      *)
10457        # The compiler driver will combine linker options so we
10458        # cannot just pass the convience library names through
10459        # without $wl, iff we do not link with $LD.
10460        # Luckily, gcc supports the same syntax we need for Sun Studio.
10461        # Supported since Solaris 2.6 (maybe 2.5.1?)
10462        case $wlarc in
10463        '')
10464          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10465        *)
10466          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10467        esac ;;
10468      esac
10469      link_all_deplibs=yes
10470      ;;
10471
10472    sunos4*)
10473      if test "x$host_vendor" = xsequent; then
10474        # Use $CC to link under sequent, because it throws in some extra .o
10475        # files that make .init and .fini sections work.
10476        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10477      else
10478        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10479      fi
10480      hardcode_libdir_flag_spec='-L$libdir'
10481      hardcode_direct=yes
10482      hardcode_minus_L=yes
10483      hardcode_shlibpath_var=no
10484      ;;
10485
10486    sysv4)
10487      case $host_vendor in
10488        sni)
10489          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490          hardcode_direct=yes # is this really true???
10491        ;;
10492        siemens)
10493          ## LD is ld it makes a PLAMLIB
10494          ## CC just makes a GrossModule.
10495          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10496          reload_cmds='$CC -r -o $output$reload_objs'
10497          hardcode_direct=no
10498        ;;
10499        motorola)
10500          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10502        ;;
10503      esac
10504      runpath_var='LD_RUN_PATH'
10505      hardcode_shlibpath_var=no
10506      ;;
10507
10508    sysv4.3*)
10509      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510      hardcode_shlibpath_var=no
10511      export_dynamic_flag_spec='-Bexport'
10512      ;;
10513
10514    sysv4*MP*)
10515      if test -d /usr/nec; then
10516        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517        hardcode_shlibpath_var=no
10518        runpath_var=LD_RUN_PATH
10519        hardcode_runpath_var=yes
10520        ld_shlibs=yes
10521      fi
10522      ;;
10523
10524    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10525      no_undefined_flag='${wl}-z,text'
10526      archive_cmds_need_lc=no
10527      hardcode_shlibpath_var=no
10528      runpath_var='LD_RUN_PATH'
10529
10530      if test "$GCC" = yes; then
10531        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10533      else
10534        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10536      fi
10537      ;;
10538
10539    sysv5* | sco3.2v5* | sco5v6*)
10540      # Note: We can NOT use -z defs as we might desire, because we do not
10541      # link with -lc, and that would cause any symbols used from libc to
10542      # always be unresolved, which means just about no library would
10543      # ever link correctly.  If we're not using GNU ld we use -z text
10544      # though, which does catch some bad symbols but isn't as heavy-handed
10545      # as -z defs.
10546      no_undefined_flag='${wl}-z,text'
10547      allow_undefined_flag='${wl}-z,nodefs'
10548      archive_cmds_need_lc=no
10549      hardcode_shlibpath_var=no
10550      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10551      hardcode_libdir_separator=':'
10552      link_all_deplibs=yes
10553      export_dynamic_flag_spec='${wl}-Bexport'
10554      runpath_var='LD_RUN_PATH'
10555
10556      if test "$GCC" = yes; then
10557        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10558        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10559      else
10560        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10561        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10562      fi
10563      ;;
10564
10565    uts4*)
10566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567      hardcode_libdir_flag_spec='-L$libdir'
10568      hardcode_shlibpath_var=no
10569      ;;
10570
10571    *)
10572      ld_shlibs=no
10573      ;;
10574    esac
10575  fi
10576
10577echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10578echo "${ECHO_T}$ld_shlibs" >&6
10579test "$ld_shlibs" = no && can_build_shared=no
10580
10581#
10582# Do we need to explicitly link libc?
10583#
10584case "x$archive_cmds_need_lc" in
10585x|xyes)
10586  # Assume -lc should be added
10587  archive_cmds_need_lc=yes
10588
10589  if test "$enable_shared" = yes && test "$GCC" = yes; then
10590    case $archive_cmds in
10591    *'~'*)
10592      # FIXME: we may have to deal with multi-command sequences.
10593      ;;
10594    '$CC '*)
10595      # Test whether the compiler implicitly links with -lc since on some
10596      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10597      # to ld, don't add -lc before -lgcc.
10598      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10599echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10600      $rm conftest*
10601      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10602
10603      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604  (eval $ac_compile) 2>&5
10605  ac_status=$?
10606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607  (exit $ac_status); } 2>conftest.err; then
10608        soname=conftest
10609        lib=conftest
10610        libobjs=conftest.$ac_objext
10611        deplibs=
10612        wl=$lt_prog_compiler_wl
10613        pic_flag=$lt_prog_compiler_pic
10614        compiler_flags=-v
10615        linker_flags=-v
10616        verstring=
10617        output_objdir=.
10618        libname=conftest
10619        lt_save_allow_undefined_flag=$allow_undefined_flag
10620        allow_undefined_flag=
10621        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10622  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10623  ac_status=$?
10624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625  (exit $ac_status); }
10626        then
10627          archive_cmds_need_lc=no
10628        else
10629          archive_cmds_need_lc=yes
10630        fi
10631        allow_undefined_flag=$lt_save_allow_undefined_flag
10632      else
10633        cat conftest.err 1>&5
10634      fi
10635      $rm conftest*
10636      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10637echo "${ECHO_T}$archive_cmds_need_lc" >&6
10638      ;;
10639    esac
10640  fi
10641  ;;
10642esac
10643
10644echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10645echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10646library_names_spec=
10647libname_spec='lib$name'
10648soname_spec=
10649shrext_cmds=".so"
10650postinstall_cmds=
10651postuninstall_cmds=
10652finish_cmds=
10653finish_eval=
10654shlibpath_var=
10655shlibpath_overrides_runpath=unknown
10656version_type=none
10657dynamic_linker="$host_os ld.so"
10658sys_lib_dlsearch_path_spec="/lib /usr/lib"
10659if test "$GCC" = yes; then
10660  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10661  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10662    # if the path contains ";" then we assume it to be the separator
10663    # otherwise default to the standard path separator (i.e. ":") - it is
10664    # assumed that no part of a normal pathname contains ";" but that should
10665    # okay in the real world where ";" in dirpaths is itself problematic.
10666    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10667  else
10668    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10669  fi
10670else
10671  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10672fi
10673need_lib_prefix=unknown
10674hardcode_into_libs=no
10675
10676# when you set need_version to no, make sure it does not cause -set_version
10677# flags to be left without arguments
10678need_version=unknown
10679
10680case $host_os in
10681aix3*)
10682  version_type=linux
10683  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10684  shlibpath_var=LIBPATH
10685
10686  # AIX 3 has no versioning support, so we append a major version to the name.
10687  soname_spec='${libname}${release}${shared_ext}$major'
10688  ;;
10689
10690aix4* | aix5*)
10691  version_type=linux
10692  need_lib_prefix=no
10693  need_version=no
10694  hardcode_into_libs=yes
10695  if test "$host_cpu" = ia64; then
10696    # AIX 5 supports IA64
10697    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10698    shlibpath_var=LD_LIBRARY_PATH
10699  else
10700    # With GCC up to 2.95.x, collect2 would create an import file
10701    # for dependence libraries.  The import file would start with
10702    # the line `#! .'.  This would cause the generated library to
10703    # depend on `.', always an invalid library.  This was fixed in
10704    # development snapshots of GCC prior to 3.0.
10705    case $host_os in
10706      aix4 | aix4.[01] | aix4.[01].*)
10707      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10708           echo ' yes '
10709           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10710        :
10711      else
10712        can_build_shared=no
10713      fi
10714      ;;
10715    esac
10716    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10717    # soname into executable. Probably we can add versioning support to
10718    # collect2, so additional links can be useful in future.
10719    if test "$aix_use_runtimelinking" = yes; then
10720      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10721      # instead of lib<name>.a to let people know that these are not
10722      # typical AIX shared libraries.
10723      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724    else
10725      # We preserve .a as extension for shared libraries through AIX4.2
10726      # and later when we are not doing run time linking.
10727      library_names_spec='${libname}${release}.a $libname.a'
10728      soname_spec='${libname}${release}${shared_ext}$major'
10729    fi
10730    shlibpath_var=LIBPATH
10731  fi
10732  ;;
10733
10734amigaos*)
10735  library_names_spec='$libname.ixlibrary $libname.a'
10736  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10737  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10738  ;;
10739
10740beos*)
10741  library_names_spec='${libname}${shared_ext}'
10742  dynamic_linker="$host_os ld.so"
10743  shlibpath_var=LIBRARY_PATH
10744  ;;
10745
10746bsdi[45]*)
10747  version_type=linux
10748  need_version=no
10749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750  soname_spec='${libname}${release}${shared_ext}$major'
10751  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10752  shlibpath_var=LD_LIBRARY_PATH
10753  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10754  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10755  # the default ld.so.conf also contains /usr/contrib/lib and
10756  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10757  # libtool to hard-code these into programs
10758  ;;
10759
10760cygwin* | mingw* | pw32*)
10761  version_type=windows
10762  shrext_cmds=".dll"
10763  need_version=no
10764  need_lib_prefix=no
10765
10766  case $GCC,$host_os in
10767  yes,cygwin* | yes,mingw* | yes,pw32*)
10768    library_names_spec='$libname.dll.a'
10769    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10770    postinstall_cmds='base_file=`basename \${file}`~
10771      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10772      dldir=$destdir/`dirname \$dlpath`~
10773      test -d \$dldir || mkdir -p \$dldir~
10774      $install_prog $dir/$dlname \$dldir/$dlname~
10775      chmod a+x \$dldir/$dlname'
10776    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10777      dlpath=$dir/\$dldll~
10778       $rm \$dlpath'
10779    shlibpath_overrides_runpath=yes
10780
10781    case $host_os in
10782    cygwin*)
10783      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10784      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10785      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10786      ;;
10787    mingw*)
10788      # MinGW DLLs use traditional 'lib' prefix
10789      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10790      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10791      if echo "$sys_lib_search_path_spec" | gre