source: ThirdParty/Mumps/stable/1.1/configure @ 1337

Last change on this file since 1337 was 1337, checked in by andreasw, 11 years ago

synchronizing stable of ThirdParty/Mumps? with current trunk; reran autotools

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