source: ThirdParty/HSL/stable/1.3/configure @ 2797

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

temporarily committing release candidate

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