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

Last change on this file since 576 was 576, checked in by andreasw, 14 years ago

temporarily committing release candidate to stable

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