source: ThirdParty/HSL/trunk/configure @ 2570

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

extend test for F90 compiler to rule out gcc compilers (<4.2.0) that do not support some of the HSL code constructs (patch contributed by Tony Kelman)

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