source: ThirdParty/Mumps/trunk/configure @ 2125

Last change on this file since 2125 was 2125, checked in by stefan, 11 years ago

rerun autotools

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