source: ThirdParty/Mumps/branches/split/configure @ 1490

Last change on this file since 1490 was 1490, checked in by stefan, 10 years ago

change externals to use split branches; rerun autotools after changing to use BuildTools?/branches/split

File size: 868.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyMumps 1.1trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyMumps'
431PACKAGE_TARNAME='thirdpartymumps'
432PACKAGE_VERSION='1.1trunk'
433PACKAGE_STRING='ThirdPartyMumps 1.1trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="MUMPS/src/dmumps_part1.F"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS CPP EGREP MY_DEFS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG BLAS_LIBS BLAS_CFLAGS BLAS_DATA REQUIREDPACKAGES COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MUMPSDIR MUMPSOBJDIR MUMPSSRCDIR MY_FDEFS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
993ac_env_PKG_CONFIG_value=$PKG_CONFIG
994ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
995ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyMumps 1.1trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyMumps 1.1trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-mumps compile this project (Mumps) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-pkg-config     use pkg-config if available (default is yes)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-mumps-verbosity specify the debug verbosity level for project Mumps
1101  --with-mumps-checklevel specify the sanity check level for project Mumps
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-blas             specify BLAS library (or BUILD for compilation)
1108
1109  --with-blas-lib linker flags for using module Blas
1110  --with-blas-incdir directory with header files for using module Blas
1111  --with-blas-datadir directory with data files for using module Blas
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-metis-lib linker flags for using module Metis
1115  --with-metis-incdir directory with header files for using module Metis
1116  --with-metis-datadir directory with data files for using module Metis
1117  --with-metis            specify flags to link with METIS library
1118
1119Some influential environment variables:
1120  CDEFS       Additional -D flags to be used when compiling C code.
1121  ADD_CFLAGS  Additional C compiler options
1122  DBG_CFLAGS  Debug C compiler options
1123  OPT_CFLAGS  Optimize C compiler options
1124  CC          C compiler command
1125  CFLAGS      C compiler flags
1126  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1127              nonstandard directory <lib dir>
1128  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129              headers in a nonstandard directory <include dir>
1130  MPICC       C MPI Compiler
1131  ADD_FFLAGS  Additional Fortran compiler options
1132  DBG_FFLAGS  Debug Fortran compiler options
1133  OPT_FFLAGS  Optimize Fortran compiler options
1134  F77         Fortran 77 compiler command
1135  FFLAGS      Fortran 77 compiler flags
1136  MPIF77      Fortran MPI Compiler
1137  CPP         C preprocessor
1138  CXX         C++ compiler command
1139  CXXFLAGS    C++ compiler flags
1140  CXXCPP      C++ preprocessor
1141  PKG_CONFIG  path to pkg-config utility
1142
1143Use these variables to override the choices made by `configure' or to help
1144it to find libraries and programs with nonstandard names/locations.
1145
1146Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1147_ACEOF
1148fi
1149
1150if test "$ac_init_help" = "recursive"; then
1151  # If there are subdirs, report their specific --help.
1152  ac_popdir=`pwd`
1153  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1154    test -d $ac_dir || continue
1155    ac_builddir=.
1156
1157if test "$ac_dir" != .; then
1158  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1159  # A "../" for each directory in $ac_dir_suffix.
1160  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161else
1162  ac_dir_suffix= ac_top_builddir=
1163fi
1164
1165case $srcdir in
1166  .)  # No --srcdir option.  We are building in place.
1167    ac_srcdir=.
1168    if test -z "$ac_top_builddir"; then
1169       ac_top_srcdir=.
1170    else
1171       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172    fi ;;
1173  [\\/]* | ?:[\\/]* )  # Absolute path.
1174    ac_srcdir=$srcdir$ac_dir_suffix;
1175    ac_top_srcdir=$srcdir ;;
1176  *) # Relative path.
1177    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1178    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1179esac
1180
1181# Do not use `cd foo && pwd` to compute absolute paths, because
1182# the directories may not exist.
1183case `pwd` in
1184.) ac_abs_builddir="$ac_dir";;
1185*)
1186  case "$ac_dir" in
1187  .) ac_abs_builddir=`pwd`;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1189  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_top_builddir=${ac_top_builddir}.;;
1194*)
1195  case ${ac_top_builddir}. in
1196  .) ac_abs_top_builddir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1198  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_srcdir=$ac_srcdir;;
1203*)
1204  case $ac_srcdir in
1205  .) ac_abs_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1207  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_srcdir=$ac_top_srcdir;;
1212*)
1213  case $ac_top_srcdir in
1214  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1216  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1217  esac;;
1218esac
1219
1220    cd $ac_dir
1221    # Check for guested configure; otherwise get Cygnus style configure.
1222    if test -f $ac_srcdir/configure.gnu; then
1223      echo
1224      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1225    elif test -f $ac_srcdir/configure; then
1226      echo
1227      $SHELL $ac_srcdir/configure  --help=recursive
1228    elif test -f $ac_srcdir/configure.ac ||
1229           test -f $ac_srcdir/configure.in; then
1230      echo
1231      $ac_configure --help
1232    else
1233      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1234    fi
1235    cd $ac_popdir
1236  done
1237fi
1238
1239test -n "$ac_init_help" && exit 0
1240if $ac_init_version; then
1241  cat <<\_ACEOF
1242ThirdPartyMumps configure 1.1trunk
1243generated by GNU Autoconf 2.59
1244
1245Copyright (C) 2003 Free Software Foundation, Inc.
1246This configure script is free software; the Free Software Foundation
1247gives unlimited permission to copy, distribute and modify it.
1248
1249
1250Copyright 2007-2009 International Business Machines and others.
1251All Rights Reserved.
1252This file is part of the open source package Coin which is distributed
1253under the Common Public License.
1254_ACEOF
1255  exit 0
1256fi
1257exec 5>config.log
1258cat >&5 <<_ACEOF
1259This file contains any messages produced by compilers while
1260running configure, to aid debugging if configure makes a mistake.
1261
1262It was created by ThirdPartyMumps $as_me 1.1trunk, which was
1263generated by GNU Autoconf 2.59.  Invocation command line was
1264
1265  $ $0 $@
1266
1267_ACEOF
1268{
1269cat <<_ASUNAME
1270## --------- ##
1271## Platform. ##
1272## --------- ##
1273
1274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1275uname -m = `(uname -m) 2>/dev/null || echo unknown`
1276uname -r = `(uname -r) 2>/dev/null || echo unknown`
1277uname -s = `(uname -s) 2>/dev/null || echo unknown`
1278uname -v = `(uname -v) 2>/dev/null || echo unknown`
1279
1280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1282
1283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1286hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1290
1291_ASUNAME
1292
1293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294for as_dir in $PATH
1295do
1296  IFS=$as_save_IFS
1297  test -z "$as_dir" && as_dir=.
1298  echo "PATH: $as_dir"
1299done
1300
1301} >&5
1302
1303cat >&5 <<_ACEOF
1304
1305
1306## ----------- ##
1307## Core tests. ##
1308## ----------- ##
1309
1310_ACEOF
1311
1312
1313# Keep a trace of the command line.
1314# Strip out --no-create and --no-recursion so they do not pile up.
1315# Strip out --silent because we don't want to record it for future runs.
1316# Also quote any args containing shell meta-characters.
1317# Make two passes to allow for proper duplicate-argument suppression.
1318ac_configure_args=
1319ac_configure_args0=
1320ac_configure_args1=
1321ac_sep=
1322ac_must_keep_next=false
1323for ac_pass in 1 2
1324do
1325  for ac_arg
1326  do
1327    case $ac_arg in
1328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330    | -silent | --silent | --silen | --sile | --sil)
1331      continue ;;
1332    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1333      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1334    esac
1335    case $ac_pass in
1336    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1337    2)
1338      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1339      if test $ac_must_keep_next = true; then
1340        ac_must_keep_next=false # Got value, back to normal.
1341      else
1342        case $ac_arg in
1343          *=* | --config-cache | -C | -disable-* | --disable-* \
1344          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1345          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1346          | -with-* | --with-* | -without-* | --without-* | --x)
1347            case "$ac_configure_args0 " in
1348              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1349            esac
1350            ;;
1351          -* ) ac_must_keep_next=true ;;
1352        esac
1353      fi
1354      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1355      # Get rid of the leading space.
1356      ac_sep=" "
1357      ;;
1358    esac
1359  done
1360done
1361$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1362$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1363
1364# When interrupted or exit'd, cleanup temporary files, and complete
1365# config.log.  We remove comments because anyway the quotes in there
1366# would cause problems or look ugly.
1367# WARNING: Be sure not to use single quotes in there, as some shells,
1368# such as our DU 5.0 friend, will then `close' the trap.
1369trap 'exit_status=$?
1370  # Save into config.log some information that might help in debugging.
1371  {
1372    echo
1373
1374    cat <<\_ASBOX
1375## ---------------- ##
1376## Cache variables. ##
1377## ---------------- ##
1378_ASBOX
1379    echo
1380    # The following way of writing the cache mishandles newlines in values,
1381{
1382  (set) 2>&1 |
1383    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1384    *ac_space=\ *)
1385      sed -n \
1386        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1387          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1388      ;;
1389    *)
1390      sed -n \
1391        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1392      ;;
1393    esac;
1394}
1395    echo
1396
1397    cat <<\_ASBOX
1398## ----------------- ##
1399## Output variables. ##
1400## ----------------- ##
1401_ASBOX
1402    echo
1403    for ac_var in $ac_subst_vars
1404    do
1405      eval ac_val=$`echo $ac_var`
1406      echo "$ac_var='"'"'$ac_val'"'"'"
1407    done | sort
1408    echo
1409
1410    if test -n "$ac_subst_files"; then
1411      cat <<\_ASBOX
1412## ------------- ##
1413## Output files. ##
1414## ------------- ##
1415_ASBOX
1416      echo
1417      for ac_var in $ac_subst_files
1418      do
1419        eval ac_val=$`echo $ac_var`
1420        echo "$ac_var='"'"'$ac_val'"'"'"
1421      done | sort
1422      echo
1423    fi
1424
1425    if test -s confdefs.h; then
1426      cat <<\_ASBOX
1427## ----------- ##
1428## confdefs.h. ##
1429## ----------- ##
1430_ASBOX
1431      echo
1432      sed "/^$/d" confdefs.h | sort
1433      echo
1434    fi
1435    test "$ac_signal" != 0 &&
1436      echo "$as_me: caught signal $ac_signal"
1437    echo "$as_me: exit $exit_status"
1438  } >&5
1439  rm -f core *.core &&
1440  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1441    exit $exit_status
1442     ' 0
1443for ac_signal in 1 2 13 15; do
1444  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1445done
1446ac_signal=0
1447
1448# confdefs.h avoids OS command line length limits that DEFS can exceed.
1449rm -rf conftest* confdefs.h
1450# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1451echo >confdefs.h
1452
1453# Predefined preprocessor variables.
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_NAME "$PACKAGE_NAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_VERSION "$PACKAGE_VERSION"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_STRING "$PACKAGE_STRING"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1477_ACEOF
1478
1479
1480# Let the site file select an alternate cache file if it wants to.
1481# Prefer explicitly selected file to automatically selected ones.
1482if test -z "$CONFIG_SITE"; then
1483  if test "x$prefix" != xNONE; then
1484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1485  else
1486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1487  fi
1488fi
1489for ac_site_file in $CONFIG_SITE; do
1490  if test -r "$ac_site_file"; then
1491    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1492echo "$as_me: loading site script $ac_site_file" >&6;}
1493    sed 's/^/| /' "$ac_site_file" >&5
1494    . "$ac_site_file"
1495  fi
1496done
1497
1498if test -r "$cache_file"; then
1499  # Some versions of bash will fail to source /dev/null (special
1500  # files actually), so we avoid doing that.
1501  if test -f "$cache_file"; then
1502    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1503echo "$as_me: loading cache $cache_file" >&6;}
1504    case $cache_file in
1505      [\\/]* | ?:[\\/]* ) . $cache_file;;
1506      *)                      . ./$cache_file;;
1507    esac
1508  fi
1509else
1510  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1511echo "$as_me: creating cache $cache_file" >&6;}
1512  >$cache_file
1513fi
1514
1515# Check that the precious variables saved in the cache have kept the same
1516# value.
1517ac_cache_corrupted=false
1518for ac_var in `(set) 2>&1 |
1519               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1520  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1521  eval ac_new_set=\$ac_env_${ac_var}_set
1522  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1523  eval ac_new_val="\$ac_env_${ac_var}_value"
1524  case $ac_old_set,$ac_new_set in
1525    set,)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,set)
1530      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1531echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1532      ac_cache_corrupted=: ;;
1533    ,);;
1534    *)
1535      if test "x$ac_old_val" != "x$ac_new_val"; then
1536        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1537echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1538        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1539echo "$as_me:   former value:  $ac_old_val" >&2;}
1540        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1541echo "$as_me:   current value: $ac_new_val" >&2;}
1542        ac_cache_corrupted=:
1543      fi;;
1544  esac
1545  # Pass precious variables to config.status.
1546  if test "$ac_new_set" = set; then
1547    case $ac_new_val in
1548    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1550    *) ac_arg=$ac_var=$ac_new_val ;;
1551    esac
1552    case " $ac_configure_args " in
1553      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1554      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1555    esac
1556  fi
1557done
1558if $ac_cache_corrupted; then
1559  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1560echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1561  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1562echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1563   { (exit 1); exit 1; }; }
1564fi
1565
1566ac_ext=c
1567ac_cpp='$CPP $CPPFLAGS'
1568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601# List one file in the package so that the configure script can test
1602# whether the package is actually there
1603
1604
1605# Where should everything be installed by default?  Here, we want it
1606# to be installed directly in 'bin', 'lib', 'include' subdirectories
1607# of the directory where configure is run.  The default would be
1608# /usr/local.
1609
1610
1611# Initialize the ADDLIBS variable
1612ADDLIBS="-lm $LIBS"
1613
1614
1615# As backup, we make sure we don't loose an FLIBS if it has been set
1616# by the user
1617save_FLIBS="$FLIBS"
1618
1619# Initialize the FADDLIBS variable (which is to be used with a fortran
1620# compiler and will not include FLIBS)
1621FADDLIBS="$LIBS"
1622
1623
1624# A useful makefile conditional that is always false
1625
1626
1627if false; then
1628  ALWAYS_FALSE_TRUE=
1629  ALWAYS_FALSE_FALSE='#'
1630else
1631  ALWAYS_FALSE_TRUE='#'
1632  ALWAYS_FALSE_FALSE=
1633fi
1634
1635
1636# We set the following variable so that we know later in AC_COIN_FINALIZE
1637# that we are in a project main directory
1638coin_projectdir=yes
1639
1640# Check if a library version is set for libtool
1641
1642
1643
1644#############################################################################
1645#                         Standard build tool stuff                         #
1646#############################################################################
1647
1648# Get the system type
1649ac_aux_dir=
1650for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1651  if test -f $ac_dir/install-sh; then
1652    ac_aux_dir=$ac_dir
1653    ac_install_sh="$ac_aux_dir/install-sh -c"
1654    break
1655  elif test -f $ac_dir/install.sh; then
1656    ac_aux_dir=$ac_dir
1657    ac_install_sh="$ac_aux_dir/install.sh -c"
1658    break
1659  elif test -f $ac_dir/shtool; then
1660    ac_aux_dir=$ac_dir
1661    ac_install_sh="$ac_aux_dir/shtool install -c"
1662    break
1663  fi
1664done
1665if test -z "$ac_aux_dir"; then
1666  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1667echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1668   { (exit 1); exit 1; }; }
1669fi
1670ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1671ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1672ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1673
1674# Make sure we can run config.sub.
1675$ac_config_sub sun4 >/dev/null 2>&1 ||
1676  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1677echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1678   { (exit 1); exit 1; }; }
1679
1680echo "$as_me:$LINENO: checking build system type" >&5
1681echo $ECHO_N "checking build system type... $ECHO_C" >&6
1682if test "${ac_cv_build+set}" = set; then
1683  echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685  ac_cv_build_alias=$build_alias
1686test -z "$ac_cv_build_alias" &&
1687  ac_cv_build_alias=`$ac_config_guess`
1688test -z "$ac_cv_build_alias" &&
1689  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1690echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1691   { (exit 1); exit 1; }; }
1692ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1693  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1694echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1695   { (exit 1); exit 1; }; }
1696
1697fi
1698echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1699echo "${ECHO_T}$ac_cv_build" >&6
1700build=$ac_cv_build
1701build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706
1707#turn off warnings and pedantic mode since they could make trouble on some platforms,
1708#and we couldn't fix them anyway
1709coin_skip_warn_cflags=yes
1710coin_skip_warn_fflags=yes
1711
1712# Check if user wants to produce debugging code
1713
1714echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1715echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1716
1717# Check whether --enable-debug or --disable-debug was given.
1718if test "${enable_debug+set}" = set; then
1719  enableval="$enable_debug"
1720  case "${enableval}" in
1721   yes) coin_debug_compile=true
1722        if test "${enable_shared+set}" = set; then :; else
1723          enable_shared=no
1724        fi
1725        ;;
1726   no)  coin_debug_compile=false
1727        ;;
1728   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1729echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1730   { (exit 1); exit 1; }; }
1731        ;;
1732esac
1733else
1734  coin_debug_compile=false
1735fi;
1736
1737# Check whether --enable-debug-mumps or --disable-debug-mumps was given.
1738if test "${enable_debug_mumps+set}" = set; then
1739  enableval="$enable_debug_mumps"
1740  case "${enableval}" in
1741    yes) coin_debug_compile=true
1742         enable_shared=no
1743         ;;
1744    no)  coin_debug_compile=false
1745         ;;
1746    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-mumps" >&5
1747echo "$as_me: error: bad value ${enableval} for --enable-debug-mumps" >&2;}
1748   { (exit 1); exit 1; }; }
1749         ;;
1750 esac
1751else
1752  :
1753fi;
1754
1755 # m4_ifvaln([Mumps],
1756
1757if test $coin_debug_compile = true; then
1758  echo "$as_me:$LINENO: result: yes" >&5
1759echo "${ECHO_T}yes" >&6
1760else
1761  echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
1763fi
1764
1765
1766# Check whether --with-mumps-verbosity or --without-mumps-verbosity was given.
1767if test "${with_mumps_verbosity+set}" = set; then
1768  withval="$with_mumps_verbosity"
1769  if test "$withval" = yes; then
1770                withval=1
1771              fi
1772              coin_mumps_verbosity=$withval
1773else
1774  coin_mumps_verbosity=0
1775fi;
1776
1777cat >>confdefs.h <<_ACEOF
1778#define COIN_MUMPS_VERBOSITY $coin_mumps_verbosity
1779_ACEOF
1780
1781
1782
1783# Check whether --with-mumps-checklevel or --without-mumps-checklevel was given.
1784if test "${with_mumps_checklevel+set}" = set; then
1785  withval="$with_mumps_checklevel"
1786  if test "$withval" = yes; then
1787                withval=1
1788              fi
1789              coin_mumps_checklevel=$withval
1790else
1791  coin_mumps_checklevel=0
1792fi;
1793
1794cat >>confdefs.h <<_ACEOF
1795#define COIN_MUMPS_CHECKLEVEL $coin_mumps_checklevel
1796_ACEOF
1797
1798
1799# We use the following variable to have a string with the upper case
1800# version of the project name
1801COIN_PRJCT=MUMPS
1802
1803
1804 # m4_ifvaln([Mumps],
1805
1806
1807
1808# Get the name of the C compiler
1809case $build in
1810  *-mingw*)
1811    if test "${LD+set}" = set; then :; else
1812      LD=link
1813    fi
1814    ;;
1815 esac
1816 case $enable_doscompile in
1817   msvc)
1818     if test "x${LD+set}" = xset; then :; else
1819       LD=link
1820     fi
1821     ;;
1822 esac
1823
1824
1825 # Check whether --enable-doscompile or --disable-doscompile was given.
1826if test "${enable_doscompile+set}" = set; then
1827  enableval="$enable_doscompile"
1828  if test "$enable_doscompile" != no; then
1829     case $build in
1830       *-cygwin* | *-mingw*) ;;
1831       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1832echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1833   { (exit 1); exit 1; }; } ;;
1834     esac
1835   fi
1836else
1837  enable_doscompile=no
1838fi;
1839 case "$enable_doscompile" in
1840   mingw)
1841     case $build in
1842       *-mingw*) enable_doscompile=no ;;
1843     esac
1844     ;;
1845   msvc|no) ;;
1846   yes) enable_doscompile=mingw ;;
1847   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1848                    Try configure --help=recursive." >&5
1849echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1850                    Try configure --help=recursive." >&2;}
1851   { (exit 1); exit 1; }; }
1852      ;;
1853  esac
1854  if test "$enable_doscompile" != no ; then
1855    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1856echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1857  fi
1858
1859
1860
1861
1862ac_ext=c
1863ac_cpp='$CPP $CPPFLAGS'
1864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867
1868
1869# For consistency, we set the C compiler to the same value of the C++
1870# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1871if test x"$CXX" != x; then
1872  case "$CXX" in
1873    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1874      if test x"$CC" = x; then
1875        CC="$CXX"
1876        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1877echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1878      fi
1879      ;;
1880  esac
1881fi
1882
1883
1884
1885
1886
1887
1888coin_has_cc=yes
1889
1890save_cflags="$CFLAGS"
1891
1892# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1893# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1894# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1895# compiler. In this case, put cc after gcc.
1896
1897case $build in
1898  *-cygwin* | *-mingw*)
1899             if test "$enable_doscompile" = msvc ; then
1900               comps="icl cl"
1901             else
1902               comps="gcc cl"
1903             fi ;;
1904  *-*-solaris*)
1905             # Extract the first word of "cc", so it can be a program name with args.
1906set dummy cc; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  if test -n "$sol_cc_compiler"; then
1913  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1914else
1915  ac_prog_rejected=no
1916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917for as_dir in $PATH
1918do
1919  IFS=$as_save_IFS
1920  test -z "$as_dir" && as_dir=.
1921  for ac_exec_ext in '' $ac_executable_extensions; do
1922  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1924       ac_prog_rejected=yes
1925       continue
1926     fi
1927    ac_cv_prog_sol_cc_compiler="cc"
1928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929    break 2
1930  fi
1931done
1932done
1933
1934if test $ac_prog_rejected = yes; then
1935  # We found a bogon in the path, so make sure we never use it.
1936  set dummy $ac_cv_prog_sol_cc_compiler
1937  shift
1938  if test $# != 0; then
1939    # We chose a different compiler from the bogus one.
1940    # However, it has the same basename, so the bogon will be chosen
1941    # first if we set sol_cc_compiler to just the basename; use the full file name.
1942    shift
1943    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1944  fi
1945fi
1946fi
1947fi
1948sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1949if test -n "$sol_cc_compiler"; then
1950  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1951echo "${ECHO_T}$sol_cc_compiler" >&6
1952else
1953  echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6
1955fi
1956
1957             if test "$sol_cc_compiler" = "cc" ; then
1958               comps="cc xlc gcc pgcc icc"
1959             else
1960               comps="xlc gcc pgcc icc cc"
1961             fi
1962             ;;
1963  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1964  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1965esac
1966
1967# We delete the cached value, since the test might not have been
1968# performed with our choice of compilers earlier
1969$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1970# AC_MSG_NOTICE([C compiler candidates: $comps])
1971ac_ext=c
1972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976if test -n "$ac_tool_prefix"; then
1977  for ac_prog in $comps
1978  do
1979    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_CC+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$CC"; then
1987  ac_cv_prog_CC="$CC" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994  for ac_exec_ext in '' $ac_executable_extensions; do
1995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007  echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6
2009else
2010  echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014    test -n "$CC" && break
2015  done
2016fi
2017if test -z "$CC"; then
2018  ac_ct_CC=$CC
2019  for ac_prog in $comps
2020do
2021  # Extract the first word of "$ac_prog", so it can be a program name with args.
2022set dummy $ac_prog; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  if test -n "$ac_ct_CC"; then
2029  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  for ac_exec_ext in '' $ac_executable_extensions; do
2037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038    ac_cv_prog_ac_ct_CC="$ac_prog"
2039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040    break 2
2041  fi
2042done
2043done
2044
2045fi
2046fi
2047ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048if test -n "$ac_ct_CC"; then
2049  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050echo "${ECHO_T}$ac_ct_CC" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056  test -n "$ac_ct_CC" && break
2057done
2058
2059  CC=$ac_ct_CC
2060fi
2061
2062
2063test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&5
2065echo "$as_me: error: no acceptable C compiler found in \$PATH
2066See \`config.log' for more details." >&2;}
2067   { (exit 1); exit 1; }; }
2068
2069# Provide some information about the compiler.
2070echo "$as_me:$LINENO:" \
2071     "checking for C compiler version" >&5
2072ac_compiler=`set X $ac_compile; echo $2`
2073{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2074  (eval $ac_compiler --version </dev/null >&5) 2>&5
2075  ac_status=$?
2076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077  (exit $ac_status); }
2078{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2079  (eval $ac_compiler -v </dev/null >&5) 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); }
2083{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2084  (eval $ac_compiler -V </dev/null >&5) 2>&5
2085  ac_status=$?
2086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087  (exit $ac_status); }
2088
2089cat >conftest.$ac_ext <<_ACEOF
2090/* confdefs.h.  */
2091_ACEOF
2092cat confdefs.h >>conftest.$ac_ext
2093cat >>conftest.$ac_ext <<_ACEOF
2094/* end confdefs.h.  */
2095
2096int
2097main ()
2098{
2099
2100  ;
2101  return 0;
2102}
2103_ACEOF
2104ac_clean_files_save=$ac_clean_files
2105ac_clean_files="$ac_clean_files a.out a.exe b.out"
2106# Try to create an executable without -o first, disregard a.out.
2107# It will help us diagnose broken compilers, and finding out an intuition
2108# of exeext.
2109echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2110echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2111ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2112if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2113  (eval $ac_link_default) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); }; then
2117  # Find the output, starting from the most likely.  This scheme is
2118# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2119# resort.
2120
2121# Be careful to initialize this variable, since it used to be cached.
2122# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2123ac_cv_exeext=
2124# b.out is created by i960 compilers.
2125for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2126do
2127  test -f "$ac_file" || continue
2128  case $ac_file in
2129    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2130        ;;
2131    conftest.$ac_ext )
2132        # This is the source file.
2133        ;;
2134    [ab].out )
2135        # We found the default executable, but exeext='' is most
2136        # certainly right.
2137        break;;
2138    *.* )
2139        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140        # FIXME: I believe we export ac_cv_exeext for Libtool,
2141        # but it would be cool to find out if it's true.  Does anybody
2142        # maintain Libtool? --akim.
2143        export ac_cv_exeext
2144        break;;
2145    * )
2146        break;;
2147  esac
2148done
2149else
2150  echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2154See \`config.log' for more details." >&5
2155echo "$as_me: error: C compiler cannot create executables
2156See \`config.log' for more details." >&2;}
2157   { (exit 77); exit 77; }; }
2158fi
2159
2160ac_exeext=$ac_cv_exeext
2161echo "$as_me:$LINENO: result: $ac_file" >&5
2162echo "${ECHO_T}$ac_file" >&6
2163
2164# Check the compiler produces executables we can run.  If not, either
2165# the compiler is broken, or we cross compile.
2166echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2167echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2168# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2169# If not cross compiling, check that we can run a simple program.
2170if test "$cross_compiling" != yes; then
2171  if { ac_try='./$ac_file'
2172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173  (eval $ac_try) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; }; then
2177    cross_compiling=no
2178  else
2179    if test "$cross_compiling" = maybe; then
2180        cross_compiling=yes
2181    else
2182        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2183If you meant to cross compile, use \`--host'.
2184See \`config.log' for more details." >&5
2185echo "$as_me: error: cannot run C compiled programs.
2186If you meant to cross compile, use \`--host'.
2187See \`config.log' for more details." >&2;}
2188   { (exit 1); exit 1; }; }
2189    fi
2190  fi
2191fi
2192echo "$as_me:$LINENO: result: yes" >&5
2193echo "${ECHO_T}yes" >&6
2194
2195rm -f a.out a.exe conftest$ac_cv_exeext b.out
2196ac_clean_files=$ac_clean_files_save
2197# Check the compiler produces executables we can run.  If not, either
2198# the compiler is broken, or we cross compile.
2199echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2200echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2201echo "$as_me:$LINENO: result: $cross_compiling" >&5
2202echo "${ECHO_T}$cross_compiling" >&6
2203
2204echo "$as_me:$LINENO: checking for suffix of executables" >&5
2205echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2207  (eval $ac_link) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; then
2211  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2212# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2213# work properly (i.e., refer to `conftest.exe'), while it won't with
2214# `rm'.
2215for ac_file in conftest.exe conftest conftest.*; do
2216  test -f "$ac_file" || continue
2217  case $ac_file in
2218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2219    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220          export ac_cv_exeext
2221          break;;
2222    * ) break;;
2223  esac
2224done
2225else
2226  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2229See \`config.log' for more details." >&2;}
2230   { (exit 1); exit 1; }; }
2231fi
2232
2233rm -f conftest$ac_cv_exeext
2234echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2235echo "${ECHO_T}$ac_cv_exeext" >&6
2236
2237rm -f conftest.$ac_ext
2238EXEEXT=$ac_cv_exeext
2239ac_exeext=$EXEEXT
2240echo "$as_me:$LINENO: checking for suffix of object files" >&5
2241echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2242if test "${ac_cv_objext+set}" = set; then
2243  echo $ECHO_N "(cached) $ECHO_C" >&6
2244else
2245  cat >conftest.$ac_ext <<_ACEOF
2246/* confdefs.h.  */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h.  */
2251
2252int
2253main ()
2254{
2255
2256  ;
2257  return 0;
2258}
2259_ACEOF
2260rm -f conftest.o conftest.obj
2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262  (eval $ac_compile) 2>&5
2263  ac_status=$?
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); }; then
2266  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2267  case $ac_file in
2268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2269    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2270       break;;
2271  esac
2272done
2273else
2274  echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
2276
2277{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280See \`config.log' for more details." >&2;}
2281   { (exit 1); exit 1; }; }
2282fi
2283
2284rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285fi
2286echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287echo "${ECHO_T}$ac_cv_objext" >&6
2288OBJEXT=$ac_cv_objext
2289ac_objext=$OBJEXT
2290echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2292if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293  echo $ECHO_N "(cached) $ECHO_C" >&6
2294else
2295  cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305#ifndef __GNUC__
2306       choke me
2307#endif
2308
2309  ;
2310  return 0;
2311}
2312_ACEOF
2313rm -f conftest.$ac_objext
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315  (eval $ac_compile) 2>conftest.er1
2316  ac_status=$?
2317  grep -v '^ *+' conftest.er1 >conftest.err
2318  rm -f conftest.er1
2319  cat conftest.err >&5
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); } &&
2322         { ac_try='test -z "$ac_c_werror_flag"
2323                         || test ! -s conftest.err'
2324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325  (eval $ac_try) 2>&5
2326  ac_status=$?
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); }; } &&
2329         { ac_try='test -s conftest.$ac_objext'
2330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331  (eval $ac_try) 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }; }; then
2335  ac_compiler_gnu=yes
2336else
2337  echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340ac_compiler_gnu=no
2341fi
2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343ac_cv_c_compiler_gnu=$ac_compiler_gnu
2344
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2347echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2348GCC=`test $ac_compiler_gnu = yes && echo yes`
2349ac_test_CFLAGS=${CFLAGS+set}
2350ac_save_CFLAGS=$CFLAGS
2351CFLAGS="-g"
2352echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2353echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2354if test "${ac_cv_prog_cc_g+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h.  */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h.  */
2363
2364int
2365main ()
2366{
2367
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374  (eval $ac_compile) 2>conftest.er1
2375  ac_status=$?
2376  grep -v '^ *+' conftest.er1 >conftest.err
2377  rm -f conftest.er1
2378  cat conftest.err >&5
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); } &&
2381         { ac_try='test -z "$ac_c_werror_flag"
2382                         || test ! -s conftest.err'
2383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384  (eval $ac_try) 2>&5
2385  ac_status=$?
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); }; } &&
2388         { ac_try='test -s conftest.$ac_objext'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; }; then
2394  ac_cv_prog_cc_g=yes
2395else
2396  echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399ac_cv_prog_cc_g=no
2400fi
2401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2402fi
2403echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2404echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2405if test "$ac_test_CFLAGS" = set; then
2406  CFLAGS=$ac_save_CFLAGS
2407elif test $ac_cv_prog_cc_g = yes; then
2408  if test "$GCC" = yes; then
2409    CFLAGS="-g -O2"
2410  else
2411    CFLAGS="-g"
2412  fi
2413else
2414  if test "$GCC" = yes; then
2415    CFLAGS="-O2"
2416  else
2417    CFLAGS=
2418  fi
2419fi
2420echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2421echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2422if test "${ac_cv_prog_cc_stdc+set}" = set; then
2423  echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425  ac_cv_prog_cc_stdc=no
2426ac_save_CC=$CC
2427cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433#include <stdarg.h>
2434#include <stdio.h>
2435#include <sys/types.h>
2436#include <sys/stat.h>
2437/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2438struct buf { int x; };
2439FILE * (*rcsopen) (struct buf *, struct stat *, int);
2440static char *e (p, i)
2441     char **p;
2442     int i;
2443{
2444  return p[i];
2445}
2446static char *f (char * (*g) (char **, int), char **p, ...)
2447{
2448  char *s;
2449  va_list v;
2450  va_start (v,p);
2451  s = g (p, va_arg (v,int));
2452  va_end (v);
2453  return s;
2454}
2455
2456/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2457   function prototypes and stuff, but not '\xHH' hex character constants.
2458   These don't provoke an error unfortunately, instead are silently treated
2459   as 'x'.  The following induces an error, until -std1 is added to get
2460   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2461   array size at least.  It's necessary to write '\x00'==0 to get something
2462   that's true only with -std1.  */
2463int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2464
2465int test (int i, double x);
2466struct s1 {int (*f) (int a);};
2467struct s2 {int (*f) (double a);};
2468int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2469int argc;
2470char **argv;
2471int
2472main ()
2473{
2474return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2475  ;
2476  return 0;
2477}
2478_ACEOF
2479# Don't try gcc -ansi; that turns off useful extensions and
2480# breaks some systems' header files.
2481# AIX                   -qlanglvl=ansi
2482# Ultrix and OSF/1      -std1
2483# HP-UX 10.20 and later -Ae
2484# HP-UX older versions  -Aa -D_HPUX_SOURCE
2485# SVR4                  -Xc -D__EXTENSIONS__
2486for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2487do
2488  CC="$ac_save_CC $ac_arg"
2489  rm -f conftest.$ac_objext
2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491  (eval $ac_compile) 2>conftest.er1
2492  ac_status=$?
2493  grep -v '^ *+' conftest.er1 >conftest.err
2494  rm -f conftest.er1
2495  cat conftest.err >&5
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); } &&
2498         { ac_try='test -z "$ac_c_werror_flag"
2499                         || test ! -s conftest.err'
2500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501  (eval $ac_try) 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }; } &&
2505         { ac_try='test -s conftest.$ac_objext'
2506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507  (eval $ac_try) 2>&5
2508  ac_status=$?
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); }; }; then
2511  ac_cv_prog_cc_stdc=$ac_arg
2512break
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext
2519done
2520rm -f conftest.$ac_ext conftest.$ac_objext
2521CC=$ac_save_CC
2522
2523fi
2524
2525case "x$ac_cv_prog_cc_stdc" in
2526  x|xno)
2527    echo "$as_me:$LINENO: result: none needed" >&5
2528echo "${ECHO_T}none needed" >&6 ;;
2529  *)
2530    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2531echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2532    CC="$CC $ac_cv_prog_cc_stdc" ;;
2533esac
2534
2535# Some people use a C++ compiler to compile C.  Since we use `exit',
2536# in C++ we need to declare it.  In case someone uses the same compiler
2537# for both compiling C and C++ we need to have the C++ compiler decide
2538# the declaration of exit, since it's the most demanding environment.
2539cat >conftest.$ac_ext <<_ACEOF
2540#ifndef __cplusplus
2541  choke me
2542#endif
2543_ACEOF
2544rm -f conftest.$ac_objext
2545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546  (eval $ac_compile) 2>conftest.er1
2547  ac_status=$?
2548  grep -v '^ *+' conftest.er1 >conftest.err
2549  rm -f conftest.er1
2550  cat conftest.err >&5
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); } &&
2553         { ac_try='test -z "$ac_c_werror_flag"
2554                         || test ! -s conftest.err'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; } &&
2560         { ac_try='test -s conftest.$ac_objext'
2561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562  (eval $ac_try) 2>&5
2563  ac_status=$?
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); }; }; then
2566  for ac_declaration in \
2567   '' \
2568   'extern "C" void std::exit (int) throw (); using std::exit;' \
2569   'extern "C" void std::exit (int); using std::exit;' \
2570   'extern "C" void exit (int) throw ();' \
2571   'extern "C" void exit (int);' \
2572   'void exit (int);'
2573do
2574  cat >conftest.$ac_ext <<_ACEOF
2575/* confdefs.h.  */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h.  */
2580$ac_declaration
2581#include <stdlib.h>
2582int
2583main ()
2584{
2585exit (42);
2586  ;
2587  return 0;
2588}
2589_ACEOF
2590rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592  (eval $ac_compile) 2>conftest.er1
2593  ac_status=$?
2594  grep -v '^ *+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } &&
2599         { ac_try='test -z "$ac_c_werror_flag"
2600                         || test ! -s conftest.err'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; } &&
2606         { ac_try='test -s conftest.$ac_objext'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; }; then
2612  :
2613else
2614  echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
2617continue
2618fi
2619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620  cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h.  */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h.  */
2626$ac_declaration
2627int
2628main ()
2629{
2630exit (42);
2631  ;
2632  return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
2636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637  (eval $ac_compile) 2>conftest.er1
2638  ac_status=$?
2639  grep -v '^ *+' conftest.er1 >conftest.err
2640  rm -f conftest.er1
2641  cat conftest.err >&5
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); } &&
2644         { ac_try='test -z "$ac_c_werror_flag"
2645                         || test ! -s conftest.err'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; } &&
2651         { ac_try='test -s conftest.$ac_objext'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; }; then
2657  break
2658else
2659  echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662fi
2663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664done
2665rm -f conftest*
2666if test -n "$ac_declaration"; then
2667  echo '#ifdef __cplusplus' >>confdefs.h
2668  echo $ac_declaration      >>confdefs.h
2669  echo '#endif'             >>confdefs.h
2670fi
2671
2672else
2673  echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676fi
2677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678ac_ext=c
2679ac_cpp='$CPP $CPPFLAGS'
2680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683
2684if test -z "$CC" ; then
2685  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2686echo "$as_me: error: Failed to find a C compiler!" >&2;}
2687   { (exit 1); exit 1; }; }
2688fi
2689# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2690case "$CC" in
2691  cl* | */cl* | CL* | */CL* )
2692    if test "$ac_cv_prog_cc_g" = yes ; then
2693      ac_cv_prog_cc_g=no
2694      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2695echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2696    fi ;;
2697esac
2698CFLAGS="$save_cflags"
2699
2700# Check if a project specific CFLAGS variable has been set
2701if test x$COIN_PRJCT != x; then
2702  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2703  if test x$coin_tmp = xset; then
2704    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2705  fi
2706fi
2707
2708if test x"$CFLAGS" = x; then
2709
2710  coin_add_cflags=
2711  coin_opt_cflags=
2712  coin_dbg_cflags=
2713  coin_warn_cflags=
2714
2715  if test "$GCC" = "yes"; then
2716    case "$CC" in
2717      icc* | */icc*)
2718        ;;
2719      *)
2720        coin_opt_cflags="-O3 -fomit-frame-pointer"
2721        coin_add_cflags="-pipe"
2722        coin_dbg_cflags="-g"
2723        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2724        case $build in
2725          *-darwin*)
2726            ;;
2727          *)
2728            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2729            ;;
2730        esac
2731        case $enable_doscompile in
2732          mingw)
2733            CFLAGS="-mno-cygwin"
2734            cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744int i=0; i++;
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext conftest$ac_exeext
2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751  (eval $ac_link) 2>conftest.er1
2752  ac_status=$?
2753  grep -v '^ *+' conftest.er1 >conftest.err
2754  rm -f conftest.er1
2755  cat conftest.err >&5
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); } &&
2758         { ac_try='test -z "$ac_c_werror_flag"
2759                         || test ! -s conftest.err'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; } &&
2765         { ac_try='test -s conftest$ac_exeext'
2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767  (eval $ac_try) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776fi
2777rm -f conftest.err conftest.$ac_objext \
2778      conftest$ac_exeext conftest.$ac_ext
2779            CFLAGS=
2780          ;;
2781        esac
2782    esac
2783  fi
2784  if test -z "$coin_opt_cflags"; then
2785    case $build in
2786      *-cygwin* | *-mingw*)
2787        case "$CC" in
2788          cl* | */cl* | CL* | */CL*)
2789            coin_opt_cflags='-MT -O2'
2790            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2791            coin_dbg_cflags='-MTd'
2792            ;;
2793          icl* | */icl* | ICL* | */ICL*)
2794            coin_opt_cflags='-MT -Ox'
2795            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2796            coin_dbg_cflags='-MTd -debug'
2797            ;;
2798        esac
2799        ;;
2800      *-linux-*)
2801        case "$CC" in
2802          icc* | */icc*)
2803            coin_opt_cflags="-O3 -ip -mp1"
2804            coin_add_cflags=""
2805            coin_dbg_cflags="-g"
2806            # Check if -i_dynamic is necessary (for new glibc library)
2807            CFLAGS=
2808            cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h.  */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h.  */
2814
2815int
2816main ()
2817{
2818int i=0; i++;
2819  ;
2820  return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext conftest$ac_exeext
2824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2825  (eval $ac_link) 2>conftest.er1
2826  ac_status=$?
2827  grep -v '^ *+' conftest.er1 >conftest.err
2828  rm -f conftest.er1
2829  cat conftest.err >&5
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); } &&
2832         { ac_try='test -z "$ac_c_werror_flag"
2833                         || test ! -s conftest.err'
2834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835  (eval $ac_try) 2>&5
2836  ac_status=$?
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); }; } &&
2839         { ac_try='test -s conftest$ac_exeext'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; }; then
2845  :
2846else
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850coin_add_cflags="-i_dynamic $coin_add_cflags"
2851fi
2852rm -f conftest.err conftest.$ac_objext \
2853      conftest$ac_exeext conftest.$ac_ext
2854            ;;
2855          pgcc* | */pgcc*)
2856            coin_opt_cflags="-fast"
2857            coin_add_cflags="-Kieee -pc 64"
2858            coin_dbg_cflags="-g"
2859            ;;
2860        esac
2861        ;;
2862      *-ibm-*)
2863        case "$CC" in
2864          xlc* | */xlc* | mpxlc* | */mpxlc*)
2865            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2866            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2867            coin_dbg_cflags="-g"
2868          ;;
2869        esac
2870        ;;
2871      *-hp-*)
2872        coin_opt_cflags="-O"
2873        coin_add_cflags="-Ae"
2874        coin_dbg_cflags="-g"
2875        ;;
2876      *-*-solaris*)
2877        coin_opt_cflags="-xO4"
2878        coin_dbg_cflags="-g"
2879        ;;
2880      *-sgi-*)
2881        coin_opt_cflags="-O -OPT:Olimit=0"
2882        coin_dbg_cflags="-g"
2883        ;;
2884    esac
2885  fi
2886
2887  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2888    coin_dbg_cflags="-g"
2889  fi
2890
2891  if test -z "$coin_opt_cflags"; then
2892    # Try if -O option works if nothing else is set
2893    CFLAGS="-O"
2894    cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  coin_opt_cflags="-O"
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936fi
2937rm -f conftest.err conftest.$ac_objext \
2938      conftest$ac_exeext conftest.$ac_ext
2939  fi
2940
2941  # if PM doesn't want the warning messages, take them out
2942  if test x"$coin_skip_warn_cflags" = xyes; then
2943    coin_warn_cflags=
2944  fi
2945
2946  if test x${DBG_CFLAGS+set} != xset; then
2947    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2948  fi
2949  if test x${OPT_CFLAGS+set} != xset; then
2950    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2951  fi
2952
2953  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2954  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2955
2956  if test "$coin_debug_compile" = "true"; then
2957    CFLAGS="$DBG_CFLAGS"
2958  else
2959    CFLAGS="$OPT_CFLAGS"
2960  fi
2961else
2962  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2963  if test x${DBG_CFLAGS+set} != xset; then
2964    DBG_CFLAGS="$CFLAGS"
2965  fi
2966  if test x${OPT_CFLAGS+set} != xset; then
2967    OPT_CFLAGS="$CFLAGS"
2968  fi
2969fi
2970
2971# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2972
2973case "$CFLAGS" in
2974  *-mno-cygwin*)
2975    if test x${CPPFLAGS+set} != xset ; then
2976      CPPFLAGS="-mno-cygwin"
2977    else
2978      case "$CPPFLAGS" in
2979        *-mno-cygwin*)
2980          ;;
2981        *)
2982          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2983          ;;
2984      esac
2985    fi ;;
2986esac
2987
2988# Try if CFLAGS works
2989save_CFLAGS="$CFLAGS"
2990cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000int i=0; i++;
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext conftest$ac_exeext
3006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007  (eval $ac_link) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014         { ac_try='test -z "$ac_c_werror_flag"
3015                         || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021         { ac_try='test -s conftest$ac_exeext'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; }; then
3027  :
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032CFLAGS=
3033fi
3034rm -f conftest.err conftest.$ac_objext \
3035      conftest$ac_exeext conftest.$ac_ext
3036if test -z "$CFLAGS"; then
3037  { 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
3038echo "$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;}
3039  CFLAGS='-O'
3040  cat >conftest.$ac_ext <<_ACEOF
3041/* confdefs.h.  */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h.  */
3046
3047int
3048main ()
3049{
3050int i=0; i++;
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext conftest$ac_exeext
3056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3057  (eval $ac_link) 2>conftest.er1
3058  ac_status=$?
3059  grep -v '^ *+' conftest.er1 >conftest.err
3060  rm -f conftest.er1
3061  cat conftest.err >&5
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); } &&
3064         { ac_try='test -z "$ac_c_werror_flag"
3065                         || test ! -s conftest.err'
3066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067  (eval $ac_try) 2>&5
3068  ac_status=$?
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); }; } &&
3071         { ac_try='test -s conftest$ac_exeext'
3072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073  (eval $ac_try) 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }; }; then
3077  :
3078else
3079  echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082CFLAGS=
3083fi
3084rm -f conftest.err conftest.$ac_objext \
3085      conftest$ac_exeext conftest.$ac_ext
3086  if test -z "$CFLAGS"; then
3087    { 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
3088echo "$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;}
3089  fi
3090fi
3091
3092{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3093echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3094
3095
3096if test x"$MPICC" = x; then :; else
3097  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3098echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3099  CC="$MPICC"
3100fi
3101
3102# Correct ADDLIBS initialization if we are using the MS compiler
3103case "$CC" in
3104  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3105    ADDLIBS=
3106    case $build in
3107  *-mingw*)
3108    if test "${LD+set}" = set; then :; else
3109      LD=link
3110    fi
3111    ;;
3112 esac
3113 case $enable_doscompile in
3114   msvc)
3115     if test "x${LD+set}" = xset; then :; else
3116       LD=link
3117     fi
3118     ;;
3119 esac
3120
3121    ;;
3122esac
3123
3124ac_ext=c
3125ac_cpp='$CPP $CPPFLAGS'
3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131
3132# Get the name of the Fortran compiler and appropriate compiler options
3133case $build in
3134  *-cygwin* | *-mingw*)
3135     if test "$enable_doscompile" = msvc ; then
3136       coin_f77_comps="ifort fl32 compile_f2c"
3137     else
3138       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3139     fi ;;
3140  *-*-solaris*)
3141     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3142  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3143 esac
3144
3145
3146
3147
3148
3149
3150ac_ext=f
3151ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3152ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3154
3155
3156
3157
3158
3159
3160coin_has_f77=yes
3161
3162save_fflags="$FFLAGS"
3163
3164# We delete the cached value, since the test might not have been
3165# performed with our choice of compilers earlier
3166$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3167
3168# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3169# coin_f77_comps to see if there's a program that matches one of the names.
3170# If there's no such program, F77 = unavailable. If we match the name,
3171# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3172# compiler.
3173# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3174
3175
3176{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3177echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3178for ac_prog in $coin_f77_comps
3179do
3180  # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_F77+set}" = set; then
3185  echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187  if test -n "$F77"; then
3188  ac_cv_prog_F77="$F77" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195  for ac_exec_ext in '' $ac_executable_extensions; do
3196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_F77="$ac_prog"
3198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202done
3203
3204fi
3205fi
3206F77=$ac_cv_prog_F77
3207if test -n "$F77"; then
3208  echo "$as_me:$LINENO: result: $F77" >&5
3209echo "${ECHO_T}$F77" >&6
3210else
3211  echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213fi
3214
3215  test -n "$F77" && break
3216done
3217test -n "$F77" || F77="unavailable"
3218
3219
3220if test "$F77" != "unavailable" ; then
3221  ac_ext=f
3222ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3223ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3225if test -n "$ac_tool_prefix"; then
3226  for ac_prog in $coin_f77_comps
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232if test "${ac_cv_prog_F77+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235  if test -n "$F77"; then
3236  ac_cv_prog_F77="$F77" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_exec_ext in '' $ac_executable_extensions; do
3244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250done
3251
3252fi
3253fi
3254F77=$ac_cv_prog_F77
3255if test -n "$F77"; then
3256  echo "$as_me:$LINENO: result: $F77" >&5
3257echo "${ECHO_T}$F77" >&6
3258else
3259  echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263    test -n "$F77" && break
3264  done
3265fi
3266if test -z "$F77"; then
3267  ac_ct_F77=$F77
3268  for ac_prog in $coin_f77_comps
3269do
3270  # Extract the first word of "$ac_prog", so it can be a program name with args.
3271set dummy $ac_prog; ac_word=$2
3272echo "$as_me:$LINENO: checking for $ac_word" >&5
3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  if test -n "$ac_ct_F77"; then
3278  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285  for ac_exec_ext in '' $ac_executable_extensions; do
3286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_ac_ct_F77="$ac_prog"
3288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292done
3293
3294fi
3295fi
3296ac_ct_F77=$ac_cv_prog_ac_ct_F77
3297if test -n "$ac_ct_F77"; then
3298  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3299echo "${ECHO_T}$ac_ct_F77" >&6
3300else
3301  echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303fi
3304
3305  test -n "$ac_ct_F77" && break
3306done
3307
3308  F77=$ac_ct_F77
3309fi
3310
3311
3312# Provide some information about the compiler.
3313echo "$as_me:3313:" \
3314     "checking for Fortran 77 compiler version" >&5
3315ac_compiler=`set X $ac_compile; echo $2`
3316{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3317  (eval $ac_compiler --version </dev/null >&5) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }
3321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3322  (eval $ac_compiler -v </dev/null >&5) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }
3326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3327  (eval $ac_compiler -V </dev/null >&5) 2>&5
3328  ac_status=$?
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); }
3331rm -f a.out
3332
3333# If we don't use `.F' as extension, the preprocessor is not run on the
3334# input file.  (Note that this only needs to work for GNU compilers.)
3335ac_save_ext=$ac_ext
3336ac_ext=F
3337echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3338echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3339if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342  cat >conftest.$ac_ext <<_ACEOF
3343      program main
3344#ifndef __GNUC__
3345       choke me
3346#endif
3347
3348      end
3349_ACEOF
3350rm -f conftest.$ac_objext
3351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352  (eval $ac_compile) 2>conftest.er1
3353  ac_status=$?
3354  grep -v '^ *+' conftest.er1 >conftest.err
3355  rm -f conftest.er1
3356  cat conftest.err >&5
3357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); } &&
3359         { ac_try='test -z "$ac_f77_werror_flag"
3360                         || test ! -s conftest.err'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; } &&
3366         { ac_try='test -s conftest.$ac_objext'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; }; then
3372  ac_compiler_gnu=yes
3373else
3374  echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377ac_compiler_gnu=no
3378fi
3379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3381
3382fi
3383echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3384echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3385ac_ext=$ac_save_ext
3386ac_test_FFLAGS=${FFLAGS+set}
3387ac_save_FFLAGS=$FFLAGS
3388FFLAGS=
3389echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3390echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3391if test "${ac_cv_prog_f77_g+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  FFLAGS=-g
3395cat >conftest.$ac_ext <<_ACEOF
3396      program main
3397
3398      end
3399_ACEOF
3400rm -f conftest.$ac_objext
3401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402  (eval $ac_compile) 2>conftest.er1
3403  ac_status=$?
3404  grep -v '^ *+' conftest.er1 >conftest.err
3405  rm -f conftest.er1
3406  cat conftest.err >&5
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); } &&
3409         { ac_try='test -z "$ac_f77_werror_flag"
3410                         || test ! -s conftest.err'
3411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412  (eval $ac_try) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; } &&
3416         { ac_try='test -s conftest.$ac_objext'
3417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418  (eval $ac_try) 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }; }; then
3422  ac_cv_prog_f77_g=yes
3423else
3424  echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427ac_cv_prog_f77_g=no
3428fi
3429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3433echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3434if test "$ac_test_FFLAGS" = set; then
3435  FFLAGS=$ac_save_FFLAGS
3436elif test $ac_cv_prog_f77_g = yes; then
3437  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3438    FFLAGS="-g -O2"
3439  else
3440    FFLAGS="-g"
3441  fi
3442else
3443  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3444    FFLAGS="-O2"
3445  else
3446    FFLAGS=
3447  fi
3448fi
3449
3450G77=`test $ac_compiler_gnu = yes && echo yes`
3451ac_ext=f
3452ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3453ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3455
3456else
3457  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3458echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3459fi
3460
3461FFLAGS="$save_fflags"
3462
3463# Check if a project specific FFLAGS variable has been set
3464if test x$COIN_PRJCT != x; then
3465  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3466  if test x$coin_tmp = xset; then
3467    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3468  fi
3469fi
3470
3471if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3472
3473  coin_add_fflags=
3474  coin_opt_fflags=
3475  coin_dbg_fflags=
3476  coin_warn_fflags=
3477
3478  if test "$G77" = "yes"; then
3479    coin_opt_fflags="-O3 -fomit-frame-pointer"
3480    coin_add_fflags="-pipe"
3481    coin_dbg_fflags="-g"
3482    case $enable_doscompile in
3483      mingw)
3484        FFLAGS="-mno-cygwin"
3485        cat >conftest.$ac_ext <<_ACEOF
3486      program main
3487      write(*,*) 'Hello world'
3488      end
3489_ACEOF
3490rm -f conftest.$ac_objext conftest$ac_exeext
3491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3492  (eval $ac_link) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_f77_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest$ac_exeext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517fi
3518rm -f conftest.err conftest.$ac_objext \
3519      conftest$ac_exeext conftest.$ac_ext
3520        FFLAGS=
3521      ;;
3522    esac
3523  else
3524    case $build in
3525      *-cygwin* | *-mingw*)
3526        case $F77 in
3527          ifort* | */ifort* | IFORT* | */IFORT* )
3528            coin_opt_fflags='-MT -O3'
3529            coin_add_fflags='-fpp -nologo'
3530            coin_dbg_fflags='-MTd -debug'
3531          ;;
3532          compile_f2c*)
3533            coin_opt_fflags='-MT -O2'
3534            coin_add_fflags='-nologo -wd4996'
3535            coin_dbg_fflags='-MTd'
3536          ;;
3537        esac
3538        ;;
3539      *-linux-*)
3540        case $F77 in
3541          ifc* | */ifc* | ifort* | */ifort*)
3542            coin_opt_fflags="-O3 -ip"
3543            coin_add_fflags="-cm -w90 -w95"
3544            coin_dbg_fflags="-g -CA -CB -CS"
3545            # Check if -i_dynamic is necessary (for new glibc library)
3546            FFLAGS=
3547            cat >conftest.$ac_ext <<_ACEOF
3548      program main
3549      write(*,*) 'Hello world'
3550      end
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554  (eval $ac_link) 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } &&
3561         { ac_try='test -z "$ac_f77_werror_flag"
3562                         || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568         { ac_try='test -s conftest$ac_exeext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  :
3575else
3576  echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579coin_add_fflags="-i_dynamic $coin_add_fflags"
3580fi
3581rm -f conftest.err conftest.$ac_objext \
3582      conftest$ac_exeext conftest.$ac_ext
3583            ;;
3584          pgf77* | */pgf77* | pgf90* | */pgf90*)
3585            coin_opt_fflags="-fast"
3586            coin_add_fflags="-Kieee -pc 64"
3587            coin_dbg_fflags="-g"
3588          ;;
3589        esac
3590        ;;
3591      *-ibm-*)
3592        case "$F77" in
3593          xlf* | */xlf* | mpxlf* | */mpxlf* )
3594            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3595            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3596            coin_dbg_fflags="-g -C"
3597            ;;
3598        esac
3599        ;;
3600      *-hp-*)
3601        coin_opt_fflags="+O3"
3602        coin_add_fflags="+U77"
3603        coin_dbg_fflags="-C -g"
3604        ;;
3605      *-*-solaris*)
3606        coin_opt_fflags="-O4"
3607        coin_dbg_fflags="-g"
3608        ;;
3609      *-sgi-*)
3610        coin_opt_fflags="-O5 -OPT:Olimit=0"
3611        coin_dbg_fflags="-g"
3612        ;;
3613    esac
3614  fi
3615
3616  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3617    coin_dbg_fflags="-g"
3618  fi
3619
3620  if test -z "$coin_opt_fflags"; then
3621    # Try if -O option works if nothing else is set
3622    FFLAGS=-O
3623    cat >conftest.$ac_ext <<_ACEOF
3624      program main
3625      integer i
3626      end
3627_ACEOF
3628rm -f conftest.$ac_objext conftest$ac_exeext
3629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630  (eval $ac_link) 2>conftest.er1
3631  ac_status=$?
3632  grep -v '^ *+' conftest.er1 >conftest.err
3633  rm -f conftest.er1
3634  cat conftest.err >&5
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); } &&
3637         { ac_try='test -z "$ac_f77_werror_flag"
3638                         || test ! -s conftest.err'
3639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640  (eval $ac_try) 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; } &&
3644         { ac_try='test -s conftest$ac_exeext'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; }; then
3650  coin_opt_fflags="-O"
3651else
3652  echo "$as_me: failed program was:" >&5
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
3655fi
3656rm -f conftest.err conftest.$ac_objext \
3657      conftest$ac_exeext conftest.$ac_ext
3658  fi
3659
3660  # if PM doesn't want the warning messages, take them out
3661  if test x"$coin_skip_warn_fflags" = xyes; then
3662    coin_warn_fflags=
3663  fi
3664
3665  if test x${DBG_FFLAGS+set} != xset; then
3666    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3667  fi
3668  if test x${OPT_FFLAGS+set} != xset; then
3669    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3670  fi
3671
3672  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3673  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3674
3675  if test "$coin_debug_compile" = "true"; then
3676    FFLAGS="$DBG_FFLAGS"
3677  else
3678    FFLAGS="$OPT_FFLAGS"
3679  fi
3680else
3681  FFLAGS="$FFLAGS $ADD_FFLAGS"
3682  if test x${DBG_FFLAGS+set} != xset; then
3683    DBG_FFLAGS="$FFLAGS"
3684  fi
3685  if test x${OPT_FFLAGS+set} != xset; then
3686    OPT_FFLAGS="$FFLAGS"
3687  fi
3688fi
3689
3690# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3691case "$FFLAGS" in
3692  *-mno-cygwin*)
3693    if test x${CPPFLAGS+set} != xset ; then
3694      CPPFLAGS="-mno-cygwin"
3695    else
3696      case "$CPPFLAGS" in
3697        *-mno-cygwin*)
3698          ;;
3699        *)
3700          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3701          ;;
3702      esac
3703    fi ;;
3704esac
3705
3706# Try if FFLAGS works
3707if test "$F77" != "unavailable" ; then
3708  cat >conftest.$ac_ext <<_ACEOF
3709      program main
3710      integer i
3711      end
3712_ACEOF
3713rm -f conftest.$ac_objext conftest$ac_exeext
3714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3715  (eval $ac_link) 2>conftest.er1
3716  ac_status=$?
3717  grep -v '^ *+' conftest.er1 >conftest.err
3718  rm -f conftest.er1
3719  cat conftest.err >&5
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); } &&
3722         { ac_try='test -z "$ac_f77_werror_flag"
3723                         || test ! -s conftest.err'
3724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725  (eval $ac_try) 2>&5
3726  ac_status=$?
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); }; } &&
3729         { ac_try='test -s conftest$ac_exeext'
3730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731  (eval $ac_try) 2>&5
3732  ac_status=$?
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); }; }; then
3735  :
3736else
3737  echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740FFLAGS=
3741fi
3742rm -f conftest.err conftest.$ac_objext \
3743      conftest$ac_exeext conftest.$ac_ext
3744  if test -z "$FFLAGS"; then
3745    { 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
3746echo "$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;}
3747    FFLAGS='-O'
3748    cat >conftest.$ac_ext <<_ACEOF
3749      program main
3750      integer i
3751      end
3752_ACEOF
3753rm -f conftest.$ac_objext conftest$ac_exeext
3754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3755  (eval $ac_link) 2>conftest.er1
3756  ac_status=$?
3757  grep -v '^ *+' conftest.er1 >conftest.err
3758  rm -f conftest.er1
3759  cat conftest.err >&5
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); } &&
3762         { ac_try='test -z "$ac_f77_werror_flag"
3763                         || test ! -s conftest.err'
3764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765  (eval $ac_try) 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); }; } &&
3769         { ac_try='test -s conftest$ac_exeext'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; }; then
3775  :
3776else
3777  echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780FFLAGS=
3781fi
3782rm -f conftest.err conftest.$ac_objext \
3783      conftest$ac_exeext conftest.$ac_ext
3784    if test -z "$FFLAGS"; then
3785      { 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
3786echo "$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;}
3787    fi
3788  fi
3789fi
3790
3791{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3792echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3793
3794
3795if test x"$MPIF77" = x; then :; else
3796  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3797echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3798  F77="$MPIF77"
3799fi
3800
3801case "$F77" in
3802  ifort* | */ifort* | IFORT* | */IFORT*)
3803    case $build in
3804  *-mingw*)
3805    if test "${LD+set}" = set; then :; else
3806      LD=link
3807    fi
3808    ;;
3809 esac
3810 case $enable_doscompile in
3811   msvc)
3812     if test "x${LD+set}" = xset; then :; else
3813       LD=link
3814     fi
3815     ;;
3816 esac
3817
3818    ;;
3819esac
3820
3821ac_ext=c
3822ac_cpp='$CPP $CPPFLAGS'
3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827
3828
3829# Find out how to call Fortran from C and determine Fortran runtime libraries
3830ac_ext=f
3831ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3832ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3834echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3835echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3836if test "${ac_cv_prog_f77_v+set}" = set; then
3837  echo $ECHO_N "(cached) $ECHO_C" >&6
3838else
3839  cat >conftest.$ac_ext <<_ACEOF
3840      program main
3841
3842      end
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846  (eval $ac_compile) 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } &&
3853         { ac_try='test -z "$ac_f77_werror_flag"
3854                         || test ! -s conftest.err'
3855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856  (eval $ac_try) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; } &&
3860         { ac_try='test -s conftest.$ac_objext'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; }; then
3866  ac_cv_prog_f77_v=
3867# Try some options frequently used verbose output
3868for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3869  cat >conftest.$ac_ext <<_ACEOF
3870      program main
3871
3872      end
3873_ACEOF
3874
3875# Compile and link our simple test program by passing a flag (argument
3876# 1 to this macro) to the Fortran compiler in order to get
3877# "verbose" output that we can then parse for the Fortran linker
3878# flags.
3879ac_save_FFLAGS=$FFLAGS
3880FFLAGS="$FFLAGS $ac_verb"
3881(eval echo $as_me:3881: \"$ac_link\") >&5
3882ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3883echo "$ac_f77_v_output" >&5
3884FFLAGS=$ac_save_FFLAGS
3885
3886rm -f conftest*
3887
3888# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3889# /foo, /bar, and /baz are search directories for the Fortran linker.
3890# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3891ac_f77_v_output="`echo $ac_f77_v_output |
3892        grep 'LPATH is:' |
3893        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3894
3895case $ac_f77_v_output in
3896  # If we are using xlf then replace all the commas with spaces.
3897  *xlfentry*)
3898    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3899
3900  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3901  # $LIBS confuse us, and the libraries appear later in the output anyway).
3902  *mGLOB_options_string*)
3903    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3904
3905  # If we are using Cray Fortran then delete quotes.
3906  # Use "\"" instead of '"' for font-lock-mode.
3907  # FIXME: a more general fix for quoted arguments with spaces?
3908  *cft90*)
3909    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3910esac
3911
3912
3913  # look for -l* and *.a constructs in the output
3914  for ac_arg in $ac_f77_v_output; do
3915     case $ac_arg in
3916        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3917          ac_cv_prog_f77_v=$ac_verb
3918          break 2 ;;
3919     esac
3920  done
3921done
3922if test -z "$ac_cv_prog_f77_v"; then
3923   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3924echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3925fi
3926else
3927  echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3931echo "$as_me: WARNING: compilation failed" >&2;}
3932fi
3933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934
3935fi
3936echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3937echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3938echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3939echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3940if test "${ac_cv_f77_libs+set}" = set; then
3941  echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943  if test "x$FLIBS" != "x"; then
3944  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3945else
3946
3947cat >conftest.$ac_ext <<_ACEOF
3948      program main
3949
3950      end
3951_ACEOF
3952
3953# Compile and link our simple test program by passing a flag (argument
3954# 1 to this macro) to the Fortran compiler in order to get
3955# "verbose" output that we can then parse for the Fortran linker
3956# flags.
3957ac_save_FFLAGS=$FFLAGS
3958FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3959(eval echo $as_me:3959: \"$ac_link\") >&5
3960ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3961echo "$ac_f77_v_output" >&5
3962FFLAGS=$ac_save_FFLAGS
3963
3964rm -f conftest*
3965
3966# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3967# /foo, /bar, and /baz are search directories for the Fortran linker.
3968# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3969ac_f77_v_output="`echo $ac_f77_v_output |
3970        grep 'LPATH is:' |
3971        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3972
3973case $ac_f77_v_output in
3974  # If we are using xlf then replace all the commas with spaces.
3975  *xlfentry*)
3976    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3977
3978  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3979  # $LIBS confuse us, and the libraries appear later in the output anyway).
3980  *mGLOB_options_string*)
3981    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3982
3983  # If we are using Cray Fortran then delete quotes.
3984  # Use "\"" instead of '"' for font-lock-mode.
3985  # FIXME: a more general fix for quoted arguments with spaces?
3986  *cft90*)
3987    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3988esac
3989
3990
3991
3992ac_cv_f77_libs=
3993
3994# Save positional arguments (if any)
3995ac_save_positional="$@"
3996
3997set X $ac_f77_v_output
3998while test $# != 1; do
3999  shift
4000  ac_arg=$1
4001  case $ac_arg in
4002        [\\/]*.a | ?:[\\/]*.a)
4003            ac_exists=false
4004  for ac_i in $ac_cv_f77_libs; do
4005    if test x"$ac_arg" = x"$ac_i"; then
4006      ac_exists=true
4007      break
4008    fi
4009  done
4010
4011  if test x"$ac_exists" = xtrue; then
4012  :
4013else
4014  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4015fi
4016
4017          ;;
4018        -bI:*)
4019            ac_exists=false
4020  for ac_i in $ac_cv_f77_libs; do
4021    if test x"$ac_arg" = x"$ac_i"; then
4022      ac_exists=true
4023      break
4024    fi
4025  done
4026
4027  if test x"$ac_exists" = xtrue; then
4028  :
4029else
4030  if test "$ac_compiler_gnu" = yes; then
4031  for ac_link_opt in $ac_arg; do
4032    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4033  done
4034else
4035  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4036fi
4037fi
4038
4039          ;;
4040          # Ignore these flags.
4041        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4042          ;;
4043        -lkernel32)
4044          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4045          ;;
4046        -[LRuY])
4047          # These flags, when seen by themselves, take an argument.
4048          # We remove the space between option and argument and re-iterate
4049          # unless we find an empty arg or a new option (starting with -)
4050          case $2 in
4051             "" | -*);;
4052             *)
4053                ac_arg="$ac_arg$2"
4054                shift; shift
4055                set X $ac_arg "$@"
4056                ;;
4057          esac
4058          ;;
4059        -YP,*)
4060          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4061              ac_exists=false
4062  for ac_i in $ac_cv_f77_libs; do
4063    if test x"$ac_j" = x"$ac_i"; then
4064      ac_exists=true
4065      break
4066    fi
4067  done
4068
4069  if test x"$ac_exists" = xtrue; then
4070  :
4071else
4072  ac_arg="$ac_arg $ac_j"
4073                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4074fi
4075
4076          done
4077          ;;
4078        -[lLR]*)
4079            ac_exists=false
4080  for ac_i in $ac_cv_f77_libs; do
4081    if test x"$ac_arg" = x"$ac_i"; then
4082      ac_exists=true
4083      break
4084    fi
4085  done
4086
4087  if test x"$ac_exists" = xtrue; then
4088  :
4089else
4090  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4091fi
4092
4093          ;;
4094          # Ignore everything else.
4095  esac
4096done
4097# restore positional arguments
4098set X $ac_save_positional; shift
4099
4100# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4101# then we insist that the "run path" must be an absolute path (i.e. it
4102# must begin with a "/").
4103case `(uname -sr) 2>/dev/null` in
4104   "SunOS 5"*)
4105      ac_ld_run_path=`echo $ac_f77_v_output |
4106                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4107      test "x$ac_ld_run_path" != x &&
4108        if test "$ac_compiler_gnu" = yes; then
4109  for ac_link_opt in $ac_ld_run_path; do
4110    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4111  done
4112else
4113  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4114fi
4115      ;;
4116esac
4117fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4118
4119fi
4120echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4121echo "${ECHO_T}$ac_cv_f77_libs" >&6
4122FLIBS="$ac_cv_f77_libs"
4123
4124
4125ac_ext=f
4126ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4127ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4129
4130ac_ext=f
4131ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4132ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4134
4135echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4136echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4137if test "${ac_cv_f77_dummy_main+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140  ac_f77_dm_save_LIBS=$LIBS
4141 LIBS="$LIBS $FLIBS"
4142 ac_fortran_dm_var=F77_DUMMY_MAIN
4143 ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149 # First, try linking without a dummy main:
4150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156
4157#ifdef F77_DUMMY_MAIN
4158
4159#  ifdef __cplusplus
4160     extern "C"
4161#  endif
4162   int F77_DUMMY_MAIN() { return 1; }
4163
4164#endif
4165int
4166main ()
4167{
4168
4169  ;
4170  return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext conftest$ac_exeext
4174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175  (eval $ac_link) 2>conftest.er1
4176  ac_status=$?
4177  grep -v '^ *+' conftest.er1 >conftest.err
4178  rm -f conftest.er1
4179  cat conftest.err >&5
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); } &&
4182         { ac_try='test -z "$ac_c_werror_flag"
4183                         || test ! -s conftest.err'
4184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185  (eval $ac_try) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); }; } &&
4189         { ac_try='test -s conftest$ac_exeext'
4190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191  (eval $ac_try) 2>&5
4192  ac_status=$?
4193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194  (exit $ac_status); }; }; then
4195  ac_cv_fortran_dummy_main=none
4196else
4197  echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
4199
4200ac_cv_fortran_dummy_main=unknown
4201fi
4202rm -f conftest.err conftest.$ac_objext \
4203      conftest$ac_exeext conftest.$ac_ext
4204
4205 if test $ac_cv_fortran_dummy_main = unknown; then
4206   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4207     cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h.  */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h.  */
4213#define $ac_fortran_dm_var $ac_func
4214#ifdef F77_DUMMY_MAIN
4215
4216#  ifdef __cplusplus
4217     extern "C"
4218#  endif
4219   int F77_DUMMY_MAIN() { return 1; }
4220
4221#endif
4222int
4223main ()
4224{
4225
4226  ;
4227  return 0;
4228}
4229_ACEOF
4230rm -f conftest.$ac_objext conftest$ac_exeext
4231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232  (eval $ac_link) 2>conftest.er1
4233  ac_status=$?
4234  grep -v '^ *+' conftest.er1 >conftest.err
4235  rm -f conftest.er1
4236  cat conftest.err >&5
4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238  (exit $ac_status); } &&
4239         { ac_try='test -z "$ac_c_werror_flag"
4240                         || test ! -s conftest.err'
4241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242  (eval $ac_try) 2>&5
4243  ac_status=$?
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); }; } &&
4246         { ac_try='test -s conftest$ac_exeext'
4247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248  (eval $ac_try) 2>&5
4249  ac_status=$?
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); }; }; then
4252  ac_cv_fortran_dummy_main=$ac_func; break
4253else
4254  echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257fi
4258rm -f conftest.err conftest.$ac_objext \
4259      conftest$ac_exeext conftest.$ac_ext
4260   done
4261 fi
4262 ac_ext=f
4263ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4264ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4266 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4267 rm -f conftest*
4268 LIBS=$ac_f77_dm_save_LIBS
4269
4270fi
4271echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4272echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4273F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4274if test "$F77_DUMMY_MAIN" != unknown; then
4275  if test $F77_DUMMY_MAIN != none; then
4276
4277cat >>confdefs.h <<_ACEOF
4278#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4279_ACEOF
4280
4281  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4282
4283cat >>confdefs.h <<\_ACEOF
4284#define FC_DUMMY_MAIN_EQ_F77 1
4285_ACEOF
4286
4287  fi
4288fi
4289else
4290  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4291See \`config.log' for more details." >&5
4292echo "$as_me: error: linking to Fortran libraries from C fails
4293See \`config.log' for more details." >&2;}
4294   { (exit 1); exit 1; }; }
4295fi
4296
4297
4298ac_ext=f
4299ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4300ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4302
4303ac_ext=f
4304ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4305ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4307echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4308echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4309if test "${ac_cv_f77_mangling+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  cat >conftest.$ac_ext <<_ACEOF
4313      subroutine foobar()
4314      return
4315      end
4316      subroutine foo_bar()
4317      return
4318      end
4319_ACEOF
4320rm -f conftest.$ac_objext
4321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322  (eval $ac_compile) 2>conftest.er1
4323  ac_status=$?
4324  grep -v '^ *+' conftest.er1 >conftest.err
4325  rm -f conftest.er1
4326  cat conftest.err >&5
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); } &&
4329         { ac_try='test -z "$ac_f77_werror_flag"
4330                         || test ! -s conftest.err'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; } &&
4336         { ac_try='test -s conftest.$ac_objext'
4337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338  (eval $ac_try) 2>&5
4339  ac_status=$?
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); }; }; then
4342  mv conftest.$ac_objext cfortran_test.$ac_objext
4343
4344  ac_save_LIBS=$LIBS
4345  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4346
4347  ac_ext=c
4348ac_cpp='$CPP $CPPFLAGS'
4349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352  ac_success=no
4353  for ac_foobar in foobar FOOBAR; do
4354    for ac_underscore in "" "_"; do
4355      ac_func="$ac_foobar$ac_underscore"
4356      cat >conftest.$ac_ext <<_ACEOF
4357/* confdefs.h.  */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h.  */
4362
4363/* Override any gcc2 internal prototype to avoid an error.  */
4364#ifdef __cplusplus
4365extern "C"
4366#endif
4367/* We use char because int might match the return type of a gcc2
4368   builtin and then its argument prototype would still apply.  */
4369char $ac_func ();
4370#ifdef F77_DUMMY_MAIN
4371
4372#  ifdef __cplusplus
4373     extern "C"
4374#  endif
4375   int F77_DUMMY_MAIN() { return 1; }
4376
4377#endif
4378int
4379main ()
4380{
4381$ac_func ();
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386rm -f conftest.$ac_objext conftest$ac_exeext
4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388  (eval $ac_link) 2>conftest.er1
4389  ac_status=$?
4390  grep -v '^ *+' conftest.er1 >conftest.err
4391  rm -f conftest.er1
4392  cat conftest.err >&5
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } &&
4395         { ac_try='test -z "$ac_c_werror_flag"
4396                         || test ! -s conftest.err'
4397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398  (eval $ac_try) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; } &&
4402         { ac_try='test -s conftest$ac_exeext'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; }; then
4408  ac_success=yes; break 2
4409else
4410  echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413fi
4414rm -f conftest.err conftest.$ac_objext \
4415      conftest$ac_exeext conftest.$ac_ext
4416    done
4417  done
4418  ac_ext=f
4419ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4420ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4422
4423  if test "$ac_success" = "yes"; then
4424     case $ac_foobar in
4425        foobar)
4426           ac_case=lower
4427           ac_foo_bar=foo_bar
4428           ;;
4429        FOOBAR)
4430           ac_case=upper
4431           ac_foo_bar=FOO_BAR
4432           ;;
4433     esac
4434
4435     ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440     ac_success_extra=no
4441     for ac_extra in "" "_"; do
4442        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4443        cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h.  */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h.  */
4449
4450/* Override any gcc2 internal prototype to avoid an error.  */
4451#ifdef __cplusplus
4452extern "C"
4453#endif
4454/* We use char because int might match the return type of a gcc2
4455   builtin and then its argument prototype would still apply.  */
4456char $ac_func ();
4457#ifdef F77_DUMMY_MAIN
4458
4459#  ifdef __cplusplus
4460     extern "C"
4461#  endif
4462   int F77_DUMMY_MAIN() { return 1; }
4463
4464#endif
4465int
4466main ()
4467{
4468$ac_func ();
4469  ;
4470  return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475  (eval $ac_link) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482         { ac_try='test -z "$ac_c_werror_flag"
4483                         || test ! -s conftest.err'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; } &&
4489         { ac_try='test -s conftest$ac_exeext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  ac_success_extra=yes; break
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500fi
4501rm -f conftest.err conftest.$ac_objext \
4502      conftest$ac_exeext conftest.$ac_ext
4503     done
4504     ac_ext=f
4505ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4506ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4508
4509     if test "$ac_success_extra" = "yes"; then
4510        ac_cv_f77_mangling="$ac_case case"
4511        if test -z "$ac_underscore"; then
4512           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4513        else
4514           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4515        fi
4516        if test -z "$ac_extra"; then
4517           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4518        else
4519           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4520        fi
4521      else
4522        ac_cv_f77_mangling="unknown"
4523      fi
4524  else
4525     ac_cv_f77_mangling="unknown"
4526  fi
4527
4528  LIBS=$ac_save_LIBS
4529  rm -f cfortran_test* conftest*
4530else
4531  echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4535See \`config.log' for more details." >&5
4536echo "$as_me: error: cannot compile a simple Fortran program
4537See \`config.log' for more details." >&2;}
4538   { (exit 1); exit 1; }; }
4539fi
4540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541
4542fi
4543echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4544echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4545
4546ac_ext=f
4547ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4548ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4550
4551
4552ac_ext=f
4553ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4554ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4556
4557
4558ac_ext=f
4559ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4560ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4562
4563
4564case $ac_cv_f77_mangling in
4565  "lower case, no underscore, no extra underscore")
4566          cat >>confdefs.h <<\_ACEOF
4567#define F77_FUNC(name,NAME) name
4568_ACEOF
4569
4570          cat >>confdefs.h <<\_ACEOF
4571#define F77_FUNC_(name,NAME) name
4572_ACEOF
4573 ;;
4574  "lower case, no underscore, extra underscore")
4575          cat >>confdefs.h <<\_ACEOF
4576#define F77_FUNC(name,NAME) name
4577_ACEOF
4578
4579          cat >>confdefs.h <<\_ACEOF
4580#define F77_FUNC_(name,NAME) name ## _
4581_ACEOF
4582 ;;
4583  "lower case, underscore, no extra underscore")
4584          cat >>confdefs.h <<\_ACEOF
4585#define F77_FUNC(name,NAME) name ## _
4586_ACEOF
4587
4588          cat >>confdefs.h <<\_ACEOF
4589#define F77_FUNC_(name,NAME) name ## _
4590_ACEOF
4591 ;;
4592  "lower case, underscore, extra underscore")
4593          cat >>confdefs.h <<\_ACEOF
4594#define F77_FUNC(name,NAME) name ## _
4595_ACEOF
4596
4597          cat >>confdefs.h <<\_ACEOF
4598#define F77_FUNC_(name,NAME) name ## __
4599_ACEOF
4600 ;;
4601  "upper case, no underscore, no extra underscore")
4602          cat >>confdefs.h <<\_ACEOF
4603#define F77_FUNC(name,NAME) NAME
4604_ACEOF
4605
4606          cat >>confdefs.h <<\_ACEOF
4607#define F77_FUNC_(name,NAME) NAME
4608_ACEOF
4609 ;;
4610  "upper case, no underscore, extra underscore")
4611          cat >>confdefs.h <<\_ACEOF
4612#define F77_FUNC(name,NAME) NAME
4613_ACEOF
4614
4615          cat >>confdefs.h <<\_ACEOF
4616#define F77_FUNC_(name,NAME) NAME ## _
4617_ACEOF
4618 ;;
4619  "upper case, underscore, no extra underscore")
4620          cat >>confdefs.h <<\_ACEOF
4621#define F77_FUNC(name,NAME) NAME ## _
4622_ACEOF
4623
4624          cat >>confdefs.h <<\_ACEOF
4625#define F77_FUNC_(name,NAME) NAME ## _
4626_ACEOF
4627 ;;
4628  "upper case, underscore, extra underscore")
4629          cat >>confdefs.h <<\_ACEOF
4630#define F77_FUNC(name,NAME) NAME ## _
4631_ACEOF
4632
4633          cat >>confdefs.h <<\_ACEOF
4634#define F77_FUNC_(name,NAME) NAME ## __
4635_ACEOF
4636 ;;
4637  *)
4638          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4639echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4640          ;;
4641esac
4642
4643ac_ext=f
4644ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4645ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4647
4648
4649# If FLIBS has been set by the user, we just restore its value here
4650if test x"$save_FLIBS" != x; then
4651  FLIBS="$save_FLIBS"
4652else
4653  # This is to correct a missing exclusion in autoconf 2.59
4654  if test x"$FLIBS" != x; then
4655    my_flibs=
4656    for flag in $FLIBS; do
4657      case $flag in
4658        -lcrt*.o) ;;
4659        -lcygwin) ;;
4660               *) my_flibs="$my_flibs $flag" ;;
4661      esac
4662    done
4663    FLIBS="$my_flibs"
4664  fi
4665
4666  case $build in
4667  # The following is a fix to define FLIBS for ifort on Windows
4668  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4669  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4670  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4671     *-cygwin* | *-mingw*)
4672       case "$F77" in
4673         ifort* | */ifort* | IFORT* | */IFORT*)
4674           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4675#           if "$coin_debug_compile" = true ; then
4676#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4677#           else
4678#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4679#           fi
4680           ;;
4681         compile_f2c*)
4682           FLIBS=`$F77 -FLIBS` ;;
4683       esac;;
4684     *-hp-*)
4685         FLIBS="$FLIBS -lm";;
4686     *-ibm-*)
4687         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4688     *-linux-*)
4689       case "$F77" in
4690         pgf77* | */pgf77* | pgf90* | */pgf90*)
4691# ask linker to go through the archives multiple times
4692# (the Fortran compiler seems to do that automatically...
4693           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4694       esac
4695  esac
4696  ac_cv_f77_libs="$FLIBS"
4697fi
4698
4699ac_ext=c
4700ac_cpp='$CPP $CPPFLAGS'
4701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704
4705
4706
4707
4708# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
4709coin_need_flibs=yes
4710
4711# We need to translate the result from autoconf to what MUMPS wants
4712case "$ac_cv_f77_mangling" in
4713  "lower case, no underscore, no extra underscore")
4714  ;;
4715  "lower case, underscore, no extra underscore")
4716  MY_DEFS="-DAdd_"
4717  ;;
4718  "lower case, no underscore, extra underscore")
4719  MY_DEFS="-DAdd_"
4720  ;;
4721  "lower case, underscore, extra underscore")
4722  MY_DEFS="-DAdd__"
4723  ;;
4724  "upper case, no underscore, no extra underscore")
4725  MY_DEFS="-DUPPER"
4726  ;;
4727  "upper case, no underscore, extra underscore")
4728  MY_DEFS="-DUPPER"
4729  ;;
4730  "upper case, underscore, no extra underscore")
4731  MY_DEFS="-DUPPER"
4732  ;;
4733  "upper case, underscore, extra underscore")
4734  MY_DEFS="-DUPPER"
4735  ;;
4736esac
4737
4738# check for pthread.h header file
4739ac_ext=c
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4745echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4746# On Suns, sometimes $CPP names a directory.
4747if test -n "$CPP" && test -d "$CPP"; then
4748  CPP=
4749fi
4750if test -z "$CPP"; then
4751  if test "${ac_cv_prog_CPP+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754      # Double quotes because CPP needs to be expanded
4755    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756    do
4757      ac_preproc_ok=false
4758for ac_c_preproc_warn_flag in '' yes
4759do
4760  # Use a header file that comes with gcc, so configuring glibc
4761  # with a fresh cross-compiler works.
4762  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763  # <limits.h> exists even on freestanding compilers.
4764  # On the NeXT, cc -E runs the code through the compiler's parser,
4765  # not just through cpp. "Syntax error" is here to catch this case.
4766  cat >conftest.$ac_ext <<_ACEOF
4767/* confdefs.h.  */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h.  */
4772#ifdef __STDC__
4773# include <limits.h>
4774#else
4775# include <assert.h>
4776#endif
4777                     Syntax error
4778_ACEOF
4779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4780  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4781  ac_status=$?
4782  grep -v '^ *+' conftest.er1 >conftest.err
4783  rm -f conftest.er1
4784  cat conftest.err >&5
4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786  (exit $ac_status); } >/dev/null; then
4787  if test -s conftest.err; then
4788    ac_cpp_err=$ac_c_preproc_warn_flag
4789    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4790  else
4791    ac_cpp_err=
4792  fi
4793else
4794  ac_cpp_err=yes
4795fi
4796if test -z "$ac_cpp_err"; then
4797  :
4798else
4799  echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802  # Broken: fails on valid input.
4803continue
4804fi
4805rm -f conftest.err conftest.$ac_ext
4806
4807  # OK, works on sane cases.  Now check whether non-existent headers
4808  # can be detected and how.
4809  cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815#include <ac_nonexistent.h>
4816_ACEOF
4817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819  ac_status=$?
4820  grep -v '^ *+' conftest.er1 >conftest.err
4821  rm -f conftest.er1
4822  cat conftest.err >&5
4823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824  (exit $ac_status); } >/dev/null; then
4825  if test -s conftest.err; then
4826    ac_cpp_err=$ac_c_preproc_warn_flag
4827    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4828  else
4829    ac_cpp_err=
4830  fi
4831else
4832  ac_cpp_err=yes
4833fi
4834if test -z "$ac_cpp_err"; then
4835  # Broken: success on invalid input.
4836continue
4837else
4838  echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841  # Passes both tests.
4842ac_preproc_ok=:
4843break
4844fi
4845rm -f conftest.err conftest.$ac_ext
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then
4851  break
4852fi
4853
4854    done
4855    ac_cv_prog_CPP=$CPP
4856
4857fi
4858  CPP=$ac_cv_prog_CPP
4859else
4860  ac_cv_prog_CPP=$CPP
4861fi
4862echo "$as_me:$LINENO: result: $CPP" >&5
4863echo "${ECHO_T}$CPP" >&6
4864ac_preproc_ok=false
4865for ac_c_preproc_warn_flag in '' yes
4866do
4867  # Use a header file that comes with gcc, so configuring glibc
4868  # with a fresh cross-compiler works.
4869  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870  # <limits.h> exists even on freestanding compilers.
4871  # On the NeXT, cc -E runs the code through the compiler's parser,
4872  # not just through cpp. "Syntax error" is here to catch this case.
4873  cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h.  */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h.  */
4879#ifdef __STDC__
4880# include <limits.h>
4881#else
4882# include <assert.h>
4883#endif
4884                     Syntax error
4885_ACEOF
4886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4888  ac_status=$?
4889  grep -v '^ *+' conftest.er1 >conftest.err
4890  rm -f conftest.er1
4891  cat conftest.err >&5
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); } >/dev/null; then
4894  if test -s conftest.err; then
4895    ac_cpp_err=$ac_c_preproc_warn_flag
4896    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4897  else
4898    ac_cpp_err=
4899  fi
4900else
4901  ac_cpp_err=yes
4902fi
4903if test -z "$ac_cpp_err"; then
4904  :
4905else
4906  echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909  # Broken: fails on valid input.
4910continue
4911fi
4912rm -f conftest.err conftest.$ac_ext
4913
4914  # OK, works on sane cases.  Now check whether non-existent headers
4915  # can be detected and how.
4916  cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922#include <ac_nonexistent.h>
4923_ACEOF
4924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4925  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } >/dev/null; then
4932  if test -s conftest.err; then
4933    ac_cpp_err=$ac_c_preproc_warn_flag
4934    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4935  else
4936    ac_cpp_err=
4937  fi
4938else
4939  ac_cpp_err=yes
4940fi
4941if test -z "$ac_cpp_err"; then
4942  # Broken: success on invalid input.
4943continue
4944else
4945  echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948  # Passes both tests.
4949ac_preproc_ok=:
4950break
4951fi
4952rm -f conftest.err conftest.$ac_ext
4953
4954done
4955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956rm -f conftest.err conftest.$ac_ext
4957if $ac_preproc_ok; then
4958  :
4959else
4960  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4961See \`config.log' for more details." >&5
4962echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4963See \`config.log' for more details." >&2;}
4964   { (exit 1); exit 1; }; }
4965fi
4966
4967ac_ext=c
4968ac_cpp='$CPP $CPPFLAGS'
4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972
4973
4974echo "$as_me:$LINENO: checking for egrep" >&5
4975echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4976if test "${ac_cv_prog_egrep+set}" = set; then
4977  echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4980    then ac_cv_prog_egrep='grep -E'
4981    else ac_cv_prog_egrep='egrep'
4982    fi
4983fi
4984echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4985echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4986 EGREP=$ac_cv_prog_egrep
4987
4988
4989echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4990echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4991if test "${ac_cv_header_stdc+set}" = set; then
4992  echo $ECHO_N "(cached) $ECHO_C" >&6
4993else
4994  cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h.  */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h.  */
5000#include <stdlib.h>
5001#include <stdarg.h>
5002#include <string.h>
5003#include <float.h>
5004
5005#ifdef F77_DUMMY_MAIN
5006
5007#  ifdef __cplusplus
5008     extern "C"
5009#  endif
5010   int F77_DUMMY_MAIN() { return 1; }
5011
5012#endif
5013int
5014main ()
5015{
5016
5017  ;
5018  return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext
5022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023  (eval $ac_compile) 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } &&
5030         { ac_try='test -z "$ac_c_werror_flag"
5031                         || test ! -s conftest.err'
5032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033  (eval $ac_try) 2>&5
5034  ac_status=$?
5035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036  (exit $ac_status); }; } &&
5037         { ac_try='test -s conftest.$ac_objext'
5038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039  (eval $ac_try) 2>&5
5040  ac_status=$?
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); }; }; then
5043  ac_cv_header_stdc=yes
5044else
5045  echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
5048ac_cv_header_stdc=no
5049fi
5050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5051
5052if test $ac_cv_header_stdc = yes; then
5053  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5054  cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h.  */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h.  */
5060#include <string.h>
5061
5062_ACEOF
5063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064  $EGREP "memchr" >/dev/null 2>&1; then
5065  :
5066else
5067  ac_cv_header_stdc=no
5068fi
5069rm -f conftest*
5070
5071fi
5072
5073if test $ac_cv_header_stdc = yes; then
5074  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5075  cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081#include <stdlib.h>
5082
5083_ACEOF
5084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085  $EGREP "free" >/dev/null 2>&1; then
5086  :
5087else
5088  ac_cv_header_stdc=no
5089fi
5090rm -f conftest*
5091
5092fi
5093
5094if test $ac_cv_header_stdc = yes; then
5095  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096  if test "$cross_compiling" = yes; then
5097  :
5098else
5099  cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h.  */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h.  */
5105#include <ctype.h>
5106#if ((' ' & 0x0FF) == 0x020)
5107# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5108# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5109#else
5110# define ISLOWER(c) \
5111                   (('a' <= (c) && (c) <= 'i') \
5112                     || ('j' <= (c) && (c) <= 'r') \
5113                     || ('s' <= (c) && (c) <= 'z'))
5114# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5115#endif
5116
5117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5118int
5119main ()
5120{
5121  int i;
5122  for (i = 0; i < 256; i++)
5123    if (XOR (islower (i), ISLOWER (i))
5124        || toupper (i) != TOUPPER (i))
5125      exit(2);
5126  exit (0);
5127}
5128_ACEOF
5129rm -f conftest$ac_exeext
5130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131  (eval $ac_link) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136  (eval $ac_try) 2>&5
5137  ac_status=$?
5138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139  (exit $ac_status); }; }; then
5140  :
5141else
5142  echo "$as_me: program exited with status $ac_status" >&5
5143echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146( exit $ac_status )
5147ac_cv_header_stdc=no
5148fi
5149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5150fi
5151fi
5152fi
5153echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5154echo "${ECHO_T}$ac_cv_header_stdc" >&6
5155if test $ac_cv_header_stdc = yes; then
5156
5157cat >>confdefs.h <<\_ACEOF
5158#define STDC_HEADERS 1
5159_ACEOF
5160
5161fi
5162
5163# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5174                  inttypes.h stdint.h unistd.h
5175do
5176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5177echo "$as_me:$LINENO: checking for $ac_header" >&5
5178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  cat >conftest.$ac_ext <<_ACEOF
5183/* confdefs.h.  */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h.  */
5188$ac_includes_default
5189
5190#include <$ac_header>
5191_ACEOF
5192rm -f conftest.$ac_objext
5193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194  (eval $ac_compile) 2>conftest.er1
5195  ac_status=$?
5196  grep -v '^ *+' conftest.er1 >conftest.err
5197  rm -f conftest.er1
5198  cat conftest.err >&5
5199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200  (exit $ac_status); } &&
5201         { ac_try='test -z "$ac_c_werror_flag"
5202                         || test ! -s conftest.err'
5203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204  (eval $ac_try) 2>&5
5205  ac_status=$?
5206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207  (exit $ac_status); }; } &&
5208         { ac_try='test -s conftest.$ac_objext'
5209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210  (eval $ac_try) 2>&5
5211  ac_status=$?
5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); }; }; then
5214  eval "$as_ac_Header=yes"
5215else
5216  echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219eval "$as_ac_Header=no"
5220fi
5221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222fi
5223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5225if test `eval echo '${'$as_ac_Header'}'` = yes; then
5226  cat >>confdefs.h <<_ACEOF
5227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228_ACEOF
5229
5230fi
5231
5232done
5233
5234
5235#if test x"" = x; then
5236#  hdr="#include <pthread.h>"
5237#else
5238#  hdr=""
5239#fi
5240#AC_CHECK_HEADERS([pthread.h],[],[MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"],[$hdr])
5241
5242for ac_header in pthread.h
5243do
5244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5245if eval "test \"\${$as_ac_Header+set}\" = set"; then
5246  echo "$as_me:$LINENO: checking for $ac_header" >&5
5247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5248if eval "test \"\${$as_ac_Header+set}\" = set"; then
5249  echo $ECHO_N "(cached) $ECHO_C" >&6
5250fi
5251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5253else
5254  # Is the header compilable?
5255echo "$as_me:$LINENO: checking $ac_header usability" >&5
5256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5257cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h.  */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h.  */
5263$ac_includes_default
5264#include <$ac_header>
5265_ACEOF
5266rm -f conftest.$ac_objext
5267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268  (eval $ac_compile) 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } &&
5275         { ac_try='test -z "$ac_c_werror_flag"
5276                         || test ! -s conftest.err'
5277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278  (eval $ac_try) 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }; } &&
5282         { ac_try='test -s conftest.$ac_objext'
5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284  (eval $ac_try) 2>&5
5285  ac_status=$?
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); }; }; then
5288  ac_header_compiler=yes
5289else
5290  echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293ac_header_compiler=no
5294fi
5295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5297echo "${ECHO_T}$ac_header_compiler" >&6
5298
5299# Is the header present?
5300echo "$as_me:$LINENO: checking $ac_header presence" >&5
5301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5302cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h.  */
5304_ACEOF
5305cat confdefs.h >>conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h.  */
5308#include <$ac_header>
5309_ACEOF
5310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } >/dev/null; then
5318  if test -s conftest.err; then
5319    ac_cpp_err=$ac_c_preproc_warn_flag
5320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5321  else
5322    ac_cpp_err=
5323  fi
5324else
5325  ac_cpp_err=yes
5326fi
5327if test -z "$ac_cpp_err"; then
5328  ac_header_preproc=yes
5329else
5330  echo "$as_me: failed program was:" >&5
5331sed 's/^/| /' conftest.$ac_ext >&5
5332
5333  ac_header_preproc=no
5334fi
5335rm -f conftest.err conftest.$ac_ext
5336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5337echo "${ECHO_T}$ac_header_preproc" >&6
5338
5339# So?  What about this header?
5340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5341  yes:no: )
5342    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5346    ac_header_preproc=yes
5347    ;;
5348  no:yes:* )
5349    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5351    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5352echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5353    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5355    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5356echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5359    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5361    (
5362      cat <<\_ASBOX
5363## --------------------------------------------------------------- ##
5364## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5365## --------------------------------------------------------------- ##
5366_ASBOX
5367    ) |
5368      sed "s/^/$as_me: WARNING:     /" >&2
5369    ;;
5370esac
5371echo "$as_me:$LINENO: checking for $ac_header" >&5
5372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  eval "$as_ac_Header=\$ac_header_preproc"
5377fi
5378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5380
5381fi
5382if test `eval echo '${'$as_ac_Header'}'` = yes; then
5383  cat >>confdefs.h <<_ACEOF
5384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385_ACEOF
5386
5387else
5388  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
5389fi
5390
5391done
5392
5393
5394
5395MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
5396
5397
5398# Initialize automake
5399{
5400
5401
5402
5403# START
5404
5405# Test if force_shared has been set
5406if test "x" = xforce_shared; then
5407  if test x$enable_shared = xno; then
5408    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5409echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5410   { (exit 1); exit 1; }; }
5411  fi
5412  enable_shared=yes;
5413else
5414  # On Cygwin and AIX, building DLLs doesn't work
5415  case $build in
5416    *-cygwin*)
5417      coin_disable_shared=yes
5418      platform=Cygwin
5419    ;;
5420    *-aix*)
5421      coin_disable_shared=yes
5422      platform=AIX
5423    ;;
5424    *-mingw*)
5425      coin_disable_shared=yes
5426      platform="Msys"
5427#      case "$CXX" in
5428#        cl*)
5429#          coin_disable_shared=yes
5430#          platform="Msys with cl"
5431#      ;;
5432#      esac
5433    ;;
5434  esac
5435fi
5436if test x"$coin_disable_shared" = xyes; then
5437  if test x"$enable_shared" = xyes; then
5438    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5439echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5440  fi
5441  enable_shared=no
5442fi
5443# By default, we only want the shared objects to be compiled
5444# Check whether --enable-static or --disable-static was given.
5445if test "${enable_static+set}" = set; then
5446  enableval="$enable_static"
5447  p=${PACKAGE-default}
5448    case $enableval in
5449    yes) enable_static=yes ;;
5450    no) enable_static=no ;;
5451    *)
5452     enable_static=no
5453      # Look at the argument we got.  We use all the common list separators.
5454      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5455      for pkg in $enableval; do
5456        IFS="$lt_save_ifs"
5457        if test "X$pkg" = "X$p"; then
5458          enable_static=yes
5459        fi
5460      done
5461      IFS="$lt_save_ifs"
5462      ;;
5463    esac
5464else
5465  enable_static=no
5466fi;
5467
5468
5469
5470
5471# Initialize automake
5472am__api_version="1.9"
5473# Find a good install program.  We prefer a C program (faster),
5474# so one script is as good as another.  But avoid the broken or
5475# incompatible versions:
5476# SysV /etc/install, /usr/sbin/install
5477# SunOS /usr/etc/install
5478# IRIX /sbin/install
5479# AIX /bin/install
5480# AmigaOS /C/install, which installs bootblocks on floppy discs
5481# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5482# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5483# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5484# OS/2's system install, which has a completely different semantic
5485# ./install, which can be erroneously created by make from ./install.sh.
5486echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5487echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5488if test -z "$INSTALL"; then
5489if test "${ac_cv_path_install+set}" = set; then
5490  echo $ECHO_N "(cached) $ECHO_C" >&6
5491else
5492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495  IFS=$as_save_IFS
5496  test -z "$as_dir" && as_dir=.
5497  # Account for people who put trailing slashes in PATH elements.
5498case $as_dir/ in
5499  ./ | .// | /cC/* | \
5500  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5501  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5502  /usr/ucb/* ) ;;
5503  *)
5504    # OSF1 and SCO ODT 3.0 have their own names for install.
5505    # Don't use installbsd from OSF since it installs stuff as root
5506    # by default.
5507    for ac_prog in ginstall scoinst install; do
5508      for ac_exec_ext in '' $ac_executable_extensions; do
5509        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5510          if test $ac_prog = install &&
5511            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5512            # AIX install.  It has an incompatible calling convention.
5513            :
5514          elif test $ac_prog = install &&
5515            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5516            # program-specific install script used by HP pwplus--don't use.
5517            :
5518          else
5519            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5520            break 3
5521          fi
5522        fi
5523      done
5524    done
5525    ;;
5526esac
5527done
5528
5529
5530fi
5531  if test "${ac_cv_path_install+set}" = set; then
5532    INSTALL=$ac_cv_path_install
5533  else
5534    # As a last resort, use the slow shell script.  We don't cache a
5535    # path for INSTALL within a source directory, because that will
5536    # break other packages using the cache if that directory is
5537    # removed, or if the path is relative.
5538    INSTALL=$ac_install_sh
5539  fi
5540fi
5541echo "$as_me:$LINENO: result: $INSTALL" >&5
5542echo "${ECHO_T}$INSTALL" >&6
5543
5544# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5545# It thinks the first close brace ends the variable substitution.
5546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5547
5548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5549
5550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5551
5552echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5553echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5554# Just in case
5555sleep 1
5556echo timestamp > conftest.file
5557# Do `set' in a subshell so we don't clobber the current shell's
5558# arguments.  Must try -L first in case configure is actually a
5559# symlink; some systems play weird games with the mod time of symlinks
5560# (eg FreeBSD returns the mod time of the symlink's containing
5561# directory).
5562if (
5563   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5564   if test "$*" = "X"; then
5565      # -L didn't work.
5566      set X `ls -t $srcdir/configure conftest.file`
5567   fi
5568   rm -f conftest.file
5569   if test "$*" != "X $srcdir/configure conftest.file" \
5570      && test "$*" != "X conftest.file $srcdir/configure"; then
5571
5572      # If neither matched, then we have a broken ls.  This can happen
5573      # if, for instance, CONFIG_SHELL is bash and it inherits a
5574      # broken ls alias from the environment.  This has actually
5575      # happened.  Such a system could not be considered "sane".
5576      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5577alias in your environment" >&5
5578echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5579alias in your environment" >&2;}
5580   { (exit 1); exit 1; }; }
5581   fi
5582
5583   test "$2" = conftest.file
5584   )
5585then
5586   # Ok.
5587   :
5588else
5589   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5590Check your system clock" >&5
5591echo "$as_me: error: newly created file is older than distributed files!
5592Check your system clock" >&2;}
5593   { (exit 1); exit 1; }; }
5594fi
5595echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
5597test "$program_prefix" != NONE &&
5598  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5599# Use a double $ so make ignores it.
5600test "$program_suffix" != NONE &&
5601  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5602# Double any \ or $.  echo might interpret backslashes.
5603# By default was `s,x,x', remove it if useless.
5604cat <<\_ACEOF >conftest.sed
5605s/[\\$]/&&/g;s/;s,x,x,$//
5606_ACEOF
5607program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5608rm conftest.sed
5609
5610# expand $ac_aux_dir to an absolute path
5611am_aux_dir=`cd $ac_aux_dir && pwd`
5612
5613test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5614# Use eval to expand $SHELL
5615if eval "$MISSING --run true"; then
5616  am_missing_run="$MISSING --run "
5617else
5618  am_missing_run=
5619  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5620echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5621fi
5622
5623if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5624  # We used to keeping the `.' as first argument, in order to
5625  # allow $(mkdir_p) to be used without argument.  As in
5626  #   $(mkdir_p) $(somedir)
5627  # where $(somedir) is conditionally defined.  However this is wrong
5628  # for two reasons:
5629  #  1. if the package is installed by a user who cannot write `.'
5630  #     make install will fail,
5631  #  2. the above comment should most certainly read
5632  #     $(mkdir_p) $(DESTDIR)$(somedir)
5633  #     so it does not work when $(somedir) is undefined and
5634  #     $(DESTDIR) is not.
5635  #  To support the latter case, we have to write
5636  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5637  #  so the `.' trick is pointless.
5638  mkdir_p='mkdir -p --'
5639else
5640  # On NextStep and OpenStep, the `mkdir' command does not
5641  # recognize any option.  It will interpret all options as
5642  # directories to create, and then abort because `.' already
5643  # exists.
5644  for d in ./-p ./--version;
5645  do
5646    test -d $d && rmdir $d
5647  done
5648  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5649  if test -f "$ac_aux_dir/mkinstalldirs"; then
5650    mkdir_p='$(mkinstalldirs)'
5651  else
5652    mkdir_p='$(install_sh) -d'
5653  fi
5654fi
5655
5656for ac_prog in gawk mawk nawk awk
5657do
5658  # Extract the first word of "$ac_prog", so it can be a program name with args.
5659set dummy $ac_prog; ac_word=$2
5660echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662if test "${ac_cv_prog_AWK+set}" = set; then
5663  echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665  if test -n "$AWK"; then
5666  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671  IFS=$as_save_IFS
5672  test -z "$as_dir" && as_dir=.
5673  for ac_exec_ext in '' $ac_executable_extensions; do
5674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675    ac_cv_prog_AWK="$ac_prog"
5676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677    break 2
5678  fi
5679done
5680done
5681
5682fi
5683fi
5684AWK=$ac_cv_prog_AWK
5685if test -n "$AWK"; then
5686  echo "$as_me:$LINENO: result: $AWK" >&5
5687echo "${ECHO_T}$AWK" >&6
5688else
5689  echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691fi
5692
5693  test -n "$AWK" && break
5694done
5695
5696echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5697echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5698set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5699if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  cat >conftest.make <<\_ACEOF
5703all:
5704        @echo 'ac_maketemp="$(MAKE)"'
5705_ACEOF
5706# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5707eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5708if test -n "$ac_maketemp"; then
5709  eval ac_cv_prog_make_${ac_make}_set=yes
5710else
5711  eval ac_cv_prog_make_${ac_make}_set=no
5712fi
5713rm -f conftest.make
5714fi
5715if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5716  echo "$as_me:$LINENO: result: yes" >&5
5717echo "${ECHO_T}yes" >&6
5718  SET_MAKE=
5719else
5720  echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722  SET_MAKE="MAKE=${MAKE-make}"
5723fi
5724
5725rm -rf .tst 2>/dev/null
5726mkdir .tst 2>/dev/null
5727if test -d .tst; then
5728  am__leading_dot=.
5729else
5730  am__leading_dot=_
5731fi
5732rmdir .tst 2>/dev/null
5733
5734DEPDIR="${am__leading_dot}deps"
5735
5736          ac_config_commands="$ac_config_commands depfiles"
5737
5738
5739am_make=${MAKE-make}
5740cat > confinc << 'END'
5741am__doit:
5742        @echo done
5743.PHONY: am__doit
5744END
5745# If we don't find an include directive, just comment out the code.
5746echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5747echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5748am__include="#"
5749am__quote=
5750_am_result=none
5751# First try GNU make style include.
5752echo "include confinc" > confmf
5753# We grep out `Entering directory' and `Leaving directory'
5754# messages which can occur if `w' ends up in MAKEFLAGS.
5755# In particular we don't look at `^make:' because GNU make might
5756# be invoked under some other name (usually "gmake"), in which
5757# case it prints its new name instead of `make'.
5758if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5759   am__include=include
5760   am__quote=
5761   _am_result=GNU
5762fi
5763# Now try BSD make style include.
5764if test "$am__include" = "#"; then
5765   echo '.include "confinc"' > confmf
5766   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5767      am__include=.include
5768      am__quote="\""
5769      _am_result=BSD
5770   fi
5771fi
5772
5773
5774echo "$as_me:$LINENO: result: $_am_result" >&5
5775echo "${ECHO_T}$_am_result" >&6
5776rm -f confinc confmf
5777
5778# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5779if test "${enable_dependency_tracking+set}" = set; then
5780  enableval="$enable_dependency_tracking"
5781
5782fi;
5783if test "x$enable_dependency_tracking" != xno; then
5784  am_depcomp="$ac_aux_dir/depcomp"
5785  AMDEPBACKSLASH='\'
5786fi
5787
5788
5789if test "x$enable_dependency_tracking" != xno; then
5790  AMDEP_TRUE=
5791  AMDEP_FALSE='#'
5792else
5793  AMDEP_TRUE='#'
5794  AMDEP_FALSE=
5795fi
5796
5797
5798
5799
5800
5801# AC_MSG_NOTICE([Beginning automake initialisation.])
5802# Stuff for automake
5803# test to see if srcdir already configured
5804if test "`cd $srcdir && pwd`" != "`pwd`" &&
5805   test -f $srcdir/config.status; then
5806  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5807echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5808   { (exit 1); exit 1; }; }
5809fi
5810
5811# test whether we have cygpath
5812if test -z "$CYGPATH_W"; then
5813  if (cygpath --version) >/dev/null 2>/dev/null; then
5814    CYGPATH_W='cygpath -w'
5815  else
5816    CYGPATH_W=echo
5817  fi
5818fi
5819
5820
5821# Define the identity of the package.
5822 PACKAGE='thirdpartymumps'
5823 VERSION='1.1trunk'
5824
5825
5826cat >>confdefs.h <<_ACEOF
5827#define PACKAGE "$PACKAGE"
5828_ACEOF
5829
5830
5831cat >>confdefs.h <<_ACEOF
5832#define VERSION "$VERSION"
5833_ACEOF
5834
5835# Some tools Automake needs.
5836
5837ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5838
5839
5840AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5841
5842
5843AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5844
5845
5846AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5847
5848
5849MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5850
5851install_sh=${install_sh-"$am_aux_dir/install-sh"}
5852
5853# Installed binaries are usually stripped using `strip' when the user
5854# run `make install-strip'.  However `strip' might not be the right
5855# tool to use in cross-compilation environments, therefore Automake
5856# will honor the `STRIP' environment variable to overrule this program.
5857if test "$cross_compiling" != no; then
5858  if test -n "$ac_tool_prefix"; then
5859  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5860set dummy ${ac_tool_prefix}strip; ac_word=$2
5861echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5863if test "${ac_cv_prog_STRIP+set}" = set; then
5864  echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866  if test -n "$STRIP"; then
5867  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874  for ac_exec_ext in '' $ac_executable_extensions; do
5875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881done
5882
5883fi
5884fi
5885STRIP=$ac_cv_prog_STRIP
5886if test -n "$STRIP"; then
5887  echo "$as_me:$LINENO: result: $STRIP" >&5
5888echo "${ECHO_T}$STRIP" >&6
5889else
5890  echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
5892fi
5893
5894fi
5895if test -z "$ac_cv_prog_STRIP"; then
5896  ac_ct_STRIP=$STRIP
5897  # Extract the first word of "strip", so it can be a program name with args.
5898set dummy strip; ac_word=$2
5899echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5902  echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904  if test -n "$ac_ct_STRIP"; then
5905  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910  IFS=$as_save_IFS
5911  test -z "$as_dir" && as_dir=.
5912  for ac_exec_ext in '' $ac_executable_extensions; do
5913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914    ac_cv_prog_ac_ct_STRIP="strip"
5915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916    break 2
5917  fi
5918done
5919done
5920
5921  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5922fi
5923fi
5924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5925if test -n "$ac_ct_STRIP"; then
5926  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5927echo "${ECHO_T}$ac_ct_STRIP" >&6
5928else
5929  echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931fi
5932
5933  STRIP=$ac_ct_STRIP
5934else
5935  STRIP="$ac_cv_prog_STRIP"
5936fi
5937
5938fi
5939INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5940
5941# We need awk for the "check" target.  The system "awk" is bad on
5942# some platforms.
5943# Always define AMTAR for backward compatibility.
5944
5945AMTAR=${AMTAR-"${am_missing_run}tar"}
5946
5947am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5948
5949
5950
5951
5952depcc="$CC"   am_compiler_list=
5953
5954echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5955echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5956if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5960  # We make a subdir and do the tests there.  Otherwise we can end up
5961  # making bogus files that we don't know about and never remove.  For
5962  # instance it was reported that on HP-UX the gcc test will end up
5963  # making a dummy file named `D' -- because `-MD' means `put the output
5964  # in D'.
5965  mkdir conftest.dir
5966  # Copy depcomp to subdir because otherwise we won't find it if we're
5967  # using a relative directory.
5968  cp "$am_depcomp" conftest.dir
5969  cd conftest.dir
5970  # We will build objects and dependencies in a subdirectory because
5971  # it helps to detect inapplicable dependency modes.  For instance
5972  # both Tru64's cc and ICC support -MD to output dependencies as a
5973  # side effect of compilation, but ICC will put the dependencies in
5974  # the current directory while Tru64 will put them in the object
5975  # directory.
5976  mkdir sub
5977
5978  am_cv_CC_dependencies_compiler_type=none
5979  if test "$am_compiler_list" = ""; then
5980     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5981  fi
5982  for depmode in $am_compiler_list; do
5983    # Setup a source with many dependencies, because some compilers
5984    # like to wrap large dependency lists on column 80 (with \), and
5985    # we should not choose a depcomp mode which is confused by this.
5986    #
5987    # We need to recreate these files for each test, as the compiler may
5988    # overwrite some of them when testing with obscure command lines.
5989    # This happens at least with the AIX C compiler.
5990    : > sub/conftest.c
5991    for i in 1 2 3 4 5 6; do
5992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5993      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5994      # Solaris 8's {/usr,}/bin/sh.
5995      touch sub/conftst$i.h
5996    done
5997    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5998
5999    case $depmode in
6000    nosideeffect)
6001      # after this tag, mechanisms are not by side-effect, so they'll
6002      # only be used when explicitly requested
6003      if test "x$enable_dependency_tracking" = xyes; then
6004        continue
6005      else
6006        break
6007      fi
6008      ;;
6009    none) break ;;
6010    esac
6011    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6012    # mode.  It turns out that the SunPro C++ compiler does not properly
6013    # handle `-M -o', and we need to detect this.
6014    if depmode=$depmode \
6015       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6017       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6018         >/dev/null 2>conftest.err &&
6019       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6020       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6021       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6022      # icc doesn't choke on unknown options, it will just issue warnings
6023      # or remarks (even with -Werror).  So we grep stderr for any message
6024      # that says an option was ignored or not supported.
6025      # When given -MP, icc 7.0 and 7.1 complain thusly:
6026      #   icc: Command line warning: ignoring option '-M'; no argument required
6027      # The diagnosis changed in icc 8.0:
6028      #   icc: Command line remark: option '-MP' not supported
6029      if (grep 'ignoring option' conftest.err ||
6030          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6031        am_cv_CC_dependencies_compiler_type=$depmode
6032        break
6033      fi
6034    fi
6035  done
6036
6037  cd ..
6038  rm -rf conftest.dir
6039else
6040  am_cv_CC_dependencies_compiler_type=none
6041fi
6042
6043fi
6044echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6045echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6046CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6047
6048
6049
6050if
6051  test "x$enable_dependency_tracking" != xno \
6052  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6053  am__fastdepCC_TRUE=
6054  am__fastdepCC_FALSE='#'
6055else
6056  am__fastdepCC_TRUE='#'
6057  am__fastdepCC_FALSE=
6058fi
6059
6060
6061
6062echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6063echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6064    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6065if test "${enable_maintainer_mode+set}" = set; then
6066  enableval="$enable_maintainer_mode"
6067  USE_MAINTAINER_MODE=$enableval
6068else
6069  USE_MAINTAINER_MODE=no
6070fi;
6071  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6072echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6073
6074
6075if test $USE_MAINTAINER_MODE = yes; then
6076  MAINTAINER_MODE_TRUE=
6077  MAINTAINER_MODE_FALSE='#'
6078else
6079  MAINTAINER_MODE_TRUE='#'
6080  MAINTAINER_MODE_FALSE=
6081fi
6082
6083  MAINT=$MAINTAINER_MODE_TRUE
6084
6085
6086
6087coin_have_externals=no
6088if test "$enable_maintainer_mode" = yes; then
6089
6090  # If maintainer mode is chosen, we make sure that the correct versions
6091  # of the tools are used, and that we know where libtool.m4 is (to
6092  # recreate acinclude.m4)
6093
6094
6095  LIBTOOLM4=
6096  # Normally, $HOME
6097  AUTOTOOLS_DFLT=$HOME
6098
6099  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6100echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6101if test "${ac_cv_use_correct_autotools+set}" = set; then
6102  echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104  ac_cv_use_correct_autotools=check
6105fi
6106echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6107echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6108
6109  if test $ac_cv_use_correct_autotools = check; then
6110    ac_cv_use_correct_autotools=yes
6111    # Check if we have autoconf
6112    # Extract the first word of "autoconf", so it can be a program name with args.
6113set dummy autoconf; ac_word=$2
6114echo "$as_me:$LINENO: checking for $ac_word" >&5
6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116if test "${ac_cv_prog_have_autoconf+set}" = set; then
6117  echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119  if test -n "$have_autoconf"; then
6120  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125  IFS=$as_save_IFS
6126  test -z "$as_dir" && as_dir=.
6127  for ac_exec_ext in '' $ac_executable_extensions; do
6128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129    ac_cv_prog_have_autoconf="yes"
6130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131    break 2
6132  fi
6133done
6134done
6135
6136  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6137fi
6138fi
6139have_autoconf=$ac_cv_prog_have_autoconf
6140if test -n "$have_autoconf"; then
6141  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6142echo "${ECHO_T}$have_autoconf" >&6
6143else
6144  echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6
6146fi
6147
6148    if test $have_autoconf = no; then
6149      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6150echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6151   { (exit 1); exit 1; }; }
6152    fi
6153
6154    # Check whether autoconf is the correct version
6155    correct_version='2.59'
6156    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6157    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6158echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6159    autoconf --version > confauto.out 2>&1
6160    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6161      echo "$as_me:$LINENO: result: yes" >&5
6162echo "${ECHO_T}yes" >&6
6163    else
6164      rm -f confauto.out
6165      echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
6167      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6168echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6169   { (exit 1); exit 1; }; }
6170    fi
6171    rm -f confauto.out
6172
6173    # Check if the executable autoconf is picked up from the correct location
6174    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6175echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6176    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6177    autoconf_dir=`cd $autoconf_dir; pwd`
6178    if test x$AUTOTOOLS_DIR = x; then
6179      want_dir=$AUTOTOOLS_DFLT/bin
6180    else
6181      want_dir=$AUTOTOOLS_DIR/bin
6182    fi
6183    if test $autoconf_dir = `cd $want_dir; pwd`; then
6184      echo "$as_me:$LINENO: result: yes" >&5
6185echo "${ECHO_T}yes" >&6
6186    else
6187      rm -f confauto.out
6188      echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6191echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6192   { (exit 1); exit 1; }; }
6193    fi
6194
6195    # Check if we have automake
6196    # Extract the first word of "automake", so it can be a program name with args.
6197set dummy automake; ac_word=$2
6198echo "$as_me:$LINENO: checking for $ac_word" >&5
6199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200if test "${ac_cv_prog_have_automake+set}" = set; then
6201  echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203  if test -n "$have_automake"; then
6204  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209  IFS=$as_save_IFS
6210  test -z "$as_dir" && as_dir=.
6211  for ac_exec_ext in '' $ac_executable_extensions; do
6212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213    ac_cv_prog_have_automake="yes"
6214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215    break 2
6216  fi
6217done
6218done
6219
6220  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6221fi
6222fi
6223have_automake=$ac_cv_prog_have_automake
6224if test -n "$have_automake"; then
6225  echo "$as_me:$LINENO: result: $have_automake" >&5
6226echo "${ECHO_T}$have_automake" >&6
6227else
6228  echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230fi
6231
6232    if test $have_automake = no; then
6233      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6234echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6235   { (exit 1); exit 1; }; }
6236    fi
6237
6238    # Check whether automake is the correct version
6239    correct_version='1.9.6'
6240    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6241    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6242echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6243    automake --version > confauto.out 2>&1
6244    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6245      echo "$as_me:$LINENO: result: yes" >&5
6246echo "${ECHO_T}yes" >&6
6247    else
6248      rm -f confauto.out
6249      echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6252echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6253   { (exit 1); exit 1; }; }
6254    fi
6255    rm -f confauto.out
6256
6257    # Check if the executable automake is picked up from the correct location
6258    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6259echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6260    automake_dir=`which automake | sed -e 's=/automake=='`
6261    automake_dir=`cd $automake_dir; pwd`
6262    if test x$AUTOTOOLS_DIR = x; then
6263      want_dir=$AUTOTOOLS_DFLT/bin
6264    else
6265      want_dir=$AUTOTOOLS_DIR/bin
6266    fi
6267    if test $automake_dir = `cd $want_dir; pwd`; then
6268      echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
6270    else
6271      rm -f confauto.out
6272      echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6275echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6276   { (exit 1); exit 1; }; }
6277    fi
6278
6279    # Check if this is the correct version of libtool (with escaped dots)
6280    if test x$AUTOTOOLS_DIR = x; then
6281      want_dir=$AUTOTOOLS_DFLT/share
6282    else
6283      want_dir=$AUTOTOOLS_DIR/share
6284    fi
6285    correct_version='1.5.22'
6286    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6287    if test -r $want_dir/libtool/ltmain.sh; then
6288  have_ltmain=yes
6289  :
6290else
6291  have_ltmain=no
6292  :
6293fi
6294
6295    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6296echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6297    if test $have_ltmain = yes; then
6298    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6299        echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6
6301      else
6302        echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6305echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6306   { (exit 1); exit 1; }; }
6307      fi
6308    else
6309      echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6312echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6313   { (exit 1); exit 1; }; }
6314    fi
6315  fi
6316
6317  # Check if we can find the libtool file
6318  if test x$AUTOTOOLS_DIR = x; then
6319    want_dir=$AUTOTOOLS_DFLT/share
6320  else
6321    want_dir=$AUTOTOOLS_DIR/share
6322  fi
6323  if test -r $want_dir/aclocal/libtool.m4; then
6324  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6325  :
6326else
6327  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6328echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6329   { (exit 1); exit 1; }; }
6330  :
6331fi
6332
6333
6334  # Check if we have an Externals file
6335  if test -r $srcdir/Externals; then
6336    coin_have_externals=yes
6337  fi
6338  # Check if subversion is installed and understands https
6339  # Extract the first word of "svn", so it can be a program name with args.
6340set dummy svn; ac_word=$2
6341echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6343if test "${ac_cv_prog_have_svn+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  if test -n "$have_svn"; then
6347  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352  IFS=$as_save_IFS
6353  test -z "$as_dir" && as_dir=.
6354  for ac_exec_ext in '' $ac_executable_extensions; do
6355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356    ac_cv_prog_have_svn="yes"
6357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358    break 2
6359  fi
6360done
6361done
6362
6363  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6364fi
6365fi
6366have_svn=$ac_cv_prog_have_svn
6367if test -n "$have_svn"; then
6368  echo "$as_me:$LINENO: result: $have_svn" >&5
6369echo "${ECHO_T}$have_svn" >&6
6370else
6371  echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6
6373fi
6374
6375  if test x$have_svn = xyes; then
6376    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6377echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6378if test "${ac_cv_svn_understands_https+set}" = set; then
6379  echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381  svn --version > confauto.out 2>&1
6382                    if $EGREP https confauto.out >/dev/null 2>&1; then
6383                      ac_cv_svn_understands_https=yes
6384                    else
6385                      ac_cv_svn_understands_https=no
6386                      have_svn=no
6387                      ac_cv_prog_have_svn=no
6388                    fi
6389                    rm -f confauto.out
6390fi
6391echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6392echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6393  fi
6394
6395  # Find the location of the BuildTools directory
6396  BUILDTOOLSDIR=
6397  if test -r $srcdir/BuildTools/coin.m4; then
6398    BUILDTOOLSDIR=$srcdir/BuildTools
6399  else
6400    if test -r $srcdir/../BuildTools/coin.m4; then
6401      BUILDTOOLSDIR=$srcdir/../BuildTools
6402    else
6403      if test -r $srcdir/../../BuildTools/coin.m4; then
6404        BUILDTOOLSDIR=$srcdir/../../BuildTools
6405      else
6406        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6407echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6408   { (exit 1); exit 1; }; }
6409      fi
6410    fi
6411  fi
6412
6413
6414  # The following variable is set to the name of the directory where
6415  # the autotool scripts are located
6416
6417  AUX_DIR=$ac_aux_dir
6418fi
6419
6420# helpful variable for the base directory of this package
6421abs_source_dir=`cd $srcdir; pwd`
6422
6423
6424# Stuff for example Makefiles
6425if test x$prefix = xNONE; then
6426  full_prefix=$ac_default_prefix
6427else
6428  full_prefix=$prefix
6429fi
6430full_prefix=`cd $full_prefix ; pwd`
6431
6432abs_lib_dir=$full_prefix/lib
6433
6434abs_include_dir=$full_prefix/include
6435
6436abs_bin_dir=$full_prefix/bin
6437
6438
6439
6440if test $coin_have_externals = yes && test x$have_svn = xyes; then
6441  HAVE_EXTERNALS_TRUE=
6442  HAVE_EXTERNALS_FALSE='#'
6443else
6444  HAVE_EXTERNALS_TRUE='#'
6445  HAVE_EXTERNALS_FALSE=
6446fi
6447
6448
6449# AC_MSG_NOTICE([End automake initialisation.])
6450
6451
6452
6453LIBTOOL=
6454if test -r ../libtool; then
6455  coin_config_dir=..
6456  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6457fi
6458if test "x$LIBTOOL" = x; then
6459  if test -r ../../libtool; then
6460    coin_config_dir=../..
6461    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6462  fi
6463fi
6464
6465if test "x$LIBTOOL" = x; then
6466# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6467  # Stuff for libtool
6468  # Check whether --enable-shared or --disable-shared was given.
6469if test "${enable_shared+set}" = set; then
6470  enableval="$enable_shared"
6471  p=${PACKAGE-default}
6472    case $enableval in
6473    yes) enable_shared=yes ;;
6474    no) enable_shared=no ;;
6475    *)
6476      enable_shared=no
6477      # Look at the argument we got.  We use all the common list separators.
6478      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6479      for pkg in $enableval; do
6480        IFS="$lt_save_ifs"
6481        if test "X$pkg" = "X$p"; then
6482          enable_shared=yes
6483        fi
6484      done
6485      IFS="$lt_save_ifs"
6486      ;;
6487    esac
6488else
6489  enable_shared=yes
6490fi;
6491
6492# Check whether --enable-fast-install or --disable-fast-install was given.
6493if test "${enable_fast_install+set}" = set; then
6494  enableval="$enable_fast_install"
6495  p=${PACKAGE-default}
6496    case $enableval in
6497    yes) enable_fast_install=yes ;;
6498    no) enable_fast_install=no ;;
6499    *)
6500      enable_fast_install=no
6501      # Look at the argument we got.  We use all the common list separators.
6502      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6503      for pkg in $enableval; do
6504        IFS="$lt_save_ifs"
6505        if test "X$pkg" = "X$p"; then
6506          enable_fast_install=yes
6507        fi
6508      done
6509      IFS="$lt_save_ifs"
6510      ;;
6511    esac
6512else
6513  enable_fast_install=yes
6514fi;
6515
6516echo "$as_me:$LINENO: checking host system type" >&5
6517echo $ECHO_N "checking host system type... $ECHO_C" >&6
6518if test "${ac_cv_host+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  ac_cv_host_alias=$host_alias
6522test -z "$ac_cv_host_alias" &&
6523  ac_cv_host_alias=$ac_cv_build_alias
6524ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6525  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6526echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6527   { (exit 1); exit 1; }; }
6528
6529fi
6530echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6531echo "${ECHO_T}$ac_cv_host" >&6
6532host=$ac_cv_host
6533host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6534host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6535host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6536
6537
6538echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6539echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6540if test "${lt_cv_path_SED+set}" = set; then
6541  echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
6543  # Loop through the user's path and test for sed and gsed.
6544# Then use that list of sed's as ones to test for truncation.
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550  for lt_ac_prog in sed gsed; do
6551    for ac_exec_ext in '' $ac_executable_extensions; do
6552      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6553        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6554      fi
6555    done
6556  done
6557done
6558lt_ac_max=0
6559lt_ac_count=0
6560# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6561# along with /bin/sed that truncates output.
6562for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6563  test ! -f $lt_ac_sed && continue
6564  cat /dev/null > conftest.in
6565  lt_ac_count=0
6566  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6567  # Check for GNU sed and select it if it is found.
6568  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6569    lt_cv_path_SED=$lt_ac_sed
6570    break
6571  fi
6572  while true; do
6573    cat conftest.in conftest.in >conftest.tmp
6574    mv conftest.tmp conftest.in
6575    cp conftest.in conftest.nl
6576    echo >>conftest.nl
6577    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6578    cmp -s conftest.out conftest.nl || break
6579    # 10000 chars as input seems more than enough
6580    test $lt_ac_count -gt 10 && break
6581    lt_ac_count=`expr $lt_ac_count + 1`
6582    if test $lt_ac_count -gt $lt_ac_max; then
6583      lt_ac_max=$lt_ac_count
6584      lt_cv_path_SED=$lt_ac_sed
6585    fi
6586  done
6587done
6588
6589fi
6590
6591SED=$lt_cv_path_SED
6592echo "$as_me:$LINENO: result: $SED" >&5
6593echo "${ECHO_T}$SED" >&6
6594
6595
6596# Check whether --with-gnu-ld or --without-gnu-ld was given.
6597if test "${with_gnu_ld+set}" = set; then
6598  withval="$with_gnu_ld"
6599  test "$withval" = no || with_gnu_ld=yes
6600else
6601  with_gnu_ld=no
6602fi;
6603ac_prog=ld
6604if test "$GCC" = yes; then
6605  # Check if gcc -print-prog-name=ld gives a path.
6606  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6607echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6608  case $host in
6609  *-*-mingw*)
6610    # gcc leaves a trailing carriage return which upsets mingw
6611    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6612  *)
6613    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6614  esac
6615  case $ac_prog in
6616    # Accept absolute paths.
6617    [\\/]* | ?:[\\/]*)
6618      re_direlt='/[^/][^/]*/\.\./'
6619      # Canonicalize the pathname of ld
6620      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6621      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6622        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6623      done
6624      test -z "$LD" && LD="$ac_prog"
6625      ;;
6626  "")
6627    # If it fails, then pretend we aren't using GCC.
6628    ac_prog=ld
6629    ;;
6630  *)
6631    # If it is relative, then search for the first ld in PATH.
6632    with_gnu_ld=unknown
6633    ;;
6634  esac
6635elif test "$with_gnu_ld" = yes; then
6636  echo "$as_me:$LINENO: checking for GNU ld" >&5
6637echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6638else
6639  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6640echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6641fi
6642if test "${lt_cv_path_LD+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  if test -z "$LD"; then
6646  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647  for ac_dir in $PATH; do
6648    IFS="$lt_save_ifs"
6649    test -z "$ac_dir" && ac_dir=.
6650    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6651      lt_cv_path_LD="$ac_dir/$ac_prog"
6652      # Check to see if the program is GNU ld.  I'd rather use --version,
6653      # but apparently some variants of GNU ld only accept -v.
6654      # Break only if it was the GNU/non-GNU ld that we prefer.
6655      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6656      *GNU* | *'with BFD'*)
6657        test "$with_gnu_ld" != no && break
6658        ;;
6659      *)
6660        test "$with_gnu_ld" != yes && break
6661        ;;
6662      esac
6663    fi
6664  done
6665  IFS="$lt_save_ifs"
6666else
6667  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6668fi
6669fi
6670
6671LD="$lt_cv_path_LD"
6672if test -n "$LD"; then
6673  echo "$as_me:$LINENO: result: $LD" >&5
6674echo "${ECHO_T}$LD" >&6
6675else
6676  echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6
6678fi
6679test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6680echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6681   { (exit 1); exit 1; }; }
6682echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6683echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6684if test "${lt_cv_prog_gnu_ld+set}" = set; then
6685  echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6688case `$LD -v 2>&1 </dev/null` in
6689*GNU* | *'with BFD'*)
6690  lt_cv_prog_gnu_ld=yes
6691  ;;
6692*)
6693  lt_cv_prog_gnu_ld=no
6694  ;;
6695esac
6696fi
6697echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6698echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6699with_gnu_ld=$lt_cv_prog_gnu_ld
6700
6701
6702echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6703echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6704if test "${lt_cv_ld_reload_flag+set}" = set; then
6705  echo $ECHO_N "(cached) $ECHO_C" >&6
6706else
6707  lt_cv_ld_reload_flag='-r'
6708fi
6709echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6710echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6711reload_flag=$lt_cv_ld_reload_flag
6712case $reload_flag in
6713"" | " "*) ;;
6714*) reload_flag=" $reload_flag" ;;
6715esac
6716reload_cmds='$LD$reload_flag -o $output$reload_objs'
6717case $host_os in
6718  darwin*)
6719    if test "$GCC" = yes; then
6720      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6721    else
6722      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6723    fi
6724    ;;
6725esac
6726
6727echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6728echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6729if test "${lt_cv_path_NM+set}" = set; then
6730  echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732  if test -n "$NM"; then
6733  # Let the user override the test.
6734  lt_cv_path_NM="$NM"
6735else
6736  lt_nm_to_check="${ac_tool_prefix}nm"
6737  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6738    lt_nm_to_check="$lt_nm_to_check nm"
6739  fi
6740  for lt_tmp_nm in $lt_nm_to_check; do
6741    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6742    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6743      IFS="$lt_save_ifs"
6744      test -z "$ac_dir" && ac_dir=.
6745      tmp_nm="$ac_dir/$lt_tmp_nm"
6746      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6747        # Check to see if the nm accepts a BSD-compat flag.
6748        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6749        #   nm: unknown option "B" ignored
6750        # Tru64's nm complains that /dev/null is an invalid object file
6751        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6752        */dev/null* | *'Invalid file or object type'*)
6753          lt_cv_path_NM="$tmp_nm -B"
6754          break
6755          ;;
6756        *)
6757          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6758          */dev/null*)
6759            lt_cv_path_NM="$tmp_nm -p"
6760            break
6761            ;;
6762          *)
6763            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6764            continue # so that we can try to find one that supports BSD flags
6765            ;;
6766          esac
6767          ;;
6768        esac
6769      fi
6770    done
6771    IFS="$lt_save_ifs"
6772  done
6773  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6774fi
6775fi
6776echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6777echo "${ECHO_T}$lt_cv_path_NM" >&6
6778NM="$lt_cv_path_NM"
6779
6780echo "$as_me:$LINENO: checking whether ln -s works" >&5
6781echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6782LN_S=$as_ln_s
6783if test "$LN_S" = "ln -s"; then
6784  echo "$as_me:$LINENO: result: yes" >&5
6785echo "${ECHO_T}yes" >&6
6786else
6787  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6788echo "${ECHO_T}no, using $LN_S" >&6
6789fi
6790
6791echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6792echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6793if test "${lt_cv_deplibs_check_method+set}" = set; then
6794  echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796  lt_cv_file_magic_cmd='$MAGIC_CMD'
6797lt_cv_file_magic_test_file=
6798lt_cv_deplibs_check_method='unknown'
6799# Need to set the preceding variable on all platforms that support
6800# interlibrary dependencies.
6801# 'none' -- dependencies not supported.
6802# `unknown' -- same as none, but documents that we really don't know.
6803# 'pass_all' -- all dependencies passed with no checks.
6804# 'test_compile' -- check by making test program.
6805# 'file_magic [[regex]]' -- check by looking for files in library path
6806# which responds to the $file_magic_cmd with a given extended regex.
6807# If you have `file' or equivalent on your system and you're not sure
6808# whether `pass_all' will *always* work, you probably want this one.
6809
6810case $host_os in
6811aix4* | aix5*)
6812  lt_cv_deplibs_check_method=pass_all
6813  ;;
6814
6815beos*)
6816  lt_cv_deplibs_check_method=pass_all
6817  ;;
6818
6819bsdi[45]*)
6820  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6821  lt_cv_file_magic_cmd='/usr/bin/file -L'
6822  lt_cv_file_magic_test_file=/shlib/libc.so
6823  ;;
6824
6825cygwin*)
6826  # func_win32_libid is a shell function defined in ltmain.sh
6827  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6828  lt_cv_file_magic_cmd='func_win32_libid'
6829  ;;
6830
6831mingw* | pw32*)
6832  # Base MSYS/MinGW do not provide the 'file' command needed by
6833  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6834  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6835  lt_cv_file_magic_cmd='$OBJDUMP -f'
6836  ;;
6837
6838darwin* | rhapsody*)
6839  lt_cv_deplibs_check_method=pass_all
6840  ;;
6841
6842freebsd* | kfreebsd*-gnu | dragonfly*)
6843  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6844    case $host_cpu in
6845    i*86 )
6846      # Not sure whether the presence of OpenBSD here was a mistake.
6847      # Let's accept both of them until this is cleared up.
6848      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6849      lt_cv_file_magic_cmd=/usr/bin/file
6850      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6851      ;;
6852    esac
6853  else
6854    lt_cv_deplibs_check_method=pass_all
6855  fi
6856  ;;
6857
6858gnu*)
6859  lt_cv_deplibs_check_method=pass_all
6860  ;;
6861
6862hpux10.20* | hpux11*)
6863  lt_cv_file_magic_cmd=/usr/bin/file
6864  case $host_cpu in
6865  ia64*)
6866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6867    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6868    ;;
6869  hppa*64*)
6870    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]'
6871    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6872    ;;
6873  *)
6874    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6875    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6876    ;;
6877  esac
6878  ;;
6879
6880interix3*)
6881  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6882  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6883  ;;
6884
6885irix5* | irix6* | nonstopux*)
6886  case $LD in
6887  *-32|*"-32 ") libmagic=32-bit;;
6888  *-n32|*"-n32 ") libmagic=N32;;
6889  *-64|*"-64 ") libmagic=64-bit;;
6890  *) libmagic=never-match;;
6891  esac
6892  lt_cv_deplibs_check_method=pass_all
6893  ;;
6894
6895# This must be Linux ELF.
6896linux*)
6897  lt_cv_deplibs_check_method=pass_all
6898  ;;
6899
6900netbsd*)
6901  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6903  else
6904    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6905  fi
6906  ;;
6907
6908newos6*)
6909  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6910  lt_cv_file_magic_cmd=/usr/bin/file
6911  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6912  ;;
6913
6914nto-qnx*)
6915  lt_cv_deplibs_check_method=unknown
6916  ;;
6917
6918openbsd*)
6919  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6920    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6921  else
6922    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6923  fi
6924  ;;
6925
6926osf3* | osf4* | osf5*)
6927  lt_cv_deplibs_check_method=pass_all
6928  ;;
6929
6930solaris*)
6931  lt_cv_deplibs_check_method=pass_all
6932  ;;
6933
6934sysv4 | sysv4.3*)
6935  case $host_vendor in
6936  motorola)
6937    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]'
6938    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6939    ;;
6940  ncr)
6941    lt_cv_deplibs_check_method=pass_all
6942    ;;
6943  sequent)
6944    lt_cv_file_magic_cmd='/bin/file'
6945    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6946    ;;
6947  sni)
6948    lt_cv_file_magic_cmd='/bin/file'
6949    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6950    lt_cv_file_magic_test_file=/lib/libc.so
6951    ;;
6952  siemens)
6953    lt_cv_deplibs_check_method=pass_all
6954    ;;
6955  pc)
6956    lt_cv_deplibs_check_method=pass_all
6957    ;;
6958  esac
6959  ;;
6960
6961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6962  lt_cv_deplibs_check_method=pass_all
6963  ;;
6964esac
6965
6966fi
6967echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6968echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6969file_magic_cmd=$lt_cv_file_magic_cmd
6970deplibs_check_method=$lt_cv_deplibs_check_method
6971test -z "$deplibs_check_method" && deplibs_check_method=unknown
6972
6973
6974
6975
6976# If no C compiler was specified, use CC.
6977LTCC=${LTCC-"$CC"}
6978
6979# If no C compiler flags were specified, use CFLAGS.
6980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6981
6982# Allow CC to be a program name with arguments.
6983compiler=$CC
6984
6985# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6986if test "${enable_libtool_lock+set}" = set; then
6987  enableval="$enable_libtool_lock"
6988
6989fi;
6990test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6991
6992# Some flags need to be propagated to the compiler or linker for good
6993# libtool support.
6994case $host in
6995ia64-*-hpux*)
6996  # Find out which ABI we are using.
6997  echo 'int i;' > conftest.$ac_ext
6998  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999  (eval $ac_compile) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; then
7003    case `/usr/bin/file conftest.$ac_objext` in
7004    *ELF-32*)
7005      HPUX_IA64_MODE="32"
7006      ;;
7007    *ELF-64*)
7008      HPUX_IA64_MODE="64"
7009      ;;
7010    esac
7011  fi
7012  rm -rf conftest*
7013  ;;
7014*-*-irix6*)
7015  # Find out which ABI we are using.
7016  echo '#line 7016 "configure"' > conftest.$ac_ext
7017  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018  (eval $ac_compile) 2>&5
7019  ac_status=$?
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); }; then
7022   if test "$lt_cv_prog_gnu_ld" = yes; then
7023    case `/usr/bin/file conftest.$ac_objext` in
7024    *32-bit*)
7025      LD="${LD-ld} -melf32bsmip"
7026      ;;
7027    *N32*)
7028      LD="${LD-ld} -melf32bmipn32"
7029      ;;
7030    *64-bit*)
7031      LD="${LD-ld} -melf64bmip"
7032      ;;
7033    esac
7034   else
7035    case `/usr/bin/file conftest.$ac_objext` in
7036    *32-bit*)
7037      LD="${LD-ld} -32"
7038      ;;
7039    *N32*)
7040      LD="${LD-ld} -n32"
7041      ;;
7042    *64-bit*)
7043      LD="${LD-ld} -64"
7044      ;;
7045    esac
7046   fi
7047  fi
7048  rm -rf conftest*
7049  ;;
7050
7051x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7052  # Find out which ABI we are using.
7053  echo 'int i;' > conftest.$ac_ext
7054  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055  (eval $ac_compile) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; then
7059    case `/usr/bin/file conftest.o` in
7060    *32-bit*)
7061      case $host in
7062        x86_64-*linux*)
7063          LD="${LD-ld} -m elf_i386"
7064          ;;
7065        ppc64-*linux*|powerpc64-*linux*)
7066          LD="${LD-ld} -m elf32ppclinux"
7067          ;;
7068        s390x-*linux*)
7069          LD="${LD-ld} -m elf_s390"
7070          ;;
7071        sparc64-*linux*)
7072          LD="${LD-ld} -m elf32_sparc"
7073          ;;
7074      esac
7075      ;;
7076    *64-bit*)
7077      case $host in
7078        x86_64-*linux*)
7079          LD="${LD-ld} -m elf_x86_64"
7080          ;;
7081        ppc*-*linux*|powerpc*-*linux*)
7082          LD="${LD-ld} -m elf64ppc"
7083          ;;
7084        s390*-*linux*)
7085          LD="${LD-ld} -m elf64_s390"
7086          ;;
7087        sparc*-*linux*)
7088          LD="${LD-ld} -m elf64_sparc"
7089          ;;
7090      esac
7091      ;;
7092    esac
7093  fi
7094  rm -rf conftest*
7095  ;;
7096
7097*-*-sco3.2v5*)
7098  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7099  SAVE_CFLAGS="$CFLAGS"
7100  CFLAGS="$CFLAGS -belf"
7101  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7102echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7103if test "${lt_cv_cc_needs_belf+set}" = set; then
7104  echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106  ac_ext=c
7107ac_cpp='$CPP $CPPFLAGS'
7108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
7112     cat >conftest.$ac_ext <<_ACEOF
7113/* confdefs.h.  */
7114_ACEOF
7115cat confdefs.h >>conftest.$ac_ext
7116cat >>conftest.$ac_ext <<_ACEOF
7117/* end confdefs.h.  */
7118
7119#ifdef F77_DUMMY_MAIN
7120
7121#  ifdef __cplusplus
7122     extern "C"
7123#  endif
7124   int F77_DUMMY_MAIN() { return 1; }
7125
7126#endif
7127int
7128main ()
7129{
7130
7131  ;
7132  return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext conftest$ac_exeext
7136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137  (eval $ac_link) 2>conftest.er1
7138  ac_status=$?
7139  grep -v '^ *+' conftest.er1 >conftest.err
7140  rm -f conftest.er1
7141  cat conftest.err >&5
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); } &&
7144         { ac_try='test -z "$ac_c_werror_flag"
7145                         || test ! -s conftest.err'
7146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147  (eval $ac_try) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); }; } &&
7151         { ac_try='test -s conftest$ac_exeext'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; }; then
7157  lt_cv_cc_needs_belf=yes
7158else
7159  echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162lt_cv_cc_needs_belf=no
7163fi
7164rm -f conftest.err conftest.$ac_objext \
7165      conftest$ac_exeext conftest.$ac_ext
7166     ac_ext=c
7167ac_cpp='$CPP $CPPFLAGS'
7168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170ac_compiler_gnu=$ac_cv_c_compiler_gnu
7171
7172fi
7173echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7174echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7175  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7176    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7177    CFLAGS="$SAVE_CFLAGS"
7178  fi
7179  ;;
7180sparc*-*solaris*)
7181  # Find out which ABI we are using.
7182  echo 'int i;' > conftest.$ac_ext
7183  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7184  (eval $ac_compile) 2>&5
7185  ac_status=$?
7186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187  (exit $ac_status); }; then
7188    case `/usr/bin/file conftest.o` in
7189    *64-bit*)
7190      case $lt_cv_prog_gnu_ld in
7191      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7192      *)    LD="${LD-ld} -64" ;;
7193      esac
7194      ;;
7195    esac
7196  fi
7197  rm -rf conftest*
7198  ;;
7199
7200
7201esac
7202
7203need_locks="$enable_libtool_lock"
7204
7205
7206
7207for ac_header in dlfcn.h
7208do
7209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7210if eval "test \"\${$as_ac_Header+set}\" = set"; then
7211  echo "$as_me:$LINENO: checking for $ac_header" >&5
7212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7213if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214  echo $ECHO_N "(cached) $ECHO_C" >&6
7215fi
7216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218else
7219  # Is the header compilable?
7220echo "$as_me:$LINENO: checking $ac_header usability" >&5
7221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7222cat >conftest.$ac_ext <<_ACEOF
7223/* confdefs.h.  */
7224_ACEOF
7225cat confdefs.h >>conftest.$ac_ext
7226cat >>conftest.$ac_ext <<_ACEOF
7227/* end confdefs.h.  */
7228$ac_includes_default
7229#include <$ac_header>
7230_ACEOF
7231rm -f conftest.$ac_objext
7232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233  (eval $ac_compile) 2>conftest.er1
7234  ac_status=$?
7235  grep -v '^ *+' conftest.er1 >conftest.err
7236  rm -f conftest.er1
7237  cat conftest.err >&5
7238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239  (exit $ac_status); } &&
7240         { ac_try='test -z "$ac_c_werror_flag"
7241                         || test ! -s conftest.err'
7242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243  (eval $ac_try) 2>&5
7244  ac_status=$?
7245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246  (exit $ac_status); }; } &&
7247         { ac_try='test -s conftest.$ac_objext'
7248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249  (eval $ac_try) 2>&5
7250  ac_status=$?
7251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252  (exit $ac_status); }; }; then
7253  ac_header_compiler=yes
7254else
7255  echo "$as_me: failed program was:" >&5
7256sed 's/^/| /' conftest.$ac_ext >&5
7257
7258ac_header_compiler=no
7259fi
7260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7262echo "${ECHO_T}$ac_header_compiler" >&6
7263
7264# Is the header present?
7265echo "$as_me:$LINENO: checking $ac_header presence" >&5
7266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7267cat >conftest.$ac_ext <<_ACEOF
7268/* confdefs.h.  */
7269_ACEOF
7270cat confdefs.h >>conftest.$ac_ext
7271cat >>conftest.$ac_ext <<_ACEOF
7272/* end confdefs.h.  */
7273#include <$ac_header>
7274_ACEOF
7275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7276  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7277  ac_status=$?
7278  grep -v '^ *+' conftest.er1 >conftest.err
7279  rm -f conftest.er1
7280  cat conftest.err >&5
7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282  (exit $ac_status); } >/dev/null; then
7283  if test -s conftest.err; then
7284    ac_cpp_err=$ac_c_preproc_warn_flag
7285    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7286  else
7287    ac_cpp_err=
7288  fi
7289else
7290  ac_cpp_err=yes
7291fi
7292if test -z "$ac_cpp_err"; then
7293  ac_header_preproc=yes
7294else
7295  echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298  ac_header_preproc=no
7299fi
7300rm -f conftest.err conftest.$ac_ext
7301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7302echo "${ECHO_T}$ac_header_preproc" >&6
7303
7304# So?  What about this header?
7305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7306  yes:no: )
7307    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7309    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7311    ac_header_preproc=yes
7312    ;;
7313  no:yes:* )
7314    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7316    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7317echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7318    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7320    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7321echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7322    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7324    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7326    (
7327      cat <<\_ASBOX
7328## --------------------------------------------------------------- ##
7329## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7330## --------------------------------------------------------------- ##
7331_ASBOX
7332    ) |
7333      sed "s/^/$as_me: WARNING:     /" >&2
7334    ;;
7335esac
7336echo "$as_me:$LINENO: checking for $ac_header" >&5
7337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7338if eval "test \"\${$as_ac_Header+set}\" = set"; then
7339  echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341  eval "$as_ac_Header=\$ac_header_preproc"
7342fi
7343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7345
7346fi
7347if test `eval echo '${'$as_ac_Header'}'` = yes; then
7348  cat >>confdefs.h <<_ACEOF
7349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7350_ACEOF
7351
7352fi
7353
7354done
7355
7356ac_ext=cc
7357ac_cpp='$CXXCPP $CPPFLAGS'
7358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7361if test -n "$ac_tool_prefix"; then
7362  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7363  do
7364    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7366echo "$as_me:$LINENO: checking for $ac_word" >&5
7367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368if test "${ac_cv_prog_CXX+set}" = set; then
7369  echo $ECHO_N "(cached) $ECHO_C" >&6
7370else
7371  if test -n "$CXX"; then
7372  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377  IFS=$as_save_IFS
7378  test -z "$as_dir" && as_dir=.
7379  for ac_exec_ext in '' $ac_executable_extensions; do
7380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383    break 2
7384  fi
7385done
7386done
7387
7388fi
7389fi
7390CXX=$ac_cv_prog_CXX
7391if test -n "$CXX"; then
7392  echo "$as_me:$LINENO: result: $CXX" >&5
7393echo "${ECHO_T}$CXX" >&6
7394else
7395  echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6
7397fi
7398
7399    test -n "$CXX" && break
7400  done
7401fi
7402if test -z "$CXX"; then
7403  ac_ct_CXX=$CXX
7404  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7405do
7406  # Extract the first word of "$ac_prog", so it can be a program name with args.
7407set dummy $ac_prog; ac_word=$2
7408echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7411  echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413  if test -n "$ac_ct_CXX"; then
7414  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419  IFS=$as_save_IFS
7420  test -z "$as_dir" && as_dir=.
7421  for ac_exec_ext in '' $ac_executable_extensions; do
7422  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423    ac_cv_prog_ac_ct_CXX="$ac_prog"
7424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425    break 2
7426  fi
7427done
7428done
7429
7430fi
7431fi
7432ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7433if test -n "$ac_ct_CXX"; then
7434  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7435echo "${ECHO_T}$ac_ct_CXX" >&6
7436else
7437  echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
7439fi
7440
7441  test -n "$ac_ct_CXX" && break
7442done
7443test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7444
7445  CXX=$ac_ct_CXX
7446fi
7447
7448
7449# Provide some information about the compiler.
7450echo "$as_me:$LINENO:" \
7451     "checking for C++ compiler version" >&5
7452ac_compiler=`set X $ac_compile; echo $2`
7453{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7454  (eval $ac_compiler --version </dev/null >&5) 2>&5
7455  ac_status=$?
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); }
7458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7459  (eval $ac_compiler -v </dev/null >&5) 2>&5
7460  ac_status=$?
7461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462  (exit $ac_status); }
7463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7464  (eval $ac_compiler -V </dev/null >&5) 2>&5
7465  ac_status=$?
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); }
7468
7469echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7470echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7471if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7472  echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474  cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h.  */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h.  */
7480
7481#ifdef F77_DUMMY_MAIN
7482
7483#  ifdef __cplusplus
7484     extern "C"
7485#  endif
7486   int F77_DUMMY_MAIN() { return 1; }
7487
7488#endif
7489int
7490main ()
7491{
7492#ifndef __GNUC__
7493       choke me
7494#endif
7495
7496  ;
7497  return 0;
7498}
7499_ACEOF
7500rm -f conftest.$ac_objext
7501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502  (eval $ac_compile) 2>conftest.er1
7503  ac_status=$?
7504  grep -v '^ *+' conftest.er1 >conftest.err
7505  rm -f conftest.er1
7506  cat conftest.err >&5
7507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508  (exit $ac_status); } &&
7509         { ac_try='test -z "$ac_cxx_werror_flag"
7510                         || test ! -s conftest.err'
7511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512  (eval $ac_try) 2>&5
7513  ac_status=$?
7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515  (exit $ac_status); }; } &&
7516         { ac_try='test -s conftest.$ac_objext'
7517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518  (eval $ac_try) 2>&5
7519  ac_status=$?
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); }; }; then
7522  ac_compiler_gnu=yes
7523else
7524  echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
7526
7527ac_compiler_gnu=no
7528fi
7529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7530ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7531
7532fi
7533echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7534echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7535GXX=`test $ac_compiler_gnu = yes && echo yes`
7536ac_test_CXXFLAGS=${CXXFLAGS+set}
7537ac_save_CXXFLAGS=$CXXFLAGS
7538CXXFLAGS="-g"
7539echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7540echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7541if test "${ac_cv_prog_cxx_g+set}" = set; then
7542  echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544  cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h.  */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h.  */
7550
7551#ifdef F77_DUMMY_MAIN
7552
7553#  ifdef __cplusplus
7554     extern "C"
7555#  endif
7556   int F77_DUMMY_MAIN() { return 1; }
7557
7558#endif
7559int
7560main ()
7561{
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567rm -f conftest.$ac_objext
7568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569  (eval $ac_compile) 2>conftest.er1
7570  ac_status=$?
7571  grep -v '^ *+' conftest.er1 >conftest.err
7572  rm -f conftest.er1
7573  cat conftest.err >&5
7574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575  (exit $ac_status); } &&
7576         { ac_try='test -z "$ac_cxx_werror_flag"
7577                         || test ! -s conftest.err'
7578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579  (eval $ac_try) 2>&5
7580  ac_status=$?
7581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582  (exit $ac_status); }; } &&
7583         { ac_try='test -s conftest.$ac_objext'
7584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585  (eval $ac_try) 2>&5
7586  ac_status=$?
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); }; }; then
7589  ac_cv_prog_cxx_g=yes
7590else
7591  echo "$as_me: failed program was:" >&5
7592sed 's/^/| /' conftest.$ac_ext >&5
7593
7594ac_cv_prog_cxx_g=no
7595fi
7596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597fi
7598echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7599echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7600if test "$ac_test_CXXFLAGS" = set; then
7601  CXXFLAGS=$ac_save_CXXFLAGS
7602elif test $ac_cv_prog_cxx_g = yes; then
7603  if test "$GXX" = yes; then
7604    CXXFLAGS="-g -O2"
7605  else
7606    CXXFLAGS="-g"
7607  fi
7608else
7609  if test "$GXX" = yes; then
7610    CXXFLAGS="-O2"
7611  else
7612    CXXFLAGS=
7613  fi
7614fi
7615for ac_declaration in \
7616   '' \
7617   'extern "C" void std::exit (int) throw (); using std::exit;' \
7618   'extern "C" void std::exit (int); using std::exit;' \
7619   'extern "C" void exit (int) throw ();' \
7620   'extern "C" void exit (int);' \
7621   'void exit (int);'
7622do
7623  cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h.  */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h.  */
7629$ac_declaration
7630#include <stdlib.h>
7631#ifdef F77_DUMMY_MAIN
7632
7633#  ifdef __cplusplus
7634     extern "C"
7635#  endif
7636   int F77_DUMMY_MAIN() { return 1; }
7637
7638#endif
7639int
7640main ()
7641{
7642exit (42);
7643  ;
7644  return 0;
7645}
7646_ACEOF
7647rm -f conftest.$ac_objext
7648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649  (eval $ac_compile) 2>conftest.er1
7650  ac_status=$?
7651  grep -v '^ *+' conftest.er1 >conftest.err
7652  rm -f conftest.er1
7653  cat conftest.err >&5
7654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655  (exit $ac_status); } &&
7656         { ac_try='test -z "$ac_cxx_werror_flag"
7657                         || test ! -s conftest.err'
7658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659  (eval $ac_try) 2>&5
7660  ac_status=$?
7661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662  (exit $ac_status); }; } &&
7663         { ac_try='test -s conftest.$ac_objext'
7664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665  (eval $ac_try) 2>&5
7666  ac_status=$?
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); }; }; then
7669  :
7670else
7671  echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674continue
7675fi
7676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677  cat >conftest.$ac_ext <<_ACEOF
7678/* confdefs.h.  */
7679_ACEOF
7680cat confdefs.h >>conftest.$ac_ext
7681cat >>conftest.$ac_ext <<_ACEOF
7682/* end confdefs.h.  */
7683$ac_declaration
7684#ifdef F77_DUMMY_MAIN
7685
7686#  ifdef __cplusplus
7687     extern "C"
7688#  endif
7689   int F77_DUMMY_MAIN() { return 1; }
7690
7691#endif
7692int
7693main ()
7694{
7695exit (42);
7696  ;
7697  return 0;
7698}
7699_ACEOF
7700rm -f conftest.$ac_objext
7701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702  (eval $ac_compile) 2>conftest.er1
7703  ac_status=$?
7704  grep -v '^ *+' conftest.er1 >conftest.err
7705  rm -f conftest.er1
7706  cat conftest.err >&5
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); } &&
7709         { ac_try='test -z "$ac_cxx_werror_flag"
7710                         || test ! -s conftest.err'
7711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712  (eval $ac_try) 2>&5
7713  ac_status=$?
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); }; } &&
7716         { ac_try='test -s conftest.$ac_objext'
7717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718  (eval $ac_try) 2>&5
7719  ac_status=$?
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); }; }; then
7722  break
7723else
7724  echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727fi
7728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729done
7730rm -f conftest*
7731if test -n "$ac_declaration"; then
7732  echo '#ifdef __cplusplus' >>confdefs.h
7733  echo $ac_declaration      >>confdefs.h
7734  echo '#endif'             >>confdefs.h
7735fi
7736
7737ac_ext=cc
7738ac_cpp='$CXXCPP $CPPFLAGS'
7739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7742
7743depcc="$CXX"  am_compiler_list=
7744
7745echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7746echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7747if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7748  echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7751  # We make a subdir and do the tests there.  Otherwise we can end up
7752  # making bogus files that we don't know about and never remove.  For
7753  # instance it was reported that on HP-UX the gcc test will end up
7754  # making a dummy file named `D' -- because `-MD' means `put the output
7755  # in D'.
7756  mkdir conftest.dir
7757  # Copy depcomp to subdir because otherwise we won't find it if we're
7758  # using a relative directory.
7759  cp "$am_depcomp" conftest.dir
7760  cd conftest.dir
7761  # We will build objects and dependencies in a subdirectory because
7762  # it helps to detect inapplicable dependency modes.  For instance
7763  # both Tru64's cc and ICC support -MD to output dependencies as a
7764  # side effect of compilation, but ICC will put the dependencies in
7765  # the current directory while Tru64 will put them in the object
7766  # directory.
7767  mkdir sub
7768
7769  am_cv_CXX_dependencies_compiler_type=none
7770  if test "$am_compiler_list" = ""; then
7771     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7772  fi
7773  for depmode in $am_compiler_list; do
7774    # Setup a source with many dependencies, because some compilers
7775    # like to wrap large dependency lists on column 80 (with \), and
7776    # we should not choose a depcomp mode which is confused by this.
7777    #
7778    # We need to recreate these files for each test, as the compiler may
7779    # overwrite some of them when testing with obscure command lines.
7780    # This happens at least with the AIX C compiler.
7781    : > sub/conftest.c
7782    for i in 1 2 3 4 5 6; do
7783      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7784      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7785      # Solaris 8's {/usr,}/bin/sh.
7786      touch sub/conftst$i.h
7787    done
7788    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7789
7790    case $depmode in
7791    nosideeffect)
7792      # after this tag, mechanisms are not by side-effect, so they'll
7793      # only be used when explicitly requested
7794      if test "x$enable_dependency_tracking" = xyes; then
7795        continue
7796      else
7797        break
7798      fi
7799      ;;
7800    none) break ;;
7801    esac
7802    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7803    # mode.  It turns out that the SunPro C++ compiler does not properly
7804    # handle `-M -o', and we need to detect this.
7805    if depmode=$depmode \
7806       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7807       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7808       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7809         >/dev/null 2>conftest.err &&
7810       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7811       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7812       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7813      # icc doesn't choke on unknown options, it will just issue warnings
7814      # or remarks (even with -Werror).  So we grep stderr for any message
7815      # that says an option was ignored or not supported.
7816      # When given -MP, icc 7.0 and 7.1 complain thusly:
7817      #   icc: Command line warning: ignoring option '-M'; no argument required
7818      # The diagnosis changed in icc 8.0:
7819      #   icc: Command line remark: option '-MP' not supported
7820      if (grep 'ignoring option' conftest.err ||
7821          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7822        am_cv_CXX_dependencies_compiler_type=$depmode
7823        break
7824      fi
7825    fi
7826  done
7827
7828  cd ..
7829  rm -rf conftest.dir
7830else
7831  am_cv_CXX_dependencies_compiler_type=none
7832fi
7833
7834fi
7835echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7836echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7837CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7838
7839
7840
7841if
7842  test "x$enable_dependency_tracking" != xno \
7843  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7844  am__fastdepCXX_TRUE=
7845  am__fastdepCXX_FALSE='#'
7846else
7847  am__fastdepCXX_TRUE='#'
7848  am__fastdepCXX_FALSE=
7849fi
7850
7851
7852
7853
7854if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7855    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7856    (test "X$CXX" != "Xg++"))) ; then
7857  ac_ext=cc
7858ac_cpp='$CXXCPP $CPPFLAGS'
7859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7862echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7863echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7864if test -z "$CXXCPP"; then
7865  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7866  echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868      # Double quotes because CXXCPP needs to be expanded
7869    for CXXCPP in "$CXX -E" "/lib/cpp"
7870    do
7871      ac_preproc_ok=false
7872for ac_cxx_preproc_warn_flag in '' yes
7873do
7874  # Use a header file that comes with gcc, so configuring glibc
7875  # with a fresh cross-compiler works.
7876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7877  # <limits.h> exists even on freestanding compilers.
7878  # On the NeXT, cc -E runs the code through the compiler's parser,
7879  # not just through cpp. "Syntax error" is here to catch this case.
7880  cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h.  */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h.  */
7886#ifdef __STDC__
7887# include <limits.h>
7888#else
7889# include <assert.h>
7890#endif
7891                     Syntax error
7892_ACEOF
7893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7894  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7895  ac_status=$?
7896  grep -v '^ *+' conftest.er1 >conftest.err
7897  rm -f conftest.er1
7898  cat conftest.err >&5
7899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900  (exit $ac_status); } >/dev/null; then
7901  if test -s conftest.err; then
7902    ac_cpp_err=$ac_cxx_preproc_warn_flag
7903    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7904  else
7905    ac_cpp_err=
7906  fi
7907else
7908  ac_cpp_err=yes
7909fi
7910if test -z "$ac_cpp_err"; then
7911  :
7912else
7913  echo "$as_me: failed program was:" >&5
7914sed 's/^/| /' conftest.$ac_ext >&5
7915
7916  # Broken: fails on valid input.
7917continue
7918fi
7919rm -f conftest.err conftest.$ac_ext
7920
7921  # OK, works on sane cases.  Now check whether non-existent headers
7922  # can be detected and how.
7923  cat >conftest.$ac_ext <<_ACEOF
7924/* confdefs.h.  */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h.  */
7929#include <ac_nonexistent.h>
7930_ACEOF
7931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7933  ac_status=$?
7934  grep -v '^ *+' conftest.er1 >conftest.err
7935  rm -f conftest.er1
7936  cat conftest.err >&5
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); } >/dev/null; then
7939  if test -s conftest.err; then
7940    ac_cpp_err=$ac_cxx_preproc_warn_flag
7941    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7942  else
7943    ac_cpp_err=
7944  fi
7945else
7946  ac_cpp_err=yes
7947fi
7948if test -z "$ac_cpp_err"; then
7949  # Broken: success on invalid input.
7950continue
7951else
7952  echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955  # Passes both tests.
7956ac_preproc_ok=:
7957break
7958fi
7959rm -f conftest.err conftest.$ac_ext
7960
7961done
7962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7963rm -f conftest.err conftest.$ac_ext
7964if $ac_preproc_ok; then
7965  break
7966fi
7967
7968    done
7969    ac_cv_prog_CXXCPP=$CXXCPP
7970
7971fi
7972  CXXCPP=$ac_cv_prog_CXXCPP
7973else
7974  ac_cv_prog_CXXCPP=$CXXCPP
7975fi
7976echo "$as_me:$LINENO: result: $CXXCPP" >&5
7977echo "${ECHO_T}$CXXCPP" >&6
7978ac_preproc_ok=false
7979for ac_cxx_preproc_warn_flag in '' yes
7980do
7981  # Use a header file that comes with gcc, so configuring glibc
7982  # with a fresh cross-compiler works.
7983  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7984  # <limits.h> exists even on freestanding compilers.
7985  # On the NeXT, cc -E runs the code through the compiler's parser,
7986  # not just through cpp. "Syntax error" is here to catch this case.
7987  cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h.  */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h.  */
7993#ifdef __STDC__
7994# include <limits.h>
7995#else
7996# include <assert.h>
7997#endif
7998                     Syntax error
7999_ACEOF
8000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002  ac_status=$?
8003  grep -v '^ *+' conftest.er1 >conftest.err
8004  rm -f conftest.er1
8005  cat conftest.err >&5
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); } >/dev/null; then
8008  if test -s conftest.err; then
8009    ac_cpp_err=$ac_cxx_preproc_warn_flag
8010    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8011  else
8012    ac_cpp_err=
8013  fi
8014else
8015  ac_cpp_err=yes
8016fi
8017if test -z "$ac_cpp_err"; then
8018  :
8019else
8020  echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023  # Broken: fails on valid input.
8024continue
8025fi
8026rm -f conftest.err conftest.$ac_ext
8027
8028  # OK, works on sane cases.  Now check whether non-existent headers
8029  # can be detected and how.
8030  cat >conftest.$ac_ext <<_ACEOF
8031/* confdefs.h.  */
8032_ACEOF
8033cat confdefs.h >>conftest.$ac_ext
8034cat >>conftest.$ac_ext <<_ACEOF
8035/* end confdefs.h.  */
8036#include <ac_nonexistent.h>
8037_ACEOF
8038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8040  ac_status=$?
8041  grep -v '^ *+' conftest.er1 >conftest.err
8042  rm -f conftest.er1
8043  cat conftest.err >&5
8044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045  (exit $ac_status); } >/dev/null; then
8046  if test -s conftest.err; then
8047    ac_cpp_err=$ac_cxx_preproc_warn_flag
8048    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8049  else
8050    ac_cpp_err=
8051  fi
8052else
8053  ac_cpp_err=yes
8054fi
8055if test -z "$ac_cpp_err"; then
8056  # Broken: success on invalid input.
8057continue
8058else
8059  echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062  # Passes both tests.
8063ac_preproc_ok=:
8064break
8065fi
8066rm -f conftest.err conftest.$ac_ext
8067
8068done
8069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8070rm -f conftest.err conftest.$ac_ext
8071if $ac_preproc_ok; then
8072  :
8073else
8074  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8075See \`config.log' for more details." >&5
8076echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8077See \`config.log' for more details." >&2;}
8078   { (exit 1); exit 1; }; }
8079fi
8080
8081ac_ext=cc
8082ac_cpp='$CXXCPP $CPPFLAGS'
8083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8086
8087fi
8088
8089
8090
8091# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8092
8093# find the maximum length of command line arguments
8094echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8095echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8096if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8097  echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099    i=0
8100  teststring="ABCD"
8101
8102  case $build_os in
8103  msdosdjgpp*)
8104    # On DJGPP, this test can blow up pretty badly due to problems in libc
8105    # (any single argument exceeding 2000 bytes causes a buffer overrun
8106    # during glob expansion).  Even if it were fixed, the result of this
8107    # check would be larger than it should be.
8108    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8109    ;;
8110
8111  gnu*)
8112    # Under GNU Hurd, this test is not required because there is
8113    # no limit to the length of command line arguments.
8114    # Libtool will interpret -1 as no limit whatsoever
8115    lt_cv_sys_max_cmd_len=-1;
8116    ;;
8117
8118  cygwin* | mingw*)
8119    # On Win9x/ME, this test blows up -- it succeeds, but takes
8120    # about 5 minutes as the teststring grows exponentially.
8121    # Worse, since 9x/ME are not pre-emptively multitasking,
8122    # you end up with a "frozen" computer, even though with patience
8123    # the test eventually succeeds (with a max line length of 256k).
8124    # Instead, let's just punt: use the minimum linelength reported by
8125    # all of the supported platforms: 8192 (on NT/2K/XP).
8126    lt_cv_sys_max_cmd_len=8192;
8127    ;;
8128
8129  amigaos*)
8130    # On AmigaOS with pdksh, this test takes hours, literally.
8131    # So we just punt and use a minimum line length of 8192.
8132    lt_cv_sys_max_cmd_len=8192;
8133    ;;
8134
8135  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8136    # This has been around since 386BSD, at least.  Likely further.
8137    if test -x /sbin/sysctl; then
8138      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8139    elif test -x /usr/sbin/sysctl; then
8140      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8141    else
8142      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8143    fi
8144    # And add a safety zone
8145    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8146    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8147    ;;
8148
8149  interix*)
8150    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8151    lt_cv_sys_max_cmd_len=196608
8152    ;;
8153
8154  osf*)
8155    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8156    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8157    # nice to cause kernel panics so lets avoid the loop below.
8158    # First set a reasonable default.
8159    lt_cv_sys_max_cmd_len=16384
8160    #
8161    if test -x /sbin/sysconfig; then
8162      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8163        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8164      esac
8165    fi
8166    ;;
8167  sco3.2v5*)
8168    lt_cv_sys_max_cmd_len=102400
8169    ;;
8170  sysv5* | sco5v6* | sysv4.2uw2*)
8171    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8172    if test -n "$kargmax"; then
8173      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8174    else
8175      lt_cv_sys_max_cmd_len=32768
8176    fi
8177    ;;
8178  *)
8179    # If test is not a shell built-in, we'll probably end up computing a
8180    # maximum length that is only half of the actual maximum length, but
8181    # we can't tell.
8182    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8183    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8184               = "XX$teststring") >/dev/null 2>&1 &&
8185            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8186            lt_cv_sys_max_cmd_len=$new_result &&
8187            test $i != 17 # 1/2 MB should be enough
8188    do
8189      i=`expr $i + 1`
8190      teststring=$teststring$teststring
8191    done
8192    teststring=
8193    # Add a significant safety factor because C++ compilers can tack on massive
8194    # amounts of additional arguments before passing them to the linker.
8195    # It appears as though 1/2 is a usable value.
8196    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8197    ;;
8198  esac
8199
8200fi
8201
8202if test -n $lt_cv_sys_max_cmd_len ; then
8203  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8204echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8205else
8206  echo "$as_me:$LINENO: result: none" >&5
8207echo "${ECHO_T}none" >&6
8208fi
8209
8210
8211
8212
8213# Check for command to grab the raw symbol name followed by C symbol from nm.
8214echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8215echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8216if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8217  echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219
8220# These are sane defaults that work on at least a few old systems.
8221# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8222
8223# Character class describing NM global symbol codes.
8224symcode='[BCDEGRST]'
8225
8226# Regexp to match symbols that can be accessed directly from C.
8227sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8228
8229# Transform an extracted symbol line into a proper C declaration
8230lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8231
8232# Transform an extracted symbol line into symbol name and symbol address
8233lt_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'"
8234
8235# Define system-specific variables.
8236case $host_os in
8237aix*)
8238  symcode='[BCDT]'
8239  ;;
8240cygwin* | mingw* | pw32*)
8241  symcode='[ABCDGISTW]'
8242  ;;
8243hpux*) # Its linker distinguishes data from code symbols
8244  if test "$host_cpu" = ia64; then
8245    symcode='[ABCDEGRST]'
8246  fi
8247  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8248  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'"
8249  ;;
8250linux*)
8251  if test "$host_cpu" = ia64; then
8252    symcode='[ABCDGIRSTW]'
8253    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8254    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'"
8255  fi
8256  ;;
8257irix* | nonstopux*)
8258  symcode='[BCDEGRST]'
8259  ;;
8260osf*)
8261  symcode='[BCDEGQRST]'
8262  ;;
8263solaris*)
8264  symcode='[BDRT]'
8265  ;;
8266sco3.2v5*)
8267  symcode='[DT]'
8268  ;;
8269sysv4.2uw2*)
8270  symcode='[DT]'
8271  ;;
8272sysv5* | sco5v6* | unixware* | OpenUNIX*)
8273  symcode='[ABDT]'
8274  ;;
8275sysv4)
8276  symcode='[DFNSTU]'
8277  ;;
8278esac
8279
8280# Handle CRLF in mingw tool chain
8281opt_cr=
8282case $build_os in
8283mingw*)
8284  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8285  ;;
8286esac
8287
8288# If we're using GNU nm, then use its standard symbol codes.
8289case `$NM -V 2>&1` in
8290*GNU* | *'with BFD'*)
8291  symcode='[ABCDGIRSTW]' ;;
8292esac
8293
8294# Try without a prefix undercore, then with it.
8295for ac_symprfx in "" "_"; do
8296
8297  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8298  symxfrm="\\1 $ac_symprfx\\2 \\2"
8299
8300  # Write the raw and C identifiers.
8301  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8302
8303  # Check to see that the pipe works correctly.
8304  pipe_works=no
8305
8306  rm -f conftest*
8307  cat > conftest.$ac_ext <<EOF
8308#ifdef __cplusplus
8309extern "C" {
8310#endif
8311char nm_test_var;
8312void nm_test_func(){}
8313#ifdef __cplusplus
8314}
8315#endif
8316int main(){nm_test_var='a';nm_test_func();return(0);}
8317EOF
8318
8319  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320  (eval $ac_compile) 2>&5
8321  ac_status=$?
8322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323  (exit $ac_status); }; then
8324    # Now try to grab the symbols.
8325    nlist=conftest.nm
8326    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8327  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8328  ac_status=$?
8329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330  (exit $ac_status); } && test -s "$nlist"; then
8331      # Try sorting and uniquifying the output.
8332      if sort "$nlist" | uniq > "$nlist"T; then
8333        mv -f "$nlist"T "$nlist"
8334      else
8335        rm -f "$nlist"T
8336      fi
8337
8338      # Make sure that we snagged all the symbols we need.
8339      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8340        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8341          cat <<EOF > conftest.$ac_ext
8342#ifdef __cplusplus
8343extern "C" {
8344#endif
8345
8346EOF
8347          # Now generate the symbol file.
8348          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8349
8350          cat <<EOF >> conftest.$ac_ext
8351#if defined (__STDC__) && __STDC__
8352# define lt_ptr_t void *
8353#else
8354# define lt_ptr_t char *
8355# define const
8356#endif
8357
8358/* The mapping between symbol names and symbols. */
8359const struct {
8360  const char *name;
8361  lt_ptr_t address;
8362}
8363lt_preloaded_symbols[] =
8364{
8365EOF
8366          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8367          cat <<\EOF >> conftest.$ac_ext
8368  {0, (lt_ptr_t) 0}
8369};
8370
8371#ifdef __cplusplus
8372}
8373#endif
8374EOF
8375          # Now try linking the two files.
8376          mv conftest.$ac_objext conftstm.$ac_objext
8377          lt_save_LIBS="$LIBS"
8378          lt_save_CFLAGS="$CFLAGS"
8379          LIBS="conftstm.$ac_objext"
8380          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8381          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8382  (eval $ac_link) 2>&5
8383  ac_status=$?
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8386            pipe_works=yes
8387          fi
8388          LIBS="$lt_save_LIBS"
8389          CFLAGS="$lt_save_CFLAGS"
8390        else
8391          echo "cannot find nm_test_func in $nlist" >&5
8392        fi
8393      else
8394        echo "cannot find nm_test_var in $nlist" >&5
8395      fi
8396    else
8397      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8398    fi
8399  else
8400    echo "$progname: failed program was:" >&5
8401    cat conftest.$ac_ext >&5
8402  fi
8403  rm -f conftest* conftst*
8404
8405  # Do not use the global_symbol_pipe unless it works.
8406  if test "$pipe_works" = yes; then
8407    break
8408  else
8409    lt_cv_sys_global_symbol_pipe=
8410  fi
8411done
8412
8413fi
8414
8415if test -z "$lt_cv_sys_global_symbol_pipe"; then
8416  lt_cv_sys_global_symbol_to_cdecl=
8417fi
8418if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8419  echo "$as_me:$LINENO: result: failed" >&5
8420echo "${ECHO_T}failed" >&6
8421else
8422  echo "$as_me:$LINENO: result: ok" >&5
8423echo "${ECHO_T}ok" >&6
8424fi
8425
8426echo "$as_me:$LINENO: checking for objdir" >&5
8427echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8428if test "${lt_cv_objdir+set}" = set; then
8429  echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431  rm -f .libs 2>/dev/null
8432mkdir .libs 2>/dev/null
8433if test -d .libs; then
8434  lt_cv_objdir=.libs
8435else
8436  # MS-DOS does not allow filenames that begin with a dot.
8437  lt_cv_objdir=_libs
8438fi
8439rmdir .libs 2>/dev/null
8440fi
8441echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8442echo "${ECHO_T}$lt_cv_objdir" >&6
8443objdir=$lt_cv_objdir
8444
8445
8446
8447
8448
8449case $host_os in
8450aix3*)
8451  # AIX sometimes has problems with the GCC collect2 program.  For some
8452  # reason, if we set the COLLECT_NAMES environment variable, the problems
8453  # vanish in a puff of smoke.
8454  if test "X${COLLECT_NAMES+set}" != Xset; then
8455    COLLECT_NAMES=
8456    export COLLECT_NAMES
8457  fi
8458  ;;
8459esac
8460
8461# Sed substitution that helps us do robust quoting.  It backslashifies
8462# metacharacters that are still active within double-quoted strings.
8463Xsed='sed -e 1s/^X//'
8464sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8465
8466# Same as above, but do not quote variable references.
8467double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8468
8469# Sed substitution to delay expansion of an escaped shell variable in a
8470# double_quote_subst'ed string.
8471delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8472
8473# Sed substitution to avoid accidental globbing in evaled expressions
8474no_glob_subst='s/\*/\\\*/g'
8475
8476# Constants:
8477rm="rm -f"
8478
8479# Global variables:
8480default_ofile=libtool
8481can_build_shared=yes
8482
8483# All known linkers require a `.a' archive for static linking (except MSVC,
8484# which needs '.lib').
8485libext=a
8486ltmain="$ac_aux_dir/ltmain.sh"
8487ofile="$default_ofile"
8488with_gnu_ld="$lt_cv_prog_gnu_ld"
8489
8490if test -n "$ac_tool_prefix"; then
8491  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8492set dummy ${ac_tool_prefix}ar; ac_word=$2
8493echo "$as_me:$LINENO: checking for $ac_word" >&5
8494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8495if test "${ac_cv_prog_AR+set}" = set; then
8496  echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498  if test -n "$AR"; then
8499  ac_cv_prog_AR="$AR" # Let the user override the test.
8500else
8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH
8503do
8504  IFS=$as_save_IFS
8505  test -z "$as_dir" && as_dir=.
8506  for ac_exec_ext in '' $ac_executable_extensions; do
8507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508    ac_cv_prog_AR="${ac_tool_prefix}ar"
8509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510    break 2
8511  fi
8512done
8513done
8514
8515fi
8516fi
8517AR=$ac_cv_prog_AR
8518if test -n "$AR"; then
8519  echo "$as_me:$LINENO: result: $AR" >&5
8520echo "${ECHO_T}$AR" >&6
8521else
8522  echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524fi
8525
8526fi
8527if test -z "$ac_cv_prog_AR"; then
8528  ac_ct_AR=$AR
8529  # Extract the first word of "ar", so it can be a program name with args.
8530set dummy ar; ac_word=$2
8531echo "$as_me:$LINENO: checking for $ac_word" >&5
8532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8533if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8534  echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
8536  if test -n "$ac_ct_AR"; then
8537  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8538else
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542  IFS=$as_save_IFS
8543  test -z "$as_dir" && as_dir=.
8544  for ac_exec_ext in '' $ac_executable_extensions; do
8545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546    ac_cv_prog_ac_ct_AR="ar"
8547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548    break 2
8549  fi
8550done
8551done
8552
8553  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8554fi
8555fi
8556ac_ct_AR=$ac_cv_prog_ac_ct_AR
8557if test -n "$ac_ct_AR"; then
8558  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8559echo "${ECHO_T}$ac_ct_AR" >&6
8560else
8561  echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
8563fi
8564
8565  AR=$ac_ct_AR
8566else
8567  AR="$ac_cv_prog_AR"
8568fi
8569
8570if test -n "$ac_tool_prefix"; then
8571  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8572set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8573echo "$as_me:$LINENO: checking for $ac_word" >&5
8574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8575if test "${ac_cv_prog_RANLIB+set}" = set; then
8576  echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578  if test -n "$RANLIB"; then
8579  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8580else
8581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584  IFS=$as_save_IFS
8585  test -z "$as_dir" && as_dir=.
8586  for ac_exec_ext in '' $ac_executable_extensions; do
8587  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8588    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8590    break 2
8591  fi
8592done
8593done
8594
8595fi
8596fi
8597RANLIB=$ac_cv_prog_RANLIB
8598if test -n "$RANLIB"; then
8599  echo "$as_me:$LINENO: result: $RANLIB" >&5
8600echo "${ECHO_T}$RANLIB" >&6
8601else
8602  echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6
8604fi
8605
8606fi
8607if test -z "$ac_cv_prog_RANLIB"; then
8608  ac_ct_RANLIB=$RANLIB
8609  # Extract the first word of "ranlib", so it can be a program name with args.
8610set dummy ranlib; ac_word=$2
8611echo "$as_me:$LINENO: checking for $ac_word" >&5
8612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8613if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8614  echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616  if test -n "$ac_ct_RANLIB"; then
8617  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8618else
8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622  IFS=$as_save_IFS
8623  test -z "$as_dir" && as_dir=.
8624  for ac_exec_ext in '' $ac_executable_extensions; do
8625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626    ac_cv_prog_ac_ct_RANLIB="ranlib"
8627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628    break 2
8629  fi
8630done
8631done
8632
8633  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8634fi
8635fi
8636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8637if test -n "$ac_ct_RANLIB"; then
8638  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8639echo "${ECHO_T}$ac_ct_RANLIB" >&6
8640else
8641  echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6
8643fi
8644
8645  RANLIB=$ac_ct_RANLIB
8646else
8647  RANLIB="$ac_cv_prog_RANLIB"
8648fi
8649
8650if test -n "$ac_tool_prefix"; then
8651  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8652set dummy ${ac_tool_prefix}strip; ac_word=$2
8653echo "$as_me:$LINENO: checking for $ac_word" >&5
8654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8655if test "${ac_cv_prog_STRIP+set}" = set; then
8656  echo $ECHO_N "(cached) $ECHO_C" >&6
8657else
8658  if test -n "$STRIP"; then
8659  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8660else
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664  IFS=$as_save_IFS
8665  test -z "$as_dir" && as_dir=.
8666  for ac_exec_ext in '' $ac_executable_extensions; do
8667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670    break 2
8671  fi
8672done
8673done
8674
8675fi
8676fi
8677STRIP=$ac_cv_prog_STRIP
8678if test -n "$STRIP"; then
8679  echo "$as_me:$LINENO: result: $STRIP" >&5
8680echo "${ECHO_T}$STRIP" >&6
8681else
8682  echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
8684fi
8685
8686fi
8687if test -z "$ac_cv_prog_STRIP"; then
8688  ac_ct_STRIP=$STRIP
8689  # Extract the first word of "strip", so it can be a program name with args.
8690set dummy strip; ac_word=$2
8691echo "$as_me:$LINENO: checking for $ac_word" >&5
8692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8693if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8694  echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696  if test -n "$ac_ct_STRIP"; then
8697  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8698else
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702  IFS=$as_save_IFS
8703  test -z "$as_dir" && as_dir=.
8704  for ac_exec_ext in '' $ac_executable_extensions; do
8705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706    ac_cv_prog_ac_ct_STRIP="strip"
8707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708    break 2
8709  fi
8710done
8711done
8712
8713  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8714fi
8715fi
8716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8717if test -n "$ac_ct_STRIP"; then
8718  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8719echo "${ECHO_T}$ac_ct_STRIP" >&6
8720else
8721  echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6
8723fi
8724
8725  STRIP=$ac_ct_STRIP
8726else
8727  STRIP="$ac_cv_prog_STRIP"
8728fi
8729
8730
8731old_CC="$CC"
8732old_CFLAGS="$CFLAGS"
8733
8734# Set sane defaults for various variables
8735test -z "$AR" && AR=ar
8736test -z "$AR_FLAGS" && AR_FLAGS=cru
8737test -z "$AS" && AS=as
8738test -z "$CC" && CC=cc
8739test -z "$LTCC" && LTCC=$CC
8740test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8741test -z "$DLLTOOL" && DLLTOOL=dlltool
8742test -z "$LD" && LD=ld
8743test -z "$LN_S" && LN_S="ln -s"
8744test -z "$MAGIC_CMD" && MAGIC_CMD=file
8745test -z "$NM" && NM=nm
8746test -z "$SED" && SED=sed
8747test -z "$OBJDUMP" && OBJDUMP=objdump
8748test -z "$RANLIB" && RANLIB=:
8749test -z "$STRIP" && STRIP=:
8750test -z "$ac_objext" && ac_objext=o
8751
8752# Determine commands to create old-style static archives.
8753old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8754old_postinstall_cmds='chmod 644 $oldlib'
8755old_postuninstall_cmds=
8756
8757if test -n "$RANLIB"; then
8758  case $host_os in
8759  openbsd*)
8760    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8761    ;;
8762  *)
8763    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8764    ;;
8765  esac
8766  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8767fi
8768
8769for cc_temp in $compiler""; do
8770  case $cc_temp in
8771    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8772    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8773    \-*) ;;
8774    *) break;;
8775  esac
8776done
8777cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8778
8779
8780# Only perform the check for file, if the check method requires it
8781case $deplibs_check_method in
8782file_magic*)
8783  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8784    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8785echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8786if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8787  echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789  case $MAGIC_CMD in
8790[\\/*] |  ?:[\\/]*)
8791  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8792  ;;
8793*)
8794  lt_save_MAGIC_CMD="$MAGIC_CMD"
8795  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8796  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8797  for ac_dir in $ac_dummy; do
8798    IFS="$lt_save_ifs"
8799    test -z "$ac_dir" && ac_dir=.
8800    if test -f $ac_dir/${ac_tool_prefix}file; then
8801      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8802      if test -n "$file_magic_test_file"; then
8803        case $deplibs_check_method in
8804        "file_magic "*)
8805          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8806          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8807          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8808            $EGREP "$file_magic_regex" > /dev/null; then
8809            :
8810          else
8811            cat <<EOF 1>&2
8812
8813*** Warning: the command libtool uses to detect shared libraries,
8814*** $file_magic_cmd, produces output that libtool cannot recognize.
8815*** The result is that libtool may fail to recognize shared libraries
8816*** as such.  This will affect the creation of libtool libraries that
8817*** depend on shared libraries, but programs linked with such libtool
8818*** libraries will work regardless of this problem.  Nevertheless, you
8819*** may want to report the problem to your system manager and/or to
8820*** bug-libtool@gnu.org
8821
8822EOF
8823          fi ;;
8824        esac
8825      fi
8826      break
8827    fi
8828  done
8829  IFS="$lt_save_ifs"
8830  MAGIC_CMD="$lt_save_MAGIC_CMD"
8831  ;;
8832esac
8833fi
8834
8835MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8836if test -n "$MAGIC_CMD"; then
8837  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8838echo "${ECHO_T}$MAGIC_CMD" >&6
8839else
8840  echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
8842fi
8843
8844if test -z "$lt_cv_path_MAGIC_CMD"; then
8845  if test -n "$ac_tool_prefix"; then
8846    echo "$as_me:$LINENO: checking for file" >&5
8847echo $ECHO_N "checking for file... $ECHO_C" >&6
8848if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8849  echo $ECHO_N "(cached) $ECHO_C" >&6
8850else
8851  case $MAGIC_CMD in
8852[\\/*] |  ?:[\\/]*)
8853  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8854  ;;
8855*)
8856  lt_save_MAGIC_CMD="$MAGIC_CMD"
8857  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8858  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8859  for ac_dir in $ac_dummy; do
8860    IFS="$lt_save_ifs"
8861    test -z "$ac_dir" && ac_dir=.
8862    if test -f $ac_dir/file; then
8863      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8864      if test -n "$file_magic_test_file"; then
8865        case $deplibs_check_method in
8866        "file_magic "*)
8867          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8868          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8869          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8870            $EGREP "$file_magic_regex" > /dev/null; then
8871            :
8872          else
8873            cat <<EOF 1>&2
8874
8875*** Warning: the command libtool uses to detect shared libraries,
8876*** $file_magic_cmd, produces output that libtool cannot recognize.
8877*** The result is that libtool may fail to recognize shared libraries
8878*** as such.  This will affect the creation of libtool libraries that
8879*** depend on shared libraries, but programs linked with such libtool
8880*** libraries will work regardless of this problem.  Nevertheless, you
8881*** may want to report the problem to your system manager and/or to
8882*** bug-libtool@gnu.org
8883
8884EOF
8885          fi ;;
8886        esac
8887      fi
8888      break
8889    fi
8890  done
8891  IFS="$lt_save_ifs"
8892  MAGIC_CMD="$lt_save_MAGIC_CMD"
8893  ;;
8894esac
8895fi
8896
8897MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8898if test -n "$MAGIC_CMD"; then
8899  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8900echo "${ECHO_T}$MAGIC_CMD" >&6
8901else
8902  echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904fi
8905
8906  else
8907    MAGIC_CMD=:
8908  fi
8909fi
8910
8911  fi
8912  ;;
8913esac
8914
8915enable_dlopen=no
8916enable_win32_dll=no
8917
8918# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8919if test "${enable_libtool_lock+set}" = set; then
8920  enableval="$enable_libtool_lock"
8921
8922fi;
8923test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8924
8925
8926# Check whether --with-pic or --without-pic was given.
8927if test "${with_pic+set}" = set; then
8928  withval="$with_pic"
8929  pic_mode="$withval"
8930else
8931  pic_mode=default
8932fi;
8933test -z "$pic_mode" && pic_mode=default
8934
8935# Use C for the default configuration in the libtool script
8936tagname=
8937lt_save_CC="$CC"
8938ac_ext=c
8939ac_cpp='$CPP $CPPFLAGS'
8940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942ac_compiler_gnu=$ac_cv_c_compiler_gnu
8943
8944
8945# Source file extension for C test sources.
8946ac_ext=c
8947
8948# Object file extension for compiled C test sources.
8949objext=o
8950objext=$objext
8951
8952# Code to be used in simple compile tests
8953lt_simple_compile_test_code="int some_variable = 0;\n"
8954
8955# Code to be used in simple link tests
8956lt_simple_link_test_code='int main(){return(0);}\n'
8957
8958
8959# If no C compiler was specified, use CC.
8960LTCC=${LTCC-"$CC"}
8961
8962# If no C compiler flags were specified, use CFLAGS.
8963LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8964
8965# Allow CC to be a program name with arguments.
8966compiler=$CC
8967
8968
8969# save warnings/boilerplate of simple test code
8970ac_outfile=conftest.$ac_objext
8971printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8972eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8973_lt_compiler_boilerplate=`cat conftest.err`
8974$rm conftest*
8975
8976ac_outfile=conftest.$ac_objext
8977printf "$lt_simple_link_test_code" >conftest.$ac_ext
8978eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8979_lt_linker_boilerplate=`cat conftest.err`
8980$rm conftest*
8981
8982
8983## CAVEAT EMPTOR:
8984## There is no encapsulation within the following macros, do not change
8985## the running order or otherwise move them around unless you know exactly
8986## what you are doing...
8987
8988lt_prog_compiler_no_builtin_flag=
8989
8990if test "$GCC" = yes; then
8991  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8992
8993
8994echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8995echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8996if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8997  echo $ECHO_N "(cached) $ECHO_C" >&6
8998else
8999  lt_cv_prog_compiler_rtti_exceptions=no
9000  ac_outfile=conftest.$ac_objext
9001   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9002   lt_compiler_flag="-fno-rtti -fno-exceptions"
9003   # Insert the option either (1) after the last *FLAGS variable, or
9004   # (2) before a word containing "conftest.", or (3) at the end.
9005   # Note that $ac_compile itself does not contain backslashes and begins
9006   # with a dollar sign (not a hyphen), so the echo should work correctly.
9007   # The option is referenced via a variable to avoid confusing sed.
9008   lt_compile=`echo "$ac_compile" | $SED \
9009   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011   -e 's:$: $lt_compiler_flag:'`
9012   (eval echo "\"\$as_me:9012: $lt_compile\"" >&5)
9013   (eval "$lt_compile" 2>conftest.err)
9014   ac_status=$?
9015   cat conftest.err >&5
9016   echo "$as_me:9016: \$? = $ac_status" >&5
9017   if (exit $ac_status) && test -s "$ac_outfile"; then
9018     # The compiler can only warn and ignore the option if not recognized
9019     # So say no if there are warnings other than the usual output.
9020     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9021     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9022     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9023       lt_cv_prog_compiler_rtti_exceptions=yes
9024     fi
9025   fi
9026   $rm conftest*
9027
9028fi
9029echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9030echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9031
9032if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9033    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9034else
9035    :
9036fi
9037
9038fi
9039
9040lt_prog_compiler_wl=
9041lt_prog_compiler_pic=
9042lt_prog_compiler_static=
9043
9044echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9045echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9046
9047  if test "$GCC" = yes; then
9048    lt_prog_compiler_wl='-Wl,'
9049    lt_prog_compiler_static='-static'
9050
9051    case $host_os in
9052      aix*)
9053      # All AIX code is PIC.
9054      if test "$host_cpu" = ia64; then
9055        # AIX 5 now supports IA64 processor
9056        lt_prog_compiler_static='-Bstatic'
9057      fi
9058      ;;
9059
9060    amigaos*)
9061      # FIXME: we need at least 68020 code to build shared libraries, but
9062      # adding the `-m68020' flag to GCC prevents building anything better,
9063      # like `-m68040'.
9064      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9065      ;;
9066
9067    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9068      # PIC is the default for these OSes.
9069      ;;
9070
9071    mingw* | pw32* | os2*)
9072      # This hack is so that the source file can tell whether it is being
9073      # built for inclusion in a dll (and should export symbols for example).
9074      lt_prog_compiler_pic='-DDLL_EXPORT'
9075      ;;
9076
9077    darwin* | rhapsody*)
9078      # PIC is the default on this platform
9079      # Common symbols not allowed in MH_DYLIB files
9080      lt_prog_compiler_pic='-fno-common'
9081      ;;
9082
9083    interix3*)
9084      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9085      # Instead, we relocate shared libraries at runtime.
9086      ;;
9087
9088    msdosdjgpp*)
9089      # Just because we use GCC doesn't mean we suddenly get shared libraries
9090      # on systems that don't support them.
9091      lt_prog_compiler_can_build_shared=no
9092      enable_shared=no
9093      ;;
9094
9095    sysv4*MP*)
9096      if test -d /usr/nec; then
9097        lt_prog_compiler_pic=-Kconform_pic
9098      fi
9099      ;;
9100
9101    hpux*)
9102      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9103      # not for PA HP-UX.
9104      case $host_cpu in
9105      hppa*64*|ia64*)
9106        # +Z the default
9107        ;;
9108      *)
9109        lt_prog_compiler_pic='-fPIC'
9110        ;;
9111      esac
9112      ;;
9113
9114    *)
9115      lt_prog_compiler_pic='-fPIC'
9116      ;;
9117    esac
9118  else
9119    # PORTME Check for flag to pass linker flags through the system compiler.
9120    case $host_os in
9121    aix*)
9122      lt_prog_compiler_wl='-Wl,'
9123      if test "$host_cpu" = ia64; then
9124        # AIX 5 now supports IA64 processor
9125        lt_prog_compiler_static='-Bstatic'
9126      else
9127        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9128      fi
9129      ;;
9130      darwin*)
9131        # PIC is the default on this platform
9132        # Common symbols not allowed in MH_DYLIB files
9133       case $cc_basename in
9134         xlc*)
9135         lt_prog_compiler_pic='-qnocommon'
9136         lt_prog_compiler_wl='-Wl,'
9137         ;;
9138       esac
9139       ;;
9140
9141    mingw* | pw32* | os2*)
9142      # This hack is so that the source file can tell whether it is being
9143      # built for inclusion in a dll (and should export symbols for example).
9144      lt_prog_compiler_pic='-DDLL_EXPORT'
9145      ;;
9146
9147    hpux9* | hpux10* | hpux11*)
9148      lt_prog_compiler_wl='-Wl,'
9149      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9150      # not for PA HP-UX.
9151      case $host_cpu in
9152      hppa*64*|ia64*)
9153        # +Z the default
9154        ;;
9155      *)
9156        lt_prog_compiler_pic='+Z'
9157        ;;
9158      esac
9159      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9160      lt_prog_compiler_static='${wl}-a ${wl}archive'
9161      ;;
9162
9163    irix5* | irix6* | nonstopux*)
9164      lt_prog_compiler_wl='-Wl,'
9165      # PIC (with -KPIC) is the default.
9166      lt_prog_compiler_static='-non_shared'
9167      ;;
9168
9169    newsos6)
9170      lt_prog_compiler_pic='-KPIC'
9171      lt_prog_compiler_static='-Bstatic'
9172      ;;
9173
9174    linux*)
9175      case $cc_basename in
9176      icc* | ecc*)
9177        lt_prog_compiler_wl='-Wl,'
9178        lt_prog_compiler_pic='-KPIC'
9179        lt_prog_compiler_static='-static'
9180        ;;
9181      pgcc* | pgf77* | pgf90* | pgf95*)
9182        # Portland Group compilers (*not* the Pentium gcc compiler,
9183        # which looks to be a dead project)
9184        lt_prog_compiler_wl='-Wl,'
9185        lt_prog_compiler_pic='-fpic'
9186        lt_prog_compiler_static='-Bstatic'
9187        ;;
9188      ccc*)
9189        lt_prog_compiler_wl='-Wl,'
9190        # All Alpha code is PIC.
9191        lt_prog_compiler_static='-non_shared'
9192        ;;
9193      esac
9194      ;;
9195
9196    osf3* | osf4* | osf5*)
9197      lt_prog_compiler_wl='-Wl,'
9198      # All OSF/1 code is PIC.
9199      lt_prog_compiler_static='-non_shared'
9200      ;;
9201
9202    solaris*)
9203      lt_prog_compiler_pic='-KPIC'
9204      lt_prog_compiler_static='-Bstatic'
9205      case $cc_basename in
9206      f77* | f90* | f95*)
9207        lt_prog_compiler_wl='-Qoption ld ';;
9208      *)
9209        lt_prog_compiler_wl='-Wl,';;
9210      esac
9211      ;;
9212
9213    sunos4*)
9214      lt_prog_compiler_wl='-Qoption ld '
9215      lt_prog_compiler_pic='-PIC'
9216      lt_prog_compiler_static='-Bstatic'
9217      ;;
9218
9219    sysv4 | sysv4.2uw2* | sysv4.3*)
9220      lt_prog_compiler_wl='-Wl,'
9221      lt_prog_compiler_pic='-KPIC'
9222      lt_prog_compiler_static='-Bstatic'
9223      ;;
9224
9225    sysv4*MP*)
9226      if test -d /usr/nec ;then
9227        lt_prog_compiler_pic='-Kconform_pic'
9228        lt_prog_compiler_static='-Bstatic'
9229      fi
9230      ;;
9231
9232    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9233      lt_prog_compiler_wl='-Wl,'
9234      lt_prog_compiler_pic='-KPIC'
9235      lt_prog_compiler_static='-Bstatic'
9236      ;;
9237
9238    unicos*)
9239      lt_prog_compiler_wl='-Wl,'
9240      lt_prog_compiler_can_build_shared=no
9241      ;;
9242
9243    uts4*)
9244      lt_prog_compiler_pic='-pic'
9245      lt_prog_compiler_static='-Bstatic'
9246      ;;
9247
9248    *)
9249      lt_prog_compiler_can_build_shared=no
9250      ;;
9251    esac
9252  fi
9253
9254echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9255echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9256
9257#
9258# Check to make sure the PIC flag actually works.
9259#
9260if test -n "$lt_prog_compiler_pic"; then
9261
9262echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9263echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9264if test "${lt_prog_compiler_pic_works+set}" = set; then
9265  echo $ECHO_N "(cached) $ECHO_C" >&6
9266else
9267  lt_prog_compiler_pic_works=no
9268  ac_outfile=conftest.$ac_objext
9269   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9270   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9271   # Insert the option either (1) after the last *FLAGS variable, or
9272   # (2) before a word containing "conftest.", or (3) at the end.
9273   # Note that $ac_compile itself does not contain backslashes and begins
9274   # with a dollar sign (not a hyphen), so the echo should work correctly.
9275   # The option is referenced via a variable to avoid confusing sed.
9276   lt_compile=`echo "$ac_compile" | $SED \
9277   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9278   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9279   -e 's:$: $lt_compiler_flag:'`
9280   (eval echo "\"\$as_me:9280: $lt_compile\"" >&5)
9281   (eval "$lt_compile" 2>conftest.err)
9282   ac_status=$?
9283   cat conftest.err >&5
9284   echo "$as_me:9284: \$? = $ac_status" >&5
9285   if (exit $ac_status) && test -s "$ac_outfile"; then
9286     # The compiler can only warn and ignore the option if not recognized
9287     # So say no if there are warnings other than the usual output.
9288     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9289     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9290     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9291       lt_prog_compiler_pic_works=yes
9292     fi
9293   fi
9294   $rm conftest*
9295
9296fi
9297echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9298echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9299
9300if test x"$lt_prog_compiler_pic_works" = xyes; then
9301    case $lt_prog_compiler_pic in
9302     "" | " "*) ;;
9303     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9304     esac
9305else
9306    lt_prog_compiler_pic=
9307     lt_prog_compiler_can_build_shared=no
9308fi
9309
9310fi
9311case $host_os in
9312  # For platforms which do not support PIC, -DPIC is meaningless:
9313  *djgpp*)
9314    lt_prog_compiler_pic=
9315    ;;
9316  *)
9317    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9318    ;;
9319esac
9320
9321#
9322# Check to make sure the static flag actually works.
9323#
9324wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9325echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9326echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9327if test "${lt_prog_compiler_static_works+set}" = set; then
9328  echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330  lt_prog_compiler_static_works=no
9331   save_LDFLAGS="$LDFLAGS"
9332   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9333   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9334   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9335     # The linker can only warn and ignore the option if not recognized
9336     # So say no if there are warnings
9337     if test -s conftest.err; then
9338       # Append any errors to the config.log.
9339       cat conftest.err 1>&5
9340       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9341       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9342       if diff conftest.exp conftest.er2 >/dev/null; then
9343         lt_prog_compiler_static_works=yes
9344       fi
9345     else
9346       lt_prog_compiler_static_works=yes
9347     fi
9348   fi
9349   $rm conftest*
9350   LDFLAGS="$save_LDFLAGS"
9351
9352fi
9353echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9354echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9355
9356if test x"$lt_prog_compiler_static_works" = xyes; then
9357    :
9358else
9359    lt_prog_compiler_static=
9360fi
9361
9362
9363echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9364echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9365if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9366  echo $ECHO_N "(cached) $ECHO_C" >&6
9367else
9368  lt_cv_prog_compiler_c_o=no
9369   $rm -r conftest 2>/dev/null
9370   mkdir conftest
9371   cd conftest
9372   mkdir out
9373   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9374
9375   lt_compiler_flag="-o out/conftest2.$ac_objext"
9376   # Insert the option either (1) after the last *FLAGS variable, or
9377   # (2) before a word containing "conftest.", or (3) at the end.
9378   # Note that $ac_compile itself does not contain backslashes and begins
9379   # with a dollar sign (not a hyphen), so the echo should work correctly.
9380   lt_compile=`echo "$ac_compile" | $SED \
9381   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9382   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9383   -e 's:$: $lt_compiler_flag:'`
9384   (eval echo "\"\$as_me:9384: $lt_compile\"" >&5)
9385   (eval "$lt_compile" 2>out/conftest.err)
9386   ac_status=$?
9387   cat out/conftest.err >&5
9388   echo "$as_me:9388: \$? = $ac_status" >&5
9389   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9390   then
9391     # The compiler can only warn and ignore the option if not recognized
9392     # So say no if there are warnings
9393     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9394     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9395     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9396       lt_cv_prog_compiler_c_o=yes
9397     fi
9398   fi
9399   chmod u+w . 2>&5
9400   $rm conftest*
9401   # SGI C++ compiler will create directory out/ii_files/ for
9402   # template instantiation
9403   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9404   $rm out/* && rmdir out
9405   cd ..
9406   rmdir conftest
9407   $rm conftest*
9408
9409fi
9410echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9411echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9412
9413
9414hard_links="nottested"
9415if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9416  # do not overwrite the value of need_locks provided by the user
9417  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9418echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9419  hard_links=yes
9420  $rm conftest*
9421  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9422  touch conftest.a
9423  ln conftest.a conftest.b 2>&5 || hard_links=no
9424  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9425  echo "$as_me:$LINENO: result: $hard_links" >&5
9426echo "${ECHO_T}$hard_links" >&6
9427  if test "$hard_links" = no; then
9428    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9429echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9430    need_locks=warn
9431  fi
9432else
9433  need_locks=no
9434fi
9435
9436echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9437echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9438
9439  runpath_var=
9440  allow_undefined_flag=
9441  enable_shared_with_static_runtimes=no
9442  archive_cmds=
9443  archive_expsym_cmds=
9444  old_archive_From_new_cmds=
9445  old_archive_from_expsyms_cmds=
9446  export_dynamic_flag_spec=
9447  whole_archive_flag_spec=
9448  thread_safe_flag_spec=
9449  hardcode_libdir_flag_spec=
9450  hardcode_libdir_flag_spec_ld=
9451  hardcode_libdir_separator=
9452  hardcode_direct=no
9453  hardcode_minus_L=no
9454  hardcode_shlibpath_var=unsupported
9455  link_all_deplibs=unknown
9456  hardcode_automatic=no
9457  module_cmds=
9458  module_expsym_cmds=
9459  always_export_symbols=no
9460  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9461  # include_expsyms should be a list of space-separated symbols to be *always*
9462  # included in the symbol list
9463  include_expsyms=
9464  # exclude_expsyms can be an extended regexp of symbols to exclude
9465  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9466  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9467  # as well as any symbol that contains `d'.
9468  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9469  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9470  # platforms (ab)use it in PIC code, but their linkers get confused if
9471  # the symbol is explicitly referenced.  Since portable code cannot
9472  # rely on this symbol name, it's probably fine to never include it in
9473  # preloaded symbol tables.
9474  extract_expsyms_cmds=
9475  # Just being paranoid about ensuring that cc_basename is set.
9476  for cc_temp in $compiler""; do
9477  case $cc_temp in
9478    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9479    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9480    \-*) ;;
9481    *) break;;
9482  esac
9483done
9484cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9485
9486  case $host_os in
9487  cygwin* | mingw* | pw32*)
9488    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9489    # When not using gcc, we currently assume that we are using
9490    # Microsoft Visual C++.
9491    if test "$GCC" != yes; then
9492      with_gnu_ld=no
9493    fi
9494    ;;
9495  interix*)
9496    # we just hope/assume this is gcc and not c89 (= MSVC++)
9497    with_gnu_ld=yes
9498    ;;
9499  openbsd*)
9500    with_gnu_ld=no
9501    ;;
9502  esac
9503
9504  ld_shlibs=yes
9505  if test "$with_gnu_ld" = yes; then
9506    # If archive_cmds runs LD, not CC, wlarc should be empty
9507    wlarc='${wl}'
9508
9509    # Set some defaults for GNU ld with shared library support. These
9510    # are reset later if shared libraries are not supported. Putting them
9511    # here allows them to be overridden if necessary.
9512    runpath_var=LD_RUN_PATH
9513    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9514    export_dynamic_flag_spec='${wl}--export-dynamic'
9515    # ancient GNU ld didn't support --whole-archive et. al.
9516    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9517        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9518      else
9519        whole_archive_flag_spec=
9520    fi
9521    supports_anon_versioning=no
9522    case `$LD -v 2>/dev/null` in
9523      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9524      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9525      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9526      *\ 2.11.*) ;; # other 2.11 versions
9527      *) supports_anon_versioning=yes ;;
9528    esac
9529
9530    # See if GNU ld supports shared libraries.
9531    case $host_os in
9532    aix3* | aix4* | aix5*)
9533      # On AIX/PPC, the GNU linker is very broken
9534      if test "$host_cpu" != ia64; then
9535        ld_shlibs=no
9536        cat <<EOF 1>&2
9537
9538*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9539*** to be unable to reliably create shared libraries on AIX.
9540*** Therefore, libtool is disabling shared libraries support.  If you
9541*** really care for shared libraries, you may want to modify your PATH
9542*** so that a non-GNU linker is found, and then restart.
9543
9544EOF
9545      fi
9546      ;;
9547
9548    amigaos*)
9549      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)'
9550      hardcode_libdir_flag_spec='-L$libdir'
9551      hardcode_minus_L=yes
9552
9553      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9554      # that the semantics of dynamic libraries on AmigaOS, at least up
9555      # to version 4, is to share data among multiple programs linked
9556      # with the same dynamic library.  Since this doesn't match the
9557      # behavior of shared libraries on other platforms, we can't use
9558      # them.
9559      ld_shlibs=no
9560      ;;
9561
9562    beos*)
9563      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9564        allow_undefined_flag=unsupported
9565        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9566        # support --undefined.  This deserves some investigation.  FIXME
9567        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568      else
9569        ld_shlibs=no
9570      fi
9571      ;;
9572
9573    cygwin* | mingw* | pw32*)
9574      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9575      # as there is no search path for DLLs.
9576      hardcode_libdir_flag_spec='-L$libdir'
9577      allow_undefined_flag=unsupported
9578      always_export_symbols=no
9579      enable_shared_with_static_runtimes=yes
9580      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9581
9582      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9583        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9584        # If the export-symbols file already is a .def file (1st line
9585        # is EXPORTS), use it as is; otherwise, prepend...
9586        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9587          cp $export_symbols $output_objdir/$soname.def;
9588        else
9589          echo EXPORTS > $output_objdir/$soname.def;
9590          cat $export_symbols >> $output_objdir/$soname.def;
9591        fi~
9592        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9593      else
9594        ld_shlibs=no
9595      fi
9596      ;;
9597
9598    interix3*)
9599      hardcode_direct=no
9600      hardcode_shlibpath_var=no
9601      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9602      export_dynamic_flag_spec='${wl}-E'
9603      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9604      # Instead, shared libraries are loaded at an image base (0x10000000 by
9605      # default) and relocated if they conflict, which is a slow very memory
9606      # consuming and fragmenting process.  To avoid this, we pick a random,
9607      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9608      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9609      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9610      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'
9611      ;;
9612
9613    linux*)
9614      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9615        tmp_addflag=
9616        case $cc_basename,$host_cpu in
9617        pgcc*)                          # Portland Group C compiler
9618          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'
9619          tmp_addflag=' $pic_flag'
9620          ;;
9621        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9622          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'
9623          tmp_addflag=' $pic_flag -Mnomain' ;;
9624        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9625          tmp_addflag=' -i_dynamic' ;;
9626        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9627          tmp_addflag=' -i_dynamic -nofor_main' ;;
9628        ifc* | ifort*)                  # Intel Fortran compiler
9629          tmp_addflag=' -nofor_main' ;;
9630        esac
9631        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632
9633        if test $supports_anon_versioning = yes; then
9634          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9635  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9636  $echo "local: *; };" >> $output_objdir/$libname.ver~
9637          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9638        fi
9639      else
9640        ld_shlibs=no
9641      fi
9642      ;;
9643
9644    netbsd*)
9645      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9646        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9647        wlarc=
9648      else
9649        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651      fi
9652      ;;
9653
9654    solaris*)
9655      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9656        ld_shlibs=no
9657        cat <<EOF 1>&2
9658
9659*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9660*** create shared libraries on Solaris systems.  Therefore, libtool
9661*** is disabling shared libraries support.  We urge you to upgrade GNU
9662*** binutils to release 2.9.1 or newer.  Another option is to modify
9663*** your PATH or compiler configuration so that the native linker is
9664*** used, and then restart.
9665
9666EOF
9667      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9668        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9670      else
9671        ld_shlibs=no
9672      fi
9673      ;;
9674
9675    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9676      case `$LD -v 2>&1` in
9677        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9678        ld_shlibs=no
9679        cat <<_LT_EOF 1>&2
9680
9681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9682*** reliably create shared libraries on SCO systems.  Therefore, libtool
9683*** is disabling shared libraries support.  We urge you to upgrade GNU
9684*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9685*** your PATH or compiler configuration so that the native linker is
9686*** used, and then restart.
9687
9688_LT_EOF
9689        ;;
9690        *)
9691          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9692            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9693            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9694            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9695          else
9696            ld_shlibs=no
9697          fi
9698        ;;
9699      esac
9700      ;;
9701
9702    sunos4*)
9703      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9704      wlarc=
9705      hardcode_direct=yes
9706      hardcode_shlibpath_var=no
9707      ;;
9708
9709    *)
9710      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9711        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9713      else
9714        ld_shlibs=no
9715      fi
9716      ;;
9717    esac
9718
9719    if test "$ld_shlibs" = no; then
9720      runpath_var=
9721      hardcode_libdir_flag_spec=
9722      export_dynamic_flag_spec=
9723      whole_archive_flag_spec=
9724    fi
9725  else
9726    # PORTME fill in a description of your system's linker (not GNU ld)
9727    case $host_os in
9728    aix3*)
9729      allow_undefined_flag=unsupported
9730      always_export_symbols=yes
9731      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'
9732      # Note: this linker hardcodes the directories in LIBPATH if there
9733      # are no directories specified by -L.
9734      hardcode_minus_L=yes
9735      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9736        # Neither direct hardcoding nor static linking is supported with a
9737        # broken collect2.
9738        hardcode_direct=unsupported
9739      fi
9740      ;;
9741
9742    aix4* | aix5*)
9743      if test "$host_cpu" = ia64; then
9744        # On IA64, the linker does run time linking by default, so we don't
9745        # have to do anything special.
9746        aix_use_runtimelinking=no
9747        exp_sym_flag='-Bexport'
9748        no_entry_flag=""
9749      else
9750        # If we're using GNU nm, then we don't want the "-C" option.
9751        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9752        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9753          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'
9754        else
9755          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'
9756        fi
9757        aix_use_runtimelinking=no
9758
9759        # Test if we are trying to use run time linking or normal
9760        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9761        # need to do runtime linking.
9762        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9763          for ld_flag in $LDFLAGS; do
9764          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9765            aix_use_runtimelinking=yes
9766            break
9767          fi
9768          done
9769          ;;
9770        esac
9771
9772        exp_sym_flag='-bexport'
9773        no_entry_flag='-bnoentry'
9774      fi
9775
9776      # When large executables or shared objects are built, AIX ld can
9777      # have problems creating the table of contents.  If linking a library
9778      # or program results in "error TOC overflow" add -mminimal-toc to
9779      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9780      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9781
9782      archive_cmds=''
9783      hardcode_direct=yes
9784      hardcode_libdir_separator=':'
9785      link_all_deplibs=yes
9786
9787      if test "$GCC" = yes; then
9788        case $host_os in aix4.[012]|aix4.[012].*)
9789        # We only want to do this on AIX 4.2 and lower, the check
9790        # below for broken collect2 doesn't work under 4.3+
9791          collect2name=`${CC} -print-prog-name=collect2`
9792          if test -f "$collect2name" && \
9793           strings "$collect2name" | grep resolve_lib_name >/dev/null
9794          then
9795          # We have reworked collect2
9796          hardcode_direct=yes
9797          else
9798          # We have old collect2
9799          hardcode_direct=unsupported
9800          # It fails to find uninstalled libraries when the uninstalled
9801          # path is not listed in the libpath.  Setting hardcode_minus_L
9802          # to unsupported forces relinking
9803          hardcode_minus_L=yes
9804          hardcode_libdir_flag_spec='-L$libdir'
9805          hardcode_libdir_separator=
9806          fi
9807          ;;
9808        esac
9809        shared_flag='-shared'
9810        if test "$aix_use_runtimelinking" = yes; then
9811          shared_flag="$shared_flag "'${wl}-G'
9812        fi
9813      else
9814        # not using gcc
9815        if test "$host_cpu" = ia64; then
9816        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9817        # chokes on -Wl,-G. The following line is correct:
9818          shared_flag='-G'
9819        else
9820          if test "$aix_use_runtimelinking" = yes; then
9821            shared_flag='${wl}-G'
9822          else
9823            shared_flag='${wl}-bM:SRE'
9824          fi
9825        fi
9826      fi
9827
9828      # It seems that -bexpall does not export symbols beginning with
9829      # underscore (_), so it is better to generate a list of symbols to export.
9830      always_export_symbols=yes
9831      if test "$aix_use_runtimelinking" = yes; then
9832        # Warning - without using the other runtime loading flags (-brtl),
9833        # -berok will link without error, but may produce a broken library.
9834        allow_undefined_flag='-berok'
9835       # Determine the default libpath from the value encoded in an empty executable.
9836       cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h.  */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h.  */
9842
9843#ifdef F77_DUMMY_MAIN
9844
9845#  ifdef __cplusplus
9846     extern "C"
9847#  endif
9848   int F77_DUMMY_MAIN() { return 1; }
9849
9850#endif
9851int
9852main ()
9853{
9854
9855  ;
9856  return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext conftest$ac_exeext
9860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861  (eval $ac_link) 2>conftest.er1
9862  ac_status=$?
9863  grep -v '^ *+' conftest.er1 >conftest.err
9864  rm -f conftest.er1
9865  cat conftest.err >&5
9866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867  (exit $ac_status); } &&
9868         { ac_try='test -z "$ac_c_werror_flag"
9869                         || test ! -s conftest.err'
9870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871  (eval $ac_try) 2>&5
9872  ac_status=$?
9873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874  (exit $ac_status); }; } &&
9875         { ac_try='test -s conftest$ac_exeext'
9876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877  (eval $ac_try) 2>&5
9878  ac_status=$?
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); }; }; then
9881
9882aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9883}'`
9884# Check for a 64-bit object if we didn't find anything.
9885if 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; }
9886}'`; fi
9887else
9888  echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
9891fi
9892rm -f conftest.err conftest.$ac_objext \
9893      conftest$ac_exeext conftest.$ac_ext
9894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9895
9896       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9897        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"
9898       else
9899        if test "$host_cpu" = ia64; then
9900          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9901          allow_undefined_flag="-z nodefs"
9902          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"
9903        else
9904         # Determine the default libpath from the value encoded in an empty executable.
9905         cat >conftest.$ac_ext <<_ACEOF
9906/* confdefs.h.  */
9907_ACEOF
9908cat confdefs.h >>conftest.$ac_ext
9909cat >>conftest.$ac_ext <<_ACEOF
9910/* end confdefs.h.  */
9911
9912#ifdef F77_DUMMY_MAIN
9913
9914#  ifdef __cplusplus
9915     extern "C"
9916#  endif
9917   int F77_DUMMY_MAIN() { return 1; }
9918
9919#endif
9920int
9921main ()
9922{
9923
9924  ;
9925  return 0;
9926}
9927_ACEOF
9928rm -f conftest.$ac_objext conftest$ac_exeext
9929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930  (eval $ac_link) 2>conftest.er1
9931  ac_status=$?
9932  grep -v '^ *+' conftest.er1 >conftest.err
9933  rm -f conftest.er1
9934  cat conftest.err >&5
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); } &&
9937         { ac_try='test -z "$ac_c_werror_flag"
9938                         || test ! -s conftest.err'
9939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940  (eval $ac_try) 2>&5
9941  ac_status=$?
9942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943  (exit $ac_status); }; } &&
9944         { ac_try='test -s conftest$ac_exeext'
9945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946  (eval $ac_try) 2>&5
9947  ac_status=$?
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); }; }; then
9950
9951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9952}'`
9953# Check for a 64-bit object if we didn't find anything.
9954if 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; }
9955}'`; fi
9956else
9957  echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960fi
9961rm -f conftest.err conftest.$ac_objext \
9962      conftest$ac_exeext conftest.$ac_ext
9963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9964
9965         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9966          # Warning - without using the other run time loading flags,
9967          # -berok will link without error, but may produce a broken library.
9968          no_undefined_flag=' ${wl}-bernotok'
9969          allow_undefined_flag=' ${wl}-berok'
9970          # Exported symbols can be pulled into shared objects from archives
9971          whole_archive_flag_spec='$convenience'
9972          archive_cmds_need_lc=yes
9973          # This is similar to how AIX traditionally builds its shared libraries.
9974          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'
9975        fi
9976      fi
9977      ;;
9978
9979    amigaos*)
9980      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)'
9981      hardcode_libdir_flag_spec='-L$libdir'
9982      hardcode_minus_L=yes
9983      # see comment about different semantics on the GNU ld section
9984      ld_shlibs=no
9985      ;;
9986
9987    bsdi[45]*)
9988      export_dynamic_flag_spec=-rdynamic
9989      ;;
9990
9991    cygwin* | mingw* | pw32*)
9992      # When not using gcc, we currently assume that we are using
9993      # Microsoft Visual C++.
9994      # hardcode_libdir_flag_spec is actually meaningless, as there is
9995      # no search path for DLLs.
9996      hardcode_libdir_flag_spec=' '
9997      allow_undefined_flag=unsupported
9998      # Tell ltmain to make .lib files, not .a files.
9999      libext=lib
10000      # Tell ltmain to make .dll files, not .so files.
10001      shrext_cmds=".dll"
10002      # FIXME: Setting linknames here is a bad hack.
10003      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10004      # The linker will automatically build a .lib file if we build a DLL.
10005      old_archive_From_new_cmds='true'
10006      # FIXME: Should let the user specify the lib program.
10007      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10008      fix_srcfile_path='`cygpath -w "$srcfile"`'
10009      enable_shared_with_static_runtimes=yes
10010      ;;
10011
10012    darwin* | rhapsody*)
10013      case $host_os in
10014        rhapsody* | darwin1.[012])
10015         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10016         ;;
10017       *) # Darwin 1.3 on
10018         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10019           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10020         else
10021           case ${MACOSX_DEPLOYMENT_TARGET} in
10022             10.[012])
10023               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10024               ;;
10025             10.*)
10026               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10027               ;;
10028           esac
10029         fi
10030         ;;
10031      esac
10032      archive_cmds_need_lc=no
10033      hardcode_direct=no
10034      hardcode_automatic=yes
10035      hardcode_shlibpath_var=unsupported
10036      whole_archive_flag_spec=''
10037      link_all_deplibs=yes
10038    if test "$GCC" = yes ; then
10039        output_verbose_link_cmd='echo'
10040        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10041      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10042      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10043      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}'
10044      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}'
10045    else
10046      case $cc_basename in
10047        xlc*)
10048         output_verbose_link_cmd='echo'
10049         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10050         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10051          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10052         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}'
10053          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}'
10054          ;;
10055       *)
10056         ld_shlibs=no
10057          ;;
10058      esac
10059    fi
10060      ;;
10061
10062    dgux*)
10063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064      hardcode_libdir_flag_spec='-L$libdir'
10065      hardcode_shlibpath_var=no
10066      ;;
10067
10068    freebsd1*)
10069      ld_shlibs=no
10070      ;;
10071
10072    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10073    # support.  Future versions do this automatically, but an explicit c++rt0.o
10074    # does not break anything, and helps significantly (at the cost of a little
10075    # extra space).
10076    freebsd2.2*)
10077      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10078      hardcode_libdir_flag_spec='-R$libdir'
10079      hardcode_direct=yes
10080      hardcode_shlibpath_var=no
10081      ;;
10082
10083    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10084    freebsd2*)
10085      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10086      hardcode_direct=yes
10087      hardcode_minus_L=yes
10088      hardcode_shlibpath_var=no
10089      ;;
10090
10091    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10092    freebsd* | kfreebsd*-gnu | dragonfly*)
10093      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10094      hardcode_libdir_flag_spec='-R$libdir'
10095      hardcode_direct=yes
10096      hardcode_shlibpath_var=no
10097      ;;
10098
10099    hpux9*)
10100      if test "$GCC" = yes; then
10101        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'
10102      else
10103        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'
10104      fi
10105      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10106      hardcode_libdir_separator=:
10107      hardcode_direct=yes
10108
10109      # hardcode_minus_L: Not really in the search PATH,
10110      # but as the default location of the library.
10111      hardcode_minus_L=yes
10112      export_dynamic_flag_spec='${wl}-E'
10113      ;;
10114
10115    hpux10*)
10116      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10117        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10118      else
10119        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10120      fi
10121      if test "$with_gnu_ld" = no; then
10122        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10123        hardcode_libdir_separator=:
10124
10125        hardcode_direct=yes
10126        export_dynamic_flag_spec='${wl}-E'
10127
10128        # hardcode_minus_L: Not really in the search PATH,
10129        # but as the default location of the library.
10130        hardcode_minus_L=yes
10131      fi
10132      ;;
10133
10134    hpux11*)
10135      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10136        case $host_cpu in
10137        hppa*64*)
10138          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10139          ;;
10140        ia64*)
10141          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10142          ;;
10143        *)
10144          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10145          ;;
10146        esac
10147      else
10148        case $host_cpu in
10149        hppa*64*)
10150          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151          ;;
10152        ia64*)
10153          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10154          ;;
10155        *)
10156          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10157          ;;
10158        esac
10159      fi
10160      if test "$with_gnu_ld" = no; then
10161        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10162        hardcode_libdir_separator=:
10163
10164        case $host_cpu in
10165        hppa*64*|ia64*)
10166          hardcode_libdir_flag_spec_ld='+b $libdir'
10167          hardcode_direct=no
10168          hardcode_shlibpath_var=no
10169          ;;
10170        *)
10171          hardcode_direct=yes
10172          export_dynamic_flag_spec='${wl}-E'
10173
10174          # hardcode_minus_L: Not really in the search PATH,
10175          # but as the default location of the library.
10176          hardcode_minus_L=yes
10177          ;;
10178        esac
10179      fi
10180      ;;
10181
10182    irix5* | irix6* | nonstopux*)
10183      if test "$GCC" = yes; then
10184        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'
10185      else
10186        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'
10187        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10188      fi
10189      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10190      hardcode_libdir_separator=:
10191      link_all_deplibs=yes
10192      ;;
10193
10194    netbsd*)
10195      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10196        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10197      else
10198        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10199      fi
10200      hardcode_libdir_flag_spec='-R$libdir'
10201      hardcode_direct=yes
10202      hardcode_shlibpath_var=no
10203      ;;
10204
10205    newsos6)
10206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207      hardcode_direct=yes
10208      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10209      hardcode_libdir_separator=:
10210      hardcode_shlibpath_var=no
10211      ;;
10212
10213    openbsd*)
10214      hardcode_direct=yes
10215      hardcode_shlibpath_var=no
10216      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10217        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10218        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10219        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10220        export_dynamic_flag_spec='${wl}-E'
10221      else
10222       case $host_os in
10223         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10224           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10225           hardcode_libdir_flag_spec='-R$libdir'
10226           ;;
10227         *)
10228           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10229           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10230           ;;
10231       esac
10232      fi
10233      ;;
10234
10235    os2*)
10236      hardcode_libdir_flag_spec='-L$libdir'
10237      hardcode_minus_L=yes
10238      allow_undefined_flag=unsupported
10239      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'
10240      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10241      ;;
10242
10243    osf3*)
10244      if test "$GCC" = yes; then
10245        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10246        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'
10247      else
10248        allow_undefined_flag=' -expect_unresolved \*'
10249        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'
10250      fi
10251      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10252      hardcode_libdir_separator=:
10253      ;;
10254
10255    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10256      if test "$GCC" = yes; then
10257        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10258        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'
10259        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10260      else
10261        allow_undefined_flag=' -expect_unresolved \*'
10262        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'
10263        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10264        $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'
10265
10266        # Both c and cxx compiler support -rpath directly
10267        hardcode_libdir_flag_spec='-rpath $libdir'
10268      fi
10269      hardcode_libdir_separator=:
10270      ;;
10271
10272    solaris*)
10273      no_undefined_flag=' -z text'
10274      if test "$GCC" = yes; then
10275        wlarc='${wl}'
10276        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10277        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10278          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10279      else
10280        wlarc=''
10281        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10283        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10284      fi
10285      hardcode_libdir_flag_spec='-R$libdir'
10286      hardcode_shlibpath_var=no
10287      case $host_os in
10288      solaris2.[0-5] | solaris2.[0-5].*) ;;
10289      *)
10290        # The compiler driver will combine linker options so we
10291        # cannot just pass the convience library names through
10292        # without $wl, iff we do not link with $LD.
10293        # Luckily, gcc supports the same syntax we need for Sun Studio.
10294        # Supported since Solaris 2.6 (maybe 2.5.1?)
10295        case $wlarc in
10296        '')
10297          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10298        *)
10299          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' ;;
10300        esac ;;
10301      esac
10302      link_all_deplibs=yes
10303      ;;
10304
10305    sunos4*)
10306      if test "x$host_vendor" = xsequent; then
10307        # Use $CC to link under sequent, because it throws in some extra .o
10308        # files that make .init and .fini sections work.
10309        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10310      else
10311        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10312      fi
10313      hardcode_libdir_flag_spec='-L$libdir'
10314      hardcode_direct=yes
10315      hardcode_minus_L=yes
10316      hardcode_shlibpath_var=no
10317      ;;
10318
10319    sysv4)
10320      case $host_vendor in
10321        sni)
10322          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323          hardcode_direct=yes # is this really true???
10324        ;;
10325        siemens)
10326          ## LD is ld it makes a PLAMLIB
10327          ## CC just makes a GrossModule.
10328          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10329          reload_cmds='$CC -r -o $output$reload_objs'
10330          hardcode_direct=no
10331        ;;
10332        motorola)
10333          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10335        ;;
10336      esac
10337      runpath_var='LD_RUN_PATH'
10338      hardcode_shlibpath_var=no
10339      ;;
10340
10341    sysv4.3*)
10342      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343      hardcode_shlibpath_var=no
10344      export_dynamic_flag_spec='-Bexport'
10345      ;;
10346
10347    sysv4*MP*)
10348      if test -d /usr/nec; then
10349        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350        hardcode_shlibpath_var=no
10351        runpath_var=LD_RUN_PATH
10352        hardcode_runpath_var=yes
10353        ld_shlibs=yes
10354      fi
10355      ;;
10356
10357    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10358      no_undefined_flag='${wl}-z,text'
10359      archive_cmds_need_lc=no
10360      hardcode_shlibpath_var=no
10361      runpath_var='LD_RUN_PATH'
10362
10363      if test "$GCC" = yes; then
10364        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366      else
10367        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369      fi
10370      ;;
10371
10372    sysv5* | sco3.2v5* | sco5v6*)
10373      # Note: We can NOT use -z defs as we might desire, because we do not
10374      # link with -lc, and that would cause any symbols used from libc to
10375      # always be unresolved, which means just about no library would
10376      # ever link correctly.  If we're not using GNU ld we use -z text
10377      # though, which does catch some bad symbols but isn't as heavy-handed
10378      # as -z defs.
10379      no_undefined_flag='${wl}-z,text'
10380      allow_undefined_flag='${wl}-z,nodefs'
10381      archive_cmds_need_lc=no
10382      hardcode_shlibpath_var=no
10383      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10384      hardcode_libdir_separator=':'
10385      link_all_deplibs=yes
10386      export_dynamic_flag_spec='${wl}-Bexport'
10387      runpath_var='LD_RUN_PATH'
10388
10389      if test "$GCC" = yes; then
10390        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10391        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10392      else
10393        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10394        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10395      fi
10396      ;;
10397
10398    uts4*)
10399      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400      hardcode_libdir_flag_spec='-L$libdir'
10401      hardcode_shlibpath_var=no
10402      ;;
10403
10404    *)
10405      ld_shlibs=no
10406      ;;
10407    esac
10408  fi
10409
10410echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10411echo "${ECHO_T}$ld_shlibs" >&6
10412test "$ld_shlibs" = no && can_build_shared=no
10413
10414#
10415# Do we need to explicitly link libc?
10416#
10417case "x$archive_cmds_need_lc" in
10418x|xyes)
10419  # Assume -lc should be added
10420  archive_cmds_need_lc=yes
10421
10422  if test "$enable_shared" = yes && test "$GCC" = yes; then
10423    case $archive_cmds in
10424    *'~'*)
10425      # FIXME: we may have to deal with multi-command sequences.
10426      ;;
10427    '$CC '*)
10428      # Test whether the compiler implicitly links with -lc since on some
10429      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10430      # to ld, don't add -lc before -lgcc.
10431      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10432echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10433      $rm conftest*
10434      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10435
10436      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437  (eval $ac_compile) 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } 2>conftest.err; then
10441        soname=conftest
10442        lib=conftest
10443        libobjs=conftest.$ac_objext
10444        deplibs=
10445        wl=$lt_prog_compiler_wl
10446        pic_flag=$lt_prog_compiler_pic
10447        compiler_flags=-v
10448        linker_flags=-v
10449        verstring=
10450        output_objdir=.
10451        libname=conftest
10452        lt_save_allow_undefined_flag=$allow_undefined_flag
10453        allow_undefined_flag=
10454        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10455  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); }
10459        then
10460          archive_cmds_need_lc=no
10461        else
10462          archive_cmds_need_lc=yes
10463        fi
10464        allow_undefined_flag=$lt_save_allow_undefined_flag
10465      else
10466        cat conftest.err 1>&5
10467      fi
10468      $rm conftest*
10469      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10470echo "${ECHO_T}$archive_cmds_need_lc" >&6
10471      ;;
10472    esac
10473  fi
10474  ;;
10475esac
10476
10477echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10478echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10479library_names_spec=
10480libname_spec='lib$name'
10481soname_spec=
10482shrext_cmds=".so"
10483postinstall_cmds=
10484postuninstall_cmds=
10485finish_cmds=
10486finish_eval=
10487shlibpath_var=
10488shlibpath_overrides_runpath=unknown
10489version_type=none
10490dynamic_linker="$host_os ld.so"
10491sys_lib_dlsearch_path_spec="/lib /usr/lib"
10492if test "$GCC" = yes; then
10493  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10494  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10495    # if the path contains ";" then we assume it to be the separator
10496    # otherwise default to the standard path separator (i.e. ":") - it is
10497    # assumed that no part of a normal pathname contains ";" but that should
10498    # okay in the real world where ";" in dirpaths is itself problematic.
10499    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10500  else
10501    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10502  fi
10503else
10504  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10505fi
10506need_lib_prefix=unknown
10507hardcode_into_libs=no
10508
10509# when you set need_version to no, make sure it does not cause -set_version
10510# flags to be left without arguments
10511need_version=unknown
10512
10513case $host_os in
10514aix3*)
10515  version_type=linux
10516  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10517  shlibpath_var=LIBPATH
10518
10519  # AIX 3 has no versioning support, so we append a major version to the name.
10520  soname_spec='${libname}${release}${shared_ext}$major'
10521  ;;
10522
10523aix4* | aix5*)
10524  version_type=linux
10525  need_lib_prefix=no
10526  need_version=no
10527  hardcode_into_libs=yes
10528  if test "$host_cpu" = ia64; then
10529    # AIX 5 supports IA64
10530    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10531    shlibpath_var=LD_LIBRARY_PATH
10532  else
10533    # With GCC up to 2.95.x, collect2 would create an import file
10534    # for dependence libraries.  The import file would start with
10535    # the line `#! .'.  This would cause the generated library to
10536    # depend on `.', always an invalid library.  This was fixed in
10537    # development snapshots of GCC prior to 3.0.
10538    case $host_os in
10539      aix4 | aix4.[01] | aix4.[01].*)
10540      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10541           echo ' yes '
10542           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10543        :
10544      else
10545        can_build_shared=no
10546      fi
10547      ;;
10548    esac
10549    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10550    # soname into executable. Probably we can add versioning support to
10551    # collect2, so additional links can be useful in future.
10552    if test "$aix_use_runtimelinking" = yes; then
10553      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10554      # instead of lib<name>.a to let people know that these are not
10555      # typical AIX shared libraries.
10556      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557    else
10558      # We preserve .a as extension for shared libraries through AIX4.2
10559      # and later when we are not doing run time linking.
10560      library_names_spec='${libname}${release}.a $libname.a'
10561      soname_spec='${libname}${release}${shared_ext}$major'
10562    fi
10563    shlibpath_var=LIBPATH
10564  fi
10565  ;;
10566
10567amigaos*)
10568  library_names_spec='$libname.ixlibrary $libname.a'
10569  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10570  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'
10571  ;;
10572
10573beos*)
10574  library_names_spec='${libname}${shared_ext}'
10575  dynamic_linker="$host_os ld.so"
10576  shlibpath_var=LIBRARY_PATH
10577  ;;
10578
10579bsdi[45]*)
10580  version_type=linux
10581  need_version=no
10582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583  soname_spec='${libname}${release}${shared_ext}$major'
10584  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10585  shlibpath_var=LD_LIBRARY_PATH
10586  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10587  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10588  # the default ld.so.conf also contains /usr/contrib/lib and
10589  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10590  # libtool to hard-code these into programs
10591  ;;
10592
10593cygwin* | mingw* | pw32*)
10594  version_type=windows
10595  shrext_cmds=".dll"
10596  need_version=no
10597  need_lib_prefix=no
10598
10599  case $GCC,$host_os in
10600  yes,cygwin* | yes,mingw* | yes,pw32*)
10601    library_names_spec='$libname.dll.a'
10602    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10603    postinstall_cmds='base_file=`basename \${file}`~
10604      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10605      dldir=$destdir/`dirname \$dlpath`~
10606      test -d \$dldir || mkdir -p \$dldir~
10607      $install_prog $dir/$dlname \$dldir/$dlname~
10608      chmod a+x \$dldir/$dlname'
10609    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10610      dlpath=$dir/\$dldll~
10611       $rm \$dlpath'
10612    shlibpath_overrides_runpath=yes
10613
10614    case $host_os in
10615    cygwin*)
10616      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10617      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10618      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10619      ;;
10620    mingw*)
10621      # MinGW DLLs use traditional 'lib' prefix
10622      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10623      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10624      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10625        # It is most probably a Windows format PATH printed by
10626        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10627        # path with ; separators, and with drive letters. We can handle the
10628        # drive letters (cygwin fileutils understands them), so leave them,
10629        # especially as we might pass files found there to a mingw objdump,
10630        # which wouldn't understand a cygwinified path. Ahh.
10631        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10632      else
10633        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10634      fi
10635      ;;
10636    pw32*)
10637      # pw32 DLLs use 'pw' prefix rather than 'lib'
10638      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10639      ;;
10640    esac
10641    ;;
10642
10643  *)
10644    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10645    ;;
10646  esac
10647  dynamic_linker='Win32 ld.exe'
10648  # FIXME: first we should search . and the directory the executable is in
10649  shlibpath_var=PATH
10650  ;;
10651
10652darwin* | rhapsody*)
10653  dynamic_linker="$host_os dyld"
10654  version_type=darwin
10655  need_lib_prefix=no
10656  need_version=no
10657  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10658  soname_spec='${libname}${release}${major}$shared_ext'
10659  shlibpath_overrides_runpath=yes
10660  shlibpath_var=DYLD_LIBRARY_PATH
10661  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10662  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10663  if test "$GCC" = yes; then
10664    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"`
10665  else
10666    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10667  fi
10668  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10669  ;;
10670
10671dgux*)
10672  version_type=linux
10673  need_lib_prefix=no
10674  need_version=no
10675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10676  soname_spec='${libname}${release}${shared_ext}$major'
10677  shlibpath_var=LD_LIBRARY_PATH
10678  ;;
10679
10680freebsd1*)
10681  dynamic_linker=no
10682  ;;
10683
10684kfreebsd*-gnu)
10685  version_type=linux
10686  need_lib_prefix=no
10687  need_version=no
10688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10689  soname_spec='${libname}${release}${shared_ext}$major'
10690  shlibpath_var=LD_LIBRARY_PATH
10691  shlibpath_overrides_runpath=no
10692  hardcode_into_libs=yes
10693  dynamic_linker='GNU ld.so'
10694  ;;
10695
10696freebsd* | dragonfly*)
10697  # DragonFly does not have aout.  When/if they implement a new
10698  # versioning mechanism, adjust this.
10699  if test -x /usr/bin/objformat; then
10700    objformat=`/usr/bin/objformat`
10701  else
10702    case $host_os in
10703    freebsd[123]*) objformat=aout ;;
10704    *) objformat=elf ;;
10705    esac
10706  fi
10707  version_type=freebsd-$objformat
10708  case $version_type in
10709    freebsd-elf*)
10710      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10711      need_version=no
10712      need_lib_prefix=no
10713      ;;
10714    freebsd-*)
10715      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10716      need_version=yes
10717      ;;
10718  esac
10719  shlibpath_var=LD_LIBRARY_PATH
10720  case $host_os in
10721  freebsd2*)
10722    shlibpath_overrides_runpath=yes
10723    ;;
10724  freebsd3.[01]* | freebsdelf3.[01]*)
10725    shlibpath_overrides_runpath=yes
10726    hardcode_into_libs=yes
10727    ;;
10728  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10729  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10730    shlibpath_overrides_runpath=no
10731    hardcode_into_libs=yes
10732    ;;
10733  freebsd*) # from 4.6 on
10734    shlibpath_overrides_runpath=yes
10735    hardcode_into_libs=yes
10736    ;;
10737  esac
10738  ;;
10739
10740gnu*)
10741  version_type=linux
10742  need_lib_prefix=no
10743  need_version=no
10744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10745  soname_spec='${libname}${release}${shared_ext}$major'
10746  shlibpath_var=LD_LIBRARY_PATH
10747  hardcode_into_libs=yes
10748  ;;
10749
10750hpux9* | hpux10* | hpux11*)
10751  # Give a soname corresponding to the major version so that dld.sl refuses to
10752  # link against other versions.
10753  version_type=sunos
10754  need_lib_prefix=no
10755  need_version=no
10756  case $host_cpu in
10757  ia64*)
10758    shrext_cmds='.so'
10759    hardcode_into_libs=yes
10760    dynamic_linker="$host_os dld.so"
10761    shlibpath_var=LD_LIBRARY_PATH
10762    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764    soname_spec='${libname}${release}${shared_ext}$major'
10765    if test "X$HPUX_IA64_MODE" = X32; then
10766      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10767    else
10768      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10769    fi
10770    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10771    ;;
10772   hppa*64*)
10773     shrext_cmds='.sl'
10774     hardcode_into_libs=yes
10775     dynamic_linker="$host_os dld.sl"
10776     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10777     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779     soname_spec='${libname}${release}${shared_ext}$major'
10780     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10781     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10782     ;;
10783   *)