source: ThirdParty/Mumps/stable/1.4/configure @ 2900

Last change on this file since 2900 was 2900, checked in by tkr, 6 years ago

Re-running autotools

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