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

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

Re-running the autotools

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