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

Last change on this file since 2794 was 2794, checked in by stefan, 8 years ago

temporarily committing release candidate

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