source: ThirdParty/Mumps/releases/1.4.13/configure

Last change on this file was 3205, checked in by stefan, 8 years ago

temporarily committing release candidate

File size: 866.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps 1.4.13.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='1.4.13'
433PACKAGE_STRING='ThirdPartyMumps 1.4.13'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion MUMPS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS CPP EGREP MY_DEFS LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED MUMPS_CFLAGS MUMPS_LIBS MUMPS_PCLIBS MUMPS_PCREQUIRES MUMPS_DEPENDENCIES MUMPS_CFLAGS_INSTALLED MUMPS_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps 1.4.13 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps 1.4.13:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-mumps compile project Mumps with debug compiler flags
1080
1081  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1082  --disable-pthread-mumps disable use of pthread library
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094  --disable-pkg-config    disable use of pkg-config (if available)
1095  --disable-interpackage-dependencies
1096                          disables deduction of Makefile dependencies from
1097                          package linker flags
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1103  --with-mumps-checklevel specify the sanity check level for project Mumps
1104  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1105  --with-pic              try to use only PIC/non-PIC objects [default=use
1106                          both]
1107  --with-tags[=TAGS]
1108                          include additional configurations [automatic]
1109  --with-blas             specify BLAS library (or BUILD to enforce use of
1110                          ThirdParty/Blas)
1111
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-blas-lib linker flags for using package Blas
1115  --with-blas-incdir directory with header files for using package Blas
1116  --with-blas-datadir directory with data files for using package Blas
1117  --with-metis-lib linker flags for using package Metis
1118  --with-metis-incdir directory with header files for using package Metis
1119  --with-metis-datadir directory with data files for using package Metis
1120
1121Some influential environment variables:
1122  CDEFS       Additional -D flags to be used when compiling C code.
1123  ADD_CFLAGS  Additional C compiler options
1124  DBG_CFLAGS  Debug C compiler options
1125  OPT_CFLAGS  Optimize C compiler options
1126  CC          C compiler command
1127  CFLAGS      C compiler flags
1128  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1129              nonstandard directory <lib dir>
1130  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1131              headers in a nonstandard directory <include dir>
1132  MPICC       C MPI Compiler
1133  ADD_FFLAGS  Additional Fortran compiler options
1134  DBG_FFLAGS  Debug Fortran compiler options
1135  OPT_FFLAGS  Optimize Fortran compiler options
1136  F77         Fortran 77 compiler command
1137  FFLAGS      Fortran 77 compiler flags
1138  MPIF77      Fortran MPI Compiler
1139  CPP         C preprocessor
1140  CXX         C++ compiler command
1141  CXXFLAGS    C++ compiler flags
1142  CXXCPP      C++ preprocessor
1143  PKG_CONFIG  path to pkg-config utility
1144
1145Use these variables to override the choices made by `configure' or to help
1146it to find libraries and programs with nonstandard names/locations.
1147
1148Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1149_ACEOF
1150fi
1151
1152if test "$ac_init_help" = "recursive"; then
1153  # If there are subdirs, report their specific --help.
1154  ac_popdir=`pwd`
1155  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1156    test -d $ac_dir || continue
1157    ac_builddir=.
1158
1159if test "$ac_dir" != .; then
1160  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1161  # A "../" for each directory in $ac_dir_suffix.
1162  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1163else
1164  ac_dir_suffix= ac_top_builddir=
1165fi
1166
1167case $srcdir in
1168  .)  # No --srcdir option.  We are building in place.
1169    ac_srcdir=.
1170    if test -z "$ac_top_builddir"; then
1171       ac_top_srcdir=.
1172    else
1173       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1174    fi ;;
1175  [\\/]* | ?:[\\/]* )  # Absolute path.
1176    ac_srcdir=$srcdir$ac_dir_suffix;
1177    ac_top_srcdir=$srcdir ;;
1178  *) # Relative path.
1179    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1180    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1181esac
1182
1183# Do not use `cd foo && pwd` to compute absolute paths, because
1184# the directories may not exist.
1185case `pwd` in
1186.) ac_abs_builddir="$ac_dir";;
1187*)
1188  case "$ac_dir" in
1189  .) ac_abs_builddir=`pwd`;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1191  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_builddir=${ac_top_builddir}.;;
1196*)
1197  case ${ac_top_builddir}. in
1198  .) ac_abs_top_builddir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1200  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_srcdir=$ac_srcdir;;
1205*)
1206  case $ac_srcdir in
1207  .) ac_abs_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1209  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1210  esac;;
1211esac
1212case $ac_abs_builddir in
1213.) ac_abs_top_srcdir=$ac_top_srcdir;;
1214*)
1215  case $ac_top_srcdir in
1216  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1218  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1219  esac;;
1220esac
1221
1222    cd $ac_dir
1223    # Check for guested configure; otherwise get Cygnus style configure.
1224    if test -f $ac_srcdir/configure.gnu; then
1225      echo
1226      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1227    elif test -f $ac_srcdir/configure; then
1228      echo
1229      $SHELL $ac_srcdir/configure  --help=recursive
1230    elif test -f $ac_srcdir/configure.ac ||
1231           test -f $ac_srcdir/configure.in; then
1232      echo
1233      $ac_configure --help
1234    else
1235      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1236    fi
1237    cd $ac_popdir
1238  done
1239fi
1240
1241test -n "$ac_init_help" && exit 0
1242if $ac_init_version; then
1243  cat <<\_ACEOF
1244ThirdPartyMumps configure 1.4.13
1245generated by GNU Autoconf 2.59
1246
1247Copyright (C) 2003 Free Software Foundation, Inc.
1248This configure script is free software; the Free Software Foundation
1249gives unlimited permission to copy, distribute and modify it.
1250
1251
1252Copyright 2007-2009 International Business Machines and others.
1253All Rights Reserved.
1254This file is part of the open source package Coin which is distributed
1255under the Eclipse Public License.
1256_ACEOF
1257  exit 0
1258fi
1259exec 5>config.log
1260cat >&5 <<_ACEOF
1261This file contains any messages produced by compilers while
1262running configure, to aid debugging if configure makes a mistake.
1263
1264It was created by ThirdPartyMumps $as_me 1.4.13, which was
1265generated by GNU Autoconf 2.59.  Invocation command line was
1266
1267  $ $0 $@
1268
1269_ACEOF
1270{
1271cat <<_ASUNAME
1272## --------- ##
1273## Platform. ##
1274## --------- ##
1275
1276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1277uname -m = `(uname -m) 2>/dev/null || echo unknown`
1278uname -r = `(uname -r) 2>/dev/null || echo unknown`
1279uname -s = `(uname -s) 2>/dev/null || echo unknown`
1280uname -v = `(uname -v) 2>/dev/null || echo unknown`
1281
1282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1283/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1284
1285/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1286/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1288hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1289/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1290/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1291/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1292
1293_ASUNAME
1294
1295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296for as_dir in $PATH
1297do
1298  IFS=$as_save_IFS
1299  test -z "$as_dir" && as_dir=.
1300  echo "PATH: $as_dir"
1301done
1302
1303} >&5
1304
1305cat >&5 <<_ACEOF
1306
1307
1308## ----------- ##
1309## Core tests. ##
1310## ----------- ##
1311
1312_ACEOF
1313
1314
1315# Keep a trace of the command line.
1316# Strip out --no-create and --no-recursion so they do not pile up.
1317# Strip out --silent because we don't want to record it for future runs.
1318# Also quote any args containing shell meta-characters.
1319# Make two passes to allow for proper duplicate-argument suppression.
1320ac_configure_args=
1321ac_configure_args0=
1322ac_configure_args1=
1323ac_sep=
1324ac_must_keep_next=false
1325for ac_pass in 1 2
1326do
1327  for ac_arg
1328  do
1329    case $ac_arg in
1330    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1331    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332    | -silent | --silent | --silen | --sile | --sil)
1333      continue ;;
1334    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1336    esac
1337    case $ac_pass in
1338    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1339    2)
1340      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1341      if test $ac_must_keep_next = true; then
1342        ac_must_keep_next=false # Got value, back to normal.
1343      else
1344        case $ac_arg in
1345          *=* | --config-cache | -C | -disable-* | --disable-* \
1346          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1347          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1348          | -with-* | --with-* | -without-* | --without-* | --x)
1349            case "$ac_configure_args0 " in
1350              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1351            esac
1352            ;;
1353          -* ) ac_must_keep_next=true ;;
1354        esac
1355      fi
1356      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1357      # Get rid of the leading space.
1358      ac_sep=" "
1359      ;;
1360    esac
1361  done
1362done
1363$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1364$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1365
1366# When interrupted or exit'd, cleanup temporary files, and complete
1367# config.log.  We remove comments because anyway the quotes in there
1368# would cause problems or look ugly.
1369# WARNING: Be sure not to use single quotes in there, as some shells,
1370# such as our DU 5.0 friend, will then `close' the trap.
1371trap 'exit_status=$?
1372  # Save into config.log some information that might help in debugging.
1373  {
1374    echo
1375
1376    cat <<\_ASBOX
1377## ---------------- ##
1378## Cache variables. ##
1379## ---------------- ##
1380_ASBOX
1381    echo
1382    # The following way of writing the cache mishandles newlines in values,
1383{
1384  (set) 2>&1 |
1385    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1386    *ac_space=\ *)
1387      sed -n \
1388        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1389          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1390      ;;
1391    *)
1392      sed -n \
1393        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1394      ;;
1395    esac;
1396}
1397    echo
1398
1399    cat <<\_ASBOX
1400## ----------------- ##
1401## Output variables. ##
1402## ----------------- ##
1403_ASBOX
1404    echo
1405    for ac_var in $ac_subst_vars
1406    do
1407      eval ac_val=$`echo $ac_var`
1408      echo "$ac_var='"'"'$ac_val'"'"'"
1409    done | sort
1410    echo
1411
1412    if test -n "$ac_subst_files"; then
1413      cat <<\_ASBOX
1414## ------------- ##
1415## Output files. ##
1416## ------------- ##
1417_ASBOX
1418      echo
1419      for ac_var in $ac_subst_files
1420      do
1421        eval ac_val=$`echo $ac_var`
1422        echo "$ac_var='"'"'$ac_val'"'"'"
1423      done | sort
1424      echo
1425    fi
1426
1427    if test -s confdefs.h; then
1428      cat <<\_ASBOX
1429## ----------- ##
1430## confdefs.h. ##
1431## ----------- ##
1432_ASBOX
1433      echo
1434      sed "/^$/d" confdefs.h | sort
1435      echo
1436    fi
1437    test "$ac_signal" != 0 &&
1438      echo "$as_me: caught signal $ac_signal"
1439    echo "$as_me: exit $exit_status"
1440  } >&5
1441  rm -f core *.core &&
1442  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1443    exit $exit_status
1444     ' 0
1445for ac_signal in 1 2 13 15; do
1446  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1447done
1448ac_signal=0
1449
1450# confdefs.h avoids OS command line length limits that DEFS can exceed.
1451rm -rf conftest* confdefs.h
1452# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1453echo >confdefs.h
1454
1455# Predefined preprocessor variables.
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_NAME "$PACKAGE_NAME"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_VERSION "$PACKAGE_VERSION"
1469_ACEOF
1470
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_STRING "$PACKAGE_STRING"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1479_ACEOF
1480
1481
1482# Let the site file select an alternate cache file if it wants to.
1483# Prefer explicitly selected file to automatically selected ones.
1484if test -z "$CONFIG_SITE"; then
1485  if test "x$prefix" != xNONE; then
1486    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1487  else
1488    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1489  fi
1490fi
1491for ac_site_file in $CONFIG_SITE; do
1492  if test -r "$ac_site_file"; then
1493    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1494echo "$as_me: loading site script $ac_site_file" >&6;}
1495    sed 's/^/| /' "$ac_site_file" >&5
1496    . "$ac_site_file"
1497  fi
1498done
1499
1500if test -r "$cache_file"; then
1501  # Some versions of bash will fail to source /dev/null (special
1502  # files actually), so we avoid doing that.
1503  if test -f "$cache_file"; then
1504    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1505echo "$as_me: loading cache $cache_file" >&6;}
1506    case $cache_file in
1507      [\\/]* | ?:[\\/]* ) . $cache_file;;
1508      *)                      . ./$cache_file;;
1509    esac
1510  fi
1511else
1512  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1513echo "$as_me: creating cache $cache_file" >&6;}
1514  >$cache_file
1515fi
1516
1517# Check that the precious variables saved in the cache have kept the same
1518# value.
1519ac_cache_corrupted=false
1520for ac_var in `(set) 2>&1 |
1521               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1522  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1523  eval ac_new_set=\$ac_env_${ac_var}_set
1524  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1525  eval ac_new_val="\$ac_env_${ac_var}_value"
1526  case $ac_old_set,$ac_new_set in
1527    set,)
1528      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1529echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1530      ac_cache_corrupted=: ;;
1531    ,set)
1532      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1533echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1534      ac_cache_corrupted=: ;;
1535    ,);;
1536    *)
1537      if test "x$ac_old_val" != "x$ac_new_val"; then
1538        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1539echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1540        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1541echo "$as_me:   former value:  $ac_old_val" >&2;}
1542        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1543echo "$as_me:   current value: $ac_new_val" >&2;}
1544        ac_cache_corrupted=:
1545      fi;;
1546  esac
1547  # Pass precious variables to config.status.
1548  if test "$ac_new_set" = set; then
1549    case $ac_new_val in
1550    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1551      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1552    *) ac_arg=$ac_var=$ac_new_val ;;
1553    esac
1554    case " $ac_configure_args " in
1555      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1556      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1557    esac
1558  fi
1559done
1560if $ac_cache_corrupted; then
1561  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1562echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1563  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1564echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1565   { (exit 1); exit 1; }; }
1566fi
1567
1568ac_ext=c
1569ac_cpp='$CPP $CPPFLAGS'
1570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603# List one file in the package so that the configure script can test
1604# whether the package is actually there
1605
1606
1607# Where should everything be installed by default?  Here, we want it
1608# to be installed directly in 'bin', 'lib', 'include' subdirectories
1609# of the directory where configure is run.  The default would be
1610# /usr/local.
1611
1612
1613
1614# As backup, we make sure we don't loose an FLIBS if it has been set
1615# by the user
1616save_FLIBS="$FLIBS"
1617
1618# A useful makefile conditional that is always false
1619
1620
1621if false; then
1622  ALWAYS_FALSE_TRUE=
1623  ALWAYS_FALSE_FALSE='#'
1624else
1625  ALWAYS_FALSE_TRUE='#'
1626  ALWAYS_FALSE_FALSE=
1627fi
1628
1629
1630# We set the following variable so that we know later in AC_COIN_FINALIZE
1631# that we are in a project main directory
1632coin_projectdir=yes
1633
1634# Set the project's version numbers
1635
1636
1637cat >>confdefs.h <<_ACEOF
1638#define MUMPS_VERSION "$PACKAGE_VERSION"
1639_ACEOF
1640
1641
1642  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1643  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1644  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1645  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1646  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1647  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1648
1649cat >>confdefs.h <<_ACEOF
1650#define MUMPS_VERSION_MAJOR $coin_majorver
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define MUMPS_VERSION_MINOR $coin_minorver
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define MUMPS_VERSION_RELEASE $coin_releasever
1661_ACEOF
1662
1663
1664  # We use the following variable to have a string with the upper case
1665  # version of the project name
1666  COIN_PRJCT=MUMPS
1667
1668  # Set the project's SVN revision number. The complicated sed expression
1669  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1670  # as a single number.
1671  # Extract the first word of "svnversion", so it can be a program name with args.
1672set dummy svnversion; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_have_svnversion+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  if test -n "$have_svnversion"; then
1679  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684  IFS=$as_save_IFS
1685  test -z "$as_dir" && as_dir=.
1686  for ac_exec_ext in '' $ac_executable_extensions; do
1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688    ac_cv_prog_have_svnversion="yes"
1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690    break 2
1691  fi
1692done
1693done
1694
1695  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1696fi
1697fi
1698have_svnversion=$ac_cv_prog_have_svnversion
1699if test -n "$have_svnversion"; then
1700  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1701echo "${ECHO_T}$have_svnversion" >&6
1702else
1703  echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707  if test "x$have_svnversion" = xyes; then
1708
1709    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1710    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1711      MUMPS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1712
1713cat >>confdefs.h <<_ACEOF
1714#define MUMPS_SVN_REV $MUMPS_SVN_REV
1715_ACEOF
1716
1717    fi
1718  fi
1719
1720
1721
1722# Capture libtool library version, if given.
1723 coin_libversion=5:13:4
1724
1725
1726
1727
1728#############################################################################
1729#                         Standard build tool stuff                         #
1730#############################################################################
1731
1732# Get the system type
1733ac_aux_dir=
1734for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1735  if test -f $ac_dir/install-sh; then
1736    ac_aux_dir=$ac_dir
1737    ac_install_sh="$ac_aux_dir/install-sh -c"
1738    break
1739  elif test -f $ac_dir/install.sh; then
1740    ac_aux_dir=$ac_dir
1741    ac_install_sh="$ac_aux_dir/install.sh -c"
1742    break
1743  elif test -f $ac_dir/shtool; then
1744    ac_aux_dir=$ac_dir
1745    ac_install_sh="$ac_aux_dir/shtool install -c"
1746    break
1747  fi
1748done
1749if test -z "$ac_aux_dir"; then
1750  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1751echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1752   { (exit 1); exit 1; }; }
1753fi
1754ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1755ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1756ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1757
1758# Make sure we can run config.sub.
1759$ac_config_sub sun4 >/dev/null 2>&1 ||
1760  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1762   { (exit 1); exit 1; }; }
1763
1764echo "$as_me:$LINENO: checking build system type" >&5
1765echo $ECHO_N "checking build system type... $ECHO_C" >&6
1766if test "${ac_cv_build+set}" = set; then
1767  echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769  ac_cv_build_alias=$build_alias
1770test -z "$ac_cv_build_alias" &&
1771  ac_cv_build_alias=`$ac_config_guess`
1772test -z "$ac_cv_build_alias" &&
1773  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1775   { (exit 1); exit 1; }; }
1776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1777  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1779   { (exit 1); exit 1; }; }
1780
1781fi
1782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1783echo "${ECHO_T}$ac_cv_build" >&6
1784build=$ac_cv_build
1785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789
1790
1791#turn off warnings and pedantic mode since they could make trouble on some platforms,
1792#and we couldn't fix them anyway
1793coin_skip_warn_cflags=yes
1794coin_skip_warn_fflags=yes
1795
1796# Check if user wants to produce debugging code
1797
1798echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1799echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1800
1801# Check whether --enable-debug or --disable-debug was given.
1802if test "${enable_debug+set}" = set; then
1803  enableval="$enable_debug"
1804  case "${enableval}" in
1805   yes) coin_debug_compile=true
1806        if test "${enable_shared+set}" = set; then :; else
1807          enable_shared=no
1808        fi
1809        ;;
1810   no)  coin_debug_compile=false
1811        ;;
1812   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1813echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1814   { (exit 1); exit 1; }; }
1815        ;;
1816esac
1817else
1818  coin_debug_compile=false
1819fi;
1820
1821# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1822if test "${enable_debug_mumps+set}" = set; then
1823  enableval="$enable_debug_mumps"
1824  case "${enableval}" in
1825    yes) coin_debug_compile=true
1826         ;;
1827    no)  coin_debug_compile=false
1828         ;;
1829    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1830echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1831   { (exit 1); exit 1; }; }
1832         ;;
1833 esac
1834else
1835  :
1836fi;
1837
1838 # m4_ifvaln([Mumps],
1839
1840if test $coin_debug_compile = true; then
1841  echo "$as_me:$LINENO: result: yes" >&5
1842echo "${ECHO_T}yes" >&6
1843else
1844  echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6
1846fi
1847
1848
1849# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1850if test "${with_mumps_verbosity+set}" = set; then
1851  withval="$with_mumps_verbosity"
1852  if test "$withval" = yes; then
1853                withval=1
1854              fi
1855              coin_mumps_verbosity=$withval
1856else
1857  coin_mumps_verbosity=0
1858fi;
1859
1860cat >>confdefs.h <<_ACEOF
1861#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1862_ACEOF
1863
1864
1865
1866# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1867if test "${with_mumps_checklevel+set}" = set; then
1868  withval="$with_mumps_checklevel"
1869  if test "$withval" = yes; then
1870                withval=1
1871              fi
1872              coin_mumps_checklevel=$withval
1873else
1874  coin_mumps_checklevel=0
1875fi;
1876
1877cat >>confdefs.h <<_ACEOF
1878#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1879_ACEOF
1880
1881
1882 # m4_ifvaln([Mumps],
1883
1884
1885
1886# Get the name of the C compiler
1887
1888
1889  # for backward compatibility
1890  # Check whether --enable-doscompile or --disable-doscompile was given.
1891if test "${enable_doscompile+set}" = set; then
1892  enableval="$enable_doscompile"
1893  enable_doscompile=$enableval
1894else
1895  enable_doscompile=no
1896fi;
1897
1898  # Check whether --enable-msvc or --disable-msvc was given.
1899if test "${enable_msvc+set}" = set; then
1900  enableval="$enable_msvc"
1901  enable_msvc=$enableval
1902else
1903  enable_msvc=no
1904     if test "$enable_doscompile" = msvc ; then
1905       enable_msvc=yes
1906     elif test "$enable_doscompile" != no ; then
1907       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1908echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1909   { (exit 1); exit 1; }; }
1910     fi
1911
1912fi;
1913
1914  if test "$enable_msvc" = MD; then
1915    enable_shared=yes
1916    enable_msvc=yes
1917  fi
1918
1919  if test "$enable_msvc" = yes; then
1920    case $build in
1921      *-cygwin* | *-mingw*) ;;
1922      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1923echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1924   { (exit 1); exit 1; }; } ;;
1925    esac
1926  fi
1927
1928
1929
1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937# For consistency, we set the C compiler to the same value of the C++
1938# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1939if test x"$CXX" != x; then
1940  case "$CXX" in
1941    clang* ) ;;
1942    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1943      if test x"$CC" = x; then
1944        CC="$CXX"
1945        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1946echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1947      fi
1948      ;;
1949  esac
1950fi
1951
1952
1953
1954
1955
1956
1957coin_has_cc=yes
1958
1959save_cflags="$CFLAGS"
1960
1961# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1962# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1963# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1964# compiler. In this case, put cc after gcc.
1965
1966case $build in
1967  *-cygwin* | *-mingw*)
1968             if test "$enable_msvc" = yes ; then
1969               comps="icl cl gcc"
1970             else
1971               comps="gcc icl cl"
1972             fi ;;
1973  *-*-solaris*)
1974             # Extract the first word of "cc", so it can be a program name with args.
1975set dummy cc; ac_word=$2
1976echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1979  echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981  if test -n "$sol_cc_compiler"; then
1982  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1983else
1984  ac_prog_rejected=no
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990  for ac_exec_ext in '' $ac_executable_extensions; do
1991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993       ac_prog_rejected=yes
1994       continue
1995     fi
1996    ac_cv_prog_sol_cc_compiler="cc"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003if test $ac_prog_rejected = yes; then
2004  # We found a bogon in the path, so make sure we never use it.
2005  set dummy $ac_cv_prog_sol_cc_compiler
2006  shift
2007  if test $# != 0; then
2008    # We chose a different compiler from the bogus one.
2009    # However, it has the same basename, so the bogon will be chosen
2010    # first if we set sol_cc_compiler to just the basename; use the full file name.
2011    shift
2012    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2013  fi
2014fi
2015fi
2016fi
2017sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2018if test -n "$sol_cc_compiler"; then
2019  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2020echo "${ECHO_T}$sol_cc_compiler" >&6
2021else
2022  echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026             if test "$sol_cc_compiler" = "cc" ; then
2027               comps="cc xlc gcc pgcc icc"
2028             else
2029               comps="xlc gcc pgcc icc cc"
2030             fi
2031             ;;
2032  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2033  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2034  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2035esac
2036
2037# We delete the cached value, since the test might not have been
2038# performed with our choice of compilers earlier
2039$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2040# AC_MSG_NOTICE([C compiler candidates: $comps])
2041ac_ext=c
2042ac_cpp='$CPP $CPPFLAGS'
2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046if test -n "$ac_tool_prefix"; then
2047  for ac_prog in $comps
2048  do
2049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_CC+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$CC"; then
2057  ac_cv_prog_CC="$CC" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064  for ac_exec_ext in '' $ac_executable_extensions; do
2065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068    break 2
2069  fi
2070done
2071done
2072
2073fi
2074fi
2075CC=$ac_cv_prog_CC
2076if test -n "$CC"; then
2077  echo "$as_me:$LINENO: result: $CC" >&5
2078echo "${ECHO_T}$CC" >&6
2079else
2080  echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6
2082fi
2083
2084    test -n "$CC" && break
2085  done
2086fi
2087if test -z "$CC"; then
2088  ac_ct_CC=$CC
2089  for ac_prog in $comps
2090do
2091  # Extract the first word of "$ac_prog", so it can be a program name with args.
2092set dummy $ac_prog; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$ac_ct_CC"; then
2099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108    ac_cv_prog_ac_ct_CC="$ac_prog"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115fi
2116fi
2117ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118if test -n "$ac_ct_CC"; then
2119  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120echo "${ECHO_T}$ac_ct_CC" >&6
2121else
2122  echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126  test -n "$ac_ct_CC" && break
2127done
2128
2129  CC=$ac_ct_CC
2130fi
2131
2132
2133test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: no acceptable C compiler found in \$PATH
2136See \`config.log' for more details." >&2;}
2137   { (exit 1); exit 1; }; }
2138
2139# Provide some information about the compiler.
2140echo "$as_me:$LINENO:" \
2141     "checking for C compiler version" >&5
2142ac_compiler=`set X $ac_compile; echo $2`
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144  (eval $ac_compiler --version </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149  (eval $ac_compiler -v </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154  (eval $ac_compiler -V </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158
2159cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174ac_clean_files_save=$ac_clean_files
2175ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176# Try to create an executable without -o first, disregard a.out.
2177# It will help us diagnose broken compilers, and finding out an intuition
2178# of exeext.
2179echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2181ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183  (eval $ac_link_default) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  # Find the output, starting from the most likely.  This scheme is
2188# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189# resort.
2190
2191# Be careful to initialize this variable, since it used to be cached.
2192# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2193ac_cv_exeext=
2194# b.out is created by i960 compilers.
2195for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2196do
2197  test -f "$ac_file" || continue
2198  case $ac_file in
2199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2200        ;;
2201    conftest.$ac_ext )
2202        # This is the source file.
2203        ;;
2204    [ab].out )
2205        # We found the default executable, but exeext='' is most
2206        # certainly right.
2207        break;;
2208    *.* )
2209        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210        # FIXME: I believe we export ac_cv_exeext for Libtool,
2211        # but it would be cool to find out if it's true.  Does anybody
2212        # maintain Libtool? --akim.
2213        export ac_cv_exeext
2214        break;;
2215    * )
2216        break;;
2217  esac
2218done
2219else
2220  echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: C compiler cannot create executables
2226See \`config.log' for more details." >&2;}
2227   { (exit 77); exit 77; }; }
2228fi
2229
2230ac_exeext=$ac_cv_exeext
2231echo "$as_me:$LINENO: result: $ac_file" >&5
2232echo "${ECHO_T}$ac_file" >&6
2233
2234# Check the compiler produces executables we can run.  If not, either
2235# the compiler is broken, or we cross compile.
2236echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239# If not cross compiling, check that we can run a simple program.
2240if test "$cross_compiling" != yes; then
2241  if { ac_try='./$ac_file'
2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; }; then
2247    cross_compiling=no
2248  else
2249    if test "$cross_compiling" = maybe; then
2250        cross_compiling=yes
2251    else
2252        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot run C compiled programs.
2256If you meant to cross compile, use \`--host'.
2257See \`config.log' for more details." >&2;}
2258   { (exit 1); exit 1; }; }
2259    fi
2260  fi
2261fi
2262echo "$as_me:$LINENO: result: yes" >&5
2263echo "${ECHO_T}yes" >&6
2264
2265rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266ac_clean_files=$ac_clean_files_save
2267# Check the compiler produces executables we can run.  If not, either
2268# the compiler is broken, or we cross compile.
2269echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272echo "${ECHO_T}$cross_compiling" >&6
2273
2274echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277  (eval $ac_link) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; then
2281  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283# work properly (i.e., refer to `conftest.exe'), while it won't with
2284# `rm'.
2285for ac_file in conftest.exe conftest conftest.*; do
2286  test -f "$ac_file" || continue
2287  case $ac_file in
2288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290          export ac_cv_exeext
2291          break;;
2292    * ) break;;
2293  esac
2294done
2295else
2296  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299See \`config.log' for more details." >&2;}
2300   { (exit 1); exit 1; }; }
2301fi
2302
2303rm -f conftest$ac_cv_exeext
2304echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305echo "${ECHO_T}$ac_cv_exeext" >&6
2306
2307rm -f conftest.$ac_ext
2308EXEEXT=$ac_cv_exeext
2309ac_exeext=$EXEEXT
2310echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312if test "${ac_cv_objext+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321
2322int
2323main ()
2324{
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.o conftest.obj
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; then
2336  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2337  case $ac_file in
2338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2339    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340       break;;
2341  esac
2342done
2343else
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&2;}
2351   { (exit 1); exit 1; }; }
2352fi
2353
2354rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355fi
2356echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357echo "${ECHO_T}$ac_cv_objext" >&6
2358OBJEXT=$ac_cv_objext
2359ac_objext=$OBJEXT
2360echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2362if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h.  */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h.  */
2371
2372int
2373main ()
2374{
2375#ifndef __GNUC__
2376       choke me
2377#endif
2378
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383rm -f conftest.$ac_objext
2384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385  (eval $ac_compile) 2>conftest.er1
2386  ac_status=$?
2387  grep -v '^ *+' conftest.er1 >conftest.err
2388  rm -f conftest.er1
2389  cat conftest.err >&5
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); } &&
2392         { ac_try='test -z "$ac_c_werror_flag"
2393                         || test ! -s conftest.err'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; } &&
2399         { ac_try='test -s conftest.$ac_objext'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; }; then
2405  ac_compiler_gnu=yes
2406else
2407  echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410ac_compiler_gnu=no
2411fi
2412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414
2415fi
2416echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418GCC=`test $ac_compiler_gnu = yes && echo yes`
2419ac_test_CFLAGS=${CFLAGS+set}
2420ac_save_CFLAGS=$CFLAGS
2421CFLAGS="-g"
2422echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424if test "${ac_cv_prog_cc_g+set}" = set; then
2425  echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433
2434int
2435main ()
2436{
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>conftest.er1
2445  ac_status=$?
2446  grep -v '^ *+' conftest.er1 >conftest.err
2447  rm -f conftest.er1
2448  cat conftest.err >&5
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451         { ac_try='test -z "$ac_c_werror_flag"
2452                         || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458         { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  ac_cv_prog_cc_g=yes
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469ac_cv_prog_cc_g=no
2470fi
2471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472fi
2473echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2474echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2475if test "$ac_test_CFLAGS" = set; then
2476  CFLAGS=$ac_save_CFLAGS
2477elif test $ac_cv_prog_cc_g = yes; then
2478  if test "$GCC" = yes; then
2479    CFLAGS="-g -O2"
2480  else
2481    CFLAGS="-g"
2482  fi
2483else
2484  if test "$GCC" = yes; then
2485    CFLAGS="-O2"
2486  else
2487    CFLAGS=
2488  fi
2489fi
2490echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2491echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2492if test "${ac_cv_prog_cc_stdc+set}" = set; then
2493  echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495  ac_cv_prog_cc_stdc=no
2496ac_save_CC=$CC
2497cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h.  */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h.  */
2503#include <stdarg.h>
2504#include <stdio.h>
2505#include <sys/types.h>
2506#include <sys/stat.h>
2507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2508struct buf { int x; };
2509FILE * (*rcsopen) (struct buf *, struct stat *, int);
2510static char *e (p, i)
2511     char **p;
2512     int i;
2513{
2514  return p[i];
2515}
2516static char *f (char * (*g) (char **, int), char **p, ...)
2517{
2518  char *s;
2519  va_list v;
2520  va_start (v,p);
2521  s = g (p, va_arg (v,int));
2522  va_end (v);
2523  return s;
2524}
2525
2526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2527   function prototypes and stuff, but not '\xHH' hex character constants.
2528   These don't provoke an error unfortunately, instead are silently treated
2529   as 'x'.  The following induces an error, until -std1 is added to get
2530   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2531   array size at least.  It's necessary to write '\x00'==0 to get something
2532   that's true only with -std1.  */
2533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2534
2535int test (int i, double x);
2536struct s1 {int (*f) (int a);};
2537struct s2 {int (*f) (double a);};
2538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2539int argc;
2540char **argv;
2541int
2542main ()
2543{
2544return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549# Don't try gcc -ansi; that turns off useful extensions and
2550# breaks some systems' header files.
2551# AIX                   -qlanglvl=ansi
2552# Ultrix and OSF/1      -std1
2553# HP-UX 10.20 and later -Ae
2554# HP-UX older versions  -Aa -D_HPUX_SOURCE
2555# SVR4                  -Xc -D__EXTENSIONS__
2556for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557do
2558  CC="$ac_save_CC $ac_arg"
2559  rm -f conftest.$ac_objext
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561  (eval $ac_compile) 2>conftest.er1
2562  ac_status=$?
2563  grep -v '^ *+' conftest.er1 >conftest.err
2564  rm -f conftest.er1
2565  cat conftest.err >&5
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); } &&
2568         { ac_try='test -z "$ac_c_werror_flag"
2569                         || test ! -s conftest.err'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; } &&
2575         { ac_try='test -s conftest.$ac_objext'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; }; then
2581  ac_cv_prog_cc_stdc=$ac_arg
2582break
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587fi
2588rm -f conftest.err conftest.$ac_objext
2589done
2590rm -f conftest.$ac_ext conftest.$ac_objext
2591CC=$ac_save_CC
2592
2593fi
2594
2595case "x$ac_cv_prog_cc_stdc" in
2596  x|xno)
2597    echo "$as_me:$LINENO: result: none needed" >&5
2598echo "${ECHO_T}none needed" >&6 ;;
2599  *)
2600    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602    CC="$CC $ac_cv_prog_cc_stdc" ;;
2603esac
2604
2605# Some people use a C++ compiler to compile C.  Since we use `exit',
2606# in C++ we need to declare it.  In case someone uses the same compiler
2607# for both compiling C and C++ we need to have the C++ compiler decide
2608# the declaration of exit, since it's the most demanding environment.
2609cat >conftest.$ac_ext <<_ACEOF
2610#ifndef __cplusplus
2611  choke me
2612#endif
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>conftest.er1
2617  ac_status=$?
2618  grep -v '^ *+' conftest.er1 >conftest.err
2619  rm -f conftest.er1
2620  cat conftest.err >&5
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); } &&
2623         { ac_try='test -z "$ac_c_werror_flag"
2624                         || test ! -s conftest.err'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; } &&
2630         { ac_try='test -s conftest.$ac_objext'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636  for ac_declaration in \
2637   '' \
2638   'extern "C" void std::exit (int) throw (); using std::exit;' \
2639   'extern "C" void std::exit (int); using std::exit;' \
2640   'extern "C" void exit (int) throw ();' \
2641   'extern "C" void exit (int);' \
2642   'void exit (int);'
2643do
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650$ac_declaration
2651#include <stdlib.h>
2652int
2653main ()
2654{
2655exit (42);
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662  (eval $ac_compile) 2>conftest.er1
2663  ac_status=$?
2664  grep -v '^ *+' conftest.er1 >conftest.err
2665  rm -f conftest.er1
2666  cat conftest.err >&5
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); } &&
2669         { ac_try='test -z "$ac_c_werror_flag"
2670                         || test ! -s conftest.err'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; } &&
2676         { ac_try='test -s conftest.$ac_objext'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; }; then
2682  :
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687continue
2688fi
2689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690  cat >conftest.$ac_ext <<_ACEOF
2691/* confdefs.h.  */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h.  */
2696$ac_declaration
2697int
2698main ()
2699{
2700exit (42);
2701  ;
2702  return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714         { ac_try='test -z "$ac_c_werror_flag"
2715                         || test ! -s conftest.err'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; } &&
2721         { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  break
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734done
2735rm -f conftest*
2736if test -n "$ac_declaration"; then
2737  echo '#ifdef __cplusplus' >>confdefs.h
2738  echo $ac_declaration      >>confdefs.h
2739  echo '#endif'             >>confdefs.h
2740fi
2741
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754if test -z "$CC" ; then
2755  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2756echo "$as_me: error: Failed to find a C compiler!" >&2;}
2757   { (exit 1); exit 1; }; }
2758fi
2759# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2760case "$CC" in
2761  clang* ) ;;
2762  cl* | */cl* | CL* | */CL* )
2763    if test "$ac_cv_prog_cc_g" = yes ; then
2764      ac_cv_prog_cc_g=no
2765      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2766echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2767    fi ;;
2768  * )
2769    if test x"$CYGPATH_W" = x ; then
2770      CYGPATH_W=echo
2771    fi
2772    ;;
2773esac
2774CFLAGS="$save_cflags"
2775
2776# add automake conditional so we can recognize cl compiler in makefile
2777coin_cc_is_cl=false
2778case "$CC" in
2779  clang* ) ;;
2780  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2781    coin_cc_is_cl=true
2782    ;;
2783esac
2784
2785
2786if test $coin_cc_is_cl = true; then
2787  COIN_CC_IS_CL_TRUE=
2788  COIN_CC_IS_CL_FALSE='#'
2789else
2790  COIN_CC_IS_CL_TRUE='#'
2791  COIN_CC_IS_CL_FALSE=
2792fi
2793
2794
2795# Check if a project specific CFLAGS variable has been set
2796if test x$COIN_PRJCT != x; then
2797  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2798  if test x$coin_tmp = xset; then
2799    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2800  fi
2801fi
2802
2803if test x"$CFLAGS" = x; then
2804
2805  coin_add_cflags=
2806  coin_opt_cflags=
2807  coin_dbg_cflags=
2808  coin_warn_cflags=
2809
2810  if test "$GCC" = "yes"; then
2811    case "$CC" in
2812      icc* | */icc*)
2813        ;;
2814      *)
2815        coin_opt_cflags="-O3"
2816        coin_add_cflags="-pipe"
2817        coin_dbg_cflags="-g -O0"
2818        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2819        case $build in
2820          *-darwin*)
2821            ;;
2822          *)
2823            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2824            ;;
2825        esac
2826    esac
2827  fi
2828  if test -z "$coin_opt_cflags"; then
2829    case $build in
2830      *-cygwin* | *-mingw*)
2831        case "$CC" in
2832          clang* ) ;;
2833          cl* | */cl* | CL* | */CL*)
2834            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2835              coin_opt_cflags='-MD -O2'
2836              coin_dbg_cflags='-MDd'
2837            else
2838              coin_opt_cflags='-MT -O2'
2839              coin_dbg_cflags='-MTd'
2840            fi
2841            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2842            ;;
2843          icl* | */icl* | ICL* | */ICL*)
2844            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2845              coin_opt_cflags='-MD -Ox'
2846              coin_dbg_cflags='-MDd -debug'
2847            else
2848              coin_opt_cflags='-MT -Ox'
2849              coin_dbg_cflags='-MTd -debug'
2850            fi
2851            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2852            ;;
2853        esac
2854        ;;
2855      *-linux-*)
2856        case "$CC" in
2857          icc* | */icc*)
2858            coin_opt_cflags="-O3 -ip -mp1"
2859            coin_add_cflags=""
2860            coin_dbg_cflags="-g"
2861            # Check if -i_dynamic is necessary (for new glibc library)
2862            CFLAGS=
2863            cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873int i=0; i++;
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext conftest$ac_exeext
2879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880  (eval $ac_link) 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887         { ac_try='test -z "$ac_c_werror_flag"
2888                         || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894         { ac_try='test -s conftest$ac_exeext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  :
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905coin_add_cflags="-i_dynamic $coin_add_cflags"
2906fi
2907rm -f conftest.err conftest.$ac_objext \
2908      conftest$ac_exeext conftest.$ac_ext
2909            ;;
2910          pgcc* | */pgcc*)
2911            coin_opt_cflags="-fast"
2912            coin_add_cflags="-Kieee -pc 64"
2913            coin_dbg_cflags="-g"
2914            ;;
2915        esac
2916        ;;
2917      *-ibm-*)
2918        case "$CC" in
2919          xlc* | */xlc* | mpxlc* | */mpxlc*)
2920            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2921            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2922            coin_dbg_cflags="-g"
2923          ;;
2924        esac
2925        ;;
2926      *-hp-*)
2927        coin_opt_cflags="-O"
2928        coin_add_cflags="-Ae"
2929        coin_dbg_cflags="-g"
2930        ;;
2931      *-*-solaris*)
2932        coin_opt_cflags="-xO4"
2933        coin_dbg_cflags="-g"
2934        ;;
2935      *-sgi-*)
2936        coin_opt_cflags="-O -OPT:Olimit=0"
2937        coin_dbg_cflags="-g"
2938        ;;
2939    esac
2940  fi
2941
2942  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2943    coin_dbg_cflags="-g"
2944  fi
2945
2946  if test -z "$coin_opt_cflags"; then
2947    # Try if -O option works if nothing else is set
2948    CFLAGS="-O"
2949    cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h.  */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h.  */
2955
2956int
2957main ()
2958{
2959int i=0; i++;
2960  ;
2961  return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext conftest$ac_exeext
2965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2966  (eval $ac_link) 2>conftest.er1
2967  ac_status=$?
2968  grep -v '^ *+' conftest.er1 >conftest.err
2969  rm -f conftest.er1
2970  cat conftest.err >&5
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); } &&
2973         { ac_try='test -z "$ac_c_werror_flag"
2974                         || test ! -s conftest.err'
2975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976  (eval $ac_try) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; } &&
2980         { ac_try='test -s conftest$ac_exeext'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; }; then
2986  coin_opt_cflags="-O"
2987else
2988  echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991fi
2992rm -f conftest.err conftest.$ac_objext \
2993      conftest$ac_exeext conftest.$ac_ext
2994  fi
2995
2996  # if PM doesn't want the warning messages, take them out
2997  if test x"$coin_skip_warn_cflags" = xyes; then
2998    coin_warn_cflags=
2999  fi
3000
3001  if test x${DBG_CFLAGS+set} != xset; then
3002    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3003  fi
3004  if test x${OPT_CFLAGS+set} != xset; then
3005    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3006  fi
3007
3008  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3009  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3010
3011  if test "$coin_debug_compile" = "true"; then
3012    CFLAGS="$DBG_CFLAGS"
3013  else
3014    CFLAGS="$OPT_CFLAGS"
3015  fi
3016else
3017  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3018  if test x${DBG_CFLAGS+set} != xset; then
3019    DBG_CFLAGS="$CFLAGS"
3020  fi
3021  if test x${OPT_CFLAGS+set} != xset; then
3022    OPT_CFLAGS="$CFLAGS"
3023  fi
3024fi
3025
3026# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3027if test x$COIN_PRJCT != x; then
3028  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3029fi
3030
3031# Try if CFLAGS works
3032save_CFLAGS="$CFLAGS"
3033cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039
3040int
3041main ()
3042{
3043int i=0; i++;
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext conftest$ac_exeext
3049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3050  (eval $ac_link) 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057         { ac_try='test -z "$ac_c_werror_flag"
3058                         || test ! -s conftest.err'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; } &&
3064         { ac_try='test -s conftest$ac_exeext'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; }; then
3070  :
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075CFLAGS=
3076fi
3077rm -f conftest.err conftest.$ac_objext \
3078      conftest$ac_exeext conftest.$ac_ext
3079if test -z "$CFLAGS"; then
3080  { 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
3081echo "$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;}
3082  CFLAGS='-O'
3083  cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093int i=0; i++;
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext conftest$ac_exeext
3099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100  (eval $ac_link) 2>conftest.er1
3101  ac_status=$?
3102  grep -v '^ *+' conftest.er1 >conftest.err
3103  rm -f conftest.er1
3104  cat conftest.err >&5
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); } &&
3107         { ac_try='test -z "$ac_c_werror_flag"
3108                         || test ! -s conftest.err'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; } &&
3114         { ac_try='test -s conftest$ac_exeext'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; }; then
3120  :
3121else
3122  echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125CFLAGS=
3126fi
3127rm -f conftest.err conftest.$ac_objext \
3128      conftest$ac_exeext conftest.$ac_ext
3129  if test -z "$CFLAGS"; then
3130    { 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
3131echo "$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;}
3132  fi
3133fi
3134
3135{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3136echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3137
3138
3139if test x"$MPICC" = x; then :; else
3140  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3141echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3142  CC="$MPICC"
3143fi
3144
3145# Correct the LD variable if we are using the MS or Intel-windows compiler
3146case "$CC" in
3147  clang* ) ;;
3148  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3149    LD=link
3150    ;;
3151esac
3152
3153ac_ext=c
3154ac_cpp='$CPP $CPPFLAGS'
3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
3159
3160
3161# Get the name of the Fortran compiler and appropriate compiler options
3162case $build in
3163  *-cygwin* | *-mingw*)
3164     if test "$enable_msvc" = yes ; then
3165       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3166     else
3167       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3168     fi ;;
3169  *-*-solaris*)
3170     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3171  *-linux-gnu*)
3172     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3173  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3174 esac
3175
3176
3177
3178
3179
3180ac_ext=f
3181ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3182ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3184
3185
3186
3187
3188
3189
3190coin_has_f77=yes
3191
3192save_fflags="$FFLAGS"
3193
3194# We delete the cached value, since the test might not have been
3195# performed with our choice of compilers earlier
3196$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3197
3198# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3199# coin_f77_comps to see if there's a program that matches one of the names.
3200# If there's no such program, F77 = unavailable. If we match the name,
3201# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3202# compiler.
3203# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3204
3205
3206{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3207echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3208if test -n "$ac_tool_prefix"; then
3209  for ac_prog in $coin_f77_comps
3210  do
3211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213echo "$as_me:$LINENO: checking for $ac_word" >&5
3214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215if test "${ac_cv_prog_F77+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  if test -n "$F77"; then
3219  ac_cv_prog_F77="$F77" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226  for ac_exec_ext in '' $ac_executable_extensions; do
3227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233done
3234
3235fi
3236fi
3237F77=$ac_cv_prog_F77
3238if test -n "$F77"; then
3239  echo "$as_me:$LINENO: result: $F77" >&5
3240echo "${ECHO_T}$F77" >&6
3241else
3242  echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244fi
3245
3246    test -n "$F77" && break
3247  done
3248fi
3249if test -z "$F77"; then
3250  ac_ct_F77=$F77
3251  for ac_prog in $coin_f77_comps
3252do
3253  # Extract the first word of "$ac_prog", so it can be a program name with args.
3254set dummy $ac_prog; ac_word=$2
3255echo "$as_me:$LINENO: checking for $ac_word" >&5
3256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  if test -n "$ac_ct_F77"; then
3261  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268  for ac_exec_ext in '' $ac_executable_extensions; do
3269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    ac_cv_prog_ac_ct_F77="$ac_prog"
3271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275done
3276
3277fi
3278fi
3279ac_ct_F77=$ac_cv_prog_ac_ct_F77
3280if test -n "$ac_ct_F77"; then
3281  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3282echo "${ECHO_T}$ac_ct_F77" >&6
3283else
3284  echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288  test -n "$ac_ct_F77" && break
3289done
3290test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3291
3292  F77=$ac_ct_F77
3293fi
3294
3295
3296if test "$F77" != "unavailable" ; then
3297  ac_ext=f
3298ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3299ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3301if test -n "$ac_tool_prefix"; then
3302  for ac_prog in $coin_f77_comps
3303  do
3304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_F77+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  if test -n "$F77"; then
3312  ac_cv_prog_F77="$F77" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319  for ac_exec_ext in '' $ac_executable_extensions; do
3320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326done
3327
3328fi
3329fi
3330F77=$ac_cv_prog_F77
3331if test -n "$F77"; then
3332  echo "$as_me:$LINENO: result: $F77" >&5
3333echo "${ECHO_T}$F77" >&6
3334else
3335  echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337fi
3338
3339    test -n "$F77" && break
3340  done
3341fi
3342if test -z "$F77"; then
3343  ac_ct_F77=$F77
3344  for ac_prog in $coin_f77_comps
3345do
3346  # Extract the first word of "$ac_prog", so it can be a program name with args.
3347set dummy $ac_prog; ac_word=$2
3348echo "$as_me:$LINENO: checking for $ac_word" >&5
3349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if test -n "$ac_ct_F77"; then
3354  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3355else
3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361  for ac_exec_ext in '' $ac_executable_extensions; do
3362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_ac_ct_F77="$ac_prog"
3364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368done
3369
3370fi
3371fi
3372ac_ct_F77=$ac_cv_prog_ac_ct_F77
3373if test -n "$ac_ct_F77"; then
3374  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3375echo "${ECHO_T}$ac_ct_F77" >&6
3376else
3377  echo "$as_me:$LINENO: result: no" >&5
3378echo "${ECHO_T}no" >&6
3379fi
3380
3381  test -n "$ac_ct_F77" && break
3382done
3383
3384  F77=$ac_ct_F77
3385fi
3386
3387
3388# Provide some information about the compiler.
3389echo "$as_me:3389:" \
3390     "checking for Fortran 77 compiler version" >&5
3391ac_compiler=`set X $ac_compile; echo $2`
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3393  (eval $ac_compiler --version </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3398  (eval $ac_compiler -v </dev/null >&5) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }
3402{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3403  (eval $ac_compiler -V </dev/null >&5) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }
3407rm -f a.out
3408
3409# If we don't use `.F' as extension, the preprocessor is not run on the
3410# input file.  (Note that this only needs to work for GNU compilers.)
3411ac_save_ext=$ac_ext
3412ac_ext=F
3413echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3414echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3415if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  cat >conftest.$ac_ext <<_ACEOF
3419      program main
3420#ifndef __GNUC__
3421       choke me
3422#endif
3423
3424      end
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>conftest.er1
3429  ac_status=$?
3430  grep -v '^ *+' conftest.er1 >conftest.err
3431  rm -f conftest.er1
3432  cat conftest.err >&5
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); } &&
3435         { ac_try='test -z "$ac_f77_werror_flag"
3436                         || test ! -s conftest.err'
3437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438  (eval $ac_try) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }; } &&
3442         { ac_try='test -s conftest.$ac_objext'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; }; then
3448  ac_compiler_gnu=yes
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453ac_compiler_gnu=no
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3457
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3460echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3461ac_ext=$ac_save_ext
3462ac_test_FFLAGS=${FFLAGS+set}
3463ac_save_FFLAGS=$FFLAGS
3464FFLAGS=
3465echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3466echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3467if test "${ac_cv_prog_f77_g+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  FFLAGS=-g
3471cat >conftest.$ac_ext <<_ACEOF
3472      program main
3473
3474      end
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>conftest.er1
3479  ac_status=$?
3480  grep -v '^ *+' conftest.er1 >conftest.err
3481  rm -f conftest.er1
3482  cat conftest.err >&5
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); } &&
3485         { ac_try='test -z "$ac_f77_werror_flag"
3486                         || test ! -s conftest.err'
3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488  (eval $ac_try) 2>&5
3489  ac_status=$?
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); }; } &&
3492         { ac_try='test -s conftest.$ac_objext'
3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494  (eval $ac_try) 2>&5
3495  ac_status=$?
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); }; }; then
3498  ac_cv_prog_f77_g=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503ac_cv_prog_f77_g=no
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3509echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3510if test "$ac_test_FFLAGS" = set; then
3511  FFLAGS=$ac_save_FFLAGS
3512elif test $ac_cv_prog_f77_g = yes; then
3513  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3514    FFLAGS="-g -O2"
3515  else
3516    FFLAGS="-g"
3517  fi
3518else
3519  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3520    FFLAGS="-O2"
3521  else
3522    FFLAGS=
3523  fi
3524fi
3525
3526G77=`test $ac_compiler_gnu = yes && echo yes`
3527ac_ext=f
3528ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3529ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3531
3532else
3533  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3534echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3535fi
3536
3537FFLAGS="$save_fflags"
3538
3539# Check if a project specific FFLAGS variable has been set
3540if test x$COIN_PRJCT != x; then
3541  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3542  if test x$coin_tmp = xset; then
3543    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3544  fi
3545fi
3546
3547if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3548
3549  coin_add_fflags=
3550  coin_opt_fflags=
3551  coin_dbg_fflags=
3552  coin_warn_fflags=
3553
3554  if test "$G77" = "yes"; then
3555    coin_opt_fflags="-O3"
3556    coin_add_fflags="-pipe"
3557    coin_dbg_fflags="-g -O0"
3558  else
3559    case $build in
3560      *-cygwin* | *-mingw*)
3561        case $F77 in
3562          ifort* | */ifort* | IFORT* | */IFORT* )
3563            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3564              coin_opt_fflags='-MD -O3'
3565              coin_dbg_fflags='-MDd -debug'
3566            else
3567              coin_opt_fflags='-MT -O3'
3568              coin_dbg_fflags='-MTd -debug'
3569            fi
3570            coin_add_fflags='-fpp -nologo'
3571          ;;
3572          compile_f2c*)
3573            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3574              coin_opt_fflags='-MD -O2'
3575              coin_dbg_fflags='-MDd'
3576            else
3577              coin_opt_fflags='-MT -O2'
3578              coin_dbg_fflags='-MTd'
3579            fi
3580            coin_add_fflags='-nologo -wd4996'
3581          ;;
3582        esac
3583        ;;
3584      *-linux-*)
3585        case $F77 in
3586          ifc* | */ifc* | ifort* | */ifort*)
3587            coin_opt_fflags="-O3 -ip"
3588            coin_add_fflags="-cm -w90 -w95"
3589            coin_dbg_fflags="-g -CA -CB -CS"
3590            # Check if -i_dynamic is necessary (for new glibc library)
3591            FFLAGS=
3592            cat >conftest.$ac_ext <<_ACEOF
3593      program main
3594      write(*,*) 'Hello world'
3595      end
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599  (eval $ac_link) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_f77_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest$ac_exeext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  :
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624coin_add_fflags="-i_dynamic $coin_add_fflags"
3625fi
3626rm -f conftest.err conftest.$ac_objext \
3627      conftest$ac_exeext conftest.$ac_ext
3628            ;;
3629          pgf77* | */pgf77* | pgf90* | */pgf90*)
3630            coin_opt_fflags="-fast"
3631            coin_add_fflags="-Kieee -pc 64"
3632            coin_dbg_fflags="-g"
3633          ;;
3634        esac
3635        ;;
3636      *-ibm-*)
3637        case "$F77" in
3638          xlf* | */xlf* | mpxlf* | */mpxlf* )
3639            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3640            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3641            coin_dbg_fflags="-g -C"
3642            ;;
3643        esac
3644        ;;
3645      *-hp-*)
3646        coin_opt_fflags="+O3"
3647        coin_add_fflags="+U77"
3648        coin_dbg_fflags="-C -g"
3649        ;;
3650      *-*-solaris*)
3651        coin_opt_fflags="-O4"
3652        coin_dbg_fflags="-g"
3653        ;;
3654      *-sgi-*)
3655        coin_opt_fflags="-O5 -OPT:Olimit=0"
3656        coin_dbg_fflags="-g"
3657        ;;
3658    esac
3659  fi
3660
3661  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3662    coin_dbg_fflags="-g"
3663  fi
3664
3665  if test -z "$coin_opt_fflags"; then
3666    # Try if -O option works if nothing else is set
3667    FFLAGS=-O
3668    cat >conftest.$ac_ext <<_ACEOF
3669      program main
3670      integer i
3671      end
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675  (eval $ac_link) 2>conftest.er1
3676  ac_status=$?
3677  grep -v '^ *+' conftest.er1 >conftest.err
3678  rm -f conftest.er1
3679  cat conftest.err >&5
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); } &&
3682         { ac_try='test -z "$ac_f77_werror_flag"
3683                         || test ! -s conftest.err'
3684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685  (eval $ac_try) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; } &&
3689         { ac_try='test -s conftest$ac_exeext'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; }; then
3695  coin_opt_fflags="-O"
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700fi
3701rm -f conftest.err conftest.$ac_objext \
3702      conftest$ac_exeext conftest.$ac_ext
3703  fi
3704
3705  # if PM doesn't want the warning messages, take them out
3706  if test x"$coin_skip_warn_fflags" = xyes; then
3707    coin_warn_fflags=
3708  fi
3709
3710  if test x${DBG_FFLAGS+set} != xset; then
3711    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3712  fi
3713  if test x${OPT_FFLAGS+set} != xset; then
3714    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3715  fi
3716
3717  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3718  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3719
3720  if test "$coin_debug_compile" = "true"; then
3721    FFLAGS="$DBG_FFLAGS"
3722  else
3723    FFLAGS="$OPT_FFLAGS"
3724  fi
3725else
3726  FFLAGS="$FFLAGS $ADD_FFLAGS"
3727  if test x${DBG_FFLAGS+set} != xset; then
3728    DBG_FFLAGS="$FFLAGS"
3729  fi
3730  if test x${OPT_FFLAGS+set} != xset; then
3731    OPT_FFLAGS="$FFLAGS"
3732  fi
3733fi
3734
3735# Try if FFLAGS works
3736if test "$F77" != "unavailable" ; then
3737  cat >conftest.$ac_ext <<_ACEOF
3738      program main
3739      integer i
3740      end
3741_ACEOF
3742rm -f conftest.$ac_objext conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744  (eval $ac_link) 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } &&
3751         { ac_try='test -z "$ac_f77_werror_flag"
3752                         || test ! -s conftest.err'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; } &&
3758         { ac_try='test -s conftest$ac_exeext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
3764  :
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769FFLAGS=
3770fi
3771rm -f conftest.err conftest.$ac_objext \
3772      conftest$ac_exeext conftest.$ac_ext
3773  if test -z "$FFLAGS"; then
3774    { 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
3775echo "$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;}
3776    FFLAGS='-O'
3777    cat >conftest.$ac_ext <<_ACEOF
3778      program main
3779      integer i
3780      end
3781_ACEOF
3782rm -f conftest.$ac_objext conftest$ac_exeext
3783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3784  (eval $ac_link) 2>conftest.er1
3785  ac_status=$?
3786  grep -v '^ *+' conftest.er1 >conftest.err
3787  rm -f conftest.er1
3788  cat conftest.err >&5
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); } &&
3791         { ac_try='test -z "$ac_f77_werror_flag"
3792                         || test ! -s conftest.err'
3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794  (eval $ac_try) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); }; } &&
3798         { ac_try='test -s conftest$ac_exeext'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; }; then
3804  :
3805else
3806  echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809FFLAGS=
3810fi
3811rm -f conftest.err conftest.$ac_objext \
3812      conftest$ac_exeext conftest.$ac_ext
3813    if test -z "$FFLAGS"; then
3814      { 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
3815echo "$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;}
3816    fi
3817  fi
3818fi
3819
3820{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3821echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3822
3823
3824if test x"$MPIF77" = x; then :; else
3825  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3826echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3827  F77="$MPIF77"
3828fi
3829
3830# correct the LD variable if we use the intel fortran compiler in windows
3831case "$F77" in
3832  ifort* | */ifort* | IFORT* | */IFORT*)
3833    LD=link
3834    ;;
3835esac
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843
3844
3845# Find out how to call Fortran from C and determine Fortran runtime libraries
3846
3847# get FLIBS
3848ac_ext=f
3849ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3850ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3852echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3853echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3854if test "${ac_cv_prog_f77_v+set}" = set; then
3855  echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857  cat >conftest.$ac_ext <<_ACEOF
3858      program main
3859
3860      end
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864  (eval $ac_compile) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871         { ac_try='test -z "$ac_f77_werror_flag"
3872                         || test ! -s conftest.err'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; } &&
3878         { ac_try='test -s conftest.$ac_objext'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; }; then
3884  ac_cv_prog_f77_v=
3885# Try some options frequently used verbose output
3886for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3887  cat >conftest.$ac_ext <<_ACEOF
3888      program main
3889
3890      end
3891_ACEOF
3892
3893# Compile and link our simple test program by passing a flag (argument
3894# 1 to this macro) to the Fortran compiler in order to get
3895# "verbose" output that we can then parse for the Fortran linker
3896# flags.
3897ac_save_FFLAGS=$FFLAGS
3898FFLAGS="$FFLAGS $ac_verb"
3899(eval echo $as_me:3899: \"$ac_link\") >&5
3900ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3901echo "$ac_f77_v_output" >&5
3902FFLAGS=$ac_save_FFLAGS
3903
3904rm -f conftest*
3905
3906# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3907# /foo, /bar, and /baz are search directories for the Fortran linker.
3908# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3909ac_f77_v_output="`echo $ac_f77_v_output |
3910        grep 'LPATH is:' |
3911        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3912
3913case $ac_f77_v_output in
3914  # If we are using xlf then replace all the commas with spaces.
3915  *xlfentry*)
3916    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3917
3918  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3919  # $LIBS confuse us, and the libraries appear later in the output anyway).
3920  *mGLOB_options_string*)
3921    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3922
3923  # If we are using Cray Fortran then delete quotes.
3924  # Use "\"" instead of '"' for font-lock-mode.
3925  # FIXME: a more general fix for quoted arguments with spaces?
3926  *cft90*)
3927    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3928esac
3929
3930
3931  # look for -l* and *.a constructs in the output
3932  for ac_arg in $ac_f77_v_output; do
3933     case $ac_arg in
3934        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3935          ac_cv_prog_f77_v=$ac_verb
3936          break 2 ;;
3937     esac
3938  done
3939done
3940if test -z "$ac_cv_prog_f77_v"; then
3941   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3942echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3943fi
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3949echo "$as_me: WARNING: compilation failed" >&2;}
3950fi
3951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952
3953fi
3954echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3955echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3956echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3957echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3958if test "${ac_cv_f77_libs+set}" = set; then
3959  echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961  if test "x$FLIBS" != "x"; then
3962  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3963else
3964
3965cat >conftest.$ac_ext <<_ACEOF
3966      program main
3967
3968      end
3969_ACEOF
3970
3971# Compile and link our simple test program by passing a flag (argument
3972# 1 to this macro) to the Fortran compiler in order to get
3973# "verbose" output that we can then parse for the Fortran linker
3974# flags.
3975ac_save_FFLAGS=$FFLAGS
3976FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3977(eval echo $as_me:3977: \"$ac_link\") >&5
3978ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3979echo "$ac_f77_v_output" >&5
3980FFLAGS=$ac_save_FFLAGS
3981
3982rm -f conftest*
3983
3984# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3985# /foo, /bar, and /baz are search directories for the Fortran linker.
3986# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3987ac_f77_v_output="`echo $ac_f77_v_output |
3988        grep 'LPATH is:' |
3989        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3990
3991case $ac_f77_v_output in
3992  # If we are using xlf then replace all the commas with spaces.
3993  *xlfentry*)
3994    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3995
3996  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3997  # $LIBS confuse us, and the libraries appear later in the output anyway).
3998  *mGLOB_options_string*)
3999    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4000
4001  # If we are using Cray Fortran then delete quotes.
4002  # Use "\"" instead of '"' for font-lock-mode.
4003  # FIXME: a more general fix for quoted arguments with spaces?
4004  *cft90*)
4005    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4006esac
4007
4008
4009
4010ac_cv_f77_libs=
4011
4012# Save positional arguments (if any)
4013ac_save_positional="$@"
4014
4015set X $ac_f77_v_output
4016while test $# != 1; do
4017  shift
4018  ac_arg=$1
4019  case $ac_arg in
4020        [\\/]*.a | ?:[\\/]*.a)
4021            ac_exists=false
4022  for ac_i in $ac_cv_f77_libs; do
4023    if test x"$ac_arg" = x"$ac_i"; then
4024      ac_exists=true
4025      break
4026    fi
4027  done
4028
4029  if test x"$ac_exists" = xtrue; then
4030  :
4031else
4032  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4033fi
4034
4035          ;;
4036        -bI:*)
4037            ac_exists=false
4038  for ac_i in $ac_cv_f77_libs; do
4039    if test x"$ac_arg" = x"$ac_i"; then
4040      ac_exists=true
4041      break
4042    fi
4043  done
4044
4045  if test x"$ac_exists" = xtrue; then
4046  :
4047else
4048  if test "$ac_compiler_gnu" = yes; then
4049  for ac_link_opt in $ac_arg; do
4050    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4051  done
4052else
4053  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4054fi
4055fi
4056
4057          ;;
4058          # Ignore these flags.
4059        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4060          ;;
4061        -lkernel32)
4062          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4063          ;;
4064        -[LRuY])
4065          # These flags, when seen by themselves, take an argument.
4066          # We remove the space between option and argument and re-iterate
4067          # unless we find an empty arg or a new option (starting with -)
4068          case $2 in
4069             "" | -*);;
4070             *)
4071                ac_arg="$ac_arg$2"
4072                shift; shift
4073                set X $ac_arg "$@"
4074                ;;
4075          esac
4076          ;;
4077        -YP,*)
4078          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4079              ac_exists=false
4080  for ac_i in $ac_cv_f77_libs; do
4081    if test x"$ac_j" = x"$ac_i"; then
4082      ac_exists=true
4083      break
4084    fi
4085  done
4086
4087  if test x"$ac_exists" = xtrue; then
4088  :
4089else
4090  ac_arg="$ac_arg $ac_j"
4091                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4092fi
4093
4094          done
4095          ;;
4096        -[lLR]*)
4097            ac_exists=false
4098  for ac_i in $ac_cv_f77_libs; do
4099    if test x"$ac_arg" = x"$ac_i"; then
4100      ac_exists=true
4101      break
4102    fi
4103  done
4104
4105  if test x"$ac_exists" = xtrue; then
4106  :
4107else
4108  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4109fi
4110
4111          ;;
4112          # Ignore everything else.
4113  esac
4114done
4115# restore positional arguments
4116set X $ac_save_positional; shift
4117
4118# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4119# then we insist that the "run path" must be an absolute path (i.e. it
4120# must begin with a "/").
4121case `(uname -sr) 2>/dev/null` in
4122   "SunOS 5"*)
4123      ac_ld_run_path=`echo $ac_f77_v_output |
4124                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4125      test "x$ac_ld_run_path" != x &&
4126        if test "$ac_compiler_gnu" = yes; then
4127  for ac_link_opt in $ac_ld_run_path; do
4128    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4129  done
4130else
4131  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4132fi
4133      ;;
4134esac
4135fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4136
4137fi
4138echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4139echo "${ECHO_T}$ac_cv_f77_libs" >&6
4140FLIBS="$ac_cv_f77_libs"
4141
4142
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149orig_FLIBS="$FLIBS"
4150
4151# If FLIBS has been set by the user, we just restore its value here
4152if test x"$save_FLIBS" != x; then
4153  FLIBS="$save_FLIBS"
4154else
4155  # This is to correct a missing exclusion in autoconf 2.59
4156  if test x"$FLIBS" != x; then
4157    my_flibs=
4158    for flag in $FLIBS; do
4159      case $flag in
4160        -lcrt*.o) ;;
4161        -lcygwin) ;;
4162        -lgcc*)   ;;
4163               *) my_flibs="$my_flibs $flag" ;;
4164      esac
4165    done
4166    FLIBS="$my_flibs"
4167  fi
4168
4169  case $build in
4170  # The following is a fix to define FLIBS for ifort on Windows
4171  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4172  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4173  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4174  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4175  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4176     *-cygwin* | *-mingw*)
4177       case "$F77" in
4178#         ifort* | */ifort* | IFORT* | */IFORT*)
4179#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4180#           if "$coin_debug_compile" = true ; then
4181#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4182#           else
4183#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4184#           fi
4185#           ;;
4186         compile_f2c*)
4187           FLIBS=`$F77 -FLIBS` ;;
4188       esac;;
4189     *-hp-*)
4190         FLIBS="$FLIBS -lm";;
4191     *-ibm-*)
4192         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4193     *-linux-*)
4194       case "$F77" in
4195         pgf77* | */pgf77* | pgf90* | */pgf90*)
4196# ask linker to go through the archives multiple times
4197# (the Fortran compiler seems to do that automatically...)
4198           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4199       esac
4200  esac
4201  ac_cv_f77_libs="$FLIBS"
4202fi
4203
4204if test "x$orig_FLIBS" != "x$FLIBS" ; then
4205  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4206echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4207fi
4208
4209ac_ext=f
4210ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4211ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4213
4214echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4215echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4216if test "${ac_cv_f77_dummy_main+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219  ac_f77_dm_save_LIBS=$LIBS
4220 LIBS="$LIBS $FLIBS"
4221 ac_fortran_dm_var=F77_DUMMY_MAIN
4222 ac_ext=c
4223ac_cpp='$CPP $CPPFLAGS'
4224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228 # First, try linking without a dummy main:
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h.  */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h.  */
4235
4236#ifdef F77_DUMMY_MAIN
4237
4238#  ifdef __cplusplus
4239     extern "C"
4240#  endif
4241   int F77_DUMMY_MAIN() { return 1; }
4242
4243#endif
4244int
4245main ()
4246{
4247
4248  ;
4249  return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext conftest$ac_exeext
4253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254  (eval $ac_link) 2>conftest.er1
4255  ac_status=$?
4256  grep -v '^ *+' conftest.er1 >conftest.err
4257  rm -f conftest.er1
4258  cat conftest.err >&5
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } &&
4261         { ac_try='test -z "$ac_c_werror_flag"
4262                         || test ! -s conftest.err'
4263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264  (eval $ac_try) 2>&5
4265  ac_status=$?
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); }; } &&
4268         { ac_try='test -s conftest$ac_exeext'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; }; then
4274  ac_cv_fortran_dummy_main=none
4275else
4276  echo "$as_me: failed program was:" >&5
4277sed 's/^/| /' conftest.$ac_ext >&5
4278
4279ac_cv_fortran_dummy_main=unknown
4280fi
4281rm -f conftest.err conftest.$ac_objext \
4282      conftest$ac_exeext conftest.$ac_ext
4283
4284 if test $ac_cv_fortran_dummy_main = unknown; then
4285   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4286     cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h.  */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h.  */
4292#define $ac_fortran_dm_var $ac_func
4293#ifdef F77_DUMMY_MAIN
4294
4295#  ifdef __cplusplus
4296     extern "C"
4297#  endif
4298   int F77_DUMMY_MAIN() { return 1; }
4299
4300#endif
4301int
4302main ()
4303{
4304
4305  ;
4306  return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext conftest$ac_exeext
4310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4311  (eval $ac_link) 2>conftest.er1
4312  ac_status=$?
4313  grep -v '^ *+' conftest.er1 >conftest.err
4314  rm -f conftest.er1
4315  cat conftest.err >&5
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); } &&
4318         { ac_try='test -z "$ac_c_werror_flag"
4319                         || test ! -s conftest.err'
4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321  (eval $ac_try) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }; } &&
4325         { ac_try='test -s conftest$ac_exeext'
4326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327  (eval $ac_try) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); }; }; then
4331  ac_cv_fortran_dummy_main=$ac_func; break
4332else
4333  echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336fi
4337rm -f conftest.err conftest.$ac_objext \
4338      conftest$ac_exeext conftest.$ac_ext
4339   done
4340 fi
4341 ac_ext=f
4342ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4343ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4345 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4346 rm -f conftest*
4347 LIBS=$ac_f77_dm_save_LIBS
4348
4349fi
4350echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4351echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4352F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4353if test "$F77_DUMMY_MAIN" != unknown; then
4354  if test $F77_DUMMY_MAIN != none; then
4355
4356cat >>confdefs.h <<_ACEOF
4357#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4358_ACEOF
4359
4360  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4361
4362cat >>confdefs.h <<\_ACEOF
4363#define FC_DUMMY_MAIN_EQ_F77 1
4364_ACEOF
4365
4366  fi
4367fi
4368else
4369  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4370See \`config.log' for more details." >&5
4371echo "$as_me: error: linking to Fortran libraries from C fails
4372See \`config.log' for more details." >&2;}
4373   { (exit 1); exit 1; }; }
4374fi
4375
4376
4377ac_ext=f
4378ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4379ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4381
4382ac_ext=f
4383ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4384ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4386echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4387echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4388if test "${ac_cv_f77_mangling+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  cat >conftest.$ac_ext <<_ACEOF
4392      subroutine foobar()
4393      return
4394      end
4395      subroutine foo_bar()
4396      return
4397      end
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401  (eval $ac_compile) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } &&
4408         { ac_try='test -z "$ac_f77_werror_flag"
4409                         || test ! -s conftest.err'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; } &&
4415         { ac_try='test -s conftest.$ac_objext'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; }; then
4421  mv conftest.$ac_objext cfortran_test.$ac_objext
4422
4423  ac_save_LIBS=$LIBS
4424  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4425
4426  ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431  ac_success=no
4432  for ac_foobar in foobar FOOBAR; do
4433    for ac_underscore in "" "_"; do
4434      ac_func="$ac_foobar$ac_underscore"
4435      cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441
4442/* Override any gcc2 internal prototype to avoid an error.  */
4443#ifdef __cplusplus
4444extern "C"
4445#endif
4446/* We use char because int might match the return type of a gcc2
4447   builtin and then its argument prototype would still apply.  */
4448char $ac_func ();
4449#ifdef F77_DUMMY_MAIN
4450
4451#  ifdef __cplusplus
4452     extern "C"
4453#  endif
4454   int F77_DUMMY_MAIN() { return 1; }
4455
4456#endif
4457int
4458main ()
4459{
4460$ac_func ();
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext conftest$ac_exeext
4466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467  (eval $ac_link) 2>conftest.er1
4468  ac_status=$?
4469  grep -v '^ *+' conftest.er1 >conftest.err
4470  rm -f conftest.er1
4471  cat conftest.err >&5
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); } &&
4474         { ac_try='test -z "$ac_c_werror_flag"
4475                         || test ! -s conftest.err'
4476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477  (eval $ac_try) 2>&5
4478  ac_status=$?
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); }; } &&
4481         { ac_try='test -s conftest$ac_exeext'
4482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483  (eval $ac_try) 2>&5
4484  ac_status=$?
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; }; then
4487  ac_success=yes; break 2
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492fi
4493rm -f conftest.err conftest.$ac_objext \
4494      conftest$ac_exeext conftest.$ac_ext
4495    done
4496  done
4497  ac_ext=f
4498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4501
4502  if test "$ac_success" = "yes"; then
4503     case $ac_foobar in
4504        foobar)
4505           ac_case=lower
4506           ac_foo_bar=foo_bar
4507           ;;
4508        FOOBAR)
4509           ac_case=upper
4510           ac_foo_bar=FOO_BAR
4511           ;;
4512     esac
4513
4514     ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519     ac_success_extra=no
4520     for ac_extra in "" "_"; do
4521        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4522        cat >conftest.$ac_ext <<_ACEOF
4523/* confdefs.h.  */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h.  */
4528
4529/* Override any gcc2 internal prototype to avoid an error.  */
4530#ifdef __cplusplus
4531extern "C"
4532#endif
4533/* We use char because int might match the return type of a gcc2
4534   builtin and then its argument prototype would still apply.  */
4535char $ac_func ();
4536#ifdef F77_DUMMY_MAIN
4537
4538#  ifdef __cplusplus
4539     extern "C"
4540#  endif
4541   int F77_DUMMY_MAIN() { return 1; }
4542
4543#endif
4544int
4545main ()
4546{
4547$ac_func ();
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext conftest$ac_exeext
4553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554  (eval $ac_link) 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } &&
4561         { ac_try='test -z "$ac_c_werror_flag"
4562                         || test ! -s conftest.err'
4563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564  (eval $ac_try) 2>&5
4565  ac_status=$?
4566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567  (exit $ac_status); }; } &&
4568         { ac_try='test -s conftest$ac_exeext'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; }; then
4574  ac_success_extra=yes; break
4575else
4576  echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579fi
4580rm -f conftest.err conftest.$ac_objext \
4581      conftest$ac_exeext conftest.$ac_ext
4582     done
4583     ac_ext=f
4584ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4585ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4587
4588     if test "$ac_success_extra" = "yes"; then
4589        ac_cv_f77_mangling="$ac_case case"
4590        if test -z "$ac_underscore"; then
4591           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4592        else
4593           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4594        fi
4595        if test -z "$ac_extra"; then
4596           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4597        else
4598           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4599        fi
4600      else
4601        ac_cv_f77_mangling="unknown"
4602      fi
4603  else
4604     ac_cv_f77_mangling="unknown"
4605  fi
4606
4607  LIBS=$ac_save_LIBS
4608  rm -f cfortran_test* conftest*
4609else
4610  echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4614See \`config.log' for more details." >&5
4615echo "$as_me: error: cannot compile a simple Fortran program
4616See \`config.log' for more details." >&2;}
4617   { (exit 1); exit 1; }; }
4618fi
4619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621fi
4622echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4623echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4624
4625ac_ext=f
4626ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4627ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4629
4630
4631ac_ext=f
4632ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4633ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4635
4636ac_ext=f
4637ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4638ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4640
4641
4642case $ac_cv_f77_mangling in
4643  "lower case, no underscore, no extra underscore")
4644          cat >>confdefs.h <<\_ACEOF
4645#define F77_FUNC(name,NAME) name
4646_ACEOF
4647
4648          cat >>confdefs.h <<\_ACEOF
4649#define F77_FUNC_(name,NAME) name
4650_ACEOF
4651 ;;
4652  "lower case, no underscore, extra underscore")
4653          cat >>confdefs.h <<\_ACEOF
4654#define F77_FUNC(name,NAME) name
4655_ACEOF
4656
4657          cat >>confdefs.h <<\_ACEOF
4658#define F77_FUNC_(name,NAME) name ## _
4659_ACEOF
4660 ;;
4661  "lower case, underscore, no extra underscore")
4662          cat >>confdefs.h <<\_ACEOF
4663#define F77_FUNC(name,NAME) name ## _
4664_ACEOF
4665
4666          cat >>confdefs.h <<\_ACEOF
4667#define F77_FUNC_(name,NAME) name ## _
4668_ACEOF
4669 ;;
4670  "lower case, underscore, extra underscore")
4671          cat >>confdefs.h <<\_ACEOF
4672#define F77_FUNC(name,NAME) name ## _
4673_ACEOF
4674
4675          cat >>confdefs.h <<\_ACEOF
4676#define F77_FUNC_(name,NAME) name ## __
4677_ACEOF
4678 ;;
4679  "upper case, no underscore, no extra underscore")
4680          cat >>confdefs.h <<\_ACEOF
4681#define F77_FUNC(name,NAME) NAME
4682_ACEOF
4683
4684          cat >>confdefs.h <<\_ACEOF
4685#define F77_FUNC_(name,NAME) NAME
4686_ACEOF
4687 ;;
4688  "upper case, no underscore, extra underscore")
4689          cat >>confdefs.h <<\_ACEOF
4690#define F77_FUNC(name,NAME) NAME
4691_ACEOF
4692
4693          cat >>confdefs.h <<\_ACEOF
4694#define F77_FUNC_(name,NAME) NAME ## _
4695_ACEOF
4696 ;;
4697  "upper case, underscore, no extra underscore")
4698          cat >>confdefs.h <<\_ACEOF
4699#define F77_FUNC(name,NAME) NAME ## _
4700_ACEOF
4701
4702          cat >>confdefs.h <<\_ACEOF
4703#define F77_FUNC_(name,NAME) NAME ## _
4704_ACEOF
4705 ;;
4706  "upper case, underscore, extra underscore")
4707          cat >>confdefs.h <<\_ACEOF
4708#define F77_FUNC(name,NAME) NAME ## _
4709_ACEOF
4710
4711          cat >>confdefs.h <<\_ACEOF
4712#define F77_FUNC_(name,NAME) NAME ## __
4713_ACEOF
4714 ;;
4715  *)
4716          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4717echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4718          ;;
4719esac
4720
4721ac_ext=f
4722ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4723ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4725
4726ac_ext=c
4727ac_cpp='$CPP $CPPFLAGS'
4728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731
4732
4733
4734
4735# Add FLIBS to MUMPS_PCLIBS, so that they get into the .pc files
4736MUMPS_PCLIBS="$FLIBS"
4737
4738# We need to translate the result from autoconf to what MUMPS wants
4739case "$ac_cv_f77_mangling" in
4740  "lower case, no underscore, no extra underscore")
4741  ;;
4742  "lower case, underscore, no extra underscore")
4743  MY_DEFS="-DAdd_"
4744  ;;
4745  "lower case, no underscore, extra underscore")
4746  MY_DEFS="-DAdd_"
4747  ;;
4748  "lower case, underscore, extra underscore")
4749  MY_DEFS="-DAdd__"
4750  ;;
4751  "upper case, no underscore, no extra underscore")
4752  MY_DEFS="-DUPPER"
4753  ;;
4754  "upper case, no underscore, extra underscore")
4755  MY_DEFS="-DUPPER"
4756  ;;
4757  "upper case, underscore, no extra underscore")
4758  MY_DEFS="-DUPPER"
4759  ;;
4760  "upper case, underscore, extra underscore")
4761  MY_DEFS="-DUPPER"
4762  ;;
4763esac
4764
4765# Mumps can make use of pthreads
4766# check for pthread.h header file and library
4767# Check whether --enable-pthread-mumps or --disable-pthread-mumps was given.
4768if test "${enable_pthread_mumps+set}" = set; then
4769  enableval="$enable_pthread_mumps"
4770  enable_pthread_mumps=$enableval
4771else
4772  enable_pthread_mumps=no
4773fi;
4774if test $enable_pthread_mumps = yes ; then
4775  ac_ext=c
4776ac_cpp='$CPP $CPPFLAGS'
4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4781echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4782# On Suns, sometimes $CPP names a directory.
4783if test -n "$CPP" && test -d "$CPP"; then
4784  CPP=
4785fi
4786if test -z "$CPP"; then
4787  if test "${ac_cv_prog_CPP+set}" = set; then
4788  echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790      # Double quotes because CPP needs to be expanded
4791    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792    do
4793      ac_preproc_ok=false
4794for ac_c_preproc_warn_flag in '' yes
4795do
4796  # Use a header file that comes with gcc, so configuring glibc
4797  # with a fresh cross-compiler works.
4798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799  # <limits.h> exists even on freestanding compilers.
4800  # On the NeXT, cc -E runs the code through the compiler's parser,
4801  # not just through cpp. "Syntax error" is here to catch this case.
4802  cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808#ifdef __STDC__
4809# include <limits.h>
4810#else
4811# include <assert.h>
4812#endif
4813                     Syntax error
4814_ACEOF
4815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817  ac_status=$?
4818  grep -v '^ *+' conftest.er1 >conftest.err
4819  rm -f conftest.er1
4820  cat conftest.err >&5
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } >/dev/null; then
4823  if test -s conftest.err; then
4824    ac_cpp_err=$ac_c_preproc_warn_flag
4825    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4826  else
4827    ac_cpp_err=
4828  fi
4829else
4830  ac_cpp_err=yes
4831fi
4832if test -z "$ac_cpp_err"; then
4833  :
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838  # Broken: fails on valid input.
4839continue
4840fi
4841rm -f conftest.err conftest.$ac_ext
4842
4843  # OK, works on sane cases.  Now check whether non-existent headers
4844  # can be detected and how.
4845  cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h.  */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h.  */
4851#include <ac_nonexistent.h>
4852_ACEOF
4853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4855  ac_status=$?
4856  grep -v '^ *+' conftest.er1 >conftest.err
4857  rm -f conftest.er1
4858  cat conftest.err >&5
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); } >/dev/null; then
4861  if test -s conftest.err; then
4862    ac_cpp_err=$ac_c_preproc_warn_flag
4863    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4864  else
4865    ac_cpp_err=
4866  fi
4867else
4868  ac_cpp_err=yes
4869fi
4870if test -z "$ac_cpp_err"; then
4871  # Broken: success on invalid input.
4872continue
4873else
4874  echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877  # Passes both tests.
4878ac_preproc_ok=:
4879break
4880fi
4881rm -f conftest.err conftest.$ac_ext
4882
4883done
4884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885rm -f conftest.err conftest.$ac_ext
4886if $ac_preproc_ok; then
4887  break
4888fi
4889
4890    done
4891    ac_cv_prog_CPP=$CPP
4892
4893fi
4894  CPP=$ac_cv_prog_CPP
4895else
4896  ac_cv_prog_CPP=$CPP
4897fi
4898echo "$as_me:$LINENO: result: $CPP" >&5
4899echo "${ECHO_T}$CPP" >&6
4900ac_preproc_ok=false
4901for ac_c_preproc_warn_flag in '' yes
4902do
4903  # Use a header file that comes with gcc, so configuring glibc
4904  # with a fresh cross-compiler works.
4905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906  # <limits.h> exists even on freestanding compilers.
4907  # On the NeXT, cc -E runs the code through the compiler's parser,
4908  # not just through cpp. "Syntax error" is here to catch this case.
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915#ifdef __STDC__
4916# include <limits.h>
4917#else
4918# include <assert.h>
4919#endif
4920                     Syntax error
4921_ACEOF
4922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924  ac_status=$?
4925  grep -v '^ *+' conftest.er1 >conftest.err
4926  rm -f conftest.er1
4927  cat conftest.err >&5
4928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929  (exit $ac_status); } >/dev/null; then
4930  if test -s conftest.err; then
4931    ac_cpp_err=$ac_c_preproc_warn_flag
4932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933  else
4934    ac_cpp_err=
4935  fi
4936else
4937  ac_cpp_err=yes
4938fi
4939if test -z "$ac_cpp_err"; then
4940  :
4941else
4942  echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945  # Broken: fails on valid input.
4946continue
4947fi
4948rm -f conftest.err conftest.$ac_ext
4949
4950  # OK, works on sane cases.  Now check whether non-existent headers
4951  # can be detected and how.
4952  cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h.  */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h.  */
4958#include <ac_nonexistent.h>
4959_ACEOF
4960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962  ac_status=$?
4963  grep -v '^ *+' conftest.er1 >conftest.err
4964  rm -f conftest.er1
4965  cat conftest.err >&5
4966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967  (exit $ac_status); } >/dev/null; then
4968  if test -s conftest.err; then
4969    ac_cpp_err=$ac_c_preproc_warn_flag
4970    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971  else
4972    ac_cpp_err=
4973  fi
4974else
4975  ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978  # Broken: success on invalid input.
4979continue
4980else
4981  echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984  # Passes both tests.
4985ac_preproc_ok=:
4986break
4987fi
4988rm -f conftest.err conftest.$ac_ext
4989
4990done
4991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4992rm -f conftest.err conftest.$ac_ext
4993if $ac_preproc_ok; then
4994  :
4995else
4996  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997See \`config.log' for more details." >&5
4998echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999See \`config.log' for more details." >&2;}
5000   { (exit 1); exit 1; }; }
5001fi
5002
5003ac_ext=c
5004ac_cpp='$CPP $CPPFLAGS'
5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009
5010echo "$as_me:$LINENO: checking for egrep" >&5
5011echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5012if test "${ac_cv_prog_egrep+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5016    then ac_cv_prog_egrep='grep -E'
5017    else ac_cv_prog_egrep='egrep'
5018    fi
5019fi
5020echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5021echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5022 EGREP=$ac_cv_prog_egrep
5023
5024
5025echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5026echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5027if test "${ac_cv_header_stdc+set}" = set; then
5028  echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036#include <stdlib.h>
5037#include <stdarg.h>
5038#include <string.h>
5039#include <float.h>
5040
5041#ifdef F77_DUMMY_MAIN
5042
5043#  ifdef __cplusplus
5044     extern "C"
5045#  endif
5046   int F77_DUMMY_MAIN() { return 1; }
5047
5048#endif
5049int
5050main ()
5051{
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext
5058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5059  (eval $ac_compile) 2>conftest.er1
5060  ac_status=$?
5061  grep -v '^ *+' conftest.er1 >conftest.err
5062  rm -f conftest.er1
5063  cat conftest.err >&5
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); } &&
5066         { ac_try='test -z "$ac_c_werror_flag"
5067                         || test ! -s conftest.err'
5068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069  (eval $ac_try) 2>&5
5070  ac_status=$?
5071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); }; } &&
5073         { ac_try='test -s conftest.$ac_objext'
5074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; }; then
5079  ac_cv_header_stdc=yes
5080else
5081  echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084ac_cv_header_stdc=no
5085fi
5086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087
5088if test $ac_cv_header_stdc = yes; then
5089  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5090  cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096#include <string.h>
5097
5098_ACEOF
5099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100  $EGREP "memchr" >/dev/null 2>&1; then
5101  :
5102else
5103  ac_cv_header_stdc=no
5104fi
5105rm -f conftest*
5106
5107fi
5108
5109if test $ac_cv_header_stdc = yes; then
5110  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5111  cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h.  */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h.  */
5117#include <stdlib.h>
5118
5119_ACEOF
5120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5121  $EGREP "free" >/dev/null 2>&1; then
5122  :
5123else
5124  ac_cv_header_stdc=no
5125fi
5126rm -f conftest*
5127
5128fi
5129
5130if test $ac_cv_header_stdc = yes; then
5131  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5132  if test "$cross_compiling" = yes; then
5133  :
5134else
5135  cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h.  */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h.  */
5141#include <ctype.h>
5142#if ((' ' & 0x0FF) == 0x020)
5143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5145#else
5146# define ISLOWER(c) \
5147                   (('a' <= (c) && (c) <= 'i') \
5148                     || ('j' <= (c) && (c) <= 'r') \
5149                     || ('s' <= (c) && (c) <= 'z'))
5150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5151#endif
5152
5153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5154int
5155main ()
5156{
5157  int i;
5158  for (i = 0; i < 256; i++)
5159    if (XOR (islower (i), ISLOWER (i))
5160        || toupper (i) != TOUPPER (i))
5161      exit(2);
5162  exit (0);
5163}
5164_ACEOF
5165rm -f conftest$ac_exeext
5166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167  (eval $ac_link) 2>&5
5168  ac_status=$?
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172  (eval $ac_try) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; }; then
5176  :
5177else
5178  echo "$as_me: program exited with status $ac_status" >&5
5179echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182( exit $ac_status )
5183ac_cv_header_stdc=no
5184fi
5185rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5186fi
5187fi
5188fi
5189echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5190echo "${ECHO_T}$ac_cv_header_stdc" >&6
5191if test $ac_cv_header_stdc = yes; then
5192
5193cat >>confdefs.h <<\_ACEOF
5194#define STDC_HEADERS 1
5195_ACEOF
5196
5197fi
5198
5199# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5210                  inttypes.h stdint.h unistd.h
5211do
5212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5213echo "$as_me:$LINENO: checking for $ac_header" >&5
5214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5215if eval "test \"\${$as_ac_Header+set}\" = set"; then
5216  echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218  cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h.  */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h.  */
5224$ac_includes_default
5225
5226#include <$ac_header>
5227_ACEOF
5228rm -f conftest.$ac_objext
5229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230  (eval $ac_compile) 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } &&
5237         { ac_try='test -z "$ac_c_werror_flag"
5238                         || test ! -s conftest.err'
5239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240  (eval $ac_try) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }; } &&
5244         { ac_try='test -s conftest.$ac_objext'
5245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246  (eval $ac_try) 2>&5
5247  ac_status=$?
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); }; }; then
5250  eval "$as_ac_Header=yes"
5251else
5252  echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255eval "$as_ac_Header=no"
5256fi
5257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258fi
5259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261if test `eval echo '${'$as_ac_Header'}'` = yes; then
5262  cat >>confdefs.h <<_ACEOF
5263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264_ACEOF
5265
5266fi
5267
5268done
5269
5270
5271#if test x"" = x; then
5272#  hdr="#include <pthread.h>"
5273#else
5274#  hdr=""
5275#fi
5276#AC_CHECK_HEADERS([pthread.h],[],[enable_pthread_mumps=no],[$hdr])
5277
5278for ac_header in pthread.h
5279do
5280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5281if eval "test \"\${$as_ac_Header+set}\" = set"; then
5282  echo "$as_me:$LINENO: checking for $ac_header" >&5
5283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5284if eval "test \"\${$as_ac_Header+set}\" = set"; then
5285  echo $ECHO_N "(cached) $ECHO_C" >&6
5286fi
5287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5289else
5290  # Is the header compilable?
5291echo "$as_me:$LINENO: checking $ac_header usability" >&5
5292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5293cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299$ac_includes_default
5300#include <$ac_header>
5301_ACEOF
5302rm -f conftest.$ac_objext
5303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304  (eval $ac_compile) 2>conftest.er1
5305  ac_status=$?
5306  grep -v '^ *+' conftest.er1 >conftest.err
5307  rm -f conftest.er1
5308  cat conftest.err >&5
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); } &&
5311         { ac_try='test -z "$ac_c_werror_flag"
5312                         || test ! -s conftest.err'
5313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314  (eval $ac_try) 2>&5
5315  ac_status=$?
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); }; } &&
5318         { ac_try='test -s conftest.$ac_objext'
5319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320  (eval $ac_try) 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }; }; then
5324  ac_header_compiler=yes
5325else
5326  echo "$as_me: failed program was:" >&5
5327sed 's/^/| /' conftest.$ac_ext >&5
5328
5329ac_header_compiler=no
5330fi
5331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5333echo "${ECHO_T}$ac_header_compiler" >&6
5334
5335# Is the header present?
5336echo "$as_me:$LINENO: checking $ac_header presence" >&5
5337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5338cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h.  */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h.  */
5344#include <$ac_header>
5345_ACEOF
5346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348  ac_status=$?
5349  grep -v '^ *+' conftest.er1 >conftest.err
5350  rm -f conftest.er1
5351  cat conftest.err >&5
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); } >/dev/null; then
5354  if test -s conftest.err; then
5355    ac_cpp_err=$ac_c_preproc_warn_flag
5356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5357  else
5358    ac_cpp_err=
5359  fi
5360else
5361  ac_cpp_err=yes
5362fi
5363if test -z "$ac_cpp_err"; then
5364  ac_header_preproc=yes
5365else
5366  echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369  ac_header_preproc=no
5370fi
5371rm -f conftest.err conftest.$ac_ext
5372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5373echo "${ECHO_T}$ac_header_preproc" >&6
5374
5375# So?  What about this header?
5376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5377  yes:no: )
5378    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5380    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5382    ac_header_preproc=yes
5383    ;;
5384  no:yes:* )
5385    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5387    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5388echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5389    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5391    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5392echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5393    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5395    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5397    (
5398      cat <<\_ASBOX
5399## --------------------------------------------------------------- ##
5400## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5401## --------------------------------------------------------------- ##
5402_ASBOX
5403    ) |
5404      sed "s/^/$as_me: WARNING:     /" >&2
5405    ;;
5406esac
5407echo "$as_me:$LINENO: checking for $ac_header" >&5
5408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  eval "$as_ac_Header=\$ac_header_preproc"
5413fi
5414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5416
5417fi
5418if test `eval echo '${'$as_ac_Header'}'` = yes; then
5419  cat >>confdefs.h <<_ACEOF
5420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5421_ACEOF
5422
5423else
5424  enable_pthread_mumps=no
5425fi
5426
5427done
5428
5429
5430fi
5431if test $enable_pthread_mumps = yes ; then
5432  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5433echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5434if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5435  echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437  ac_check_lib_save_LIBS=$LIBS
5438LIBS="-lpthread  $LIBS"
5439cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445
5446/* Override any gcc2 internal prototype to avoid an error.  */
5447#ifdef __cplusplus
5448extern "C"
5449#endif
5450/* We use char because int might match the return type of a gcc2
5451   builtin and then its argument prototype would still apply.  */
5452char pthread_create ();
5453#ifdef F77_DUMMY_MAIN
5454
5455#  ifdef __cplusplus
5456     extern "C"
5457#  endif
5458   int F77_DUMMY_MAIN() { return 1; }
5459
5460#endif
5461int
5462main ()
5463{
5464pthread_create ();
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext conftest$ac_exeext
5470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471  (eval $ac_link) 2>conftest.er1
5472  ac_status=$?
5473  grep -v '^ *+' conftest.er1 >conftest.err
5474  rm -f conftest.er1
5475  cat conftest.err >&5
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); } &&
5478         { ac_try='test -z "$ac_c_werror_flag"
5479                         || test ! -s conftest.err'
5480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481  (eval $ac_try) 2>&5
5482  ac_status=$?
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); }; } &&
5485         { ac_try='test -s conftest$ac_exeext'
5486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487  (eval $ac_try) 2>&5
5488  ac_status=$?
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); }; }; then
5491  ac_cv_lib_pthread_pthread_create=yes
5492else
5493  echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496ac_cv_lib_pthread_pthread_create=no
5497fi
5498rm -f conftest.err conftest.$ac_objext \
5499      conftest$ac_exeext conftest.$ac_ext
5500LIBS=$ac_check_lib_save_LIBS
5501fi
5502echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5503echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5504if test $ac_cv_lib_pthread_pthread_create = yes; then
5505  MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS"
5506else
5507  enable_pthread_mumps=no
5508fi
5509
5510fi
5511if test $enable_pthread_mumps = no ; then
5512  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5513fi
5514
5515MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5516
5517
5518# Initialize automake
5519{
5520
5521
5522
5523# START
5524
5525coin_disable_shared=no
5526# Test if force_shared has been set
5527if test "x" = xforce_shared; then
5528  if test x$enable_shared = xno; then
5529    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5530echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5531   { (exit 1); exit 1; }; }
5532  fi
5533  enable_shared=yes;
5534else
5535  # On Cygwin and AIX, building DLLs doesn't work
5536  case $build in
5537    *-cygwin* | *-mingw*)
5538      coin_disable_shared=yes
5539      if test x"$enable_shared" = xyes; then
5540        case "$CC" in
5541          clang* )
5542            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5543echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5544            ;;
5545          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5546            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
5547echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
5548            ;;
5549          *gcc*)
5550            if test x"$enable_dependency_linking" = xyes; then
5551              coin_disable_shared=no
5552            else
5553              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
5554echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
5555            fi
5556            ;;
5557          *)
5558            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5559echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5560            ;;
5561        esac
5562      fi
5563    ;;
5564    *-aix*)
5565      coin_disable_shared=yes
5566      platform=AIX
5567      if test x"$enable_shared" = xyes; then
5568        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5569echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5570      fi
5571    ;;
5572  esac
5573fi
5574if test x"$coin_disable_shared" = xyes; then
5575  if test x"$enable_shared" = xyes; then
5576    :
5577  else
5578    # we don't disable shared, because it was not selected anyway
5579    coin_disable_shared=no
5580  fi
5581  enable_shared=no
5582fi
5583# By default, we only want the shared objects to be compiled
5584# Check whether --enable-static or --disable-static was given.
5585if test "${enable_static+set}" = set; then
5586  enableval="$enable_static"
5587  p=${PACKAGE-default}
5588    case $enableval in
5589    yes) enable_static=yes ;;
5590    no) enable_static=no ;;
5591    *)
5592     enable_static=no
5593      # Look at the argument we got.  We use all the common list separators.
5594      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5595      for pkg in $enableval; do
5596        IFS="$lt_save_ifs"
5597        if test "X$pkg" = "X$p"; then
5598          enable_static=yes
5599        fi
5600      done
5601      IFS="$lt_save_ifs"
5602      ;;
5603    esac
5604else
5605  enable_static=no
5606fi;
5607
5608
5609
5610
5611# Initialize automake
5612echo "$as_me:$LINENO: checking whether ln -s works" >&5
5613echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5614LN_S=$as_ln_s
5615if test "$LN_S" = "ln -s"; then
5616  echo "$as_me:$LINENO: result: yes" >&5
5617echo "${ECHO_T}yes" >&6
5618else
5619  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5620echo "${ECHO_T}no, using $LN_S" >&6
5621fi
5622
5623am__api_version="1.9"
5624# Find a good install program.  We prefer a C program (faster),
5625# so one script is as good as another.  But avoid the broken or
5626# incompatible versions:
5627# SysV /etc/install, /usr/sbin/install
5628# SunOS /usr/etc/install
5629# IRIX /sbin/install
5630# AIX /bin/install
5631# AmigaOS /C/install, which installs bootblocks on floppy discs
5632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5635# OS/2's system install, which has a completely different semantic
5636# ./install, which can be erroneously created by make from ./install.sh.
5637echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5638echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5639if test -z "$INSTALL"; then
5640if test "${ac_cv_path_install+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646  IFS=$as_save_IFS
5647  test -z "$as_dir" && as_dir=.
5648  # Account for people who put trailing slashes in PATH elements.
5649case $as_dir/ in
5650  ./ | .// | /cC/* | \
5651  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5652  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5653  /usr/ucb/* ) ;;
5654  *)
5655    # OSF1 and SCO ODT 3.0 have their own names for install.
5656    # Don't use installbsd from OSF since it installs stuff as root
5657    # by default.
5658    for ac_prog in ginstall scoinst install; do
5659      for ac_exec_ext in '' $ac_executable_extensions; do
5660        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5661          if test $ac_prog = install &&
5662            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5663            # AIX install.  It has an incompatible calling convention.
5664            :
5665          elif test $ac_prog = install &&
5666            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5667            # program-specific install script used by HP pwplus--don't use.
5668            :
5669          else
5670            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5671            break 3
5672          fi
5673        fi
5674      done
5675    done
5676    ;;
5677esac
5678done
5679
5680
5681fi
5682  if test "${ac_cv_path_install+set}" = set; then
5683    INSTALL=$ac_cv_path_install
5684  else
5685    # As a last resort, use the slow shell script.  We don't cache a
5686    # path for INSTALL within a source directory, because that will
5687    # break other packages using the cache if that directory is
5688    # removed, or if the path is relative.
5689    INSTALL=$ac_install_sh
5690  fi
5691fi
5692echo "$as_me:$LINENO: result: $INSTALL" >&5
5693echo "${ECHO_T}$INSTALL" >&6
5694
5695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5696# It thinks the first close brace ends the variable substitution.
5697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5698
5699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5700
5701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5702
5703echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5704echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5705# Just in case
5706sleep 1
5707echo timestamp > conftest.file
5708# Do `set' in a subshell so we don't clobber the current shell's
5709# arguments.  Must try -L first in case configure is actually a
5710# symlink; some systems play weird games with the mod time of symlinks
5711# (eg FreeBSD returns the mod time of the symlink's containing
5712# directory).
5713if (
5714   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5715   if test "$*" = "X"; then
5716      # -L didn't work.
5717      set X `ls -t $srcdir/configure conftest.file`
5718   fi
5719   rm -f conftest.file
5720   if test "$*" != "X $srcdir/configure conftest.file" \
5721      && test "$*" != "X conftest.file $srcdir/configure"; then
5722
5723      # If neither matched, then we have a broken ls.  This can happen
5724      # if, for instance, CONFIG_SHELL is bash and it inherits a
5725      # broken ls alias from the environment.  This has actually
5726      # happened.  Such a system could not be considered "sane".
5727      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5728alias in your environment" >&5
5729echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5730alias in your environment" >&2;}
5731   { (exit 1); exit 1; }; }
5732   fi
5733
5734   test "$2" = conftest.file
5735   )
5736then
5737   # Ok.
5738   :
5739else
5740   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5741Check your system clock" >&5
5742echo "$as_me: error: newly created file is older than distributed files!
5743Check your system clock" >&2;}
5744   { (exit 1); exit 1; }; }
5745fi
5746echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6
5748test "$program_prefix" != NONE &&
5749  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5750# Use a double $ so make ignores it.
5751test "$program_suffix" != NONE &&
5752  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5753# Double any \ or $.  echo might interpret backslashes.
5754# By default was `s,x,x', remove it if useless.
5755cat <<\_ACEOF >conftest.sed
5756s/[\\$]/&&/g;s/;s,x,x,$//
5757_ACEOF
5758program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5759rm conftest.sed
5760
5761# expand $ac_aux_dir to an absolute path
5762am_aux_dir=`cd $ac_aux_dir && pwd`
5763
5764test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5765# Use eval to expand $SHELL
5766if eval "$MISSING --run true"; then
5767  am_missing_run="$MISSING --run "
5768else
5769  am_missing_run=
5770  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5771echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5772fi
5773
5774if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5775  # We used to keeping the `.' as first argument, in order to
5776  # allow $(mkdir_p) to be used without argument.  As in
5777  #   $(mkdir_p) $(somedir)
5778  # where $(somedir) is conditionally defined.  However this is wrong
5779  # for two reasons:
5780  #  1. if the package is installed by a user who cannot write `.'
5781  #     make install will fail,
5782  #  2. the above comment should most certainly read
5783  #     $(mkdir_p) $(DESTDIR)$(somedir)
5784  #     so it does not work when $(somedir) is undefined and
5785  #     $(DESTDIR) is not.
5786  #  To support the latter case, we have to write
5787  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5788  #  so the `.' trick is pointless.
5789  mkdir_p='mkdir -p --'
5790else
5791  # On NextStep and OpenStep, the `mkdir' command does not
5792  # recognize any option.  It will interpret all options as
5793  # directories to create, and then abort because `.' already
5794  # exists.
5795  for d in ./-p ./--version;
5796  do
5797    test -d $d && rmdir $d
5798  done
5799  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5800  if test -f "$ac_aux_dir/mkinstalldirs"; then
5801    mkdir_p='$(mkinstalldirs)'
5802  else
5803    mkdir_p='$(install_sh) -d'
5804  fi
5805fi
5806
5807for ac_prog in gawk mawk nawk awk
5808do
5809  # Extract the first word of "$ac_prog", so it can be a program name with args.
5810set dummy $ac_prog; ac_word=$2
5811echo "$as_me:$LINENO: checking for $ac_word" >&5
5812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813if test "${ac_cv_prog_AWK+set}" = set; then
5814  echo $ECHO_N "(cached) $ECHO_C" >&6
5815else
5816  if test -n "$AWK"; then
5817  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824  for ac_exec_ext in '' $ac_executable_extensions; do
5825  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826    ac_cv_prog_AWK="$ac_prog"
5827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828    break 2
5829  fi
5830done
5831done
5832
5833fi
5834fi
5835AWK=$ac_cv_prog_AWK
5836if test -n "$AWK"; then
5837  echo "$as_me:$LINENO: result: $AWK" >&5
5838echo "${ECHO_T}$AWK" >&6
5839else
5840  echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6
5842fi
5843
5844  test -n "$AWK" && break
5845done
5846
5847echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5848echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5849set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5850if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5851  echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853  cat >conftest.make <<\_ACEOF
5854all:
5855        @echo 'ac_maketemp="$(MAKE)"'
5856_ACEOF
5857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5858eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5859if test -n "$ac_maketemp"; then
5860  eval ac_cv_prog_make_${ac_make}_set=yes
5861else
5862  eval ac_cv_prog_make_${ac_make}_set=no
5863fi
5864rm -f conftest.make
5865fi
5866if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5867  echo "$as_me:$LINENO: result: yes" >&5
5868echo "${ECHO_T}yes" >&6
5869  SET_MAKE=
5870else
5871  echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6
5873  SET_MAKE="MAKE=${MAKE-make}"
5874fi
5875
5876rm -rf .tst 2>/dev/null
5877mkdir .tst 2>/dev/null
5878if test -d .tst; then
5879  am__leading_dot=.
5880else
5881  am__leading_dot=_
5882fi
5883rmdir .tst 2>/dev/null
5884
5885DEPDIR="${am__leading_dot}deps"
5886
5887          ac_config_commands="$ac_config_commands depfiles"
5888
5889
5890am_make=${MAKE-make}
5891cat > confinc << 'END'
5892am__doit:
5893        @echo done
5894.PHONY: am__doit
5895END
5896# If we don't find an include directive, just comment out the code.
5897echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5898echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5899am__include="#"
5900am__quote=
5901_am_result=none
5902# First try GNU make style include.
5903echo "include confinc" > confmf
5904# We grep out `Entering directory' and `Leaving directory'
5905# messages which can occur if `w' ends up in MAKEFLAGS.
5906# In particular we don't look at `^make:' because GNU make might
5907# be invoked under some other name (usually "gmake"), in which
5908# case it prints its new name instead of `make'.
5909if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5910   am__include=include
5911   am__quote=
5912   _am_result=GNU
5913fi
5914# Now try BSD make style include.
5915if test "$am__include" = "#"; then
5916   echo '.include "confinc"' > confmf
5917   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5918      am__include=.include
5919      am__quote="\""
5920      _am_result=BSD
5921   fi
5922fi
5923
5924
5925echo "$as_me:$LINENO: result: $_am_result" >&5
5926echo "${ECHO_T}$_am_result" >&6
5927rm -f confinc confmf
5928
5929# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5930if test "${enable_dependency_tracking+set}" = set; then
5931  enableval="$enable_dependency_tracking"
5932
5933fi;
5934if test "x$enable_dependency_tracking" != xno; then
5935  am_depcomp="$ac_aux_dir/depcomp"
5936  AMDEPBACKSLASH='\'
5937fi
5938
5939
5940if test "x$enable_dependency_tracking" != xno; then
5941  AMDEP_TRUE=
5942  AMDEP_FALSE='#'
5943else
5944  AMDEP_TRUE='#'
5945  AMDEP_FALSE=
5946fi
5947
5948
5949
5950
5951
5952
5953# AC_MSG_NOTICE([Beginning automake initialisation.])
5954# Stuff for automake
5955# test to see if srcdir already configured
5956if test "`cd $srcdir && pwd`" != "`pwd`" &&
5957   test -f $srcdir/config.status; then
5958  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5959echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5960   { (exit 1); exit 1; }; }
5961fi
5962
5963# test whether we have cygpath
5964if test -z "$CYGPATH_W"; then
5965  if (cygpath --version) >/dev/null 2>/dev/null; then
5966    CYGPATH_W='cygpath -w'
5967  else
5968    CYGPATH_W=echo
5969  fi
5970fi
5971
5972
5973# Define the identity of the package.
5974 PACKAGE='thirdpartymumps'
5975 VERSION='1.4.13'
5976
5977
5978cat >>confdefs.h <<_ACEOF
5979#define PACKAGE "$PACKAGE"
5980_ACEOF
5981
5982
5983cat >>confdefs.h <<_ACEOF
5984#define VERSION "$VERSION"
5985_ACEOF
5986
5987# Some tools Automake needs.
5988
5989ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5990
5991
5992AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5993
5994
5995AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5996
5997
5998AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5999
6000
6001MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6002
6003install_sh=${install_sh-"$am_aux_dir/install-sh"}
6004
6005# Installed binaries are usually stripped using `strip' when the user
6006# run `make install-strip'.  However `strip' might not be the right
6007# tool to use in cross-compilation environments, therefore Automake
6008# will honor the `STRIP' environment variable to overrule this program.
6009if test "$cross_compiling" != no; then
6010  if test -n "$ac_tool_prefix"; then
6011  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6012set dummy ${ac_tool_prefix}strip; ac_word=$2
6013echo "$as_me:$LINENO: checking for $ac_word" >&5
6014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015if test "${ac_cv_prog_STRIP+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  if test -n "$STRIP"; then
6019  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024  IFS=$as_save_IFS
6025  test -z "$as_dir" && as_dir=.
6026  for ac_exec_ext in '' $ac_executable_extensions; do
6027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030    break 2
6031  fi
6032done
6033done
6034
6035fi
6036fi
6037STRIP=$ac_cv_prog_STRIP
6038if test -n "$STRIP"; then
6039  echo "$as_me:$LINENO: result: $STRIP" >&5
6040echo "${ECHO_T}$STRIP" >&6
6041else
6042  echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044fi
6045
6046fi
6047if test -z "$ac_cv_prog_STRIP"; then
6048  ac_ct_STRIP=$STRIP
6049  # Extract the first word of "strip", so it can be a program name with args.
6050set dummy strip; ac_word=$2
6051echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6054  echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056  if test -n "$ac_ct_STRIP"; then
6057  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064  for ac_exec_ext in '' $ac_executable_extensions; do
6065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066    ac_cv_prog_ac_ct_STRIP="strip"
6067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071done
6072
6073  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6074fi
6075fi
6076ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6077if test -n "$ac_ct_STRIP"; then
6078  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6079echo "${ECHO_T}$ac_ct_STRIP" >&6
6080else
6081  echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
6083fi
6084
6085  STRIP=$ac_ct_STRIP
6086else
6087  STRIP="$ac_cv_prog_STRIP"
6088fi
6089
6090fi
6091INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6092
6093# We need awk for the "check" target.  The system "awk" is bad on
6094# some platforms.
6095# Always define AMTAR for backward compatibility.
6096
6097AMTAR=${AMTAR-"${am_missing_run}tar"}
6098
6099am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6100
6101
6102
6103
6104depcc="$CC"   am_compiler_list=
6105
6106echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6107echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6108if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6109  echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6112  # We make a subdir and do the tests there.  Otherwise we can end up
6113  # making bogus files that we don't know about and never remove.  For
6114  # instance it was reported that on HP-UX the gcc test will end up
6115  # making a dummy file named `D' -- because `-MD' means `put the output
6116  # in D'.
6117  mkdir conftest.dir
6118  # Copy depcomp to subdir because otherwise we won't find it if we're
6119  # using a relative directory.
6120  cp "$am_depcomp" conftest.dir
6121  cd conftest.dir
6122  # We will build objects and dependencies in a subdirectory because
6123  # it helps to detect inapplicable dependency modes.  For instance
6124  # both Tru64's cc and ICC support -MD to output dependencies as a
6125  # side effect of compilation, but ICC will put the dependencies in
6126  # the current directory while Tru64 will put them in the object
6127  # directory.
6128  mkdir sub
6129
6130  am_cv_CC_dependencies_compiler_type=none
6131  if test "$am_compiler_list" = ""; then
6132     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6133  fi
6134  for depmode in $am_compiler_list; do
6135    # Setup a source with many dependencies, because some compilers
6136    # like to wrap large dependency lists on column 80 (with \), and
6137    # we should not choose a depcomp mode which is confused by this.
6138    #
6139    # We need to recreate these files for each test, as the compiler may
6140    # overwrite some of them when testing with obscure command lines.
6141    # This happens at least with the AIX C compiler.
6142    : > sub/conftest.c
6143    for i in 1 2 3 4 5 6; do
6144      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6145      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6146      # Solaris 8's {/usr,}/bin/sh.
6147      touch sub/conftst$i.h
6148    done
6149    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6150
6151    case $depmode in
6152    nosideeffect)
6153      # after this tag, mechanisms are not by side-effect, so they'll
6154      # only be used when explicitly requested
6155      if test "x$enable_dependency_tracking" = xyes; then
6156        continue
6157      else
6158        break
6159      fi
6160      ;;
6161    none) break ;;
6162    esac
6163    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6164    # mode.  It turns out that the SunPro C++ compiler does not properly
6165    # handle `-M -o', and we need to detect this.
6166    if depmode=$depmode \
6167       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6168       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6169       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6170         >/dev/null 2>conftest.err &&
6171       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6172       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6173       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6174      # icc doesn't choke on unknown options, it will just issue warnings
6175      # or remarks (even with -Werror).  So we grep stderr for any message
6176      # that says an option was ignored or not supported.
6177      # When given -MP, icc 7.0 and 7.1 complain thusly:
6178      #   icc: Command line warning: ignoring option '-M'; no argument required
6179      # The diagnosis changed in icc 8.0:
6180      #   icc: Command line remark: option '-MP' not supported
6181      if (grep 'ignoring option' conftest.err ||
6182          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6183        am_cv_CC_dependencies_compiler_type=$depmode
6184        break
6185      fi
6186    fi
6187  done
6188
6189  cd ..
6190  rm -rf conftest.dir
6191else
6192  am_cv_CC_dependencies_compiler_type=none
6193fi
6194
6195fi
6196echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6197echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6198CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6199
6200
6201
6202if
6203  test "x$enable_dependency_tracking" != xno \
6204  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6205  am__fastdepCC_TRUE=
6206  am__fastdepCC_FALSE='#'
6207else
6208  am__fastdepCC_TRUE='#'
6209  am__fastdepCC_FALSE=
6210fi
6211
6212
6213
6214echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6215echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6216    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6217if test "${enable_maintainer_mode+set}" = set; then
6218  enableval="$enable_maintainer_mode"
6219  USE_MAINTAINER_MODE=$enableval
6220else
6221  USE_MAINTAINER_MODE=no
6222fi;
6223  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6224echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6225
6226
6227if test $USE_MAINTAINER_MODE = yes; then
6228  MAINTAINER_MODE_TRUE=
6229  MAINTAINER_MODE_FALSE='#'
6230else
6231  MAINTAINER_MODE_TRUE='#'
6232  MAINTAINER_MODE_FALSE=
6233fi
6234
6235  MAINT=$MAINTAINER_MODE_TRUE
6236
6237
6238
6239coin_have_externals=no
6240if test "$enable_maintainer_mode" = yes; then
6241
6242  # If maintainer mode is chosen, we make sure that the correct versions
6243  # of the tools are used, and that we know where libtool.m4 is (to
6244  # recreate acinclude.m4)
6245
6246
6247  LIBTOOLM4=
6248  # Normally, $HOME
6249  AUTOTOOLS_DFLT=$HOME
6250
6251  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6252echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6253if test "${ac_cv_use_correct_autotools+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  ac_cv_use_correct_autotools=check
6257fi
6258echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6259echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6260
6261  if test $ac_cv_use_correct_autotools = check; then
6262    ac_cv_use_correct_autotools=yes
6263    # Check if we have autoconf
6264    # Extract the first word of "autoconf", so it can be a program name with args.
6265set dummy autoconf; ac_word=$2
6266echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6268if test "${ac_cv_prog_have_autoconf+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  if test -n "$have_autoconf"; then
6272  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277  IFS=$as_save_IFS
6278  test -z "$as_dir" && as_dir=.
6279  for ac_exec_ext in '' $ac_executable_extensions; do
6280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281    ac_cv_prog_have_autoconf="yes"
6282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283    break 2
6284  fi
6285done
6286done
6287
6288  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6289fi
6290fi
6291have_autoconf=$ac_cv_prog_have_autoconf
6292if test -n "$have_autoconf"; then
6293  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6294echo "${ECHO_T}$have_autoconf" >&6
6295else
6296  echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298fi
6299
6300    if test $have_autoconf = no; then
6301      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6302echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6303   { (exit 1); exit 1; }; }
6304    fi
6305
6306    # Check whether autoconf is the correct version
6307    correct_version='2.59'
6308    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6309    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6310echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6311    autoconf --version > confauto.out 2>&1
6312    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6313      echo "$as_me:$LINENO: result: yes" >&5
6314echo "${ECHO_T}yes" >&6
6315    else
6316      rm -f confauto.out
6317      echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6
6319      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6320echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6321   { (exit 1); exit 1; }; }
6322    fi
6323    rm -f confauto.out
6324
6325    # Check if the executable autoconf is picked up from the correct location
6326    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6327echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6328    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6329    autoconf_dir=`cd $autoconf_dir; pwd`
6330    if test x$AUTOTOOLS_DIR = x; then
6331      want_dir=$AUTOTOOLS_DFLT/bin
6332    else
6333      want_dir=$AUTOTOOLS_DIR/bin
6334    fi
6335    if test $autoconf_dir = `cd $want_dir; pwd`; then
6336      echo "$as_me:$LINENO: result: yes" >&5
6337echo "${ECHO_T}yes" >&6
6338    else
6339      rm -f confauto.out
6340      echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
6342      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6343echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6344   { (exit 1); exit 1; }; }
6345    fi
6346
6347    # Check if we have automake
6348    # Extract the first word of "automake", so it can be a program name with args.
6349set dummy automake; ac_word=$2
6350echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352if test "${ac_cv_prog_have_automake+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  if test -n "$have_automake"; then
6356  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361  IFS=$as_save_IFS
6362  test -z "$as_dir" && as_dir=.
6363  for ac_exec_ext in '' $ac_executable_extensions; do
6364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365    ac_cv_prog_have_automake="yes"
6366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367    break 2
6368  fi
6369done
6370done
6371
6372  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6373fi
6374fi
6375have_automake=$ac_cv_prog_have_automake
6376if test -n "$have_automake"; then
6377  echo "$as_me:$LINENO: result: $have_automake" >&5
6378echo "${ECHO_T}$have_automake" >&6
6379else
6380  echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382fi
6383
6384    if test $have_automake = no; then
6385      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6386echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6387   { (exit 1); exit 1; }; }
6388    fi
6389
6390    # Check whether automake is the correct version
6391    correct_version='1.9.6'
6392    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6393    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6394echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6395    automake --version > confauto.out 2>&1
6396    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6397      echo "$as_me:$LINENO: result: yes" >&5
6398echo "${ECHO_T}yes" >&6
6399    else
6400      rm -f confauto.out
6401      echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6
6403      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6404echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6405   { (exit 1); exit 1; }; }
6406    fi
6407    rm -f confauto.out
6408
6409    # Check if the executable automake is picked up from the correct location
6410    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6411echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6412    automake_dir=`which automake | sed -e 's=/automake=='`
6413    automake_dir=`cd $automake_dir; pwd`
6414    if test x$AUTOTOOLS_DIR = x; then
6415      want_dir=$AUTOTOOLS_DFLT/bin
6416    else
6417      want_dir=$AUTOTOOLS_DIR/bin
6418    fi
6419    if test $automake_dir = `cd $want_dir; pwd`; then
6420      echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422    else
6423      rm -f confauto.out
6424      echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6427echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6428   { (exit 1); exit 1; }; }
6429    fi
6430
6431    # Check if this is the correct version of libtool (with escaped dots)
6432    if test x$AUTOTOOLS_DIR = x; then
6433      want_dir=$AUTOTOOLS_DFLT/share
6434    else
6435      want_dir=$AUTOTOOLS_DIR/share
6436    fi
6437    correct_version='1.5.22'
6438    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6439    if test -r $want_dir/libtool/ltmain.sh; then
6440  have_ltmain=yes
6441  :
6442else
6443  have_ltmain=no
6444  :
6445fi
6446
6447    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6448echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6449    if test $have_ltmain = yes; then
6450    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6451        echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453      else
6454        echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6457echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6458   { (exit 1); exit 1; }; }
6459      fi
6460    else
6461      echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6464echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6465   { (exit 1); exit 1; }; }
6466    fi
6467  fi
6468
6469  # Check if we can find the libtool file
6470  if test x$AUTOTOOLS_DIR = x; then
6471    want_dir=$AUTOTOOLS_DFLT/share
6472  else
6473    want_dir=$AUTOTOOLS_DIR/share
6474  fi
6475  if test -r $want_dir/aclocal/libtool.m4; then
6476  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6477  :
6478else
6479  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6480echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6481   { (exit 1); exit 1; }; }
6482  :
6483fi
6484
6485
6486  # Check if we have an Dependencies file
6487  if test -r $srcdir/Dependencies; then
6488    coin_have_externals=yes
6489  fi
6490  # Check if subversion is installed and understands https
6491  # Extract the first word of "svn", so it can be a program name with args.
6492set dummy svn; ac_word=$2
6493echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495if test "${ac_cv_prog_have_svn+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  if test -n "$have_svn"; then
6499  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506  for ac_exec_ext in '' $ac_executable_extensions; do
6507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508    ac_cv_prog_have_svn="yes"
6509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513done
6514
6515  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6516fi
6517fi
6518have_svn=$ac_cv_prog_have_svn
6519if test -n "$have_svn"; then
6520  echo "$as_me:$LINENO: result: $have_svn" >&5
6521echo "${ECHO_T}$have_svn" >&6
6522else
6523  echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
6525fi
6526
6527  if test x$have_svn = xyes; then
6528    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6529echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6530if test "${ac_cv_svn_understands_https+set}" = set; then
6531  echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533  svn --version > confauto.out 2>&1
6534                    if $EGREP https confauto.out >/dev/null 2>&1; then
6535                      ac_cv_svn_understands_https=yes
6536                    else
6537                      ac_cv_svn_understands_https=no
6538                      have_svn=no
6539                      ac_cv_prog_have_svn=no
6540                    fi
6541                    rm -f confauto.out
6542fi
6543echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6544echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6545  fi
6546
6547  # Find the location of the BuildTools directory
6548  BUILDTOOLSDIR=
6549  if test -r $srcdir/BuildTools/coin.m4; then
6550    BUILDTOOLSDIR=$srcdir/BuildTools
6551  else
6552    if test -r $srcdir/../BuildTools/coin.m4; then
6553      BUILDTOOLSDIR=$srcdir/../BuildTools
6554    else
6555      if test -r $srcdir/../../BuildTools/coin.m4; then
6556        BUILDTOOLSDIR=$srcdir/../../BuildTools
6557      else
6558        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6559echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6560   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6561      fi
6562    fi
6563  fi
6564
6565
6566  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6567  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6568    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6569  fi
6570
6571  # The following variable is set to the name of the directory where
6572  # the autotool scripts are located
6573
6574  AUX_DIR=$ac_aux_dir
6575fi
6576
6577# helpful variable for the base directory of this package
6578abs_source_dir=`cd $srcdir; pwd`
6579
6580
6581# Stuff for example Makefiles
6582if test x$prefix = xNONE; then
6583  full_prefix=$ac_default_prefix
6584else
6585  full_prefix=$prefix
6586fi
6587full_prefix=`cd $full_prefix ; pwd`
6588
6589abs_lib_dir=$full_prefix/lib
6590
6591abs_include_dir=$full_prefix/include
6592
6593abs_bin_dir=$full_prefix/bin
6594
6595
6596
6597if test $coin_have_externals = yes && test x$have_svn = xyes; then
6598  HAVE_EXTERNALS_TRUE=
6599  HAVE_EXTERNALS_FALSE='#'
6600else
6601  HAVE_EXTERNALS_TRUE='#'
6602  HAVE_EXTERNALS_FALSE=
6603fi
6604
6605
6606# AC_MSG_NOTICE([End automake initialisation.])
6607
6608
6609
6610LIBTOOL=
6611if test -f ../libtool; then
6612  coin_config_dir=..
6613  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6614fi
6615if test "x$LIBTOOL" = x; then
6616  if test -f ../../libtool; then
6617    coin_config_dir=../..
6618    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6619  fi
6620fi
6621
6622if test "x$LIBTOOL" = x; then
6623# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6624  # Stuff for libtool
6625  # Check whether --enable-shared or --disable-shared was given.
6626if test "${enable_shared+set}" = set; then
6627  enableval="$enable_shared"
6628  p=${PACKAGE-default}
6629    case $enableval in
6630    yes) enable_shared=yes ;;
6631    no) enable_shared=no ;;
6632    *)
6633      enable_shared=no
6634      # Look at the argument we got.  We use all the common list separators.
6635      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6636      for pkg in $enableval; do
6637        IFS="$lt_save_ifs"
6638        if test "X$pkg" = "X$p"; then
6639          enable_shared=yes
6640        fi
6641      done
6642      IFS="$lt_save_ifs"
6643      ;;
6644    esac
6645else
6646  enable_shared=yes
6647fi;
6648
6649# Check whether --enable-fast-install or --disable-fast-install was given.
6650if test "${enable_fast_install+set}" = set; then
6651  enableval="$enable_fast_install"
6652  p=${PACKAGE-default}
6653    case $enableval in
6654    yes) enable_fast_install=yes ;;
6655    no) enable_fast_install=no ;;
6656    *)
6657      enable_fast_install=no
6658      # Look at the argument we got.  We use all the common list separators.
6659      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6660      for pkg in $enableval; do
6661        IFS="$lt_save_ifs"
6662        if test "X$pkg" = "X$p"; then
6663          enable_fast_install=yes
6664        fi
6665      done
6666      IFS="$lt_save_ifs"
6667      ;;
6668    esac
6669else
6670  enable_fast_install=yes
6671fi;
6672
6673echo "$as_me:$LINENO: checking host system type" >&5
6674echo $ECHO_N "checking host system type... $ECHO_C" >&6
6675if test "${ac_cv_host+set}" = set; then
6676  echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678  ac_cv_host_alias=$host_alias
6679test -z "$ac_cv_host_alias" &&
6680  ac_cv_host_alias=$ac_cv_build_alias
6681ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6682  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6683echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6684   { (exit 1); exit 1; }; }
6685
6686fi
6687echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6688echo "${ECHO_T}$ac_cv_host" >&6
6689host=$ac_cv_host
6690host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6691host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6692host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6693
6694
6695echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6696echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6697if test "${lt_cv_path_SED+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  # Loop through the user's path and test for sed and gsed.
6701# Then use that list of sed's as ones to test for truncation.
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707  for lt_ac_prog in sed gsed; do
6708    for ac_exec_ext in '' $ac_executable_extensions; do
6709      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6710        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6711      fi
6712    done
6713  done
6714done
6715lt_ac_max=0
6716lt_ac_count=0
6717# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6718# along with /bin/sed that truncates output.
6719for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6720  test ! -f $lt_ac_sed && continue
6721  cat /dev/null > conftest.in
6722  lt_ac_count=0
6723  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6724  # Check for GNU sed and select it if it is found.
6725  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6726    lt_cv_path_SED=$lt_ac_sed
6727    break
6728  fi
6729  while true; do
6730    cat conftest.in conftest.in >conftest.tmp
6731    mv conftest.tmp conftest.in
6732    cp conftest.in conftest.nl
6733    echo >>conftest.nl
6734    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6735    cmp -s conftest.out conftest.nl || break
6736    # 10000 chars as input seems more than enough
6737    test $lt_ac_count -gt 10 && break
6738    lt_ac_count=`expr $lt_ac_count + 1`
6739    if test $lt_ac_count -gt $lt_ac_max; then
6740      lt_ac_max=$lt_ac_count
6741      lt_cv_path_SED=$lt_ac_sed
6742    fi
6743  done
6744done
6745
6746fi
6747
6748SED=$lt_cv_path_SED
6749echo "$as_me:$LINENO: result: $SED" >&5
6750echo "${ECHO_T}$SED" >&6
6751
6752
6753# Check whether --with-gnu-ld or --without-gnu-ld was given.
6754if test "${with_gnu_ld+set}" = set; then
6755  withval="$with_gnu_ld"
6756  test "$withval" = no || with_gnu_ld=yes
6757else
6758  with_gnu_ld=no
6759fi;
6760ac_prog=ld
6761if test "$GCC" = yes; then
6762  # Check if gcc -print-prog-name=ld gives a path.
6763  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6764echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6765  case $host in
6766  *-*-mingw*)
6767    # gcc leaves a trailing carriage return which upsets mingw
6768    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6769  *)
6770    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6771  esac
6772  case $ac_prog in
6773    # Accept absolute paths.
6774    [\\/]* | ?:[\\/]*)
6775      re_direlt='/[^/][^/]*/\.\./'
6776      # Canonicalize the pathname of ld
6777      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6778      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6779        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6780      done
6781      test -z "$LD" && LD="$ac_prog"
6782      ;;
6783  "")
6784    # If it fails, then pretend we aren't using GCC.
6785    ac_prog=ld
6786    ;;
6787  *)
6788    # If it is relative, then search for the first ld in PATH.
6789    with_gnu_ld=unknown
6790    ;;
6791  esac
6792elif test "$with_gnu_ld" = yes; then
6793  echo "$as_me:$LINENO: checking for GNU ld" >&5
6794echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6795else
6796  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6797echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6798fi
6799if test "${lt_cv_path_LD+set}" = set; then
6800  echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802  if test -z "$LD"; then
6803  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6804  for ac_dir in $PATH; do
6805    IFS="$lt_save_ifs"
6806    test -z "$ac_dir" && ac_dir=.
6807    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6808      lt_cv_path_LD="$ac_dir/$ac_prog"
6809      # Check to see if the program is GNU ld.  I'd rather use --version,
6810      # but apparently some variants of GNU ld only accept -v.
6811      # Break only if it was the GNU/non-GNU ld that we prefer.
6812      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6813      *GNU* | *'with BFD'*)
6814        test "$with_gnu_ld" != no && break
6815        ;;
6816      *)
6817        test "$with_gnu_ld" != yes && break
6818        ;;
6819      esac
6820    fi
6821  done
6822  IFS="$lt_save_ifs"
6823else
6824  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6825fi
6826fi
6827
6828LD="$lt_cv_path_LD"
6829if test -n "$LD"; then
6830  echo "$as_me:$LINENO: result: $LD" >&5
6831echo "${ECHO_T}$LD" >&6
6832else
6833  echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835fi
6836test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6837echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6838   { (exit 1); exit 1; }; }
6839echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6840echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6841if test "${lt_cv_prog_gnu_ld+set}" = set; then
6842  echo $ECHO_N "(cached) $ECHO_C" >&6
6843else
6844  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6845case `$LD -v 2>&1 </dev/null` in
6846*GNU* | *'with BFD'*)
6847  lt_cv_prog_gnu_ld=yes
6848  ;;
6849*)
6850  lt_cv_prog_gnu_ld=no
6851  ;;
6852esac
6853fi
6854echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6855echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6856with_gnu_ld=$lt_cv_prog_gnu_ld
6857
6858
6859echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6860echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6861if test "${lt_cv_ld_reload_flag+set}" = set; then
6862  echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864  lt_cv_ld_reload_flag='-r'
6865fi
6866echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6867echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6868reload_flag=$lt_cv_ld_reload_flag
6869case $reload_flag in
6870"" | " "*) ;;
6871*) reload_flag=" $reload_flag" ;;
6872esac
6873reload_cmds='$LD$reload_flag -o $output$reload_objs'
6874case $host_os in
6875  darwin*)
6876    if test "$GCC" = yes; then
6877      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6878    else
6879      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880    fi
6881    ;;
6882esac
6883
6884echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6885echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6886if test "${lt_cv_path_NM+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  if test -n "$NM"; then
6890  # Let the user override the test.
6891  lt_cv_path_NM="$NM"
6892else
6893  lt_nm_to_check="${ac_tool_prefix}nm"
6894  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6895    lt_nm_to_check="$lt_nm_to_check nm"
6896  fi
6897  for lt_tmp_nm in $lt_nm_to_check; do
6898    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6899    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6900      IFS="$lt_save_ifs"
6901      test -z "$ac_dir" && ac_dir=.
6902      tmp_nm="$ac_dir/$lt_tmp_nm"
6903      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6904        # Check to see if the nm accepts a BSD-compat flag.
6905        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6906        #   nm: unknown option "B" ignored
6907        # Tru64's nm complains that /dev/null is an invalid object file
6908        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6909        */dev/null* | *'Invalid file or object type'*)
6910          lt_cv_path_NM="$tmp_nm -B"
6911          break
6912          ;;
6913        *)
6914          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6915          */dev/null*)
6916            lt_cv_path_NM="$tmp_nm -p"
6917            break
6918            ;;
6919          *)
6920            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6921            continue # so that we can try to find one that supports BSD flags
6922            ;;
6923          esac
6924          ;;
6925        esac
6926      fi
6927    done
6928    IFS="$lt_save_ifs"
6929  done
6930  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6931fi
6932fi
6933echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6934echo "${ECHO_T}$lt_cv_path_NM" >&6
6935NM="$lt_cv_path_NM"
6936
6937echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6938echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6939if test "${lt_cv_deplibs_check_method+set}" = set; then
6940  echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942  lt_cv_file_magic_cmd='$MAGIC_CMD'
6943lt_cv_file_magic_test_file=
6944lt_cv_deplibs_check_method='unknown'
6945# Need to set the preceding variable on all platforms that support
6946# interlibrary dependencies.
6947# 'none' -- dependencies not supported.
6948# `unknown' -- same as none, but documents that we really don't know.
6949# 'pass_all' -- all dependencies passed with no checks.
6950# 'test_compile' -- check by making test program.
6951# 'file_magic [[regex]]' -- check by looking for files in library path
6952# which responds to the $file_magic_cmd with a given extended regex.
6953# If you have `file' or equivalent on your system and you're not sure
6954# whether `pass_all' will *always* work, you probably want this one.
6955
6956case $host_os in
6957aix4* | aix5*)
6958  lt_cv_deplibs_check_method=pass_all
6959  ;;
6960
6961beos*)
6962  lt_cv_deplibs_check_method=pass_all
6963  ;;
6964
6965bsdi[45]*)
6966  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6967  lt_cv_file_magic_cmd='/usr/bin/file -L'
6968  lt_cv_file_magic_test_file=/shlib/libc.so
6969  ;;
6970
6971cygwin*)
6972  # func_win32_libid is a shell function defined in ltmain.sh
6973  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6974  lt_cv_file_magic_cmd='func_win32_libid'
6975  ;;
6976
6977mingw* | pw32*)
6978  # Base MSYS/MinGW do not provide the 'file' command needed by
6979  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6980  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6981  lt_cv_file_magic_cmd='$OBJDUMP -f'
6982  ;;
6983
6984darwin* | rhapsody*)
6985  lt_cv_deplibs_check_method=pass_all
6986  ;;
6987
6988freebsd* | kfreebsd*-gnu | dragonfly*)
6989  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6990    case $host_cpu in
6991    i*86 )
6992      # Not sure whether the presence of OpenBSD here was a mistake.
6993      # Let's accept both of them until this is cleared up.
6994      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6995      lt_cv_file_magic_cmd=/usr/bin/file
6996      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6997      ;;
6998    esac
6999  else
7000    lt_cv_deplibs_check_method=pass_all
7001  fi
7002  ;;
7003
7004gnu*)
7005  lt_cv_deplibs_check_method=pass_all
7006  ;;
7007
7008hpux10.20* | hpux11*)
7009  lt_cv_file_magic_cmd=/usr/bin/file
7010  case $host_cpu in
7011  ia64*)
7012    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7013    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7014    ;;
7015  hppa*64*)
7016    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]'
7017    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7018    ;;
7019  *)
7020    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7021    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7022    ;;
7023  esac
7024  ;;
7025
7026interix3*)
7027  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7028  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7029  ;;
7030
7031irix5* | irix6* | nonstopux*)
7032  case $LD in
7033  *-32|*"-32 ") libmagic=32-bit;;
7034  *-n32|*"-n32 ") libmagic=N32;;
7035  *-64|*"-64 ") libmagic=64-bit;;
7036  *) libmagic=never-match;;
7037  esac
7038  lt_cv_deplibs_check_method=pass_all
7039  ;;
7040
7041# This must be Linux ELF.
7042linux*)
7043  lt_cv_deplibs_check_method=pass_all
7044  ;;
7045
7046netbsd*)
7047  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7048    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7049  else
7050    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7051  fi
7052  ;;
7053
7054newos6*)
7055  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7056  lt_cv_file_magic_cmd=/usr/bin/file
7057  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7058  ;;
7059
7060nto-qnx*)
7061  lt_cv_deplibs_check_method=unknown
7062  ;;
7063
7064openbsd*)
7065  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7066    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7067  else
7068    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7069  fi
7070  ;;
7071
7072osf3* | osf4* | osf5*)
7073  lt_cv_deplibs_check_method=pass_all
7074  ;;
7075
7076solaris*)
7077  lt_cv_deplibs_check_method=pass_all
7078  ;;
7079
7080sysv4 | sysv4.3*)
7081  case $host_vendor in
7082  motorola)
7083    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]'
7084    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7085    ;;
7086  ncr)
7087    lt_cv_deplibs_check_method=pass_all
7088    ;;
7089  sequent)
7090    lt_cv_file_magic_cmd='/bin/file'
7091    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7092    ;;
7093  sni)
7094    lt_cv_file_magic_cmd='/bin/file'
7095    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7096    lt_cv_file_magic_test_file=/lib/libc.so
7097    ;;
7098  siemens)
7099    lt_cv_deplibs_check_method=pass_all
7100    ;;
7101  pc)
7102    lt_cv_deplibs_check_method=pass_all
7103    ;;
7104  esac
7105  ;;
7106
7107sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7108  lt_cv_deplibs_check_method=pass_all
7109  ;;
7110esac
7111
7112fi
7113echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7114echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7115file_magic_cmd=$lt_cv_file_magic_cmd
7116deplibs_check_method=$lt_cv_deplibs_check_method
7117test -z "$deplibs_check_method" && deplibs_check_method=unknown
7118
7119
7120
7121
7122# If no C compiler was specified, use CC.
7123LTCC=${LTCC-"$CC"}
7124
7125# If no C compiler flags were specified, use CFLAGS.
7126LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7127
7128# Allow CC to be a program name with arguments.
7129compiler=$CC
7130
7131# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7132if test "${enable_libtool_lock+set}" = set; then
7133  enableval="$enable_libtool_lock"
7134
7135fi;
7136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137
7138# Some flags need to be propagated to the compiler or linker for good
7139# libtool support.
7140case $host in
7141ia64-*-hpux*)
7142  # Find out which ABI we are using.
7143  echo 'int i;' > conftest.$ac_ext
7144  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145  (eval $ac_compile) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }; then
7149    case `/usr/bin/file conftest.$ac_objext` in
7150    *ELF-32*)
7151      HPUX_IA64_MODE="32"
7152      ;;
7153    *ELF-64*)
7154      HPUX_IA64_MODE="64"
7155      ;;
7156    esac
7157  fi
7158  rm -rf conftest*
7159  ;;
7160*-*-irix6*)
7161  # Find out which ABI we are using.
7162  echo '#line 7162 "configure"' > conftest.$ac_ext
7163  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164  (eval $ac_compile) 2>&5
7165  ac_status=$?
7166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167  (exit $ac_status); }; then
7168   if test "$lt_cv_prog_gnu_ld" = yes; then
7169    case `/usr/bin/file conftest.$ac_objext` in
7170    *32-bit*)
7171      LD="${LD-ld} -melf32bsmip"
7172      ;;
7173    *N32*)
7174      LD="${LD-ld} -melf32bmipn32"
7175      ;;
7176    *64-bit*)
7177      LD="${LD-ld} -melf64bmip"
7178      ;;
7179    esac
7180   else
7181    case `/usr/bin/file conftest.$ac_objext` in
7182    *32-bit*)
7183      LD="${LD-ld} -32"
7184      ;;
7185    *N32*)
7186      LD="${LD-ld} -n32"
7187      ;;
7188    *64-bit*)
7189      LD="${LD-ld} -64"
7190      ;;
7191    esac
7192   fi
7193  fi
7194  rm -rf conftest*
7195  ;;
7196
7197x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7198  # Find out which ABI we are using.
7199  echo 'int i;' > conftest.$ac_ext
7200  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201  (eval $ac_compile) 2>&5
7202  ac_status=$?
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); }; then
7205    case `/usr/bin/file conftest.o` in
7206    *32-bit*)
7207      case $host in
7208        x86_64-*linux*)
7209          LD="${LD-ld} -m elf_i386"
7210          ;;
7211        ppc64-*linux*|powerpc64-*linux*)
7212          LD="${LD-ld} -m elf32ppclinux"
7213          ;;
7214        s390x-*linux*)
7215          LD="${LD-ld} -m elf_s390"
7216          ;;
7217        sparc64-*linux*)
7218          LD="${LD-ld} -m elf32_sparc"
7219          ;;
7220      esac
7221      ;;
7222    *64-bit*)
7223      case $host in
7224        x86_64-*linux*)
7225          LD="${LD-ld} -m elf_x86_64"
7226          ;;
7227        ppc*-*linux*|powerpc*-*linux*)
7228          LD="${LD-ld} -m elf64ppc"
7229          ;;
7230        s390*-*linux*)
7231          LD="${LD-ld} -m elf64_s390"
7232          ;;
7233        sparc*-*linux*)
7234          LD="${LD-ld} -m elf64_sparc"
7235          ;;
7236      esac
7237      ;;
7238    esac
7239  fi
7240  rm -rf conftest*
7241  ;;
7242
7243*-*-sco3.2v5*)
7244  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7245  SAVE_CFLAGS="$CFLAGS"
7246  CFLAGS="$CFLAGS -belf"
7247  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7248echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7249if test "${lt_cv_cc_needs_belf+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252  ac_ext=c
7253ac_cpp='$CPP $CPPFLAGS'
7254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258     cat >conftest.$ac_ext <<_ACEOF
7259/* confdefs.h.  */
7260_ACEOF
7261cat confdefs.h >>conftest.$ac_ext
7262cat >>conftest.$ac_ext <<_ACEOF
7263/* end confdefs.h.  */
7264
7265#ifdef F77_DUMMY_MAIN
7266
7267#  ifdef __cplusplus
7268     extern "C"
7269#  endif
7270   int F77_DUMMY_MAIN() { return 1; }
7271
7272#endif
7273int
7274main ()
7275{
7276
7277  ;
7278  return 0;
7279}
7280_ACEOF
7281rm -f conftest.$ac_objext conftest$ac_exeext
7282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7283  (eval $ac_link) 2>conftest.er1
7284  ac_status=$?
7285  grep -v '^ *+' conftest.er1 >conftest.err
7286  rm -f conftest.er1
7287  cat conftest.err >&5
7288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289  (exit $ac_status); } &&
7290         { ac_try='test -z "$ac_c_werror_flag"
7291                         || test ! -s conftest.err'
7292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293  (eval $ac_try) 2>&5
7294  ac_status=$?
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); }; } &&
7297         { ac_try='test -s conftest$ac_exeext'
7298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299  (eval $ac_try) 2>&5
7300  ac_status=$?
7301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302  (exit $ac_status); }; }; then
7303  lt_cv_cc_needs_belf=yes
7304else
7305  echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308lt_cv_cc_needs_belf=no
7309fi
7310rm -f conftest.err conftest.$ac_objext \
7311      conftest$ac_exeext conftest.$ac_ext
7312     ac_ext=c
7313ac_cpp='$CPP $CPPFLAGS'
7314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316ac_compiler_gnu=$ac_cv_c_compiler_gnu
7317
7318fi
7319echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7320echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7321  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7322    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7323    CFLAGS="$SAVE_CFLAGS"
7324  fi
7325  ;;
7326sparc*-*solaris*)
7327  # Find out which ABI we are using.
7328  echo 'int i;' > conftest.$ac_ext
7329  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330  (eval $ac_compile) 2>&5
7331  ac_status=$?
7332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333  (exit $ac_status); }; then
7334    case `/usr/bin/file conftest.o` in
7335    *64-bit*)
7336      case $lt_cv_prog_gnu_ld in
7337      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7338      *)    LD="${LD-ld} -64" ;;
7339      esac
7340      ;;
7341    esac
7342  fi
7343  rm -rf conftest*
7344  ;;
7345
7346
7347esac
7348
7349need_locks="$enable_libtool_lock"
7350
7351
7352
7353for ac_header in dlfcn.h
7354do
7355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7356if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357  echo "$as_me:$LINENO: checking for $ac_header" >&5
7358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7359if eval "test \"\${$as_ac_Header+set}\" = set"; then
7360  echo $ECHO_N "(cached) $ECHO_C" >&6
7361fi
7362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7364else
7365  # Is the header compilable?
7366echo "$as_me:$LINENO: checking $ac_header usability" >&5
7367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7368cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374$ac_includes_default
7375#include <$ac_header>
7376_ACEOF
7377rm -f conftest.$ac_objext
7378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379  (eval $ac_compile) 2>conftest.er1
7380  ac_status=$?
7381  grep -v '^ *+' conftest.er1 >conftest.err
7382  rm -f conftest.er1
7383  cat conftest.err >&5
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); } &&
7386         { ac_try='test -z "$ac_c_werror_flag"
7387                         || test ! -s conftest.err'
7388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389  (eval $ac_try) 2>&5
7390  ac_status=$?
7391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392  (exit $ac_status); }; } &&
7393         { ac_try='test -s conftest.$ac_objext'
7394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395  (eval $ac_try) 2>&5
7396  ac_status=$?
7397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398  (exit $ac_status); }; }; then
7399  ac_header_compiler=yes
7400else
7401  echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404ac_header_compiler=no
7405fi
7406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408echo "${ECHO_T}$ac_header_compiler" >&6
7409
7410# Is the header present?
7411echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7413cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h.  */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h.  */
7419#include <$ac_header>
7420_ACEOF
7421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7422  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7423  ac_status=$?
7424  grep -v '^ *+' conftest.er1 >conftest.err
7425  rm -f conftest.er1
7426  cat conftest.err >&5
7427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428  (exit $ac_status); } >/dev/null; then
7429  if test -s conftest.err; then
7430    ac_cpp_err=$ac_c_preproc_warn_flag
7431    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7432  else
7433    ac_cpp_err=
7434  fi
7435else
7436  ac_cpp_err=yes
7437fi
7438if test -z "$ac_cpp_err"; then
7439  ac_header_preproc=yes
7440else
7441  echo "$as_me: failed program was:" >&5
7442sed 's/^/| /' conftest.$ac_ext >&5
7443
7444  ac_header_preproc=no
7445fi
7446rm -f conftest.err conftest.$ac_ext
7447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7448echo "${ECHO_T}$ac_header_preproc" >&6
7449
7450# So?  What about this header?
7451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7452  yes:no: )
7453    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7455    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7457    ac_header_preproc=yes
7458    ;;
7459  no:yes:* )
7460    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7462    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7463echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7464    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7466    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7467echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7468    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7470    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7472    (
7473      cat <<\_ASBOX
7474## --------------------------------------------------------------- ##
7475## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7476## --------------------------------------------------------------- ##
7477_ASBOX
7478    ) |
7479      sed "s/^/$as_me: WARNING:     /" >&2
7480    ;;
7481esac
7482echo "$as_me:$LINENO: checking for $ac_header" >&5
7483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7484if eval "test \"\${$as_ac_Header+set}\" = set"; then
7485  echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487  eval "$as_ac_Header=\$ac_header_preproc"
7488fi
7489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7491
7492fi
7493if test `eval echo '${'$as_ac_Header'}'` = yes; then
7494  cat >>confdefs.h <<_ACEOF
7495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496_ACEOF
7497
7498fi
7499
7500done
7501
7502ac_ext=cc
7503ac_cpp='$CXXCPP $CPPFLAGS'
7504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7507if test -n "$ac_tool_prefix"; then
7508  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7509  do
7510    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7512echo "$as_me:$LINENO: checking for $ac_word" >&5
7513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7514if test "${ac_cv_prog_CXX+set}" = set; then
7515  echo $ECHO_N "(cached) $ECHO_C" >&6
7516else
7517  if test -n "$CXX"; then
7518  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525  for ac_exec_ext in '' $ac_executable_extensions; do
7526  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532done
7533
7534fi
7535fi
7536CXX=$ac_cv_prog_CXX
7537if test -n "$CXX"; then
7538  echo "$as_me:$LINENO: result: $CXX" >&5
7539echo "${ECHO_T}$CXX" >&6
7540else
7541  echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
7543fi
7544
7545    test -n "$CXX" && break
7546  done
7547fi
7548if test -z "$CXX"; then
7549  ac_ct_CXX=$CXX
7550  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7551do
7552  # Extract the first word of "$ac_prog", so it can be a program name with args.
7553set dummy $ac_prog; ac_word=$2
7554echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7556if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7557  echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559  if test -n "$ac_ct_CXX"; then
7560  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565  IFS=$as_save_IFS
7566  test -z "$as_dir" && as_dir=.
7567  for ac_exec_ext in '' $ac_executable_extensions; do
7568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569    ac_cv_prog_ac_ct_CXX="$ac_prog"
7570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571    break 2
7572  fi
7573done
7574done
7575
7576fi
7577fi
7578ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7579if test -n "$ac_ct_CXX"; then
7580  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7581echo "${ECHO_T}$ac_ct_CXX" >&6
7582else
7583  echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585fi
7586
7587  test -n "$ac_ct_CXX" && break
7588done
7589test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7590
7591  CXX=$ac_ct_CXX
7592fi
7593
7594
7595# Provide some information about the compiler.
7596echo "$as_me:$LINENO:" \
7597     "checking for C++ compiler version" >&5
7598ac_compiler=`set X $ac_compile; echo $2`
7599{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7600  (eval $ac_compiler --version </dev/null >&5) 2>&5
7601  ac_status=$?
7602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603  (exit $ac_status); }
7604{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7605  (eval $ac_compiler -v </dev/null >&5) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }
7609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7610  (eval $ac_compiler -V </dev/null >&5) 2>&5
7611  ac_status=$?
7612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613  (exit $ac_status); }
7614
7615echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7616echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7617if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7618  echo $ECHO_N "(cached) $ECHO_C" >&6
7619else
7620  cat >conftest.$ac_ext <<_ACEOF
7621/* confdefs.h.  */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h.  */
7626
7627#ifdef F77_DUMMY_MAIN
7628
7629#  ifdef __cplusplus
7630     extern "C"
7631#  endif
7632   int F77_DUMMY_MAIN() { return 1; }
7633
7634#endif
7635int
7636main ()
7637{
7638#ifndef __GNUC__
7639       choke me
7640#endif
7641
7642  ;
7643  return 0;
7644}
7645_ACEOF
7646rm -f conftest.$ac_objext
7647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648  (eval $ac_compile) 2>conftest.er1
7649  ac_status=$?
7650  grep -v '^ *+' conftest.er1 >conftest.err
7651  rm -f conftest.er1
7652  cat conftest.err >&5
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); } &&
7655         { ac_try='test -z "$ac_cxx_werror_flag"
7656                         || test ! -s conftest.err'
7657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658  (eval $ac_try) 2>&5
7659  ac_status=$?
7660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661  (exit $ac_status); }; } &&
7662         { ac_try='test -s conftest.$ac_objext'
7663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664  (eval $ac_try) 2>&5
7665  ac_status=$?
7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667  (exit $ac_status); }; }; then
7668  ac_compiler_gnu=yes
7669else
7670  echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673ac_compiler_gnu=no
7674fi
7675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7676ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7677
7678fi
7679echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7680echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7681GXX=`test $ac_compiler_gnu = yes && echo yes`
7682ac_test_CXXFLAGS=${CXXFLAGS+set}
7683ac_save_CXXFLAGS=$CXXFLAGS
7684CXXFLAGS="-g"
7685echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7686echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7687if test "${ac_cv_prog_cxx_g+set}" = set; then
7688  echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690  cat >conftest.$ac_ext <<_ACEOF
7691/* confdefs.h.  */
7692_ACEOF
7693cat confdefs.h >>conftest.$ac_ext
7694cat >>conftest.$ac_ext <<_ACEOF
7695/* end confdefs.h.  */
7696
7697#ifdef F77_DUMMY_MAIN
7698
7699#  ifdef __cplusplus
7700     extern "C"
7701#  endif
7702   int F77_DUMMY_MAIN() { return 1; }
7703
7704#endif
7705int
7706main ()
7707{
7708
7709  ;
7710  return 0;
7711}
7712_ACEOF
7713rm -f conftest.$ac_objext
7714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7715  (eval $ac_compile) 2>conftest.er1
7716  ac_status=$?
7717  grep -v '^ *+' conftest.er1 >conftest.err
7718  rm -f conftest.er1
7719  cat conftest.err >&5
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); } &&
7722         { ac_try='test -z "$ac_cxx_werror_flag"
7723                         || test ! -s conftest.err'
7724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725  (eval $ac_try) 2>&5
7726  ac_status=$?
7727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728  (exit $ac_status); }; } &&
7729         { ac_try='test -s conftest.$ac_objext'
7730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731  (eval $ac_try) 2>&5
7732  ac_status=$?
7733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734  (exit $ac_status); }; }; then
7735  ac_cv_prog_cxx_g=yes
7736else
7737  echo "$as_me: failed program was:" >&5
7738sed 's/^/| /' conftest.$ac_ext >&5
7739
7740ac_cv_prog_cxx_g=no
7741fi
7742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7743fi
7744echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7745echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7746if test "$ac_test_CXXFLAGS" = set; then
7747  CXXFLAGS=$ac_save_CXXFLAGS
7748elif test $ac_cv_prog_cxx_g = yes; then
7749  if test "$GXX" = yes; then
7750    CXXFLAGS="-g -O2"
7751  else
7752    CXXFLAGS="-g"
7753  fi
7754else
7755  if test "$GXX" = yes; then
7756    CXXFLAGS="-O2"
7757  else
7758    CXXFLAGS=
7759  fi
7760fi
7761for ac_declaration in \
7762   '' \
7763   'extern "C" void std::exit (int) throw (); using std::exit;' \
7764   'extern "C" void std::exit (int); using std::exit;' \
7765   'extern "C" void exit (int) throw ();' \
7766   'extern "C" void exit (int);' \
7767   'void exit (int);'
7768do
7769  cat >conftest.$ac_ext <<_ACEOF
7770/* confdefs.h.  */
7771_ACEOF
7772cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h.  */
7775$ac_declaration
7776#include <stdlib.h>
7777#ifdef F77_DUMMY_MAIN
7778
7779#  ifdef __cplusplus
7780     extern "C"
7781#  endif
7782   int F77_DUMMY_MAIN() { return 1; }
7783
7784#endif
7785int
7786main ()
7787{
7788exit (42);
7789  ;
7790  return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext
7794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795  (eval $ac_compile) 2>conftest.er1
7796  ac_status=$?
7797  grep -v '^ *+' conftest.er1 >conftest.err
7798  rm -f conftest.er1
7799  cat conftest.err >&5
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); } &&
7802         { ac_try='test -z "$ac_cxx_werror_flag"
7803                         || test ! -s conftest.err'
7804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805  (eval $ac_try) 2>&5
7806  ac_status=$?
7807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808  (exit $ac_status); }; } &&
7809         { ac_try='test -s conftest.$ac_objext'
7810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811  (eval $ac_try) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); }; }; then
7815  :
7816else
7817  echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820continue
7821fi
7822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7823  cat >conftest.$ac_ext <<_ACEOF
7824/* confdefs.h.  */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h.  */
7829$ac_declaration
7830#ifdef F77_DUMMY_MAIN
7831
7832#  ifdef __cplusplus
7833     extern "C"
7834#  endif
7835   int F77_DUMMY_MAIN() { return 1; }
7836
7837#endif
7838int
7839main ()
7840{
7841exit (42);
7842  ;
7843  return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext
7847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848  (eval $ac_compile) 2>conftest.er1
7849  ac_status=$?
7850  grep -v '^ *+' conftest.er1 >conftest.err
7851  rm -f conftest.er1
7852  cat conftest.err >&5
7853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854  (exit $ac_status); } &&
7855         { ac_try='test -z "$ac_cxx_werror_flag"
7856                         || test ! -s conftest.err'
7857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858  (eval $ac_try) 2>&5
7859  ac_status=$?
7860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861  (exit $ac_status); }; } &&
7862         { ac_try='test -s conftest.$ac_objext'
7863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864  (eval $ac_try) 2>&5
7865  ac_status=$?
7866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867  (exit $ac_status); }; }; then
7868  break
7869else
7870  echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873fi
7874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7875done
7876rm -f conftest*
7877if test -n "$ac_declaration"; then
7878  echo '#ifdef __cplusplus' >>confdefs.h
7879  echo $ac_declaration      >>confdefs.h
7880  echo '#endif'             >>confdefs.h
7881fi
7882
7883ac_ext=cc
7884ac_cpp='$CXXCPP $CPPFLAGS'
7885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7888
7889depcc="$CXX"  am_compiler_list=
7890
7891echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7892echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7893if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7894  echo $ECHO_N "(cached) $ECHO_C" >&6
7895else
7896  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7897  # We make a subdir and do the tests there.  Otherwise we can end up
7898  # making bogus files that we don't know about and never remove.  For
7899  # instance it was reported that on HP-UX the gcc test will end up
7900  # making a dummy file named `D' -- because `-MD' means `put the output
7901  # in D'.
7902  mkdir conftest.dir
7903  # Copy depcomp to subdir because otherwise we won't find it if we're
7904  # using a relative directory.
7905  cp "$am_depcomp" conftest.dir
7906  cd conftest.dir
7907  # We will build objects and dependencies in a subdirectory because
7908  # it helps to detect inapplicable dependency modes.  For instance
7909  # both Tru64's cc and ICC support -MD to output dependencies as a
7910  # side effect of compilation, but ICC will put the dependencies in
7911  # the current directory while Tru64 will put them in the object
7912  # directory.
7913  mkdir sub
7914
7915  am_cv_CXX_dependencies_compiler_type=none
7916  if test "$am_compiler_list" = ""; then
7917     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7918  fi
7919  for depmode in $am_compiler_list; do
7920    # Setup a source with many dependencies, because some compilers
7921    # like to wrap large dependency lists on column 80 (with \), and
7922    # we should not choose a depcomp mode which is confused by this.
7923    #
7924    # We need to recreate these files for each test, as the compiler may
7925    # overwrite some of them when testing with obscure command lines.
7926    # This happens at least with the AIX C compiler.
7927    : > sub/conftest.c
7928    for i in 1 2 3 4 5 6; do
7929      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7930      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7931      # Solaris 8's {/usr,}/bin/sh.
7932      touch sub/conftst$i.h
7933    done
7934    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7935
7936    case $depmode in
7937    nosideeffect)
7938      # after this tag, mechanisms are not by side-effect, so they'll
7939      # only be used when explicitly requested
7940      if test "x$enable_dependency_tracking" = xyes; then
7941        continue
7942      else
7943        break
7944      fi
7945      ;;
7946    none) break ;;
7947    esac
7948    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7949    # mode.  It turns out that the SunPro C++ compiler does not properly
7950    # handle `-M -o', and we need to detect this.
7951    if depmode=$depmode \
7952       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7953       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7954       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7955         >/dev/null 2>conftest.err &&
7956       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7957       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7958       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7959      # icc doesn't choke on unknown options, it will just issue warnings
7960      # or remarks (even with -Werror).  So we grep stderr for any message
7961      # that says an option was ignored or not supported.
7962      # When given -MP, icc 7.0 and 7.1 complain thusly:
7963      #   icc: Command line warning: ignoring option '-M'; no argument required
7964      # The diagnosis changed in icc 8.0:
7965      #   icc: Command line remark: option '-MP' not supported
7966      if (grep 'ignoring option' conftest.err ||
7967          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7968        am_cv_CXX_dependencies_compiler_type=$depmode
7969        break
7970      fi
7971    fi
7972  done
7973
7974  cd ..
7975  rm -rf conftest.dir
7976else
7977  am_cv_CXX_dependencies_compiler_type=none
7978fi
7979
7980fi
7981echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7982echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7983CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7984
7985
7986
7987if
7988  test "x$enable_dependency_tracking" != xno \
7989  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7990  am__fastdepCXX_TRUE=
7991  am__fastdepCXX_FALSE='#'
7992else
7993  am__fastdepCXX_TRUE='#'
7994  am__fastdepCXX_FALSE=
7995fi
7996
7997
7998
7999
8000if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8001    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8002    (test "X$CXX" != "Xg++"))) ; then
8003  ac_ext=cc
8004ac_cpp='$CXXCPP $CPPFLAGS'
8005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8008echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8009echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8010if test -z "$CXXCPP"; then
8011  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8012  echo $ECHO_N "(cached) $ECHO_C" >&6
8013else
8014      # Double quotes because CXXCPP needs to be expanded
8015    for CXXCPP in "$CXX -E" "/lib/cpp"
8016    do
8017      ac_preproc_ok=false
8018for ac_cxx_preproc_warn_flag in '' yes
8019do
8020  # Use a header file that comes with gcc, so configuring glibc
8021  # with a fresh cross-compiler works.
8022  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8023  # <limits.h> exists even on freestanding compilers.
8024  # On the NeXT, cc -E runs the code through the compiler's parser,
8025  # not just through cpp. "Syntax error" is here to catch this case.
8026  cat >conftest.$ac_ext <<_ACEOF
8027/* confdefs.h.  */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h.  */
8032#ifdef __STDC__
8033# include <limits.h>
8034#else
8035# include <assert.h>
8036#endif
8037                     Syntax error
8038_ACEOF
8039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8041  ac_status=$?
8042  grep -v '^ *+' conftest.er1 >conftest.err
8043  rm -f conftest.er1
8044  cat conftest.err >&5
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); } >/dev/null; then
8047  if test -s conftest.err; then
8048    ac_cpp_err=$ac_cxx_preproc_warn_flag
8049    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8050  else
8051    ac_cpp_err=
8052  fi
8053else
8054  ac_cpp_err=yes
8055fi
8056if test -z "$ac_cpp_err"; then
8057  :
8058else
8059  echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062  # Broken: fails on valid input.
8063continue
8064fi
8065rm -f conftest.err conftest.$ac_ext
8066
8067  # OK, works on sane cases.  Now check whether non-existent headers
8068  # can be detected and how.
8069  cat >conftest.$ac_ext <<_ACEOF
8070/* confdefs.h.  */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h.  */
8075#include <ac_nonexistent.h>
8076_ACEOF
8077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8079  ac_status=$?
8080  grep -v '^ *+' conftest.er1 >conftest.err
8081  rm -f conftest.er1
8082  cat conftest.err >&5
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); } >/dev/null; then
8085  if test -s conftest.err; then
8086    ac_cpp_err=$ac_cxx_preproc_warn_flag
8087    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8088  else
8089    ac_cpp_err=
8090  fi
8091else
8092  ac_cpp_err=yes
8093fi
8094if test -z "$ac_cpp_err"; then
8095  # Broken: success on invalid input.
8096continue
8097else
8098  echo "$as_me: failed program was:" >&5
8099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101  # Passes both tests.
8102ac_preproc_ok=:
8103break
8104fi
8105rm -f conftest.err conftest.$ac_ext
8106
8107done
8108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8109rm -f conftest.err conftest.$ac_ext
8110if $ac_preproc_ok; then
8111  break
8112fi
8113
8114    done
8115    ac_cv_prog_CXXCPP=$CXXCPP
8116
8117fi
8118  CXXCPP=$ac_cv_prog_CXXCPP
8119else
8120  ac_cv_prog_CXXCPP=$CXXCPP
8121fi
8122echo "$as_me:$LINENO: result: $CXXCPP" >&5
8123echo "${ECHO_T}$CXXCPP" >&6
8124ac_preproc_ok=false
8125for ac_cxx_preproc_warn_flag in '' yes
8126do
8127  # Use a header file that comes with gcc, so configuring glibc
8128  # with a fresh cross-compiler works.
8129  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8130  # <limits.h> exists even on freestanding compilers.
8131  # On the NeXT, cc -E runs the code through the compiler's parser,
8132  # not just through cpp. "Syntax error" is here to catch this case.
8133  cat >conftest.$ac_ext <<_ACEOF
8134/* confdefs.h.  */
8135_ACEOF
8136cat confdefs.h >>conftest.$ac_ext
8137cat >>conftest.$ac_ext <<_ACEOF
8138/* end confdefs.h.  */
8139#ifdef __STDC__
8140# include <limits.h>
8141#else
8142# include <assert.h>
8143#endif
8144                     Syntax error
8145_ACEOF
8146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8147  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8148  ac_status=$?
8149  grep -v '^ *+' conftest.er1 >conftest.err
8150  rm -f conftest.er1
8151  cat conftest.err >&5
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); } >/dev/null; then
8154  if test -s conftest.err; then
8155    ac_cpp_err=$ac_cxx_preproc_warn_flag
8156    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8157  else
8158    ac_cpp_err=
8159  fi
8160else
8161  ac_cpp_err=yes
8162fi
8163if test -z "$ac_cpp_err"; then
8164  :
8165else
8166  echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169  # Broken: fails on valid input.
8170continue
8171fi
8172rm -f conftest.err conftest.$ac_ext
8173
8174  # OK, works on sane cases.  Now check whether non-existent headers
8175  # can be detected and how.
8176  cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h.  */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h.  */
8182#include <ac_nonexistent.h>
8183_ACEOF
8184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8185  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8186  ac_status=$?
8187  grep -v '^ *+' conftest.er1 >conftest.err
8188  rm -f conftest.er1
8189  cat conftest.err >&5
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); } >/dev/null; then
8192  if test -s conftest.err; then
8193    ac_cpp_err=$ac_cxx_preproc_warn_flag
8194    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8195  else
8196    ac_cpp_err=
8197  fi
8198else
8199  ac_cpp_err=yes
8200fi
8201if test -z "$ac_cpp_err"; then
8202  # Broken: success on invalid input.
8203continue
8204else
8205  echo "$as_me: failed program was:" >&5
8206sed 's/^/| /' conftest.$ac_ext >&5
8207
8208  # Passes both tests.
8209ac_preproc_ok=:
8210break
8211fi
8212rm -f conftest.err conftest.$ac_ext
8213
8214done
8215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8216rm -f conftest.err conftest.$ac_ext
8217if $ac_preproc_ok; then
8218  :
8219else
8220  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8221See \`config.log' for more details." >&5
8222echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8223See \`config.log' for more details." >&2;}
8224   { (exit 1); exit 1; }; }
8225fi
8226
8227ac_ext=cc
8228ac_cpp='$CXXCPP $CPPFLAGS'
8229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8232
8233fi
8234
8235
8236
8237# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8238
8239# find the maximum length of command line arguments
8240echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8241echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8242if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8243  echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245    i=0
8246  teststring="ABCD"
8247
8248  case $build_os in
8249  msdosdjgpp*)
8250    # On DJGPP, this test can blow up pretty badly due to problems in libc
8251    # (any single argument exceeding 2000 bytes causes a buffer overrun
8252    # during glob expansion).  Even if it were fixed, the result of this
8253    # check would be larger than it should be.
8254    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8255    ;;
8256
8257  gnu*)
8258    # Under GNU Hurd, this test is not required because there is
8259    # no limit to the length of command line arguments.
8260    # Libtool will interpret -1 as no limit whatsoever
8261    lt_cv_sys_max_cmd_len=-1;
8262    ;;
8263
8264  cygwin* | mingw*)
8265    # On Win9x/ME, this test blows up -- it succeeds, but takes
8266    # about 5 minutes as the teststring grows exponentially.
8267    # Worse, since 9x/ME are not pre-emptively multitasking,
8268    # you end up with a "frozen" computer, even though with patience
8269    # the test eventually succeeds (with a max line length of 256k).
8270    # Instead, let's just punt: use the minimum linelength reported by
8271    # all of the supported platforms: 8192 (on NT/2K/XP).
8272    lt_cv_sys_max_cmd_len=8192;
8273    ;;
8274
8275  amigaos*)
8276    # On AmigaOS with pdksh, this test takes hours, literally.
8277    # So we just punt and use a minimum line length of 8192.
8278    lt_cv_sys_max_cmd_len=8192;
8279    ;;
8280
8281  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8282    # This has been around since 386BSD, at least.  Likely further.
8283    if test -x /sbin/sysctl; then
8284      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8285    elif test -x /usr/sbin/sysctl; then
8286      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8287    else
8288      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8289    fi
8290    # And add a safety zone
8291    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8292    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8293    ;;
8294
8295  interix*)
8296    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8297    lt_cv_sys_max_cmd_len=196608
8298    ;;
8299
8300  osf*)
8301    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8302    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8303    # nice to cause kernel panics so lets avoid the loop below.
8304    # First set a reasonable default.
8305    lt_cv_sys_max_cmd_len=16384
8306    #
8307    if test -x /sbin/sysconfig; then
8308      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8309        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8310      esac
8311    fi
8312    ;;
8313  sco3.2v5*)
8314    lt_cv_sys_max_cmd_len=102400
8315    ;;
8316  sysv5* | sco5v6* | sysv4.2uw2*)
8317    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8318    if test -n "$kargmax"; then
8319      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8320    else
8321      lt_cv_sys_max_cmd_len=32768
8322    fi
8323    ;;
8324  *)
8325    # If test is not a shell built-in, we'll probably end up computing a
8326    # maximum length that is only half of the actual maximum length, but
8327    # we can't tell.
8328    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8329    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8330               = "XX$teststring") >/dev/null 2>&1 &&
8331            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8332            lt_cv_sys_max_cmd_len=$new_result &&
8333            test $i != 17 # 1/2 MB should be enough
8334    do
8335      i=`expr $i + 1`
8336      teststring=$teststring$teststring
8337    done
8338    teststring=
8339    # Add a significant safety factor because C++ compilers can tack on massive
8340    # amounts of additional arguments before passing them to the linker.
8341    # It appears as though 1/2 is a usable value.
8342    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8343    ;;
8344  esac
8345
8346fi
8347
8348if test -n $lt_cv_sys_max_cmd_len ; then
8349  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8350echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8351else
8352  echo "$as_me:$LINENO: result: none" >&5
8353echo "${ECHO_T}none" >&6
8354fi
8355
8356
8357
8358
8359# Check for command to grab the raw symbol name followed by C symbol from nm.
8360echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8361echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8362if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8363  echo $ECHO_N "(cached) $ECHO_C" >&6
8364else
8365
8366# These are sane defaults that work on at least a few old systems.
8367# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8368
8369# Character class describing NM global symbol codes.
8370symcode='[BCDEGRST]'
8371
8372# Regexp to match symbols that can be accessed directly from C.
8373sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8374
8375# Transform an extracted symbol line into a proper C declaration
8376lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8377
8378# Transform an extracted symbol line into symbol name and symbol address
8379lt_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'"
8380
8381# Define system-specific variables.
8382case $host_os in
8383aix*)
8384  symcode='[BCDT]'
8385  ;;
8386cygwin* | mingw* | pw32*)
8387  symcode='[ABCDGISTW]'
8388  ;;
8389hpux*) # Its linker distinguishes data from code symbols
8390  if test "$host_cpu" = ia64; then
8391    symcode='[ABCDEGRST]'
8392  fi
8393  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8394  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'"
8395  ;;
8396linux*)
8397  if test "$host_cpu" = ia64; then
8398    symcode='[ABCDGIRSTW]'
8399    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8400    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'"
8401  fi
8402  ;;
8403irix* | nonstopux*)
8404  symcode='[BCDEGRST]'
8405  ;;
8406osf*)
8407  symcode='[BCDEGQRST]'
8408  ;;
8409solaris*)
8410  symcode='[BDRT]'
8411  ;;
8412sco3.2v5*)
8413  symcode='[DT]'
8414  ;;
8415sysv4.2uw2*)
8416  symcode='[DT]'
8417  ;;
8418sysv5* | sco5v6* | unixware* | OpenUNIX*)
8419  symcode='[ABDT]'
8420  ;;
8421sysv4)
8422  symcode='[DFNSTU]'
8423  ;;
8424esac
8425
8426# Handle CRLF in mingw tool chain
8427opt_cr=
8428case $build_os in
8429mingw*)
8430  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8431  ;;
8432esac
8433
8434# If we're using GNU nm, then use its standard symbol codes.
8435case `$NM -V 2>&1` in
8436*GNU* | *'with BFD'*)
8437  symcode='[ABCDGIRSTW]' ;;
8438esac
8439
8440# Try without a prefix undercore, then with it.
8441for ac_symprfx in "" "_"; do
8442
8443  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8444  symxfrm="\\1 $ac_symprfx\\2 \\2"
8445
8446  # Write the raw and C identifiers.
8447  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8448
8449  # Check to see that the pipe works correctly.
8450  pipe_works=no
8451
8452  rm -f conftest*
8453  cat > conftest.$ac_ext <<EOF
8454#ifdef __cplusplus
8455extern "C" {
8456#endif
8457char nm_test_var;
8458void nm_test_func(){}
8459#ifdef __cplusplus
8460}
8461#endif
8462int main(){nm_test_var='a';nm_test_func();return(0);}
8463EOF
8464
8465  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8466  (eval $ac_compile) 2>&5
8467  ac_status=$?
8468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469  (exit $ac_status); }; then
8470    # Now try to grab the symbols.
8471    nlist=conftest.nm
8472    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8473  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8474  ac_status=$?
8475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476  (exit $ac_status); } && test -s "$nlist"; then
8477      # Try sorting and uniquifying the output.
8478      if sort "$nlist" | uniq > "$nlist"T; then
8479        mv -f "$nlist"T "$nlist"
8480      else
8481        rm -f "$nlist"T
8482      fi
8483
8484      # Make sure that we snagged all the symbols we need.
8485      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8486        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8487          cat <<EOF > conftest.$ac_ext
8488#ifdef __cplusplus
8489extern "C" {
8490#endif
8491
8492EOF
8493          # Now generate the symbol file.
8494          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8495
8496          cat <<EOF >> conftest.$ac_ext
8497#if defined (__STDC__) && __STDC__
8498# define lt_ptr_t void *
8499#else
8500# define lt_ptr_t char *
8501# define const
8502#endif
8503
8504/* The mapping between symbol names and symbols. */
8505const struct {
8506  const char *name;
8507  lt_ptr_t address;
8508}
8509lt_preloaded_symbols[] =
8510{
8511EOF
8512          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8513          cat <<\EOF >> conftest.$ac_ext
8514  {0, (lt_ptr_t) 0}
8515};
8516
8517#ifdef __cplusplus
8518}
8519#endif
8520EOF
8521          # Now try linking the two files.
8522          mv conftest.$ac_objext conftstm.$ac_objext
8523          lt_save_LIBS="$LIBS"
8524          lt_save_CFLAGS="$CFLAGS"
8525          LIBS="conftstm.$ac_objext"
8526          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8527          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528  (eval $ac_link) 2>&5
8529  ac_status=$?
8530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8532            pipe_works=yes
8533          fi
8534          LIBS="$lt_save_LIBS"
8535          CFLAGS="$lt_save_CFLAGS"
8536        else
8537          echo "cannot find nm_test_func in $nlist" >&5
8538        fi
8539      else
8540        echo "cannot find nm_test_var in $nlist" >&5
8541      fi
8542    else
8543      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8544    fi
8545  else
8546    echo "$progname: failed program was:" >&5
8547    cat conftest.$ac_ext >&5
8548  fi
8549  rm -f conftest* conftst*
8550
8551  # Do not use the global_symbol_pipe unless it works.
8552  if test "$pipe_works" = yes; then
8553    break
8554  else
8555    lt_cv_sys_global_symbol_pipe=
8556  fi
8557done
8558
8559fi
8560
8561if test -z "$lt_cv_sys_global_symbol_pipe"; then
8562  lt_cv_sys_global_symbol_to_cdecl=
8563fi
8564if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8565  echo "$as_me:$LINENO: result: failed" >&5
8566echo "${ECHO_T}failed" >&6
8567else
8568  echo "$as_me:$LINENO: result: ok" >&5
8569echo "${ECHO_T}ok" >&6
8570fi
8571
8572echo "$as_me:$LINENO: checking for objdir" >&5
8573echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8574if test "${lt_cv_objdir+set}" = set; then
8575  echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577  rm -f .libs 2>/dev/null
8578mkdir .libs 2>/dev/null
8579if test -d .libs; then
8580  lt_cv_objdir=.libs
8581else
8582  # MS-DOS does not allow filenames that begin with a dot.
8583  lt_cv_objdir=_libs
8584fi
8585rmdir .libs 2>/dev/null
8586fi
8587echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8588echo "${ECHO_T}$lt_cv_objdir" >&6
8589objdir=$lt_cv_objdir
8590
8591
8592
8593
8594
8595case $host_os in
8596aix3*)
8597  # AIX sometimes has problems with the GCC collect2 program.  For some
8598  # reason, if we set the COLLECT_NAMES environment variable, the problems
8599  # vanish in a puff of smoke.
8600  if test "X${COLLECT_NAMES+set}" != Xset; then
8601    COLLECT_NAMES=
8602    export COLLECT_NAMES
8603  fi
8604  ;;
8605esac
8606
8607# Sed substitution that helps us do robust quoting.  It backslashifies
8608# metacharacters that are still active within double-quoted strings.
8609Xsed='sed -e 1s/^X//'
8610sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8611
8612# Same as above, but do not quote variable references.
8613double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8614
8615# Sed substitution to delay expansion of an escaped shell variable in a
8616# double_quote_subst'ed string.
8617delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8618
8619# Sed substitution to avoid accidental globbing in evaled expressions
8620no_glob_subst='s/\*/\\\*/g'
8621
8622# Constants:
8623rm="rm -f"
8624
8625# Global variables:
8626default_ofile=libtool
8627can_build_shared=yes
8628
8629# All known linkers require a `.a' archive for static linking (except MSVC,
8630# which needs '.lib').
8631libext=a
8632ltmain="$ac_aux_dir/ltmain.sh"
8633ofile="$default_ofile"
8634with_gnu_ld="$lt_cv_prog_gnu_ld"
8635
8636if test -n "$ac_tool_prefix"; then
8637  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8638set dummy ${ac_tool_prefix}ar; ac_word=$2
8639echo "$as_me:$LINENO: checking for $ac_word" >&5
8640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8641if test "${ac_cv_prog_AR+set}" = set; then
8642  echo $ECHO_N "(cached) $ECHO_C" >&6
8643else
8644  if test -n "$AR"; then
8645  ac_cv_prog_AR="$AR" # Let the user override the test.
8646else
8647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650  IFS=$as_save_IFS
8651  test -z "$as_dir" && as_dir=.
8652  for ac_exec_ext in '' $ac_executable_extensions; do
8653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654    ac_cv_prog_AR="${ac_tool_prefix}ar"
8655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8656    break 2
8657  fi
8658done
8659done
8660
8661fi
8662fi
8663AR=$ac_cv_prog_AR
8664if test -n "$AR"; then
8665  echo "$as_me:$LINENO: result: $AR" >&5
8666echo "${ECHO_T}$AR" >&6
8667else
8668  echo "$as_me:$LINENO: result: no" >&5
8669echo "${ECHO_T}no" >&6
8670fi
8671
8672fi
8673if test -z "$ac_cv_prog_AR"; then
8674  ac_ct_AR=$AR
8675  # Extract the first word of "ar", so it can be a program name with args.
8676set dummy ar; ac_word=$2
8677echo "$as_me:$LINENO: checking for $ac_word" >&5
8678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8679if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8680  echo $ECHO_N "(cached) $ECHO_C" >&6
8681else
8682  if test -n "$ac_ct_AR"; then
8683  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8684else
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688  IFS=$as_save_IFS
8689  test -z "$as_dir" && as_dir=.
8690  for ac_exec_ext in '' $ac_executable_extensions; do
8691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692    ac_cv_prog_ac_ct_AR="ar"
8693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694    break 2
8695  fi
8696done
8697done
8698
8699  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8700fi
8701fi
8702ac_ct_AR=$ac_cv_prog_ac_ct_AR
8703if test -n "$ac_ct_AR"; then
8704  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8705echo "${ECHO_T}$ac_ct_AR" >&6
8706else
8707  echo "$as_me:$LINENO: result: no" >&5
8708echo "${ECHO_T}no" >&6
8709fi
8710
8711  AR=$ac_ct_AR
8712else
8713  AR="$ac_cv_prog_AR"
8714fi
8715
8716if test -n "$ac_tool_prefix"; then
8717  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8718set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8719echo "$as_me:$LINENO: checking for $ac_word" >&5
8720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8721if test "${ac_cv_prog_RANLIB+set}" = set; then
8722  echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724  if test -n "$RANLIB"; then
8725  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8726else
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730  IFS=$as_save_IFS
8731  test -z "$as_dir" && as_dir=.
8732  for ac_exec_ext in '' $ac_executable_extensions; do
8733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8736    break 2
8737  fi
8738done
8739done
8740
8741fi
8742fi
8743RANLIB=$ac_cv_prog_RANLIB
8744if test -n "$RANLIB"; then
8745  echo "$as_me:$LINENO: result: $RANLIB" >&5
8746echo "${ECHO_T}$RANLIB" >&6
8747else
8748  echo "$as_me:$LINENO: result: no" >&5
8749echo "${ECHO_T}no" >&6
8750fi
8751
8752fi
8753if test -z "$ac_cv_prog_RANLIB"; then
8754  ac_ct_RANLIB=$RANLIB
8755  # Extract the first word of "ranlib", so it can be a program name with args.
8756set dummy ranlib; ac_word=$2
8757echo "$as_me:$LINENO: checking for $ac_word" >&5
8758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8759if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8760  echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762  if test -n "$ac_ct_RANLIB"; then
8763  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8764else
8765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768  IFS=$as_save_IFS
8769  test -z "$as_dir" && as_dir=.
8770  for ac_exec_ext in '' $ac_executable_extensions; do
8771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8772    ac_cv_prog_ac_ct_RANLIB="ranlib"
8773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8774    break 2
8775  fi
8776done
8777done
8778
8779  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8780fi
8781fi
8782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8783if test -n "$ac_ct_RANLIB"; then
8784  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8785echo "${ECHO_T}$ac_ct_RANLIB" >&6
8786else
8787  echo "$as_me:$LINENO: result: no" >&5
8788echo "${ECHO_T}no" >&6
8789fi
8790
8791  RANLIB=$ac_ct_RANLIB
8792else
8793  RANLIB="$ac_cv_prog_RANLIB"
8794fi
8795
8796if test -n "$ac_tool_prefix"; then
8797  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8798set dummy ${ac_tool_prefix}strip; ac_word=$2
8799echo "$as_me:$LINENO: checking for $ac_word" >&5
8800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8801if test "${ac_cv_prog_STRIP+set}" = set; then
8802  echo $ECHO_N "(cached) $ECHO_C" >&6
8803else
8804  if test -n "$STRIP"; then
8805  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8806else
8807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $PATH
8809do
8810  IFS=$as_save_IFS
8811  test -z "$as_dir" && as_dir=.
8812  for ac_exec_ext in '' $ac_executable_extensions; do
8813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816    break 2
8817  fi
8818done
8819done
8820
8821fi
8822fi
8823STRIP=$ac_cv_prog_STRIP
8824if test -n "$STRIP"; then
8825  echo "$as_me:$LINENO: result: $STRIP" >&5
8826echo "${ECHO_T}$STRIP" >&6
8827else
8828  echo "$as_me:$LINENO: result: no" >&5
8829echo "${ECHO_T}no" >&6
8830fi
8831
8832fi
8833if test -z "$ac_cv_prog_STRIP"; then
8834  ac_ct_STRIP=$STRIP
8835  # Extract the first word of "strip", so it can be a program name with args.
8836set dummy strip; ac_word=$2
8837echo "$as_me:$LINENO: checking for $ac_word" >&5
8838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8839if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8840  echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842  if test -n "$ac_ct_STRIP"; then
8843  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8844else
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848  IFS=$as_save_IFS
8849  test -z "$as_dir" && as_dir=.
8850  for ac_exec_ext in '' $ac_executable_extensions; do
8851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852    ac_cv_prog_ac_ct_STRIP="strip"
8853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854    break 2
8855  fi
8856done
8857done
8858
8859  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8860fi
8861fi
8862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8863if test -n "$ac_ct_STRIP"; then
8864  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8865echo "${ECHO_T}$ac_ct_STRIP" >&6
8866else
8867  echo "$as_me:$LINENO: result: no" >&5
8868echo "${ECHO_T}no" >&6
8869fi
8870
8871  STRIP=$ac_ct_STRIP
8872else
8873  STRIP="$ac_cv_prog_STRIP"
8874fi
8875
8876
8877old_CC="$CC"
8878old_CFLAGS="$CFLAGS"
8879
8880# Set sane defaults for various variables
8881test -z "$AR" && AR=ar
8882test -z "$AR_FLAGS" && AR_FLAGS=cru
8883test -z "$AS" && AS=as
8884test -z "$CC" && CC=cc
8885test -z "$LTCC" && LTCC=$CC
8886test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8887test -z "$DLLTOOL" && DLLTOOL=dlltool
8888test -z "$LD" && LD=ld
8889test -z "$LN_S" && LN_S="ln -s"
8890test -z "$MAGIC_CMD" && MAGIC_CMD=file
8891test -z "$NM" && NM=nm
8892test -z "$SED" && SED=sed
8893test -z "$OBJDUMP" && OBJDUMP=objdump
8894test -z "$RANLIB" && RANLIB=:
8895test -z "$STRIP" && STRIP=:
8896test -z "$ac_objext" && ac_objext=o
8897
8898# Determine commands to create old-style static archives.
8899old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8900old_postinstall_cmds='chmod 644 $oldlib'
8901old_postuninstall_cmds=
8902
8903if test -n "$RANLIB"; then
8904  case $host_os in
8905  openbsd*)
8906    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8907    ;;
8908  *)
8909    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8910    ;;
8911  esac
8912  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8913fi
8914
8915for cc_temp in $compiler""; do
8916  case $cc_temp in
8917    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8918    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8919    \-*) ;;
8920    *) break;;
8921  esac
8922done
8923cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8924
8925
8926# Only perform the check for file, if the check method requires it
8927case $deplibs_check_method in
8928file_magic*)
8929  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8930    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8931echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8932if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8933  echo $ECHO_N "(cached) $ECHO_C" >&6
8934else
8935  case $MAGIC_CMD in
8936[\\/*] |  ?:[\\/]*)
8937  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8938  ;;
8939*)
8940  lt_save_MAGIC_CMD="$MAGIC_CMD"
8941  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8942  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8943  for ac_dir in $ac_dummy; do
8944    IFS="$lt_save_ifs"
8945    test -z "$ac_dir" && ac_dir=.
8946    if test -f $ac_dir/${ac_tool_prefix}file; then
8947      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8948      if test -n "$file_magic_test_file"; then
8949        case $deplibs_check_method in
8950        "file_magic "*)
8951          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8952          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8953          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8954            $EGREP "$file_magic_regex" > /dev/null; then
8955            :
8956          else
8957            cat <<EOF 1>&2
8958
8959*** Warning: the command libtool uses to detect shared libraries,
8960*** $file_magic_cmd, produces output that libtool cannot recognize.
8961*** The result is that libtool may fail to recognize shared libraries
8962*** as such.  This will affect the creation of libtool libraries that
8963*** depend on shared libraries, but programs linked with such libtool
8964*** libraries will work regardless of this problem.  Nevertheless, you
8965*** may want to report the problem to your system manager and/or to
8966*** bug-libtool@gnu.org
8967
8968EOF
8969          fi ;;
8970        esac
8971      fi
8972      break
8973    fi
8974  done
8975  IFS="$lt_save_ifs"
8976  MAGIC_CMD="$lt_save_MAGIC_CMD"
8977  ;;
8978esac
8979fi
8980
8981MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8982if test -n "$MAGIC_CMD"; then
8983  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8984echo "${ECHO_T}$MAGIC_CMD" >&6
8985else
8986  echo "$as_me:$LINENO: result: no" >&5
8987echo "${ECHO_T}no" >&6
8988fi
8989
8990if test -z "$lt_cv_path_MAGIC_CMD"; then
8991  if test -n "$ac_tool_prefix"; then
8992    echo "$as_me:$LINENO: checking for file" >&5
8993echo $ECHO_N "checking for file... $ECHO_C" >&6
8994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8995  echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997  case $MAGIC_CMD in
8998[\\/*] |  ?:[\\/]*)
8999  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9000  ;;
9001*)
9002  lt_save_MAGIC_CMD="$MAGIC_CMD"
9003  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9004  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9005  for ac_dir in $ac_dummy; do
9006    IFS="$lt_save_ifs"
9007    test -z "$ac_dir" && ac_dir=.
9008    if test -f $ac_dir/file; then
9009      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9010      if test -n "$file_magic_test_file"; then
9011        case $deplibs_check_method in
9012        "file_magic "*)
9013          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9014          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9015          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9016            $EGREP "$file_magic_regex" > /dev/null; then
9017            :
9018          else
9019            cat <<EOF 1>&2
9020
9021*** Warning: the command libtool uses to detect shared libraries,
9022*** $file_magic_cmd, produces output that libtool cannot recognize.
9023*** The result is that libtool may fail to recognize shared libraries
9024*** as such.  This will affect the creation of libtool libraries that
9025*** depend on shared libraries, but programs linked with such libtool
9026*** libraries will work regardless of this problem.  Nevertheless, you
9027*** may want to report the problem to your system manager and/or to
9028*** bug-libtool@gnu.org
9029
9030EOF
9031          fi ;;
9032        esac
9033      fi
9034      break
9035    fi
9036  done
9037  IFS="$lt_save_ifs"
9038  MAGIC_CMD="$lt_save_MAGIC_CMD"
9039  ;;
9040esac
9041fi
9042
9043MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9044if test -n "$MAGIC_CMD"; then
9045  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9046echo "${ECHO_T}$MAGIC_CMD" >&6
9047else
9048  echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050fi
9051
9052  else
9053    MAGIC_CMD=:
9054  fi
9055fi
9056
9057  fi
9058  ;;
9059esac
9060
9061enable_dlopen=no
9062enable_win32_dll=no
9063
9064# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9065if test "${enable_libtool_lock+set}" = set; then
9066  enableval="$enable_libtool_lock"
9067
9068fi;
9069test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9070
9071
9072# Check whether --with-pic or --without-pic was given.
9073if test "${with_pic+set}" = set; then
9074  withval="$with_pic"
9075  pic_mode="$withval"
9076else
9077  pic_mode=default
9078fi;
9079test -z "$pic_mode" && pic_mode=default
9080
9081# Use C for the default configuration in the libtool script
9082tagname=
9083lt_save_CC="$CC"
9084ac_ext=c
9085ac_cpp='$CPP $CPPFLAGS'
9086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9088ac_compiler_gnu=$ac_cv_c_compiler_gnu
9089
9090
9091# Source file extension for C test sources.
9092ac_ext=c
9093
9094# Object file extension for compiled C test sources.
9095objext=o
9096objext=$objext
9097
9098# Code to be used in simple compile tests
9099lt_simple_compile_test_code="int some_variable = 0;\n"
9100
9101# Code to be used in simple link tests
9102lt_simple_link_test_code='int main(){return(0);}\n'
9103
9104
9105# If no C compiler was specified, use CC.
9106LTCC=${LTCC-"$CC"}
9107
9108# If no C compiler flags were specified, use CFLAGS.
9109LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9110
9111# Allow CC to be a program name with arguments.
9112compiler=$CC
9113
9114
9115# save warnings/boilerplate of simple test code
9116ac_outfile=conftest.$ac_objext
9117printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9118eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9119_lt_compiler_boilerplate=`cat conftest.err`
9120$rm conftest*
9121
9122ac_outfile=conftest.$ac_objext
9123printf "$lt_simple_link_test_code" >conftest.$ac_ext
9124eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9125_lt_linker_boilerplate=`cat conftest.err`
9126$rm conftest*
9127
9128
9129## CAVEAT EMPTOR:
9130## There is no encapsulation within the following macros, do not change
9131## the running order or otherwise move them around unless you know exactly
9132## what you are doing...
9133
9134lt_prog_compiler_no_builtin_flag=
9135
9136if test "$GCC" = yes; then
9137  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9138
9139
9140echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9141echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9142if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9143  echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145  lt_cv_prog_compiler_rtti_exceptions=no
9146  ac_outfile=conftest.$ac_objext
9147   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9148   lt_compiler_flag="-fno-rtti -fno-exceptions"
9149   # Insert the option either (1) after the last *FLAGS variable, or
9150   # (2) before a word containing "conftest.", or (3) at the end.
9151   # Note that $ac_compile itself does not contain backslashes and begins
9152   # with a dollar sign (not a hyphen), so the echo should work correctly.
9153   # The option is referenced via a variable to avoid confusing sed.
9154   lt_compile=`echo "$ac_compile" | $SED \
9155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157   -e 's:$: $lt_compiler_flag:'`
9158   (eval echo "\"\$as_me:9158: $lt_compile\"" >&5)
9159   (eval "$lt_compile" 2>conftest.err)
9160   ac_status=$?
9161   cat conftest.err >&5
9162   echo "$as_me:9162: \$? = $ac_status" >&5
9163   if (exit $ac_status) && test -s "$ac_outfile"; then
9164     # The compiler can only warn and ignore the option if not recognized
9165     # So say no if there are warnings other than the usual output.
9166     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9167     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9168     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9169       lt_cv_prog_compiler_rtti_exceptions=yes
9170     fi
9171   fi
9172   $rm conftest*
9173
9174fi
9175echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9176echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9177
9178if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9179    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9180else
9181    :
9182fi
9183
9184fi
9185
9186lt_prog_compiler_wl=
9187lt_prog_compiler_pic=
9188lt_prog_compiler_static=
9189
9190echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9191echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9192
9193  if test "$GCC" = yes; then
9194    lt_prog_compiler_wl='-Wl,'
9195    lt_prog_compiler_static='-static'
9196
9197    case $host_os in
9198      aix*)
9199      # All AIX code is PIC.
9200      if test "$host_cpu" = ia64; then
9201        # AIX 5 now supports IA64 processor
9202        lt_prog_compiler_static='-Bstatic'
9203      fi
9204      ;;
9205
9206    amigaos*)
9207      # FIXME: we need at least 68020 code to build shared libraries, but
9208      # adding the `-m68020' flag to GCC prevents building anything better,
9209      # like `-m68040'.
9210      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9211      ;;
9212
9213    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9214      # PIC is the default for these OSes.
9215      ;;
9216
9217    mingw* | pw32* | os2*)
9218      # This hack is so that the source file can tell whether it is being
9219      # built for inclusion in a dll (and should export symbols for example).
9220      lt_prog_compiler_pic='-DDLL_EXPORT'
9221      ;;
9222
9223    darwin* | rhapsody*)
9224      # PIC is the default on this platform
9225      # Common symbols not allowed in MH_DYLIB files
9226      lt_prog_compiler_pic='-fno-common'
9227      ;;
9228
9229    interix3*)
9230      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9231      # Instead, we relocate shared libraries at runtime.
9232      ;;
9233
9234    msdosdjgpp*)
9235      # Just because we use GCC doesn't mean we suddenly get shared libraries
9236      # on systems that don't support them.
9237      lt_prog_compiler_can_build_shared=no
9238      enable_shared=no
9239      ;;
9240
9241    sysv4*MP*)
9242      if test -d /usr/nec; then
9243        lt_prog_compiler_pic=-Kconform_pic
9244      fi
9245      ;;
9246
9247    hpux*)
9248      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9249      # not for PA HP-UX.
9250      case $host_cpu in
9251      hppa*64*|ia64*)
9252        # +Z the default
9253        ;;
9254      *)
9255        lt_prog_compiler_pic='-fPIC'
9256        ;;
9257      esac
9258      ;;
9259
9260    *)
9261      lt_prog_compiler_pic='-fPIC'
9262      ;;
9263    esac
9264  else
9265    # PORTME Check for flag to pass linker flags through the system compiler.
9266    case $host_os in
9267    aix*)
9268      lt_prog_compiler_wl='-Wl,'
9269      if test "$host_cpu" = ia64; then
9270        # AIX 5 now supports IA64 processor
9271        lt_prog_compiler_static='-Bstatic'
9272      else
9273        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9274      fi
9275      ;;
9276      darwin*)
9277        # PIC is the default on this platform
9278        # Common symbols not allowed in MH_DYLIB files
9279       case $cc_basename in
9280         xlc*)
9281         lt_prog_compiler_pic='-qnocommon'
9282         lt_prog_compiler_wl='-Wl,'
9283         ;;
9284       esac
9285       ;;
9286
9287    mingw* | pw32* | os2*)
9288      # This hack is so that the source file can tell whether it is being
9289      # built for inclusion in a dll (and should export symbols for example).
9290      lt_prog_compiler_pic='-DDLL_EXPORT'
9291      ;;
9292
9293    hpux9* | hpux10* | hpux11*)
9294      lt_prog_compiler_wl='-Wl,'
9295      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9296      # not for PA HP-UX.
9297      case $host_cpu in
9298      hppa*64*|ia64*)
9299        # +Z the default
9300        ;;
9301      *)
9302        lt_prog_compiler_pic='+Z'
9303        ;;
9304      esac
9305      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9306      lt_prog_compiler_static='${wl}-a ${wl}archive'
9307      ;;
9308
9309    irix5* | irix6* | nonstopux*)
9310      lt_prog_compiler_wl='-Wl,'
9311      # PIC (with -KPIC) is the default.
9312      lt_prog_compiler_static='-non_shared'
9313      ;;
9314
9315    newsos6)
9316      lt_prog_compiler_pic='-KPIC'
9317      lt_prog_compiler_static='-Bstatic'
9318      ;;
9319
9320    linux*)
9321      case $cc_basename in
9322      icc* | ecc*)
9323        lt_prog_compiler_wl='-Wl,'
9324        lt_prog_compiler_pic='-KPIC'
9325        lt_prog_compiler_static='-static'
9326        ;;
9327      pgcc* | pgf77* | pgf90* | pgf95*)
9328        # Portland Group compilers (*not* the Pentium gcc compiler,
9329        # which looks to be a dead project)
9330        lt_prog_compiler_wl='-Wl,'
9331        lt_prog_compiler_pic='-fpic'
9332        lt_prog_compiler_static='-Bstatic'
9333        ;;
9334      ccc*)
9335        lt_prog_compiler_wl='-Wl,'
9336        # All Alpha code is PIC.
9337        lt_prog_compiler_static='-non_shared'
9338        ;;
9339      esac
9340      ;;
9341
9342    osf3* | osf4* | osf5*)
9343      lt_prog_compiler_wl='-Wl,'
9344      # All OSF/1 code is PIC.
9345      lt_prog_compiler_static='-non_shared'
9346      ;;
9347
9348    solaris*)
9349      lt_prog_compiler_pic='-KPIC'
9350      lt_prog_compiler_static='-Bstatic'
9351      case $cc_basename in
9352      f77* | f90* | f95*)
9353        lt_prog_compiler_wl='-Qoption ld ';;
9354      *)
9355        lt_prog_compiler_wl='-Wl,';;
9356      esac
9357      ;;
9358
9359    sunos4*)
9360      lt_prog_compiler_wl='-Qoption ld '
9361      lt_prog_compiler_pic='-PIC'
9362      lt_prog_compiler_static='-Bstatic'
9363      ;;
9364
9365    sysv4 | sysv4.2uw2* | sysv4.3*)
9366      lt_prog_compiler_wl='-Wl,'
9367      lt_prog_compiler_pic='-KPIC'
9368      lt_prog_compiler_static='-Bstatic'
9369      ;;
9370
9371    sysv4*MP*)
9372      if test -d /usr/nec ;then
9373        lt_prog_compiler_pic='-Kconform_pic'
9374        lt_prog_compiler_static='-Bstatic'
9375      fi
9376      ;;
9377
9378    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9379      lt_prog_compiler_wl='-Wl,'
9380      lt_prog_compiler_pic='-KPIC'
9381      lt_prog_compiler_static='-Bstatic'
9382      ;;
9383
9384    unicos*)
9385      lt_prog_compiler_wl='-Wl,'
9386      lt_prog_compiler_can_build_shared=no
9387      ;;
9388
9389    uts4*)
9390      lt_prog_compiler_pic='-pic'
9391      lt_prog_compiler_static='-Bstatic'
9392      ;;
9393
9394    *)
9395      lt_prog_compiler_can_build_shared=no
9396      ;;
9397    esac
9398  fi
9399
9400echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9401echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9402
9403#
9404# Check to make sure the PIC flag actually works.
9405#
9406if test -n "$lt_prog_compiler_pic"; then
9407
9408echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9410if test "${lt_prog_compiler_pic_works+set}" = set; then
9411  echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413  lt_prog_compiler_pic_works=no
9414  ac_outfile=conftest.$ac_objext
9415   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9416   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9417   # Insert the option either (1) after the last *FLAGS variable, or
9418   # (2) before a word containing "conftest.", or (3) at the end.
9419   # Note that $ac_compile itself does not contain backslashes and begins
9420   # with a dollar sign (not a hyphen), so the echo should work correctly.
9421   # The option is referenced via a variable to avoid confusing sed.
9422   lt_compile=`echo "$ac_compile" | $SED \
9423   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425   -e 's:$: $lt_compiler_flag:'`
9426   (eval echo "\"\$as_me:9426: $lt_compile\"" >&5)
9427   (eval "$lt_compile" 2>conftest.err)
9428   ac_status=$?
9429   cat conftest.err >&5
9430   echo "$as_me:9430: \$? = $ac_status" >&5
9431   if (exit $ac_status) && test -s "$ac_outfile"; then
9432     # The compiler can only warn and ignore the option if not recognized
9433     # So say no if there are warnings other than the usual output.
9434     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9435     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9437       lt_prog_compiler_pic_works=yes
9438     fi
9439   fi
9440   $rm conftest*
9441
9442fi
9443echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9444echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9445
9446if test x"$lt_prog_compiler_pic_works" = xyes; then
9447    case $lt_prog_compiler_pic in
9448     "" | " "*) ;;
9449     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9450     esac
9451else
9452    lt_prog_compiler_pic=
9453     lt_prog_compiler_can_build_shared=no
9454fi
9455
9456fi
9457case $host_os in
9458  # For platforms which do not support PIC, -DPIC is meaningless:
9459  *djgpp*)
9460    lt_prog_compiler_pic=
9461    ;;
9462  *)
9463    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9464    ;;
9465esac
9466
9467#
9468# Check to make sure the static flag actually works.
9469#
9470wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9471echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9472echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9473if test "${lt_prog_compiler_static_works+set}" = set; then
9474  echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476  lt_prog_compiler_static_works=no
9477   save_LDFLAGS="$LDFLAGS"
9478   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9479   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9480   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9481     # The linker can only warn and ignore the option if not recognized
9482     # So say no if there are warnings
9483     if test -s conftest.err; then
9484       # Append any errors to the config.log.
9485       cat conftest.err 1>&5
9486       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9487       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488       if diff conftest.exp conftest.er2 >/dev/null; then
9489         lt_prog_compiler_static_works=yes
9490       fi
9491     else
9492       lt_prog_compiler_static_works=yes
9493     fi
9494   fi
9495   $rm conftest*
9496   LDFLAGS="$save_LDFLAGS"
9497
9498fi
9499echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9500echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9501
9502if test x"$lt_prog_compiler_static_works" = xyes; then
9503    :
9504else
9505    lt_prog_compiler_static=
9506fi
9507
9508
9509echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9510echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9511if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9512  echo $ECHO_N "(cached) $ECHO_C" >&6
9513else
9514  lt_cv_prog_compiler_c_o=no
9515   $rm -r conftest 2>/dev/null
9516   mkdir conftest
9517   cd conftest
9518   mkdir out
9519   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9520
9521   lt_compiler_flag="-o out/conftest2.$ac_objext"
9522   # Insert the option either (1) after the last *FLAGS variable, or
9523   # (2) before a word containing "conftest.", or (3) at the end.
9524   # Note that $ac_compile itself does not contain backslashes and begins
9525   # with a dollar sign (not a hyphen), so the echo should work correctly.
9526   lt_compile=`echo "$ac_compile" | $SED \
9527   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529   -e 's:$: $lt_compiler_flag:'`
9530   (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531   (eval "$lt_compile" 2>out/conftest.err)
9532   ac_status=$?
9533   cat out/conftest.err >&5
9534   echo "$as_me:9534: \$? = $ac_status" >&5
9535   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9536   then
9537     # The compiler can only warn and ignore the option if not recognized
9538     # So say no if there are warnings
9539     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9540     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9541     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9542       lt_cv_prog_compiler_c_o=yes
9543     fi
9544   fi
9545   chmod u+w . 2>&5
9546   $rm conftest*
9547   # SGI C++ compiler will create directory out/ii_files/ for
9548   # template instantiation
9549   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9550   $rm out/* && rmdir out
9551   cd ..
9552   rmdir conftest
9553   $rm conftest*
9554
9555fi
9556echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9557echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9558
9559
9560hard_links="nottested"
9561if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9562  # do not overwrite the value of need_locks provided by the user
9563  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9564echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9565  hard_links=yes
9566  $rm conftest*
9567  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9568  touch conftest.a
9569  ln conftest.a conftest.b 2>&5 || hard_links=no
9570  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9571  echo "$as_me:$LINENO: result: $hard_links" >&5
9572echo "${ECHO_T}$hard_links" >&6
9573  if test "$hard_links" = no; then
9574    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9575echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9576    need_locks=warn
9577  fi
9578else
9579  need_locks=no
9580fi
9581
9582echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9584
9585  runpath_var=
9586  allow_undefined_flag=
9587  enable_shared_with_static_runtimes=no
9588  archive_cmds=
9589  archive_expsym_cmds=
9590  old_archive_From_new_cmds=
9591  old_archive_from_expsyms_cmds=
9592  export_dynamic_flag_spec=
9593  whole_archive_flag_spec=
9594  thread_safe_flag_spec=
9595  hardcode_libdir_flag_spec=
9596  hardcode_libdir_flag_spec_ld=
9597  hardcode_libdir_separator=
9598  hardcode_direct=no
9599  hardcode_minus_L=no
9600  hardcode_shlibpath_var=unsupported
9601  link_all_deplibs=unknown
9602  hardcode_automatic=no
9603  module_cmds=
9604  module_expsym_cmds=
9605  always_export_symbols=no
9606  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9607  # include_expsyms should be a list of space-separated symbols to be *always*
9608  # included in the symbol list
9609  include_expsyms=
9610  # exclude_expsyms can be an extended regexp of symbols to exclude
9611  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9612  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9613  # as well as any symbol that contains `d'.
9614  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9615  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9616  # platforms (ab)use it in PIC code, but their linkers get confused if
9617  # the symbol is explicitly referenced.  Since portable code cannot
9618  # rely on this symbol name, it's probably fine to never include it in
9619  # preloaded symbol tables.
9620  extract_expsyms_cmds=
9621  # Just being paranoid about ensuring that cc_basename is set.
9622  for cc_temp in $compiler""; do
9623  case $cc_temp in
9624    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9625    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9626    \-*) ;;
9627    *) break;;
9628  esac
9629done
9630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9631
9632  case $host_os in
9633  cygwin* | mingw* | pw32*)
9634    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9635    # When not using gcc, we currently assume that we are using
9636    # Microsoft Visual C++.
9637    if test "$GCC" != yes; then
9638      with_gnu_ld=no
9639    fi
9640    ;;
9641  interix*)
9642    # we just hope/assume this is gcc and not c89 (= MSVC++)
9643    with_gnu_ld=yes
9644    ;;
9645  openbsd*)
9646    with_gnu_ld=no
9647    ;;
9648  esac
9649
9650  ld_shlibs=yes
9651  if test "$with_gnu_ld" = yes; then
9652    # If archive_cmds runs LD, not CC, wlarc should be empty
9653    wlarc='${wl}'
9654
9655    # Set some defaults for GNU ld with shared library support. These
9656    # are reset later if shared libraries are not supported. Putting them
9657    # here allows them to be overridden if necessary.
9658    runpath_var=LD_RUN_PATH
9659    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9660    export_dynamic_flag_spec='${wl}--export-dynamic'
9661    # ancient GNU ld didn't support --whole-archive et. al.
9662    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9663        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9664      else
9665        whole_archive_flag_spec=
9666    fi
9667    supports_anon_versioning=no
9668    case `$LD -v 2>/dev/null` in
9669      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9670      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9671      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9672      *\ 2.11.*) ;; # other 2.11 versions
9673      *) supports_anon_versioning=yes ;;
9674    esac
9675
9676    # See if GNU ld supports shared libraries.
9677    case $host_os in
9678    aix3* | aix4* | aix5*)
9679      # On AIX/PPC, the GNU linker is very broken
9680      if test "$host_cpu" != ia64; then
9681        ld_shlibs=no
9682        cat <<EOF 1>&2
9683
9684*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9685*** to be unable to reliably create shared libraries on AIX.
9686*** Therefore, libtool is disabling shared libraries support.  If you
9687*** really care for shared libraries, you may want to modify your PATH
9688*** so that a non-GNU linker is found, and then restart.
9689
9690EOF
9691      fi
9692      ;;
9693
9694    amigaos*)
9695      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)'
9696      hardcode_libdir_flag_spec='-L$libdir'
9697      hardcode_minus_L=yes
9698
9699      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9700      # that the semantics of dynamic libraries on AmigaOS, at least up
9701      # to version 4, is to share data among multiple programs linked
9702      # with the same dynamic library.  Since this doesn't match the
9703      # behavior of shared libraries on other platforms, we can't use
9704      # them.
9705      ld_shlibs=no
9706      ;;
9707
9708    beos*)
9709      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9710        allow_undefined_flag=unsupported
9711        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9712        # support --undefined.  This deserves some investigation.  FIXME
9713        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714      else
9715        ld_shlibs=no
9716      fi
9717      ;;
9718
9719    cygwin* | mingw* | pw32*)
9720      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9721      # as there is no search path for DLLs.
9722      hardcode_libdir_flag_spec='-L$libdir'
9723      allow_undefined_flag=unsupported
9724      always_export_symbols=no
9725      enable_shared_with_static_runtimes=yes
9726      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9727
9728      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9729        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9730        # If the export-symbols file already is a .def file (1st line
9731        # is EXPORTS), use it as is; otherwise, prepend...
9732        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9733          cp $export_symbols $output_objdir/$soname.def;
9734        else
9735          echo EXPORTS > $output_objdir/$soname.def;
9736          cat $export_symbols >> $output_objdir/$soname.def;
9737        fi~
9738        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9739      else
9740        ld_shlibs=no
9741      fi
9742      ;;
9743
9744    interix3*)
9745      hardcode_direct=no
9746      hardcode_shlibpath_var=no
9747      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9748      export_dynamic_flag_spec='${wl}-E'
9749      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9750      # Instead, shared libraries are loaded at an image base (0x10000000 by
9751      # default) and relocated if they conflict, which is a slow very memory
9752      # consuming and fragmenting process.  To avoid this, we pick a random,
9753      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9754      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9755      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9756      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'
9757      ;;
9758
9759    linux*)
9760      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9761        tmp_addflag=
9762        case $cc_basename,$host_cpu in
9763        pgcc*)                          # Portland Group C compiler
9764          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'
9765          tmp_addflag=' $pic_flag'
9766          ;;
9767        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9768          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'
9769          tmp_addflag=' $pic_flag -Mnomain' ;;
9770        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9771          tmp_addflag=' -i_dynamic' ;;
9772        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9773          tmp_addflag=' -i_dynamic -nofor_main' ;;
9774        ifc* | ifort*)                  # Intel Fortran compiler
9775          tmp_addflag=' -nofor_main' ;;
9776        esac
9777        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9778
9779        if test $supports_anon_versioning = yes; then
9780          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9781  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9782  $echo "local: *; };" >> $output_objdir/$libname.ver~
9783          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9784        fi
9785      else
9786        ld_shlibs=no
9787      fi
9788      ;;
9789
9790    netbsd*)
9791      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9792        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9793        wlarc=
9794      else
9795        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9797      fi
9798      ;;
9799
9800    solaris*)
9801      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9802        ld_shlibs=no
9803        cat <<EOF 1>&2
9804
9805*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9806*** create shared libraries on Solaris systems.  Therefore, libtool
9807*** is disabling shared libraries support.  We urge you to upgrade GNU
9808*** binutils to release 2.9.1 or newer.  Another option is to modify
9809*** your PATH or compiler configuration so that the native linker is
9810*** used, and then restart.
9811
9812EOF
9813      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9814        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9816      else
9817        ld_shlibs=no
9818      fi
9819      ;;
9820
9821    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9822      case `$LD -v 2>&1` in
9823        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9824        ld_shlibs=no
9825        cat <<_LT_EOF 1>&2
9826
9827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9828*** reliably create shared libraries on SCO systems.  Therefore, libtool
9829*** is disabling shared libraries support.  We urge you to upgrade GNU
9830*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9831*** your PATH or compiler configuration so that the native linker is
9832*** used, and then restart.
9833
9834_LT_EOF
9835        ;;
9836        *)
9837          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9838            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9839            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9840            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9841          else
9842            ld_shlibs=no
9843          fi
9844        ;;
9845      esac
9846      ;;
9847
9848    sunos4*)
9849      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9850      wlarc=
9851      hardcode_direct=yes
9852      hardcode_shlibpath_var=no
9853      ;;
9854
9855    *)
9856      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9857        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9858        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9859      else
9860        ld_shlibs=no
9861      fi
9862      ;;
9863    esac
9864
9865    if test "$ld_shlibs" = no; then
9866      runpath_var=
9867      hardcode_libdir_flag_spec=
9868      export_dynamic_flag_spec=
9869      whole_archive_flag_spec=
9870    fi
9871  else
9872    # PORTME fill in a description of your system's linker (not GNU ld)
9873    case $host_os in
9874    aix3*)
9875      allow_undefined_flag=unsupported
9876      always_export_symbols=yes
9877      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'
9878      # Note: this linker hardcodes the directories in LIBPATH if there
9879      # are no directories specified by -L.
9880      hardcode_minus_L=yes
9881      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9882        # Neither direct hardcoding nor static linking is supported with a
9883        # broken collect2.
9884        hardcode_direct=unsupported
9885      fi
9886      ;;
9887
9888    aix4* | aix5*)
9889      if test "$host_cpu" = ia64; then
9890        # On IA64, the linker does run time linking by default, so we don't
9891        # have to do anything special.
9892        aix_use_runtimelinking=no
9893        exp_sym_flag='-Bexport'
9894        no_entry_flag=""
9895      else
9896        # If we're using GNU nm, then we don't want the "-C" option.
9897        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9898        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9899          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'
9900        else
9901          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'
9902        fi
9903        aix_use_runtimelinking=no
9904
9905        # Test if we are trying to use run time linking or normal
9906        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9907        # need to do runtime linking.
9908        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9909          for ld_flag in $LDFLAGS; do
9910          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9911            aix_use_runtimelinking=yes
9912            break
9913          fi
9914          done
9915          ;;
9916        esac
9917
9918        exp_sym_flag='-bexport'
9919        no_entry_flag='-bnoentry'
9920      fi
9921
9922      # When large executables or shared objects are built, AIX ld can
9923      # have problems creating the table of contents.  If linking a library
9924      # or program results in "error TOC overflow" add -mminimal-toc to
9925      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9926      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9927
9928      archive_cmds=''
9929      hardcode_direct=yes
9930      hardcode_libdir_separator=':'
9931      link_all_deplibs=yes
9932
9933      if test "$GCC" = yes; then
9934        case $host_os in aix4.[012]|aix4.[012].*)
9935        # We only want to do this on AIX 4.2 and lower, the check
9936        # below for broken collect2 doesn't work under 4.3+
9937          collect2name=`${CC} -print-prog-name=collect2`
9938          if test -f "$collect2name" && \
9939           strings "$collect2name" | grep resolve_lib_name >/dev/null
9940          then
9941          # We have reworked collect2
9942          hardcode_direct=yes
9943          else
9944          # We have old collect2
9945          hardcode_direct=unsupported
9946          # It fails to find uninstalled libraries when the uninstalled
9947          # path is not listed in the libpath.  Setting hardcode_minus_L
9948          # to unsupported forces relinking
9949          hardcode_minus_L=yes
9950          hardcode_libdir_flag_spec='-L$libdir'
9951          hardcode_libdir_separator=
9952          fi
9953          ;;
9954        esac
9955        shared_flag='-shared'
9956        if test "$aix_use_runtimelinking" = yes; then
9957          shared_flag="$shared_flag "'${wl}-G'
9958        fi
9959      else
9960        # not using gcc
9961        if test "$host_cpu" = ia64; then
9962        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9963        # chokes on -Wl,-G. The following line is correct:
9964          shared_flag='-G'
9965        else
9966          if test "$aix_use_runtimelinking" = yes; then
9967            shared_flag='${wl}-G'
9968          else
9969            shared_flag='${wl}-bM:SRE'
9970          fi
9971        fi
9972      fi
9973
9974      # It seems that -bexpall does not export symbols beginning with
9975      # underscore (_), so it is better to generate a list of symbols to export.
9976      always_export_symbols=yes
9977      if test "$aix_use_runtimelinking" = yes; then
9978        # Warning - without using the other runtime loading flags (-brtl),
9979        # -berok will link without error, but may produce a broken library.
9980        allow_undefined_flag='-berok'
9981       # Determine the default libpath from the value encoded in an empty executable.
9982       cat >conftest.$ac_ext <<_ACEOF
9983/* confdefs.h.  */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h.  */
9988
9989#ifdef F77_DUMMY_MAIN
9990
9991#  ifdef __cplusplus
9992     extern "C"
9993#  endif
9994   int F77_DUMMY_MAIN() { return 1; }
9995
9996#endif
9997int
9998main ()
9999{
10000
10001  ;
10002  return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext conftest$ac_exeext
10006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007  (eval $ac_link) 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } &&
10014         { ac_try='test -z "$ac_c_werror_flag"
10015                         || test ! -s conftest.err'
10016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017  (eval $ac_try) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); }; } &&
10021         { ac_try='test -s conftest$ac_exeext'
10022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023  (eval $ac_try) 2>&5
10024  ac_status=$?
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); }; }; then
10027
10028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10029}'`
10030# Check for a 64-bit object if we didn't find anything.
10031if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10032}'`; fi
10033else
10034  echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037fi
10038rm -f conftest.err conftest.$ac_objext \
10039      conftest$ac_exeext conftest.$ac_ext
10040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10041
10042       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10043        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"
10044       else
10045        if test "$host_cpu" = ia64; then
10046          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10047          allow_undefined_flag="-z nodefs"
10048          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"
10049        else
10050         # Determine the default libpath from the value encoded in an empty executable.
10051         cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h.  */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h.  */
10057
10058#ifdef F77_DUMMY_MAIN
10059
10060#  ifdef __cplusplus
10061     extern "C"
10062#  endif
10063   int F77_DUMMY_MAIN() { return 1; }
10064
10065#endif
10066int
10067main ()
10068{
10069
10070  ;
10071  return 0;
10072}
10073_ACEOF
10074rm -f conftest.$ac_objext conftest$ac_exeext
10075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10076  (eval $ac_link) 2>conftest.er1
10077  ac_status=$?
10078  grep -v '^ *+' conftest.er1 >conftest.err
10079  rm -f conftest.er1
10080  cat conftest.err >&5
10081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082  (exit $ac_status); } &&
10083         { ac_try='test -z "$ac_c_werror_flag"
10084                         || test ! -s conftest.err'
10085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086  (eval $ac_try) 2>&5
10087  ac_status=$?
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); }; } &&
10090         { ac_try='test -s conftest$ac_exeext'
10091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092  (eval $ac_try) 2>&5
10093  ac_status=$?
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); }; }; then
10096
10097aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10098}'`
10099# Check for a 64-bit object if we didn't find anything.
10100if 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; }
10101}'`; fi
10102else
10103  echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106fi
10107rm -f conftest.err conftest.$ac_objext \
10108      conftest$ac_exeext conftest.$ac_ext
10109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10110
10111         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112          # Warning - without using the other run time loading flags,
10113          # -berok will link without error, but may produce a broken library.
10114          no_undefined_flag=' ${wl}-bernotok'
10115          allow_undefined_flag=' ${wl}-berok'
10116          # Exported symbols can be pulled into shared objects from archives
10117          whole_archive_flag_spec='$convenience'
10118          archive_cmds_need_lc=yes
10119          # This is similar to how AIX traditionally builds its shared libraries.
10120          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'
10121        fi
10122      fi
10123      ;;
10124
10125    amigaos*)
10126      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)'
10127      hardcode_libdir_flag_spec='-L$libdir'
10128      hardcode_minus_L=yes
10129      # see comment about different semantics on the GNU ld section
10130      ld_shlibs=no
10131      ;;
10132
10133    bsdi[45]*)
10134      export_dynamic_flag_spec=-rdynamic
10135      ;;
10136
10137    cygwin* | mingw* | pw32*)
10138      # When not using gcc, we currently assume that we are using
10139      # Microsoft Visual C++.
10140      # hardcode_libdir_flag_spec is actually meaningless, as there is
10141      # no search path for DLLs.
10142      hardcode_libdir_flag_spec=' '
10143      allow_undefined_flag=unsupported
10144      # Tell ltmain to make .lib files, not .a files.
10145      libext=lib
10146      # Tell ltmain to make .dll files, not .so files.
10147      shrext_cmds=".dll"
10148      # FIXME: Setting linknames here is a bad hack.
10149      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10150      # The linker will automatically build a .lib file if we build a DLL.
10151      old_archive_From_new_cmds='true'
10152      # FIXME: Should let the user specify the lib program.
10153      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10154      fix_srcfile_path='`cygpath -w "$srcfile"`'
10155      enable_shared_with_static_runtimes=yes
10156      ;;
10157
10158    darwin* | rhapsody*)
10159      case $host_os in
10160        rhapsody* | darwin1.[012])
10161         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10162         ;;
10163       *) # Darwin 1.3 on
10164         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10165           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10166         else
10167           case ${MACOSX_DEPLOYMENT_TARGET} in
10168             10.[012])
10169               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10170               ;;
10171             10.*)
10172               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10173               ;;
10174           esac
10175         fi
10176         ;;
10177      esac
10178      archive_cmds_need_lc=no
10179      hardcode_direct=no
10180      hardcode_automatic=yes
10181      hardcode_shlibpath_var=unsupported
10182      whole_archive_flag_spec=''
10183      link_all_deplibs=yes
10184    if test "$GCC" = yes ; then
10185        output_verbose_link_cmd='echo'
10186        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10187      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10188      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10189      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}'
10190      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}'
10191    else
10192      case $cc_basename in
10193        xlc*)
10194         output_verbose_link_cmd='echo'
10195         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10196         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10197          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10198         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}'
10199          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}'
10200          ;;
10201       *)
10202         ld_shlibs=no
10203          ;;
10204      esac
10205    fi
10206      ;;
10207
10208    dgux*)
10209      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210      hardcode_libdir_flag_spec='-L$libdir'
10211      hardcode_shlibpath_var=no
10212      ;;
10213
10214    freebsd1*)
10215      ld_shlibs=no
10216      ;;
10217
10218    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10219    # support.  Future versions do this automatically, but an explicit c++rt0.o
10220    # does not break anything, and helps significantly (at the cost of a little
10221    # extra space).
10222    freebsd2.2*)
10223      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10224      hardcode_libdir_flag_spec='-R$libdir'
10225      hardcode_direct=yes
10226      hardcode_shlibpath_var=no
10227      ;;
10228
10229    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10230    freebsd2*)
10231      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232      hardcode_direct=yes
10233      hardcode_minus_L=yes
10234      hardcode_shlibpath_var=no
10235      ;;
10236
10237    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10238    freebsd* | kfreebsd*-gnu | dragonfly*)
10239      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10240      hardcode_libdir_flag_spec='-R$libdir'
10241      hardcode_direct=yes
10242      hardcode_shlibpath_var=no
10243      ;;
10244
10245    hpux9*)
10246      if test "$GCC" = yes; then
10247        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'
10248      else
10249        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'
10250      fi
10251      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252      hardcode_libdir_separator=:
10253      hardcode_direct=yes
10254
10255      # hardcode_minus_L: Not really in the search PATH,
10256      # but as the default location of the library.
10257      hardcode_minus_L=yes
10258      export_dynamic_flag_spec='${wl}-E'
10259      ;;
10260
10261    hpux10*)
10262      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10263        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10264      else
10265        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10266      fi
10267      if test "$with_gnu_ld" = no; then
10268        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10269        hardcode_libdir_separator=:
10270
10271        hardcode_direct=yes
10272        export_dynamic_flag_spec='${wl}-E'
10273
10274        # hardcode_minus_L: Not really in the search PATH,
10275        # but as the default location of the library.
10276        hardcode_minus_L=yes
10277      fi
10278      ;;
10279
10280    hpux11*)
10281      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10282        case $host_cpu in
10283        hppa*64*)
10284          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10285          ;;
10286        ia64*)
10287          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10288          ;;
10289        *)
10290          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10291          ;;
10292        esac
10293      else
10294        case $host_cpu in
10295        hppa*64*)
10296          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10297          ;;
10298        ia64*)
10299          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10300          ;;
10301        *)
10302          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10303          ;;
10304        esac
10305      fi
10306      if test "$with_gnu_ld" = no; then
10307        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10308        hardcode_libdir_separator=:
10309
10310        case $host_cpu in
10311        hppa*64*|ia64*)
10312          hardcode_libdir_flag_spec_ld='+b $libdir'
10313          hardcode_direct=no
10314          hardcode_shlibpath_var=no
10315          ;;
10316        *)
10317          hardcode_direct=yes
10318          export_dynamic_flag_spec='${wl}-E'
10319
10320          # hardcode_minus_L: Not really in the search PATH,
10321          # but as the default location of the library.
10322          hardcode_minus_L=yes
10323          ;;
10324        esac
10325      fi
10326      ;;
10327
10328    irix5* | irix6* | nonstopux*)
10329      if test "$GCC" = yes; then
10330        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'
10331      else
10332        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'
10333        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10334      fi
10335      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10336      hardcode_libdir_separator=:
10337      link_all_deplibs=yes
10338      ;;
10339
10340    netbsd*)
10341      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10342        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10343      else
10344        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10345      fi
10346      hardcode_libdir_flag_spec='-R$libdir'
10347      hardcode_direct=yes
10348      hardcode_shlibpath_var=no
10349      ;;
10350
10351    newsos6)
10352      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353      hardcode_direct=yes
10354      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10355      hardcode_libdir_separator=:
10356      hardcode_shlibpath_var=no
10357      ;;
10358
10359    openbsd*)
10360      hardcode_direct=yes
10361      hardcode_shlibpath_var=no
10362      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10363        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10364        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10365        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10366        export_dynamic_flag_spec='${wl}-E'
10367      else
10368       case $host_os in
10369         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10370           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10371           hardcode_libdir_flag_spec='-R$libdir'
10372           ;;
10373         *)
10374           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10375           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10376           ;;
10377       esac
10378      fi
10379      ;;
10380
10381    os2*)
10382      hardcode_libdir_flag_spec='-L$libdir'
10383      hardcode_minus_L=yes
10384      allow_undefined_flag=unsupported
10385      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'
10386      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10387      ;;
10388
10389    osf3*)
10390      if test "$GCC" = yes; then
10391        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10392        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'
10393      else
10394        allow_undefined_flag=' -expect_unresolved \*'
10395        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'
10396      fi
10397      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10398      hardcode_libdir_separator=:
10399      ;;
10400
10401    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10402      if test "$GCC" = yes; then
10403        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10404        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'
10405        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10406      else
10407        allow_undefined_flag=' -expect_unresolved \*'
10408        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'
10409        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10410        $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'
10411
10412        # Both c and cxx compiler support -rpath directly
10413        hardcode_libdir_flag_spec='-rpath $libdir'
10414      fi
10415      hardcode_libdir_separator=:
10416      ;;
10417
10418    solaris*)
10419      no_undefined_flag=' -z text'
10420      if test "$GCC" = yes; then
10421        wlarc='${wl}'
10422        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10423        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10424          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10425      else
10426        wlarc=''
10427        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10429        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10430      fi
10431      hardcode_libdir_flag_spec='-R$libdir'
10432      hardcode_shlibpath_var=no
10433      case $host_os in
10434      solaris2.[0-5] | solaris2.[0-5].*) ;;
10435      *)
10436        # The compiler driver will combine linker options so we
10437        # cannot just pass the convience library names through
10438        # without $wl, iff we do not link with $LD.
10439        # Luckily, gcc supports the same syntax we need for Sun Studio.
10440        # Supported since Solaris 2.6 (maybe 2.5.1?)
10441        case $wlarc in
10442        '')
10443          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10444        *)
10445          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' ;;
10446        esac ;;
10447      esac
10448      link_all_deplibs=yes
10449      ;;
10450
10451    sunos4*)
10452      if test "x$host_vendor" = xsequent; then
10453        # Use $CC to link under sequent, because it throws in some extra .o
10454        # files that make .init and .fini sections work.
10455        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10456      else
10457        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10458      fi
10459      hardcode_libdir_flag_spec='-L$libdir'
10460      hardcode_direct=yes
10461      hardcode_minus_L=yes
10462      hardcode_shlibpath_var=no
10463      ;;
10464
10465    sysv4)
10466      case $host_vendor in
10467        sni)
10468          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469          hardcode_direct=yes # is this really true???
10470        ;;
10471        siemens)
10472          ## LD is ld it makes a PLAMLIB
10473          ## CC just makes a GrossModule.
10474          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10475          reload_cmds='$CC -r -o $output$reload_objs'
10476          hardcode_direct=no
10477        ;;
10478        motorola)
10479          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10481        ;;
10482      esac
10483      runpath_var='LD_RUN_PATH'
10484      hardcode_shlibpath_var=no
10485      ;;
10486
10487    sysv4.3*)
10488      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489      hardcode_shlibpath_var=no
10490      export_dynamic_flag_spec='-Bexport'
10491      ;;
10492
10493    sysv4*MP*)
10494      if test -d /usr/nec; then
10495        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496        hardcode_shlibpath_var=no
10497        runpath_var=LD_RUN_PATH
10498        hardcode_runpath_var=yes
10499        ld_shlibs=yes
10500      fi
10501      ;;
10502
10503    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10504      no_undefined_flag='${wl}-z,text'
10505      archive_cmds_need_lc=no
10506      hardcode_shlibpath_var=no
10507      runpath_var='LD_RUN_PATH'
10508
10509      if test "$GCC" = yes; then
10510        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512      else
10513        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515      fi
10516      ;;
10517
10518    sysv5* | sco3.2v5* | sco5v6*)
10519      # Note: We can NOT use -z defs as we might desire, because we do not
10520      # link with -lc, and that would cause any symbols used from libc to
10521      # always be unresolved, which means just about no library would
10522      # ever link correctly.  If we're not using GNU ld we use -z text
10523      # though, which does catch some bad symbols but isn't as heavy-handed
10524      # as -z defs.
10525      no_undefined_flag='${wl}-z,text'
10526      allow_undefined_flag='${wl}-z,nodefs'
10527      archive_cmds_need_lc=no
10528      hardcode_shlibpath_var=no
10529      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10530      hardcode_libdir_separator=':'
10531      link_all_deplibs=yes
10532      export_dynamic_flag_spec='${wl}-Bexport'
10533      runpath_var='LD_RUN_PATH'
10534
10535      if test "$GCC" = yes; then
10536        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10537        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10538      else
10539        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10540        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10541      fi
10542      ;;
10543
10544    uts4*)
10545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546      hardcode_libdir_flag_spec='-L$libdir'
10547      hardcode_shlibpath_var=no
10548      ;;
10549
10550    *)
10551      ld_shlibs=no
10552      ;;
10553    esac
10554  fi
10555
10556echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10557echo "${ECHO_T}$ld_shlibs" >&6
10558test "$ld_shlibs" = no && can_build_shared=no
10559
10560#
10561# Do we need to explicitly link libc?
10562#
10563case "x$archive_cmds_need_lc" in
10564x|xyes)
10565  # Assume -lc should be added
10566  archive_cmds_need_lc=yes
10567
10568  if test "$enable_shared" = yes && test "$GCC" = yes; then
10569    case $archive_cmds in
10570    *'~'*)
10571      # FIXME: we may have to deal with multi-command sequences.
10572      ;;
10573    '$CC '*)
10574      # Test whether the compiler implicitly links with -lc since on some
10575      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10576      # to ld, don't add -lc before -lgcc.
10577      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10578echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10579      $rm conftest*
10580      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10581
10582      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10583  (eval $ac_compile) 2>&5
10584  ac_status=$?
10585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586  (exit $ac_status); } 2>conftest.err; then
10587        soname=conftest
10588        lib=conftest
10589        libobjs=conftest.$ac_objext
10590        deplibs=
10591        wl=$lt_prog_compiler_wl
10592        pic_flag=$lt_prog_compiler_pic
10593        compiler_flags=-v
10594        linker_flags=-v
10595        verstring=
10596        output_objdir=.
10597        libname=conftest
10598        lt_save_allow_undefined_flag=$allow_undefined_flag
10599        allow_undefined_flag=
10600        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10601  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10602  ac_status=$?
10603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604  (exit $ac_status); }
10605        then
10606          archive_cmds_need_lc=no
10607        else
10608          archive_cmds_need_lc=yes
10609        fi
10610        allow_undefined_flag=$lt_save_allow_undefined_flag
10611      else
10612        cat conftest.err 1>&5
10613      fi
10614      $rm conftest*
10615      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10616echo "${ECHO_T}$archive_cmds_need_lc" >&6
10617      ;;
10618    esac
10619  fi
10620  ;;
10621esac
10622
10623echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10625library_names_spec=
10626libname_spec='lib$name'
10627soname_spec=
10628shrext_cmds=".so"
10629postinstall_cmds=
10630postuninstall_cmds=
10631finish_cmds=
10632finish_eval=
10633shlibpath_var=
10634shlibpath_overrides_runpath=unknown
10635version_type=none
10636dynamic_linker="$host_os ld.so"
10637sys_lib_dlsearch_path_spec="/lib /usr/lib"
10638if test "$GCC" = yes; then
10639  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10640  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10641    # if the path contains ";" then we assume it to be the separator
10642    # otherwise default to the standard path separator (i.e. ":") - it is
10643    # assumed that no part of a normal pathname contains ";" but that should
10644    # okay in the real world where ";" in dirpaths is itself problematic.
10645    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10646  else
10647    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10648  fi
10649else
10650  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10651fi
10652need_lib_prefix=unknown
10653hardcode_into_libs=no
10654
10655# when you set need_version to no, make sure it does not cause -set_version
10656# flags to be left without arguments
10657need_version=unknown
10658
10659case $host_os in
10660aix3*)
10661  version_type=linux
10662  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10663  shlibpath_var=LIBPATH
10664
10665  # AIX 3 has no versioning support, so we append a major version to the name.
10666  soname_spec='${libname}${release}${shared_ext}$major'
10667  ;;
10668
10669aix4* | aix5*)
10670  version_type=linux
10671  need_lib_prefix=no
10672  need_version=no
10673  hardcode_into_libs=yes
10674  if test "$host_cpu" = ia64; then
10675    # AIX 5 supports IA64
10676    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10677    shlibpath_var=LD_LIBRARY_PATH
10678  else
10679    # With GCC up to 2.95.x, collect2 would create an import file
10680    # for dependence libraries.  The import file would start with
10681    # the line `#! .'.  This would cause the generated library to
10682    # depend on `.', always an invalid library.  This was fixed in
10683    # development snapshots of GCC prior to 3.0.
10684    case $host_os in
10685      aix4 | aix4.[01] | aix4.[01].*)
10686      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10687           echo ' yes '
10688           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10689        :
10690      else
10691        can_build_shared=no
10692      fi
10693      ;;
10694    esac
10695    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10696    # soname into executable. Probably we can add versioning support to
10697    # collect2, so additional links can be useful in future.
10698    if test "$aix_use_runtimelinking" = yes; then
10699      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10700      # instead of lib<name>.a to let people know that these are not
10701      # typical AIX shared libraries.
10702      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703    else
10704      # We preserve .a as extension for shared libraries through AIX4.2
10705      # and later when we are not doing run time linking.
10706      library_names_spec='${libname}${release}.a $libname.a'
10707      soname_spec='${libname}${release}${shared_ext}$major'
10708    fi
10709    shlibpath_var=LIBPATH
10710  fi
10711  ;;
10712
10713amigaos*)
10714  library_names_spec='$libname.ixlibrary $libname.a'
10715  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10716  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'
10717  ;;
10718
10719beos*)
10720  library_names_spec='${libname}${shared_ext}'
10721  dynamic_linker="$host_os ld.so"
10722  shlibpath_var=LIBRARY_PATH
10723  ;;
10724
10725bsdi[45]*)
10726  version_type=linux
10727  need_version=no
10728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729  soname_spec='${libname}${release}${shared_ext}$major'
10730  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10731  shlibpath_var=LD_LIBRARY_PATH
10732  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10733  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10734  # the default ld.so.conf also contains /usr/contrib/lib and
10735  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10736  # libtool to hard-code these into programs
10737  ;;
10738
10739cygwin* | mingw* | pw32*)
10740  version_type=windows
10741  shrext_cmds=".dll"
10742  need_version=no
10743  need_lib_prefix=no
10744
10745  case $GCC,$host_os in
10746  yes,cygwin* | yes,mingw* | yes,pw32*)
10747    library_names_spec='$libname.dll.a'
10748    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749    postinstall_cmds='base_file=`basename \${file}`~
10750      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10751      dldir=$destdir/`dirname \$dlpath`~
10752      test -d \$dldir || mkdir -p \$dldir~
10753      $install_prog $dir/$dlname \$dldir/$dlname~
10754      chmod a+x \$dldir/$dlname'
10755    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756      dlpath=$dir/\$dldll~
10757       $rm \$dlpath'
10758    shlibpath_overrides_runpath=yes
10759
10760    case $host_os in
10761    cygwin*)
10762      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10763      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10764      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10765      ;;
10766    mingw*)
10767      # MinGW DLLs use traditional 'lib' prefix
10768      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10769      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10770      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10771        # It is most probably a Windows format PATH printed by
10772        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10773        # path with ; separators, and with drive letters. We can handle the
10774        # drive letters (cygwin fileutils understands them), so leave them,
10775        # especially as we might pass files found there to a mingw objdump,
10776        # which wouldn't understand a cygwinified path. Ahh.
10777        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10778