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

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

sync with trunk rev2060

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