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

Last change on this file since 3167 was 3167, checked in by tkr, 7 years ago

temporarily committing release candidate

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