source: ThirdParty/Mumps/stable/1.5/configure @ 3422

Last change on this file since 3422 was 3422, checked in by tkr, 5 years ago

restoring BuildTools/ThirdParty/Mumps?/stable/1.5

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