source: ThirdParty/Mumps/stable/1.0/configure @ 892

Last change on this file since 892 was 892, checked in by andreasw, 13 years ago

restoring stable/1.0

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