source: ThirdParty/Mumps/trunk/configure @ 260

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

corrected pthread check for Mumps

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