source: ThirdParty/Mumps/stable/1.3/configure @ 1789

Last change on this file since 1789 was 1789, checked in by stefan, 10 years ago

temporarily committing release candidate

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