source: ThirdParty/Mumps/releases/1.4.9/configure @ 2985

Last change on this file since 2985 was 2985, checked in by stefan, 7 years ago

revert r2394:HEAD - releases are not to be modified

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