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

Last change on this file since 3332 was 3332, checked in by stefan, 7 years ago

temporarily committing release candidate

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