source: ThirdParty/Mumps/stable/1.3/configure @ 1830

Last change on this file since 1830 was 1830, checked in by stefan, 9 years ago

rerun autotools

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