source: ThirdParty/Mumps/releases/1.4.9/configure @ 2982

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

Re-running the autotools

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