source: ThirdParty/HSL/stable/1.4/configure @ 2763

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

sync with trunk rev 2762

  • Property svn:executable set to *
File size: 893.3 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.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 -a "x$svn_rev_tmp" != "xUnversioned directory"; 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}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4144else
4145  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${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# recent autotools versions can recognize OpenMP with the following macro
5357# this would be useful when using MA86 and MA97
5358# AC_OPENMP
5359
5360# Initialize autotools
5361
5362if test x$enable_loadable_library = xyes; then
5363  flag=force_shared
5364fi
5365{
5366
5367
5368
5369# START
5370
5371# Test if force_shared has been set
5372if test "x$flag" = xforce_shared; then
5373  if test x$enable_shared = xno; then
5374    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5375echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5376   { (exit 1); exit 1; }; }
5377  fi
5378  enable_shared=yes;
5379else
5380  # On Cygwin and AIX, building DLLs doesn't work
5381  case $build in
5382    *-cygwin*)
5383      coin_disable_shared=yes
5384      platform=Cygwin
5385    ;;
5386    *-aix*)
5387      coin_disable_shared=yes
5388      platform=AIX
5389    ;;
5390    *-mingw*)
5391      coin_disable_shared=yes
5392      platform="Msys"
5393#      case "$CXX" in
5394#        cl*)
5395#          coin_disable_shared=yes
5396#          platform="Msys with cl"
5397#      ;;
5398#      esac
5399    ;;
5400  esac
5401fi
5402if test x"$coin_disable_shared" = xyes; then
5403  if test x"$enable_shared" = xyes; then
5404    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5405echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5406  fi
5407  enable_shared=no
5408fi
5409# By default, we only want the shared objects to be compiled
5410# Check whether --enable-static or --disable-static was given.
5411if test "${enable_static+set}" = set; then
5412  enableval="$enable_static"
5413  p=${PACKAGE-default}
5414    case $enableval in
5415    yes) enable_static=yes ;;
5416    no) enable_static=no ;;
5417    *)
5418     enable_static=no
5419      # Look at the argument we got.  We use all the common list separators.
5420      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5421      for pkg in $enableval; do
5422        IFS="$lt_save_ifs"
5423        if test "X$pkg" = "X$p"; then
5424          enable_static=yes
5425        fi
5426      done
5427      IFS="$lt_save_ifs"
5428      ;;
5429    esac
5430else
5431  enable_static=no
5432fi;
5433
5434
5435
5436
5437# Initialize automake
5438echo "$as_me:$LINENO: checking whether ln -s works" >&5
5439echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5440LN_S=$as_ln_s
5441if test "$LN_S" = "ln -s"; then
5442  echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
5444else
5445  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5446echo "${ECHO_T}no, using $LN_S" >&6
5447fi
5448
5449am__api_version="1.9"
5450# Find a good install program.  We prefer a C program (faster),
5451# so one script is as good as another.  But avoid the broken or
5452# incompatible versions:
5453# SysV /etc/install, /usr/sbin/install
5454# SunOS /usr/etc/install
5455# IRIX /sbin/install
5456# AIX /bin/install
5457# AmigaOS /C/install, which installs bootblocks on floppy discs
5458# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5459# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5460# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5461# OS/2's system install, which has a completely different semantic
5462# ./install, which can be erroneously created by make from ./install.sh.
5463echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5464echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5465if test -z "$INSTALL"; then
5466if test "${ac_cv_path_install+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472  IFS=$as_save_IFS
5473  test -z "$as_dir" && as_dir=.
5474  # Account for people who put trailing slashes in PATH elements.
5475case $as_dir/ in
5476  ./ | .// | /cC/* | \
5477  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5478  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5479  /usr/ucb/* ) ;;
5480  *)
5481    # OSF1 and SCO ODT 3.0 have their own names for install.
5482    # Don't use installbsd from OSF since it installs stuff as root
5483    # by default.
5484    for ac_prog in ginstall scoinst install; do
5485      for ac_exec_ext in '' $ac_executable_extensions; do
5486        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5487          if test $ac_prog = install &&
5488            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5489            # AIX install.  It has an incompatible calling convention.
5490            :
5491          elif test $ac_prog = install &&
5492            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5493            # program-specific install script used by HP pwplus--don't use.
5494            :
5495          else
5496            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5497            break 3
5498          fi
5499        fi
5500      done
5501    done
5502    ;;
5503esac
5504done
5505
5506
5507fi
5508  if test "${ac_cv_path_install+set}" = set; then
5509    INSTALL=$ac_cv_path_install
5510  else
5511    # As a last resort, use the slow shell script.  We don't cache a
5512    # path for INSTALL within a source directory, because that will
5513    # break other packages using the cache if that directory is
5514    # removed, or if the path is relative.
5515    INSTALL=$ac_install_sh
5516  fi
5517fi
5518echo "$as_me:$LINENO: result: $INSTALL" >&5
5519echo "${ECHO_T}$INSTALL" >&6
5520
5521# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5522# It thinks the first close brace ends the variable substitution.
5523test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5524
5525test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5526
5527test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5528
5529echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5530echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5531# Just in case
5532sleep 1
5533echo timestamp > conftest.file
5534# Do `set' in a subshell so we don't clobber the current shell's
5535# arguments.  Must try -L first in case configure is actually a
5536# symlink; some systems play weird games with the mod time of symlinks
5537# (eg FreeBSD returns the mod time of the symlink's containing
5538# directory).
5539if (
5540   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5541   if test "$*" = "X"; then
5542      # -L didn't work.
5543      set X `ls -t $srcdir/configure conftest.file`
5544   fi
5545   rm -f conftest.file
5546   if test "$*" != "X $srcdir/configure conftest.file" \
5547      && test "$*" != "X conftest.file $srcdir/configure"; then
5548
5549      # If neither matched, then we have a broken ls.  This can happen
5550      # if, for instance, CONFIG_SHELL is bash and it inherits a
5551      # broken ls alias from the environment.  This has actually
5552      # happened.  Such a system could not be considered "sane".
5553      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5554alias in your environment" >&5
5555echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5556alias in your environment" >&2;}
5557   { (exit 1); exit 1; }; }
5558   fi
5559
5560   test "$2" = conftest.file
5561   )
5562then
5563   # Ok.
5564   :
5565else
5566   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5567Check your system clock" >&5
5568echo "$as_me: error: newly created file is older than distributed files!
5569Check your system clock" >&2;}
5570   { (exit 1); exit 1; }; }
5571fi
5572echo "$as_me:$LINENO: result: yes" >&5
5573echo "${ECHO_T}yes" >&6
5574test "$program_prefix" != NONE &&
5575  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5576# Use a double $ so make ignores it.
5577test "$program_suffix" != NONE &&
5578  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5579# Double any \ or $.  echo might interpret backslashes.
5580# By default was `s,x,x', remove it if useless.
5581cat <<\_ACEOF >conftest.sed
5582s/[\\$]/&&/g;s/;s,x,x,$//
5583_ACEOF
5584program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5585rm conftest.sed
5586
5587# expand $ac_aux_dir to an absolute path
5588am_aux_dir=`cd $ac_aux_dir && pwd`
5589
5590test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5591# Use eval to expand $SHELL
5592if eval "$MISSING --run true"; then
5593  am_missing_run="$MISSING --run "
5594else
5595  am_missing_run=
5596  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5597echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5598fi
5599
5600if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5601  # We used to keeping the `.' as first argument, in order to
5602  # allow $(mkdir_p) to be used without argument.  As in
5603  #   $(mkdir_p) $(somedir)
5604  # where $(somedir) is conditionally defined.  However this is wrong
5605  # for two reasons:
5606  #  1. if the package is installed by a user who cannot write `.'
5607  #     make install will fail,
5608  #  2. the above comment should most certainly read
5609  #     $(mkdir_p) $(DESTDIR)$(somedir)
5610  #     so it does not work when $(somedir) is undefined and
5611  #     $(DESTDIR) is not.
5612  #  To support the latter case, we have to write
5613  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5614  #  so the `.' trick is pointless.
5615  mkdir_p='mkdir -p --'
5616else
5617  # On NextStep and OpenStep, the `mkdir' command does not
5618  # recognize any option.  It will interpret all options as
5619  # directories to create, and then abort because `.' already
5620  # exists.
5621  for d in ./-p ./--version;
5622  do
5623    test -d $d && rmdir $d
5624  done
5625  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5626  if test -f "$ac_aux_dir/mkinstalldirs"; then
5627    mkdir_p='$(mkinstalldirs)'
5628  else
5629    mkdir_p='$(install_sh) -d'
5630  fi
5631fi
5632
5633for ac_prog in gawk mawk nawk awk
5634do
5635  # Extract the first word of "$ac_prog", so it can be a program name with args.
5636set dummy $ac_prog; ac_word=$2
5637echo "$as_me:$LINENO: checking for $ac_word" >&5
5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639if test "${ac_cv_prog_AWK+set}" = set; then
5640  echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642  if test -n "$AWK"; then
5643  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648  IFS=$as_save_IFS
5649  test -z "$as_dir" && as_dir=.
5650  for ac_exec_ext in '' $ac_executable_extensions; do
5651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652    ac_cv_prog_AWK="$ac_prog"
5653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657done
5658
5659fi
5660fi
5661AWK=$ac_cv_prog_AWK
5662if test -n "$AWK"; then
5663  echo "$as_me:$LINENO: result: $AWK" >&5
5664echo "${ECHO_T}$AWK" >&6
5665else
5666  echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6
5668fi
5669
5670  test -n "$AWK" && break
5671done
5672
5673echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5674echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5675set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5676if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5677  echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679  cat >conftest.make <<\_ACEOF
5680all:
5681        @echo 'ac_maketemp="$(MAKE)"'
5682_ACEOF
5683# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5684eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5685if test -n "$ac_maketemp"; then
5686  eval ac_cv_prog_make_${ac_make}_set=yes
5687else
5688  eval ac_cv_prog_make_${ac_make}_set=no
5689fi
5690rm -f conftest.make
5691fi
5692if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5693  echo "$as_me:$LINENO: result: yes" >&5
5694echo "${ECHO_T}yes" >&6
5695  SET_MAKE=
5696else
5697  echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699  SET_MAKE="MAKE=${MAKE-make}"
5700fi
5701
5702rm -rf .tst 2>/dev/null
5703mkdir .tst 2>/dev/null
5704if test -d .tst; then
5705  am__leading_dot=.
5706else
5707  am__leading_dot=_
5708fi
5709rmdir .tst 2>/dev/null
5710
5711DEPDIR="${am__leading_dot}deps"
5712
5713          ac_config_commands="$ac_config_commands depfiles"
5714
5715
5716am_make=${MAKE-make}
5717cat > confinc << 'END'
5718am__doit:
5719        @echo done
5720.PHONY: am__doit
5721END
5722# If we don't find an include directive, just comment out the code.
5723echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5724echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5725am__include="#"
5726am__quote=
5727_am_result=none
5728# First try GNU make style include.
5729echo "include confinc" > confmf
5730# We grep out `Entering directory' and `Leaving directory'
5731# messages which can occur if `w' ends up in MAKEFLAGS.
5732# In particular we don't look at `^make:' because GNU make might
5733# be invoked under some other name (usually "gmake"), in which
5734# case it prints its new name instead of `make'.
5735if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5736   am__include=include
5737   am__quote=
5738   _am_result=GNU
5739fi
5740# Now try BSD make style include.
5741if test "$am__include" = "#"; then
5742   echo '.include "confinc"' > confmf
5743   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5744      am__include=.include
5745      am__quote="\""
5746      _am_result=BSD
5747   fi
5748fi
5749
5750
5751echo "$as_me:$LINENO: result: $_am_result" >&5
5752echo "${ECHO_T}$_am_result" >&6
5753rm -f confinc confmf
5754
5755# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5756if test "${enable_dependency_tracking+set}" = set; then
5757  enableval="$enable_dependency_tracking"
5758
5759fi;
5760if test "x$enable_dependency_tracking" != xno; then
5761  am_depcomp="$ac_aux_dir/depcomp"
5762  AMDEPBACKSLASH='\'
5763fi
5764
5765
5766if test "x$enable_dependency_tracking" != xno; then
5767  AMDEP_TRUE=
5768  AMDEP_FALSE='#'
5769else
5770  AMDEP_TRUE='#'
5771  AMDEP_FALSE=
5772fi
5773
5774
5775
5776
5777
5778
5779# AC_MSG_NOTICE([Beginning automake initialisation.])
5780# Stuff for automake
5781# test to see if srcdir already configured
5782if test "`cd $srcdir && pwd`" != "`pwd`" &&
5783   test -f $srcdir/config.status; then
5784  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5785echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5786   { (exit 1); exit 1; }; }
5787fi
5788
5789# test whether we have cygpath
5790if test -z "$CYGPATH_W"; then
5791  if (cygpath --version) >/dev/null 2>/dev/null; then
5792    CYGPATH_W='cygpath -w'
5793  else
5794    CYGPATH_W=echo
5795  fi
5796fi
5797
5798
5799# Define the identity of the package.
5800 PACKAGE='thirdpartyhsl'
5801 VERSION='1.4'
5802
5803
5804cat >>confdefs.h <<_ACEOF
5805#define PACKAGE "$PACKAGE"
5806_ACEOF
5807
5808
5809cat >>confdefs.h <<_ACEOF
5810#define VERSION "$VERSION"
5811_ACEOF
5812
5813# Some tools Automake needs.
5814
5815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5816
5817
5818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5819
5820
5821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5822
5823
5824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5825
5826
5827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5828
5829install_sh=${install_sh-"$am_aux_dir/install-sh"}
5830
5831# Installed binaries are usually stripped using `strip' when the user
5832# run `make install-strip'.  However `strip' might not be the right
5833# tool to use in cross-compilation environments, therefore Automake
5834# will honor the `STRIP' environment variable to overrule this program.
5835if test "$cross_compiling" != no; then
5836  if test -n "$ac_tool_prefix"; then
5837  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}strip; ac_word=$2
5839echo "$as_me:$LINENO: checking for $ac_word" >&5
5840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841if test "${ac_cv_prog_STRIP+set}" = set; then
5842  echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844  if test -n "$STRIP"; then
5845  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850  IFS=$as_save_IFS
5851  test -z "$as_dir" && as_dir=.
5852  for ac_exec_ext in '' $ac_executable_extensions; do
5853  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856    break 2
5857  fi
5858done
5859done
5860
5861fi
5862fi
5863STRIP=$ac_cv_prog_STRIP
5864if test -n "$STRIP"; then
5865  echo "$as_me:$LINENO: result: $STRIP" >&5
5866echo "${ECHO_T}$STRIP" >&6
5867else
5868  echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
5870fi
5871
5872fi
5873if test -z "$ac_cv_prog_STRIP"; then
5874  ac_ct_STRIP=$STRIP
5875  # Extract the first word of "strip", so it can be a program name with args.
5876set dummy strip; ac_word=$2
5877echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5880  echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882  if test -n "$ac_ct_STRIP"; then
5883  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888  IFS=$as_save_IFS
5889  test -z "$as_dir" && as_dir=.
5890  for ac_exec_ext in '' $ac_executable_extensions; do
5891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892    ac_cv_prog_ac_ct_STRIP="strip"
5893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894    break 2
5895  fi
5896done
5897done
5898
5899  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5900fi
5901fi
5902ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5903if test -n "$ac_ct_STRIP"; then
5904  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5905echo "${ECHO_T}$ac_ct_STRIP" >&6
5906else
5907  echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
5909fi
5910
5911  STRIP=$ac_ct_STRIP
5912else
5913  STRIP="$ac_cv_prog_STRIP"
5914fi
5915
5916fi
5917INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5918
5919# We need awk for the "check" target.  The system "awk" is bad on
5920# some platforms.
5921# Always define AMTAR for backward compatibility.
5922
5923AMTAR=${AMTAR-"${am_missing_run}tar"}
5924
5925am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5926
5927
5928
5929
5930depcc="$CC"   am_compiler_list=
5931
5932echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5933echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5934if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5935  echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5938  # We make a subdir and do the tests there.  Otherwise we can end up
5939  # making bogus files that we don't know about and never remove.  For
5940  # instance it was reported that on HP-UX the gcc test will end up
5941  # making a dummy file named `D' -- because `-MD' means `put the output
5942  # in D'.
5943  mkdir conftest.dir
5944  # Copy depcomp to subdir because otherwise we won't find it if we're
5945  # using a relative directory.
5946  cp "$am_depcomp" conftest.dir
5947  cd conftest.dir
5948  # We will build objects and dependencies in a subdirectory because
5949  # it helps to detect inapplicable dependency modes.  For instance
5950  # both Tru64's cc and ICC support -MD to output dependencies as a
5951  # side effect of compilation, but ICC will put the dependencies in
5952  # the current directory while Tru64 will put them in the object
5953  # directory.
5954  mkdir sub
5955
5956  am_cv_CC_dependencies_compiler_type=none
5957  if test "$am_compiler_list" = ""; then
5958     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5959  fi
5960  for depmode in $am_compiler_list; do
5961    # Setup a source with many dependencies, because some compilers
5962    # like to wrap large dependency lists on column 80 (with \), and
5963    # we should not choose a depcomp mode which is confused by this.
5964    #
5965    # We need to recreate these files for each test, as the compiler may
5966    # overwrite some of them when testing with obscure command lines.
5967    # This happens at least with the AIX C compiler.
5968    : > sub/conftest.c
5969    for i in 1 2 3 4 5 6; do
5970      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5971      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5972      # Solaris 8's {/usr,}/bin/sh.
5973      touch sub/conftst$i.h
5974    done
5975    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5976
5977    case $depmode in
5978    nosideeffect)
5979      # after this tag, mechanisms are not by side-effect, so they'll
5980      # only be used when explicitly requested
5981      if test "x$enable_dependency_tracking" = xyes; then
5982        continue
5983      else
5984        break
5985      fi
5986      ;;
5987    none) break ;;
5988    esac
5989    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5990    # mode.  It turns out that the SunPro C++ compiler does not properly
5991    # handle `-M -o', and we need to detect this.
5992    if depmode=$depmode \
5993       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5994       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5995       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5996         >/dev/null 2>conftest.err &&
5997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5998       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6000      # icc doesn't choke on unknown options, it will just issue warnings
6001      # or remarks (even with -Werror).  So we grep stderr for any message
6002      # that says an option was ignored or not supported.
6003      # When given -MP, icc 7.0 and 7.1 complain thusly:
6004      #   icc: Command line warning: ignoring option '-M'; no argument required
6005      # The diagnosis changed in icc 8.0:
6006      #   icc: Command line remark: option '-MP' not supported
6007      if (grep 'ignoring option' conftest.err ||
6008          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6009        am_cv_CC_dependencies_compiler_type=$depmode
6010        break
6011      fi
6012    fi
6013  done
6014
6015  cd ..
6016  rm -rf conftest.dir
6017else
6018  am_cv_CC_dependencies_compiler_type=none
6019fi
6020
6021fi
6022echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6023echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6025
6026
6027
6028if
6029  test "x$enable_dependency_tracking" != xno \
6030  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6031  am__fastdepCC_TRUE=
6032  am__fastdepCC_FALSE='#'
6033else
6034  am__fastdepCC_TRUE='#'
6035  am__fastdepCC_FALSE=
6036fi
6037
6038
6039
6040echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6041echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6042    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6043if test "${enable_maintainer_mode+set}" = set; then
6044  enableval="$enable_maintainer_mode"
6045  USE_MAINTAINER_MODE=$enableval
6046else
6047  USE_MAINTAINER_MODE=no
6048fi;
6049  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6050echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6051
6052
6053if test $USE_MAINTAINER_MODE = yes; then
6054  MAINTAINER_MODE_TRUE=
6055  MAINTAINER_MODE_FALSE='#'
6056else
6057  MAINTAINER_MODE_TRUE='#'
6058  MAINTAINER_MODE_FALSE=
6059fi
6060
6061  MAINT=$MAINTAINER_MODE_TRUE
6062
6063
6064
6065coin_have_externals=no
6066if test "$enable_maintainer_mode" = yes; then
6067
6068  # If maintainer mode is chosen, we make sure that the correct versions
6069  # of the tools are used, and that we know where libtool.m4 is (to
6070  # recreate acinclude.m4)
6071
6072
6073  LIBTOOLM4=
6074  # Normally, $HOME
6075  AUTOTOOLS_DFLT=$HOME
6076
6077  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6078echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6079if test "${ac_cv_use_correct_autotools+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082  ac_cv_use_correct_autotools=check
6083fi
6084echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6085echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6086
6087  if test $ac_cv_use_correct_autotools = check; then
6088    ac_cv_use_correct_autotools=yes
6089    # Check if we have autoconf
6090    # Extract the first word of "autoconf", so it can be a program name with args.
6091set dummy autoconf; ac_word=$2
6092echo "$as_me:$LINENO: checking for $ac_word" >&5
6093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094if test "${ac_cv_prog_have_autoconf+set}" = set; then
6095  echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097  if test -n "$have_autoconf"; then
6098  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103  IFS=$as_save_IFS
6104  test -z "$as_dir" && as_dir=.
6105  for ac_exec_ext in '' $ac_executable_extensions; do
6106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107    ac_cv_prog_have_autoconf="yes"
6108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109    break 2
6110  fi
6111done
6112done
6113
6114  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6115fi
6116fi
6117have_autoconf=$ac_cv_prog_have_autoconf
6118if test -n "$have_autoconf"; then
6119  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6120echo "${ECHO_T}$have_autoconf" >&6
6121else
6122  echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6
6124fi
6125
6126    if test $have_autoconf = no; then
6127      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6128echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6129   { (exit 1); exit 1; }; }
6130    fi
6131
6132    # Check whether autoconf is the correct version
6133    correct_version='2.59'
6134    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6135    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6136echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6137    autoconf --version > confauto.out 2>&1
6138    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6139      echo "$as_me:$LINENO: result: yes" >&5
6140echo "${ECHO_T}yes" >&6
6141    else
6142      rm -f confauto.out
6143      echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6146echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6147   { (exit 1); exit 1; }; }
6148    fi
6149    rm -f confauto.out
6150
6151    # Check if the executable autoconf is picked up from the correct location
6152    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6153echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6154    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6155    autoconf_dir=`cd $autoconf_dir; pwd`
6156    if test x$AUTOTOOLS_DIR = x; then
6157      want_dir=$AUTOTOOLS_DFLT/bin
6158    else
6159      want_dir=$AUTOTOOLS_DIR/bin
6160    fi
6161    if test $autoconf_dir = `cd $want_dir; pwd`; then
6162      echo "$as_me:$LINENO: result: yes" >&5
6163echo "${ECHO_T}yes" >&6
6164    else
6165      rm -f confauto.out
6166      echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6
6168      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6169echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6170   { (exit 1); exit 1; }; }
6171    fi
6172
6173    # Check if we have automake
6174    # Extract the first word of "automake", so it can be a program name with args.
6175set dummy automake; ac_word=$2
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_have_automake+set}" = set; then
6179  echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181  if test -n "$have_automake"; then
6182  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189  for ac_exec_ext in '' $ac_executable_extensions; do
6190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191    ac_cv_prog_have_automake="yes"
6192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196done
6197
6198  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6199fi
6200fi
6201have_automake=$ac_cv_prog_have_automake
6202if test -n "$have_automake"; then
6203  echo "$as_me:$LINENO: result: $have_automake" >&5
6204echo "${ECHO_T}$have_automake" >&6
6205else
6206  echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208fi
6209
6210    if test $have_automake = no; then
6211      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6212echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6213   { (exit 1); exit 1; }; }
6214    fi
6215
6216    # Check whether automake is the correct version
6217    correct_version='1.9.6'
6218    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6219    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6220echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6221    automake --version > confauto.out 2>&1
6222    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6223      echo "$as_me:$LINENO: result: yes" >&5
6224echo "${ECHO_T}yes" >&6
6225    else
6226      rm -f confauto.out
6227      echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6230echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6231   { (exit 1); exit 1; }; }
6232    fi
6233    rm -f confauto.out
6234
6235    # Check if the executable automake is picked up from the correct location
6236    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6237echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6238    automake_dir=`which automake | sed -e 's=/automake=='`
6239    automake_dir=`cd $automake_dir; pwd`
6240    if test x$AUTOTOOLS_DIR = x; then
6241      want_dir=$AUTOTOOLS_DFLT/bin
6242    else
6243      want_dir=$AUTOTOOLS_DIR/bin
6244    fi
6245    if test $automake_dir = `cd $want_dir; pwd`; then
6246      echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248    else
6249      rm -f confauto.out
6250      echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6253echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6254   { (exit 1); exit 1; }; }
6255    fi
6256
6257    # Check if this is the correct version of libtool (with escaped dots)
6258    if test x$AUTOTOOLS_DIR = x; then
6259      want_dir=$AUTOTOOLS_DFLT/share
6260    else
6261      want_dir=$AUTOTOOLS_DIR/share
6262    fi
6263    correct_version='1.5.22'
6264    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6265    if test -r $want_dir/libtool/ltmain.sh; then
6266  have_ltmain=yes
6267  :
6268else
6269  have_ltmain=no
6270  :
6271fi
6272
6273    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6274echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6275    if test $have_ltmain = yes; then
6276    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6277        echo "$as_me:$LINENO: result: yes" >&5
6278echo "${ECHO_T}yes" >&6
6279      else
6280        echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6
6282        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6283echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6284   { (exit 1); exit 1; }; }
6285      fi
6286    else
6287      echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
6289      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6290echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6291   { (exit 1); exit 1; }; }
6292    fi
6293  fi
6294
6295  # Check if we can find the libtool file
6296  if test x$AUTOTOOLS_DIR = x; then
6297    want_dir=$AUTOTOOLS_DFLT/share
6298  else
6299    want_dir=$AUTOTOOLS_DIR/share
6300  fi
6301  if test -r $want_dir/aclocal/libtool.m4; then
6302  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6303  :
6304else
6305  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6306echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6307   { (exit 1); exit 1; }; }
6308  :
6309fi
6310
6311
6312  # Check if we have an Dependencies file
6313  if test -r $srcdir/Dependencies; then
6314    coin_have_externals=yes
6315  fi
6316  # Check if subversion is installed and understands https
6317  # Extract the first word of "svn", so it can be a program name with args.
6318set dummy svn; ac_word=$2
6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321if test "${ac_cv_prog_have_svn+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  if test -n "$have_svn"; then
6325  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330  IFS=$as_save_IFS
6331  test -z "$as_dir" && as_dir=.
6332  for ac_exec_ext in '' $ac_executable_extensions; do
6333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334    ac_cv_prog_have_svn="yes"
6335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339done
6340
6341  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6342fi
6343fi
6344have_svn=$ac_cv_prog_have_svn
6345if test -n "$have_svn"; then
6346  echo "$as_me:$LINENO: result: $have_svn" >&5
6347echo "${ECHO_T}$have_svn" >&6
6348else
6349  echo "$as_me:$LINENO: result: no" >&5
6350echo "${ECHO_T}no" >&6
6351fi
6352
6353  if test x$have_svn = xyes; then
6354    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6355echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6356if test "${ac_cv_svn_understands_https+set}" = set; then
6357  echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
6359  svn --version > confauto.out 2>&1
6360                    if $EGREP https confauto.out >/dev/null 2>&1; then
6361                      ac_cv_svn_understands_https=yes
6362                    else
6363                      ac_cv_svn_understands_https=no
6364                      have_svn=no
6365                      ac_cv_prog_have_svn=no
6366                    fi
6367                    rm -f confauto.out
6368fi
6369echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6370echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6371  fi
6372
6373  # Find the location of the BuildTools directory
6374  BUILDTOOLSDIR=
6375  if test -r $srcdir/BuildTools/coin.m4; then
6376    BUILDTOOLSDIR=$srcdir/BuildTools
6377  else
6378    if test -r $srcdir/../BuildTools/coin.m4; then
6379      BUILDTOOLSDIR=$srcdir/../BuildTools
6380    else
6381      if test -r $srcdir/../../BuildTools/coin.m4; then
6382        BUILDTOOLSDIR=$srcdir/../../BuildTools
6383      else
6384        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6385echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6386   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6387      fi
6388    fi
6389  fi
6390
6391
6392  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6393  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6394    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6395  fi
6396
6397  # The following variable is set to the name of the directory where
6398  # the autotool scripts are located
6399
6400  AUX_DIR=$ac_aux_dir
6401fi
6402
6403# helpful variable for the base directory of this package
6404abs_source_dir=`cd $srcdir; pwd`
6405
6406
6407# Stuff for example Makefiles
6408if test x$prefix = xNONE; then
6409  full_prefix=$ac_default_prefix
6410else
6411  full_prefix=$prefix
6412fi
6413full_prefix=`cd $full_prefix ; pwd`
6414
6415abs_lib_dir=$full_prefix/lib
6416
6417abs_include_dir=$full_prefix/include
6418
6419abs_bin_dir=$full_prefix/bin
6420
6421
6422
6423if test $coin_have_externals = yes && test x$have_svn = xyes; then
6424  HAVE_EXTERNALS_TRUE=
6425  HAVE_EXTERNALS_FALSE='#'
6426else
6427  HAVE_EXTERNALS_TRUE='#'
6428  HAVE_EXTERNALS_FALSE=
6429fi
6430
6431
6432# AC_MSG_NOTICE([End automake initialisation.])
6433
6434
6435
6436LIBTOOL=
6437if test -r ../libtool; then
6438  coin_config_dir=..
6439  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6440fi
6441if test "x$LIBTOOL" = x; then
6442  if test -r ../../libtool; then
6443    coin_config_dir=../..
6444    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6445  fi
6446fi
6447
6448if test "x$LIBTOOL" = x; then
6449# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6450  # Stuff for libtool
6451  # Check whether --enable-shared or --disable-shared was given.
6452if test "${enable_shared+set}" = set; then
6453  enableval="$enable_shared"
6454  p=${PACKAGE-default}
6455    case $enableval in
6456    yes) enable_shared=yes ;;
6457    no) enable_shared=no ;;
6458    *)
6459      enable_shared=no
6460      # Look at the argument we got.  We use all the common list separators.
6461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6462      for pkg in $enableval; do
6463        IFS="$lt_save_ifs"
6464        if test "X$pkg" = "X$p"; then
6465          enable_shared=yes
6466        fi
6467      done
6468      IFS="$lt_save_ifs"
6469      ;;
6470    esac
6471else
6472  enable_shared=yes
6473fi;
6474
6475# Check whether --enable-fast-install or --disable-fast-install was given.
6476if test "${enable_fast_install+set}" = set; then
6477  enableval="$enable_fast_install"
6478  p=${PACKAGE-default}
6479    case $enableval in
6480    yes) enable_fast_install=yes ;;
6481    no) enable_fast_install=no ;;
6482    *)
6483      enable_fast_install=no
6484      # Look at the argument we got.  We use all the common list separators.
6485      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6486      for pkg in $enableval; do
6487        IFS="$lt_save_ifs"
6488        if test "X$pkg" = "X$p"; then
6489          enable_fast_install=yes
6490        fi
6491      done
6492      IFS="$lt_save_ifs"
6493      ;;
6494    esac
6495else
6496  enable_fast_install=yes
6497fi;
6498
6499echo "$as_me:$LINENO: checking host system type" >&5
6500echo $ECHO_N "checking host system type... $ECHO_C" >&6
6501if test "${ac_cv_host+set}" = set; then
6502  echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504  ac_cv_host_alias=$host_alias
6505test -z "$ac_cv_host_alias" &&
6506  ac_cv_host_alias=$ac_cv_build_alias
6507ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6508  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6509echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6510   { (exit 1); exit 1; }; }
6511
6512fi
6513echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6514echo "${ECHO_T}$ac_cv_host" >&6
6515host=$ac_cv_host
6516host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6517host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6518host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6519
6520
6521echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6522echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6523if test "${lt_cv_path_SED+set}" = set; then
6524  echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526  # Loop through the user's path and test for sed and gsed.
6527# Then use that list of sed's as ones to test for truncation.
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531  IFS=$as_save_IFS
6532  test -z "$as_dir" && as_dir=.
6533  for lt_ac_prog in sed gsed; do
6534    for ac_exec_ext in '' $ac_executable_extensions; do
6535      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6536        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6537      fi
6538    done
6539  done
6540done
6541lt_ac_max=0
6542lt_ac_count=0
6543# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6544# along with /bin/sed that truncates output.
6545for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6546  test ! -f $lt_ac_sed && continue
6547  cat /dev/null > conftest.in
6548  lt_ac_count=0
6549  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6550  # Check for GNU sed and select it if it is found.
6551  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6552    lt_cv_path_SED=$lt_ac_sed
6553    break
6554  fi
6555  while true; do
6556    cat conftest.in conftest.in >conftest.tmp
6557    mv conftest.tmp conftest.in
6558    cp conftest.in conftest.nl
6559    echo >>conftest.nl
6560    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6561    cmp -s conftest.out conftest.nl || break
6562    # 10000 chars as input seems more than enough
6563    test $lt_ac_count -gt 10 && break
6564    lt_ac_count=`expr $lt_ac_count + 1`
6565    if test $lt_ac_count -gt $lt_ac_max; then
6566      lt_ac_max=$lt_ac_count
6567      lt_cv_path_SED=$lt_ac_sed
6568    fi
6569  done
6570done
6571
6572fi
6573
6574SED=$lt_cv_path_SED
6575echo "$as_me:$LINENO: result: $SED" >&5
6576echo "${ECHO_T}$SED" >&6
6577
6578
6579# Check whether --with-gnu-ld or --without-gnu-ld was given.
6580if test "${with_gnu_ld+set}" = set; then
6581  withval="$with_gnu_ld"
6582  test "$withval" = no || with_gnu_ld=yes
6583else
6584  with_gnu_ld=no
6585fi;
6586ac_prog=ld
6587if test "$GCC" = yes; then
6588  # Check if gcc -print-prog-name=ld gives a path.
6589  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6590echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6591  case $host in
6592  *-*-mingw*)
6593    # gcc leaves a trailing carriage return which upsets mingw
6594    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6595  *)
6596    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6597  esac
6598  case $ac_prog in
6599    # Accept absolute paths.
6600    [\\/]* | ?:[\\/]*)
6601      re_direlt='/[^/][^/]*/\.\./'
6602      # Canonicalize the pathname of ld
6603      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6604      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6605        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6606      done
6607      test -z "$LD" && LD="$ac_prog"
6608      ;;
6609  "")
6610    # If it fails, then pretend we aren't using GCC.
6611    ac_prog=ld
6612    ;;
6613  *)
6614    # If it is relative, then search for the first ld in PATH.
6615    with_gnu_ld=unknown
6616    ;;
6617  esac
6618elif test "$with_gnu_ld" = yes; then
6619  echo "$as_me:$LINENO: checking for GNU ld" >&5
6620echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6621else
6622  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6623echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6624fi
6625if test "${lt_cv_path_LD+set}" = set; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628  if test -z "$LD"; then
6629  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6630  for ac_dir in $PATH; do
6631    IFS="$lt_save_ifs"
6632    test -z "$ac_dir" && ac_dir=.
6633    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6634      lt_cv_path_LD="$ac_dir/$ac_prog"
6635      # Check to see if the program is GNU ld.  I'd rather use --version,
6636      # but apparently some variants of GNU ld only accept -v.
6637      # Break only if it was the GNU/non-GNU ld that we prefer.
6638      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6639      *GNU* | *'with BFD'*)
6640        test "$with_gnu_ld" != no && break
6641        ;;
6642      *)
6643        test "$with_gnu_ld" != yes && break
6644        ;;
6645      esac
6646    fi
6647  done
6648  IFS="$lt_save_ifs"
6649else
6650  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6651fi
6652fi
6653
6654LD="$lt_cv_path_LD"
6655if test -n "$LD"; then
6656  echo "$as_me:$LINENO: result: $LD" >&5
6657echo "${ECHO_T}$LD" >&6
6658else
6659  echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
6661fi
6662test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6663echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6664   { (exit 1); exit 1; }; }
6665echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6666echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6667if test "${lt_cv_prog_gnu_ld+set}" = set; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6671case `$LD -v 2>&1 </dev/null` in
6672*GNU* | *'with BFD'*)
6673  lt_cv_prog_gnu_ld=yes
6674  ;;
6675*)
6676  lt_cv_prog_gnu_ld=no
6677  ;;
6678esac
6679fi
6680echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6681echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6682with_gnu_ld=$lt_cv_prog_gnu_ld
6683
6684
6685echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6686echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6687if test "${lt_cv_ld_reload_flag+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  lt_cv_ld_reload_flag='-r'
6691fi
6692echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6693echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6694reload_flag=$lt_cv_ld_reload_flag
6695case $reload_flag in
6696"" | " "*) ;;
6697*) reload_flag=" $reload_flag" ;;
6698esac
6699reload_cmds='$LD$reload_flag -o $output$reload_objs'
6700case $host_os in
6701  darwin*)
6702    if test "$GCC" = yes; then
6703      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6704    else
6705      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6706    fi
6707    ;;
6708esac
6709
6710echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6711echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6712if test "${lt_cv_path_NM+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715  if test -n "$NM"; then
6716  # Let the user override the test.
6717  lt_cv_path_NM="$NM"
6718else
6719  lt_nm_to_check="${ac_tool_prefix}nm"
6720  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6721    lt_nm_to_check="$lt_nm_to_check nm"
6722  fi
6723  for lt_tmp_nm in $lt_nm_to_check; do
6724    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6725    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6726      IFS="$lt_save_ifs"
6727      test -z "$ac_dir" && ac_dir=.
6728      tmp_nm="$ac_dir/$lt_tmp_nm"
6729      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6730        # Check to see if the nm accepts a BSD-compat flag.
6731        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6732        #   nm: unknown option "B" ignored
6733        # Tru64's nm complains that /dev/null is an invalid object file
6734        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6735        */dev/null* | *'Invalid file or object type'*)
6736          lt_cv_path_NM="$tmp_nm -B"
6737          break
6738          ;;
6739        *)
6740          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6741          */dev/null*)
6742            lt_cv_path_NM="$tmp_nm -p"
6743            break
6744            ;;
6745          *)
6746            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6747            continue # so that we can try to find one that supports BSD flags
6748            ;;
6749          esac
6750          ;;
6751        esac
6752      fi
6753    done
6754    IFS="$lt_save_ifs"
6755  done
6756  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6757fi
6758fi
6759echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6760echo "${ECHO_T}$lt_cv_path_NM" >&6
6761NM="$lt_cv_path_NM"
6762
6763echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6764echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6765if test "${lt_cv_deplibs_check_method+set}" = set; then
6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768  lt_cv_file_magic_cmd='$MAGIC_CMD'
6769lt_cv_file_magic_test_file=
6770lt_cv_deplibs_check_method='unknown'
6771# Need to set the preceding variable on all platforms that support
6772# interlibrary dependencies.
6773# 'none' -- dependencies not supported.
6774# `unknown' -- same as none, but documents that we really don't know.
6775# 'pass_all' -- all dependencies passed with no checks.
6776# 'test_compile' -- check by making test program.
6777# 'file_magic [[regex]]' -- check by looking for files in library path
6778# which responds to the $file_magic_cmd with a given extended regex.
6779# If you have `file' or equivalent on your system and you're not sure
6780# whether `pass_all' will *always* work, you probably want this one.
6781
6782case $host_os in
6783aix4* | aix5*)
6784  lt_cv_deplibs_check_method=pass_all
6785  ;;
6786
6787beos*)
6788  lt_cv_deplibs_check_method=pass_all
6789  ;;
6790
6791bsdi[45]*)
6792  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6793  lt_cv_file_magic_cmd='/usr/bin/file -L'
6794  lt_cv_file_magic_test_file=/shlib/libc.so
6795  ;;
6796
6797cygwin*)
6798  # func_win32_libid is a shell function defined in ltmain.sh
6799  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6800  lt_cv_file_magic_cmd='func_win32_libid'
6801  ;;
6802
6803mingw* | pw32*)
6804  # Base MSYS/MinGW do not provide the 'file' command needed by
6805  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6806  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6807  lt_cv_file_magic_cmd='$OBJDUMP -f'
6808  ;;
6809
6810darwin* | rhapsody*)
6811  lt_cv_deplibs_check_method=pass_all
6812  ;;
6813
6814freebsd* | kfreebsd*-gnu | dragonfly*)
6815  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6816    case $host_cpu in
6817    i*86 )
6818      # Not sure whether the presence of OpenBSD here was a mistake.
6819      # Let's accept both of them until this is cleared up.
6820      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6821      lt_cv_file_magic_cmd=/usr/bin/file
6822      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6823      ;;
6824    esac
6825  else
6826    lt_cv_deplibs_check_method=pass_all
6827  fi
6828  ;;
6829
6830gnu*)
6831  lt_cv_deplibs_check_method=pass_all
6832  ;;
6833
6834hpux10.20* | hpux11*)
6835  lt_cv_file_magic_cmd=/usr/bin/file
6836  case $host_cpu in
6837  ia64*)
6838    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6839    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6840    ;;
6841  hppa*64*)
6842    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]'
6843    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6844    ;;
6845  *)
6846    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6847    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6848    ;;
6849  esac
6850  ;;
6851
6852interix3*)
6853  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6854  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6855  ;;
6856
6857irix5* | irix6* | nonstopux*)
6858  case $LD in
6859  *-32|*"-32 ") libmagic=32-bit;;
6860  *-n32|*"-n32 ") libmagic=N32;;
6861  *-64|*"-64 ") libmagic=64-bit;;
6862  *) libmagic=never-match;;
6863  esac
6864  lt_cv_deplibs_check_method=pass_all
6865  ;;
6866
6867# This must be Linux ELF.
6868linux*)
6869  lt_cv_deplibs_check_method=pass_all
6870  ;;
6871
6872netbsd*)
6873  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6874    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6875  else
6876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6877  fi
6878  ;;
6879
6880newos6*)
6881  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6882  lt_cv_file_magic_cmd=/usr/bin/file
6883  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6884  ;;
6885
6886nto-qnx*)
6887  lt_cv_deplibs_check_method=unknown
6888  ;;
6889
6890openbsd*)
6891  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6892    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6893  else
6894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6895  fi
6896  ;;
6897
6898osf3* | osf4* | osf5*)
6899  lt_cv_deplibs_check_method=pass_all
6900  ;;
6901
6902solaris*)
6903  lt_cv_deplibs_check_method=pass_all
6904  ;;
6905
6906sysv4 | sysv4.3*)
6907  case $host_vendor in
6908  motorola)
6909    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]'
6910    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6911    ;;
6912  ncr)
6913    lt_cv_deplibs_check_method=pass_all
6914    ;;
6915  sequent)
6916    lt_cv_file_magic_cmd='/bin/file'
6917    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6918    ;;
6919  sni)
6920    lt_cv_file_magic_cmd='/bin/file'
6921    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6922    lt_cv_file_magic_test_file=/lib/libc.so
6923    ;;
6924  siemens)
6925    lt_cv_deplibs_check_method=pass_all
6926    ;;
6927  pc)
6928    lt_cv_deplibs_check_method=pass_all
6929    ;;
6930  esac
6931  ;;
6932
6933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6934  lt_cv_deplibs_check_method=pass_all
6935  ;;
6936esac
6937
6938fi
6939echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6940echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6941file_magic_cmd=$lt_cv_file_magic_cmd
6942deplibs_check_method=$lt_cv_deplibs_check_method
6943test -z "$deplibs_check_method" && deplibs_check_method=unknown
6944
6945
6946
6947
6948# If no C compiler was specified, use CC.
6949LTCC=${LTCC-"$CC"}
6950
6951# If no C compiler flags were specified, use CFLAGS.
6952LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6953
6954# Allow CC to be a program name with arguments.
6955compiler=$CC
6956
6957# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6958if test "${enable_libtool_lock+set}" = set; then
6959  enableval="$enable_libtool_lock"
6960
6961fi;
6962test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6963
6964# Some flags need to be propagated to the compiler or linker for good
6965# libtool support.
6966case $host in
6967ia64-*-hpux*)
6968  # Find out which ABI we are using.
6969  echo 'int i;' > conftest.$ac_ext
6970  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971  (eval $ac_compile) 2>&5
6972  ac_status=$?
6973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974  (exit $ac_status); }; then
6975    case `/usr/bin/file conftest.$ac_objext` in
6976    *ELF-32*)
6977      HPUX_IA64_MODE="32"
6978      ;;
6979    *ELF-64*)
6980      HPUX_IA64_MODE="64"
6981      ;;
6982    esac
6983  fi
6984  rm -rf conftest*
6985  ;;
6986*-*-irix6*)
6987  # Find out which ABI we are using.
6988  echo '#line 6988 "configure"' > conftest.$ac_ext
6989  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990  (eval $ac_compile) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; then
6994   if test "$lt_cv_prog_gnu_ld" = yes; then
6995    case `/usr/bin/file conftest.$ac_objext` in
6996    *32-bit*)
6997      LD="${LD-ld} -melf32bsmip"
6998      ;;
6999    *N32*)
7000      LD="${LD-ld} -melf32bmipn32"
7001      ;;
7002    *64-bit*)
7003      LD="${LD-ld} -melf64bmip"
7004      ;;
7005    esac
7006   else
7007    case `/usr/bin/file conftest.$ac_objext` in
7008    *32-bit*)
7009      LD="${LD-ld} -32"
7010      ;;
7011    *N32*)
7012      LD="${LD-ld} -n32"
7013      ;;
7014    *64-bit*)
7015      LD="${LD-ld} -64"
7016      ;;
7017    esac
7018   fi
7019  fi
7020  rm -rf conftest*
7021  ;;
7022
7023x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7024  # Find out which ABI we are using.
7025  echo 'int i;' > conftest.$ac_ext
7026  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027  (eval $ac_compile) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); }; then
7031    case `/usr/bin/file conftest.o` in
7032    *32-bit*)
7033      case $host in
7034        x86_64-*linux*)
7035          LD="${LD-ld} -m elf_i386"
7036          ;;
7037        ppc64-*linux*|powerpc64-*linux*)
7038          LD="${LD-ld} -m elf32ppclinux"
7039          ;;
7040        s390x-*linux*)
7041          LD="${LD-ld} -m elf_s390"
7042          ;;
7043        sparc64-*linux*)
7044          LD="${LD-ld} -m elf32_sparc"
7045          ;;
7046      esac
7047      ;;
7048    *64-bit*)
7049      case $host in
7050        x86_64-*linux*)
7051          LD="${LD-ld} -m elf_x86_64"
7052          ;;
7053        ppc*-*linux*|powerpc*-*linux*)
7054          LD="${LD-ld} -m elf64ppc"
7055          ;;
7056        s390*-*linux*)
7057          LD="${LD-ld} -m elf64_s390"
7058          ;;
7059        sparc*-*linux*)
7060          LD="${LD-ld} -m elf64_sparc"
7061          ;;
7062      esac
7063      ;;
7064    esac
7065  fi
7066  rm -rf conftest*
7067  ;;
7068
7069*-*-sco3.2v5*)
7070  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7071  SAVE_CFLAGS="$CFLAGS"
7072  CFLAGS="$CFLAGS -belf"
7073  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7074echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7075if test "${lt_cv_cc_needs_belf+set}" = set; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  ac_ext=c
7079ac_cpp='$CPP $CPPFLAGS'
7080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7082ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083
7084     cat >conftest.$ac_ext <<_ACEOF
7085/* confdefs.h.  */
7086_ACEOF
7087cat confdefs.h >>conftest.$ac_ext
7088cat >>conftest.$ac_ext <<_ACEOF
7089/* end confdefs.h.  */
7090
7091#ifdef F77_DUMMY_MAIN
7092
7093#  ifdef __cplusplus
7094     extern "C"
7095#  endif
7096   int F77_DUMMY_MAIN() { return 1; }
7097
7098#endif
7099int
7100main ()
7101{
7102
7103  ;
7104  return 0;
7105}
7106_ACEOF
7107rm -f conftest.$ac_objext conftest$ac_exeext
7108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109  (eval $ac_link) 2>conftest.er1
7110  ac_status=$?
7111  grep -v '^ *+' conftest.er1 >conftest.err
7112  rm -f conftest.er1
7113  cat conftest.err >&5
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); } &&
7116         { ac_try='test -z "$ac_c_werror_flag"
7117                         || test ! -s conftest.err'
7118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119  (eval $ac_try) 2>&5
7120  ac_status=$?
7121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122  (exit $ac_status); }; } &&
7123         { ac_try='test -s conftest$ac_exeext'
7124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125  (eval $ac_try) 2>&5
7126  ac_status=$?
7127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128  (exit $ac_status); }; }; then
7129  lt_cv_cc_needs_belf=yes
7130else
7131  echo "$as_me: failed program was:" >&5
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
7134lt_cv_cc_needs_belf=no
7135fi
7136rm -f conftest.err conftest.$ac_objext \
7137      conftest$ac_exeext conftest.$ac_ext
7138     ac_ext=c
7139ac_cpp='$CPP $CPPFLAGS'
7140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144fi
7145echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7146echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7147  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7148    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7149    CFLAGS="$SAVE_CFLAGS"
7150  fi
7151  ;;
7152sparc*-*solaris*)
7153  # Find out which ABI we are using.
7154  echo 'int i;' > conftest.$ac_ext
7155  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156  (eval $ac_compile) 2>&5
7157  ac_status=$?
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); }; then
7160    case `/usr/bin/file conftest.o` in
7161    *64-bit*)
7162      case $lt_cv_prog_gnu_ld in
7163      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7164      *)    LD="${LD-ld} -64" ;;
7165      esac
7166      ;;
7167    esac
7168  fi
7169  rm -rf conftest*
7170  ;;
7171
7172
7173esac
7174
7175need_locks="$enable_libtool_lock"
7176
7177
7178ac_ext=c
7179ac_cpp='$CPP $CPPFLAGS'
7180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7184echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7185# On Suns, sometimes $CPP names a directory.
7186if test -n "$CPP" && test -d "$CPP"; then
7187  CPP=
7188fi
7189if test -z "$CPP"; then
7190  if test "${ac_cv_prog_CPP+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193      # Double quotes because CPP needs to be expanded
7194    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7195    do
7196      ac_preproc_ok=false
7197for ac_c_preproc_warn_flag in '' yes
7198do
7199  # Use a header file that comes with gcc, so configuring glibc
7200  # with a fresh cross-compiler works.
7201  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202  # <limits.h> exists even on freestanding compilers.
7203  # On the NeXT, cc -E runs the code through the compiler's parser,
7204  # not just through cpp. "Syntax error" is here to catch this case.
7205  cat >conftest.$ac_ext <<_ACEOF
7206/* confdefs.h.  */
7207_ACEOF
7208cat confdefs.h >>conftest.$ac_ext
7209cat >>conftest.$ac_ext <<_ACEOF
7210/* end confdefs.h.  */
7211#ifdef __STDC__
7212# include <limits.h>
7213#else
7214# include <assert.h>
7215#endif
7216                     Syntax error
7217_ACEOF
7218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7219  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220  ac_status=$?
7221  grep -v '^ *+' conftest.er1 >conftest.err
7222  rm -f conftest.er1
7223  cat conftest.err >&5
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } >/dev/null; then
7226  if test -s conftest.err; then
7227    ac_cpp_err=$ac_c_preproc_warn_flag
7228    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7229  else
7230    ac_cpp_err=
7231  fi
7232else
7233  ac_cpp_err=yes
7234fi
7235if test -z "$ac_cpp_err"; then
7236  :
7237else
7238  echo "$as_me: failed program was:" >&5
7239sed 's/^/| /' conftest.$ac_ext >&5
7240
7241  # Broken: fails on valid input.
7242continue
7243fi
7244rm -f conftest.err conftest.$ac_ext
7245
7246  # OK, works on sane cases.  Now check whether non-existent headers
7247  # can be detected and how.
7248  cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h.  */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h.  */
7254#include <ac_nonexistent.h>
7255_ACEOF
7256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258  ac_status=$?
7259  grep -v '^ *+' conftest.er1 >conftest.err
7260  rm -f conftest.er1
7261  cat conftest.err >&5
7262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263  (exit $ac_status); } >/dev/null; then
7264  if test -s conftest.err; then
7265    ac_cpp_err=$ac_c_preproc_warn_flag
7266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7267  else
7268    ac_cpp_err=
7269  fi
7270else
7271  ac_cpp_err=yes
7272fi
7273if test -z "$ac_cpp_err"; then
7274  # Broken: success on invalid input.
7275continue
7276else
7277  echo "$as_me: failed program was:" >&5
7278sed 's/^/| /' conftest.$ac_ext >&5
7279
7280  # Passes both tests.
7281ac_preproc_ok=:
7282break
7283fi
7284rm -f conftest.err conftest.$ac_ext
7285
7286done
7287# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7288rm -f conftest.err conftest.$ac_ext
7289if $ac_preproc_ok; then
7290  break
7291fi
7292
7293    done
7294    ac_cv_prog_CPP=$CPP
7295
7296fi
7297  CPP=$ac_cv_prog_CPP
7298else
7299  ac_cv_prog_CPP=$CPP
7300fi
7301echo "$as_me:$LINENO: result: $CPP" >&5
7302echo "${ECHO_T}$CPP" >&6
7303ac_preproc_ok=false
7304for ac_c_preproc_warn_flag in '' yes
7305do
7306  # Use a header file that comes with gcc, so configuring glibc
7307  # with a fresh cross-compiler works.
7308  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309  # <limits.h> exists even on freestanding compilers.
7310  # On the NeXT, cc -E runs the code through the compiler's parser,
7311  # not just through cpp. "Syntax error" is here to catch this case.
7312  cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318#ifdef __STDC__
7319# include <limits.h>
7320#else
7321# include <assert.h>
7322#endif
7323                     Syntax error
7324_ACEOF
7325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } >/dev/null; then
7333  if test -s conftest.err; then
7334    ac_cpp_err=$ac_c_preproc_warn_flag
7335    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7336  else
7337    ac_cpp_err=
7338  fi
7339else
7340  ac_cpp_err=yes
7341fi
7342if test -z "$ac_cpp_err"; then
7343  :
7344else
7345  echo "$as_me: failed program was:" >&5
7346sed 's/^/| /' conftest.$ac_ext >&5
7347
7348  # Broken: fails on valid input.
7349continue
7350fi
7351rm -f conftest.err conftest.$ac_ext
7352
7353  # OK, works on sane cases.  Now check whether non-existent headers
7354  # can be detected and how.
7355  cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h.  */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h.  */
7361#include <ac_nonexistent.h>
7362_ACEOF
7363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7365  ac_status=$?
7366  grep -v '^ *+' conftest.er1 >conftest.err
7367  rm -f conftest.er1
7368  cat conftest.err >&5
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); } >/dev/null; then
7371  if test -s conftest.err; then
7372    ac_cpp_err=$ac_c_preproc_warn_flag
7373    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7374  else
7375    ac_cpp_err=
7376  fi
7377else
7378  ac_cpp_err=yes
7379fi
7380if test -z "$ac_cpp_err"; then
7381  # Broken: success on invalid input.
7382continue
7383else
7384  echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5
7386
7387  # Passes both tests.
7388ac_preproc_ok=:
7389break
7390fi
7391rm -f conftest.err conftest.$ac_ext
7392
7393done
7394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7395rm -f conftest.err conftest.$ac_ext
7396if $ac_preproc_ok; then
7397  :
7398else
7399  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7400See \`config.log' for more details." >&5
7401echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7402See \`config.log' for more details." >&2;}
7403   { (exit 1); exit 1; }; }
7404fi
7405
7406ac_ext=c
7407ac_cpp='$CPP $CPPFLAGS'
7408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7410ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
7412
7413echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7414echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7415if test "${ac_cv_header_stdc+set}" = set; then
7416  echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418  cat >conftest.$ac_ext <<_ACEOF
7419/* confdefs.h.  */
7420_ACEOF
7421cat confdefs.h >>conftest.$ac_ext
7422cat >>conftest.$ac_ext <<_ACEOF
7423/* end confdefs.h.  */
7424#include <stdlib.h>
7425#include <stdarg.h>
7426#include <string.h>
7427#include <float.h>
7428
7429#ifdef F77_DUMMY_MAIN
7430
7431#  ifdef __cplusplus
7432     extern "C"
7433#  endif
7434   int F77_DUMMY_MAIN() { return 1; }
7435
7436#endif
7437int
7438main ()
7439{
7440
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445rm -f conftest.$ac_objext
7446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7447  (eval $ac_compile) 2>conftest.er1
7448  ac_status=$?
7449  grep -v '^ *+' conftest.er1 >conftest.err
7450  rm -f conftest.er1
7451  cat conftest.err >&5
7452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); } &&
7454         { ac_try='test -z "$ac_c_werror_flag"
7455                         || test ! -s conftest.err'
7456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457  (eval $ac_try) 2>&5
7458  ac_status=$?
7459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460  (exit $ac_status); }; } &&
7461         { ac_try='test -s conftest.$ac_objext'
7462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463  (eval $ac_try) 2>&5
7464  ac_status=$?
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; }; then
7467  ac_cv_header_stdc=yes
7468else
7469  echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472ac_cv_header_stdc=no
7473fi
7474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7475
7476if test $ac_cv_header_stdc = yes; then
7477  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7478  cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h.  */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h.  */
7484#include <string.h>
7485
7486_ACEOF
7487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488  $EGREP "memchr" >/dev/null 2>&1; then
7489  :
7490else
7491  ac_cv_header_stdc=no
7492fi
7493rm -f conftest*
7494
7495fi
7496
7497if test $ac_cv_header_stdc = yes; then
7498  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7499  cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h.  */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h.  */
7505#include <stdlib.h>
7506
7507_ACEOF
7508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509  $EGREP "free" >/dev/null 2>&1; then
7510  :
7511else
7512  ac_cv_header_stdc=no
7513fi
7514rm -f conftest*
7515
7516fi
7517
7518if test $ac_cv_header_stdc = yes; then
7519  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7520  if test "$cross_compiling" = yes; then
7521  :
7522else
7523  cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h.  */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h.  */
7529#include <ctype.h>
7530#if ((' ' & 0x0FF) == 0x020)
7531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7533#else
7534# define ISLOWER(c) \
7535                   (('a' <= (c) && (c) <= 'i') \
7536                     || ('j' <= (c) && (c) <= 'r') \
7537                     || ('s' <= (c) && (c) <= 'z'))
7538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7539#endif
7540
7541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7542int
7543main ()
7544{
7545  int i;
7546  for (i = 0; i < 256; i++)
7547    if (XOR (islower (i), ISLOWER (i))
7548        || toupper (i) != TOUPPER (i))
7549      exit(2);
7550  exit (0);
7551}
7552_ACEOF
7553rm -f conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555  (eval $ac_link) 2>&5
7556  ac_status=$?
7557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560  (eval $ac_try) 2>&5
7561  ac_status=$?
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); }; }; then
7564  :
7565else
7566  echo "$as_me: program exited with status $ac_status" >&5
7567echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570( exit $ac_status )
7571ac_cv_header_stdc=no
7572fi
7573rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7574fi
7575fi
7576fi
7577echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7578echo "${ECHO_T}$ac_cv_header_stdc" >&6
7579if test $ac_cv_header_stdc = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define STDC_HEADERS 1
7583_ACEOF
7584
7585fi
7586
7587# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7598                  inttypes.h stdint.h unistd.h
7599do
7600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7601echo "$as_me:$LINENO: checking for $ac_header" >&5
7602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7603if eval "test \"\${$as_ac_Header+set}\" = set"; then
7604  echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606  cat >conftest.$ac_ext <<_ACEOF
7607/* confdefs.h.  */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
7611/* end confdefs.h.  */
7612$ac_includes_default
7613
7614#include <$ac_header>
7615_ACEOF
7616rm -f conftest.$ac_objext
7617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618  (eval $ac_compile) 2>conftest.er1
7619  ac_status=$?
7620  grep -v '^ *+' conftest.er1 >conftest.err
7621  rm -f conftest.er1
7622  cat conftest.err >&5
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); } &&
7625         { ac_try='test -z "$ac_c_werror_flag"
7626                         || test ! -s conftest.err'
7627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628  (eval $ac_try) 2>&5
7629  ac_status=$?
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); }; } &&
7632         { ac_try='test -s conftest.$ac_objext'
7633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634  (eval $ac_try) 2>&5
7635  ac_status=$?
7636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); }; }; then
7638  eval "$as_ac_Header=yes"
7639else
7640  echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643eval "$as_ac_Header=no"
7644fi
7645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7646fi
7647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7649if test `eval echo '${'$as_ac_Header'}'` = yes; then
7650  cat >>confdefs.h <<_ACEOF
7651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7652_ACEOF
7653
7654fi
7655
7656done
7657
7658
7659
7660for ac_header in dlfcn.h
7661do
7662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7663if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664  echo "$as_me:$LINENO: checking for $ac_header" >&5
7665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7666if eval "test \"\${$as_ac_Header+set}\" = set"; then
7667  echo $ECHO_N "(cached) $ECHO_C" >&6
7668fi
7669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7671else
7672  # Is the header compilable?
7673echo "$as_me:$LINENO: checking $ac_header usability" >&5
7674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7675cat >conftest.$ac_ext <<_ACEOF
7676/* confdefs.h.  */
7677_ACEOF
7678cat confdefs.h >>conftest.$ac_ext
7679cat >>conftest.$ac_ext <<_ACEOF
7680/* end confdefs.h.  */
7681$ac_includes_default
7682#include <$ac_header>
7683_ACEOF
7684rm -f conftest.$ac_objext
7685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686  (eval $ac_compile) 2>conftest.er1
7687  ac_status=$?
7688  grep -v '^ *+' conftest.er1 >conftest.err
7689  rm -f conftest.er1
7690  cat conftest.err >&5
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); } &&
7693         { ac_try='test -z "$ac_c_werror_flag"
7694                         || test ! -s conftest.err'
7695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696  (eval $ac_try) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); }; } &&
7700         { ac_try='test -s conftest.$ac_objext'
7701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702  (eval $ac_try) 2>&5
7703  ac_status=$?
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); }; }; then
7706  ac_header_compiler=yes
7707else
7708  echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711ac_header_compiler=no
7712fi
7713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7715echo "${ECHO_T}$ac_header_compiler" >&6
7716
7717# Is the header present?
7718echo "$as_me:$LINENO: checking $ac_header presence" >&5
7719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7720cat >conftest.$ac_ext <<_ACEOF
7721/* confdefs.h.  */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h.  */
7726#include <$ac_header>
7727_ACEOF
7728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7730  ac_status=$?
7731  grep -v '^ *+' conftest.er1 >conftest.err
7732  rm -f conftest.er1
7733  cat conftest.err >&5
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); } >/dev/null; then
7736  if test -s conftest.err; then
7737    ac_cpp_err=$ac_c_preproc_warn_flag
7738    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7739  else
7740    ac_cpp_err=
7741  fi
7742else
7743  ac_cpp_err=yes
7744fi
7745if test -z "$ac_cpp_err"; then
7746  ac_header_preproc=yes
7747else
7748  echo "$as_me: failed program was:" >&5
7749sed 's/^/| /' conftest.$ac_ext >&5
7750
7751  ac_header_preproc=no
7752fi
7753rm -f conftest.err conftest.$ac_ext
7754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7755echo "${ECHO_T}$ac_header_preproc" >&6
7756
7757# So?  What about this header?
7758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7759  yes:no: )
7760    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7764    ac_header_preproc=yes
7765    ;;
7766  no:yes:* )
7767    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7769    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7770echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7771    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7773    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7774echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7777    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7779    (
7780      cat <<\_ASBOX
7781## --------------------------------------------------------------- ##
7782## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7783## --------------------------------------------------------------- ##
7784_ASBOX
7785    ) |
7786      sed "s/^/$as_me: WARNING:     /" >&2
7787    ;;
7788esac
7789echo "$as_me:$LINENO: checking for $ac_header" >&5
7790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7791if eval "test \"\${$as_ac_Header+set}\" = set"; then
7792  echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794  eval "$as_ac_Header=\$ac_header_preproc"
7795fi
7796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798
7799fi
7800if test `eval echo '${'$as_ac_Header'}'` = yes; then
7801  cat >>confdefs.h <<_ACEOF
7802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7803_ACEOF
7804
7805fi
7806
7807done
7808
7809ac_ext=cc
7810ac_cpp='$CXXCPP $CPPFLAGS'
7811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7814if test -n "$ac_tool_prefix"; then
7815  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7816  do
7817    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7818set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7819echo "$as_me:$LINENO: checking for $ac_word" >&5
7820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7821if test "${ac_cv_prog_CXX+set}" = set; then
7822  echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824  if test -n "$CXX"; then
7825  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7826else
7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830  IFS=$as_save_IFS
7831  test -z "$as_dir" && as_dir=.
7832  for ac_exec_ext in '' $ac_executable_extensions; do
7833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836    break 2
7837  fi
7838done
7839done
7840
7841fi
7842fi
7843CXX=$ac_cv_prog_CXX
7844if test -n "$CXX"; then
7845  echo "$as_me:$LINENO: result: $CXX" >&5
7846echo "${ECHO_T}$CXX" >&6
7847else
7848  echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6
7850fi
7851
7852    test -n "$CXX" && break
7853  done
7854fi
7855if test -z "$CXX"; then
7856  ac_ct_CXX=$CXX
7857  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7858do
7859  # Extract the first word of "$ac_prog", so it can be a program name with args.
7860set dummy $ac_prog; ac_word=$2
7861echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  if test -n "$ac_ct_CXX"; then
7867  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872  IFS=$as_save_IFS
7873  test -z "$as_dir" && as_dir=.
7874  for ac_exec_ext in '' $ac_executable_extensions; do
7875  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876    ac_cv_prog_ac_ct_CXX="$ac_prog"
7877    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878    break 2
7879  fi
7880done
7881done
7882
7883fi
7884fi
7885ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7886if test -n "$ac_ct_CXX"; then
7887  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7888echo "${ECHO_T}$ac_ct_CXX" >&6
7889else
7890  echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6
7892fi
7893
7894  test -n "$ac_ct_CXX" && break
7895done
7896test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7897
7898  CXX=$ac_ct_CXX
7899fi
7900
7901
7902# Provide some information about the compiler.
7903echo "$as_me:$LINENO:" \
7904     "checking for C++ compiler version" >&5
7905ac_compiler=`set X $ac_compile; echo $2`
7906{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7907  (eval $ac_compiler --version </dev/null >&5) 2>&5
7908  ac_status=$?
7909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910  (exit $ac_status); }
7911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7912  (eval $ac_compiler -v </dev/null >&5) 2>&5
7913  ac_status=$?
7914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915  (exit $ac_status); }
7916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7917  (eval $ac_compiler -V </dev/null >&5) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }
7921
7922echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7923echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7924if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h.  */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h.  */
7933
7934#ifdef F77_DUMMY_MAIN
7935
7936#  ifdef __cplusplus
7937     extern "C"
7938#  endif
7939   int F77_DUMMY_MAIN() { return 1; }
7940
7941#endif
7942int
7943main ()
7944{
7945#ifndef __GNUC__
7946       choke me
7947#endif
7948
7949  ;
7950  return 0;
7951}
7952_ACEOF
7953rm -f conftest.$ac_objext
7954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955  (eval $ac_compile) 2>conftest.er1
7956  ac_status=$?
7957  grep -v '^ *+' conftest.er1 >conftest.err
7958  rm -f conftest.er1
7959  cat conftest.err >&5
7960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961  (exit $ac_status); } &&
7962         { ac_try='test -z "$ac_cxx_werror_flag"
7963                         || test ! -s conftest.err'
7964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965  (eval $ac_try) 2>&5
7966  ac_status=$?
7967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968  (exit $ac_status); }; } &&
7969         { ac_try='test -s conftest.$ac_objext'
7970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971  (eval $ac_try) 2>&5
7972  ac_status=$?
7973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974  (exit $ac_status); }; }; then
7975  ac_compiler_gnu=yes
7976else
7977  echo "$as_me: failed program was:" >&5
7978sed 's/^/| /' conftest.$ac_ext >&5
7979
7980ac_compiler_gnu=no
7981fi
7982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7984
7985fi
7986echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7987echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7988GXX=`test $ac_compiler_gnu = yes && echo yes`
7989ac_test_CXXFLAGS=${CXXFLAGS+set}
7990ac_save_CXXFLAGS=$CXXFLAGS
7991CXXFLAGS="-g"
7992echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7993echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7994if test "${ac_cv_prog_cxx_g+set}" = set; then
7995  echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997  cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h.  */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h.  */
8003
8004#ifdef F77_DUMMY_MAIN
8005
8006#  ifdef __cplusplus
8007     extern "C"
8008#  endif
8009   int F77_DUMMY_MAIN() { return 1; }
8010
8011#endif
8012int
8013main ()
8014{
8015
8016  ;
8017  return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext
8021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022  (eval $ac_compile) 2>conftest.er1
8023  ac_status=$?
8024  grep -v '^ *+' conftest.er1 >conftest.err
8025  rm -f conftest.er1
8026  cat conftest.err >&5
8027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028  (exit $ac_status); } &&
8029         { ac_try='test -z "$ac_cxx_werror_flag"
8030                         || test ! -s conftest.err'
8031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032  (eval $ac_try) 2>&5
8033  ac_status=$?
8034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035  (exit $ac_status); }; } &&
8036         { ac_try='test -s conftest.$ac_objext'
8037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038  (eval $ac_try) 2>&5
8039  ac_status=$?
8040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041  (exit $ac_status); }; }; then
8042  ac_cv_prog_cxx_g=yes
8043else
8044  echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047ac_cv_prog_cxx_g=no
8048fi
8049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8050fi
8051echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8052echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8053if test "$ac_test_CXXFLAGS" = set; then
8054  CXXFLAGS=$ac_save_CXXFLAGS
8055elif test $ac_cv_prog_cxx_g = yes; then
8056  if test "$GXX" = yes; then
8057    CXXFLAGS="-g -O2"
8058  else
8059    CXXFLAGS="-g"
8060  fi
8061else
8062  if test "$GXX" = yes; then
8063    CXXFLAGS="-O2"
8064  else
8065    CXXFLAGS=
8066  fi
8067fi
8068for ac_declaration in \
8069   '' \
8070   'extern "C" void std::exit (int) throw (); using std::exit;' \
8071   'extern "C" void std::exit (int); using std::exit;' \
8072   'extern "C" void exit (int) throw ();' \
8073   'extern "C" void exit (int);' \
8074   'void exit (int);'
8075do
8076  cat >conftest.$ac_ext <<_ACEOF
8077/* confdefs.h.  */
8078_ACEOF
8079cat confdefs.h >>conftest.$ac_ext
8080cat >>conftest.$ac_ext <<_ACEOF
8081/* end confdefs.h.  */
8082$ac_declaration
8083#include <stdlib.h>
8084#ifdef F77_DUMMY_MAIN
8085
8086#  ifdef __cplusplus
8087     extern "C"
8088#  endif
8089   int F77_DUMMY_MAIN() { return 1; }
8090
8091#endif
8092int
8093main ()
8094{
8095exit (42);
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext
8101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102  (eval $ac_compile) 2>conftest.er1
8103  ac_status=$?
8104  grep -v '^ *+' conftest.er1 >conftest.err
8105  rm -f conftest.er1
8106  cat conftest.err >&5
8107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108  (exit $ac_status); } &&
8109         { ac_try='test -z "$ac_cxx_werror_flag"
8110                         || test ! -s conftest.err'
8111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112  (eval $ac_try) 2>&5
8113  ac_status=$?
8114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115  (exit $ac_status); }; } &&
8116         { ac_try='test -s conftest.$ac_objext'
8117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118  (eval $ac_try) 2>&5
8119  ac_status=$?
8120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121  (exit $ac_status); }; }; then
8122  :
8123else
8124  echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
8127continue
8128fi
8129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130  cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h.  */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h.  */
8136$ac_declaration
8137#ifdef F77_DUMMY_MAIN
8138
8139#  ifdef __cplusplus
8140     extern "C"
8141#  endif
8142   int F77_DUMMY_MAIN() { return 1; }
8143
8144#endif
8145int
8146main ()
8147{
8148exit (42);
8149  ;
8150  return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext
8154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8155  (eval $ac_compile) 2>conftest.er1
8156  ac_status=$?
8157  grep -v '^ *+' conftest.er1 >conftest.err
8158  rm -f conftest.er1
8159  cat conftest.err >&5
8160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161  (exit $ac_status); } &&
8162         { ac_try='test -z "$ac_cxx_werror_flag"
8163                         || test ! -s conftest.err'
8164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165  (eval $ac_try) 2>&5
8166  ac_status=$?
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); }; } &&
8169         { ac_try='test -s conftest.$ac_objext'
8170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171  (eval $ac_try) 2>&5
8172  ac_status=$?
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); }; }; then
8175  break
8176else
8177  echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5
8179
8180fi
8181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8182done
8183rm -f conftest*
8184if test -n "$ac_declaration"; then
8185  echo '#ifdef __cplusplus' >>confdefs.h
8186  echo $ac_declaration      >>confdefs.h
8187  echo '#endif'             >>confdefs.h
8188fi
8189
8190ac_ext=cc
8191ac_cpp='$CXXCPP $CPPFLAGS'
8192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8195
8196depcc="$CXX"  am_compiler_list=
8197
8198echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8199echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8200if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8201  echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8204  # We make a subdir and do the tests there.  Otherwise we can end up
8205  # making bogus files that we don't know about and never remove.  For
8206  # instance it was reported that on HP-UX the gcc test will end up
8207  # making a dummy file named `D' -- because `-MD' means `put the output
8208  # in D'.
8209  mkdir conftest.dir
8210  # Copy depcomp to subdir because otherwise we won't find it if we're
8211  # using a relative directory.
8212  cp "$am_depcomp" conftest.dir
8213  cd conftest.dir
8214  # We will build objects and dependencies in a subdirectory because
8215  # it helps to detect inapplicable dependency modes.  For instance
8216  # both Tru64's cc and ICC support -MD to output dependencies as a
8217  # side effect of compilation, but ICC will put the dependencies in
8218  # the current directory while Tru64 will put them in the object
8219  # directory.
8220  mkdir sub
8221
8222  am_cv_CXX_dependencies_compiler_type=none
8223  if test "$am_compiler_list" = ""; then
8224     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8225  fi
8226  for depmode in $am_compiler_list; do
8227    # Setup a source with many dependencies, because some compilers
8228    # like to wrap large dependency lists on column 80 (with \), and
8229    # we should not choose a depcomp mode which is confused by this.
8230    #
8231    # We need to recreate these files for each test, as the compiler may
8232    # overwrite some of them when testing with obscure command lines.
8233    # This happens at least with the AIX C compiler.
8234    : > sub/conftest.c
8235    for i in 1 2 3 4 5 6; do
8236      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8237      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8238      # Solaris 8's {/usr,}/bin/sh.
8239      touch sub/conftst$i.h
8240    done
8241    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8242
8243    case $depmode in
8244    nosideeffect)
8245      # after this tag, mechanisms are not by side-effect, so they'll
8246      # only be used when explicitly requested
8247      if test "x$enable_dependency_tracking" = xyes; then
8248        continue
8249      else
8250        break
8251      fi
8252      ;;
8253    none) break ;;
8254    esac
8255    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8256    # mode.  It turns out that the SunPro C++ compiler does not properly
8257    # handle `-M -o', and we need to detect this.
8258    if depmode=$depmode \
8259       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8260       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8261       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8262         >/dev/null 2>conftest.err &&
8263       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8264       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8265       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8266      # icc doesn't choke on unknown options, it will just issue warnings
8267      # or remarks (even with -Werror).  So we grep stderr for any message
8268      # that says an option was ignored or not supported.
8269      # When given -MP, icc 7.0 and 7.1 complain thusly:
8270      #   icc: Command line warning: ignoring option '-M'; no argument required
8271      # The diagnosis changed in icc 8.0:
8272      #   icc: Command line remark: option '-MP' not supported
8273      if (grep 'ignoring option' conftest.err ||
8274          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8275        am_cv_CXX_dependencies_compiler_type=$depmode
8276        break
8277      fi
8278    fi
8279  done
8280
8281  cd ..
8282  rm -rf conftest.dir
8283else
8284  am_cv_CXX_dependencies_compiler_type=none
8285fi
8286
8287fi
8288echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8289echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8290CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8291
8292
8293
8294if
8295  test "x$enable_dependency_tracking" != xno \
8296  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8297  am__fastdepCXX_TRUE=
8298  am__fastdepCXX_FALSE='#'
8299else
8300  am__fastdepCXX_TRUE='#'
8301  am__fastdepCXX_FALSE=
8302fi
8303
8304
8305
8306
8307if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8308    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8309    (test "X$CXX" != "Xg++"))) ; then
8310  ac_ext=cc
8311ac_cpp='$CXXCPP $CPPFLAGS'
8312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8315echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8316echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8317if test -z "$CXXCPP"; then
8318  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8319  echo $ECHO_N "(cached) $ECHO_C" >&6
8320else
8321      # Double quotes because CXXCPP needs to be expanded
8322    for CXXCPP in "$CXX -E" "/lib/cpp"
8323    do
8324      ac_preproc_ok=false
8325for ac_cxx_preproc_warn_flag in '' yes
8326do
8327  # Use a header file that comes with gcc, so configuring glibc
8328  # with a fresh cross-compiler works.
8329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8330  # <limits.h> exists even on freestanding compilers.
8331  # On the NeXT, cc -E runs the code through the compiler's parser,
8332  # not just through cpp. "Syntax error" is here to catch this case.
8333  cat >conftest.$ac_ext <<_ACEOF
8334/* confdefs.h.  */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h.  */
8339#ifdef __STDC__
8340# include <limits.h>
8341#else
8342# include <assert.h>
8343#endif
8344                     Syntax error
8345_ACEOF
8346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8348  ac_status=$?
8349  grep -v '^ *+' conftest.er1 >conftest.err
8350  rm -f conftest.er1
8351  cat conftest.err >&5
8352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353  (exit $ac_status); } >/dev/null; then
8354  if test -s conftest.err; then
8355    ac_cpp_err=$ac_cxx_preproc_warn_flag
8356    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8357  else
8358    ac_cpp_err=
8359  fi
8360else
8361  ac_cpp_err=yes
8362fi
8363if test -z "$ac_cpp_err"; then
8364  :
8365else
8366  echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369  # Broken: fails on valid input.
8370continue
8371fi
8372rm -f conftest.err conftest.$ac_ext
8373
8374  # OK, works on sane cases.  Now check whether non-existent headers
8375  # can be detected and how.
8376  cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382#include <ac_nonexistent.h>
8383_ACEOF
8384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8386  ac_status=$?
8387  grep -v '^ *+' conftest.er1 >conftest.err
8388  rm -f conftest.er1
8389  cat conftest.err >&5
8390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391  (exit $ac_status); } >/dev/null; then
8392  if test -s conftest.err; then
8393    ac_cpp_err=$ac_cxx_preproc_warn_flag
8394    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8395  else
8396    ac_cpp_err=
8397  fi
8398else
8399  ac_cpp_err=yes
8400fi
8401if test -z "$ac_cpp_err"; then
8402  # Broken: success on invalid input.
8403continue
8404else
8405  echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408  # Passes both tests.
8409ac_preproc_ok=:
8410break
8411fi
8412rm -f conftest.err conftest.$ac_ext
8413
8414done
8415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8416rm -f conftest.err conftest.$ac_ext
8417if $ac_preproc_ok; then
8418  break
8419fi
8420
8421    done
8422    ac_cv_prog_CXXCPP=$CXXCPP
8423
8424fi
8425  CXXCPP=$ac_cv_prog_CXXCPP
8426else
8427  ac_cv_prog_CXXCPP=$CXXCPP
8428fi
8429echo "$as_me:$LINENO: result: $CXXCPP" >&5
8430echo "${ECHO_T}$CXXCPP" >&6
8431ac_preproc_ok=false
8432for ac_cxx_preproc_warn_flag in '' yes
8433do
8434  # Use a header file that comes with gcc, so configuring glibc
8435  # with a fresh cross-compiler works.
8436  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437  # <limits.h> exists even on freestanding compilers.
8438  # On the NeXT, cc -E runs the code through the compiler's parser,
8439  # not just through cpp. "Syntax error" is here to catch this case.
8440  cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h.  */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h.  */
8446#ifdef __STDC__
8447# include <limits.h>
8448#else
8449# include <assert.h>
8450#endif
8451                     Syntax error
8452_ACEOF
8453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8454  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8455  ac_status=$?
8456  grep -v '^ *+' conftest.er1 >conftest.err
8457  rm -f conftest.er1
8458  cat conftest.err >&5
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); } >/dev/null; then
8461  if test -s conftest.err; then
8462    ac_cpp_err=$ac_cxx_preproc_warn_flag
8463    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8464  else
8465    ac_cpp_err=
8466  fi
8467else
8468  ac_cpp_err=yes
8469fi
8470if test -z "$ac_cpp_err"; then
8471  :
8472else
8473  echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476  # Broken: fails on valid input.
8477continue
8478fi
8479rm -f conftest.err conftest.$ac_ext
8480
8481  # OK, works on sane cases.  Now check whether non-existent headers
8482  # can be detected and how.
8483  cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h.  */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h.  */
8489#include <ac_nonexistent.h>
8490_ACEOF
8491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8492  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8493  ac_status=$?
8494  grep -v '^ *+' conftest.er1 >conftest.err
8495  rm -f conftest.er1
8496  cat conftest.err >&5
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } >/dev/null; then
8499  if test -s conftest.err; then
8500    ac_cpp_err=$ac_cxx_preproc_warn_flag
8501    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8502  else
8503    ac_cpp_err=
8504  fi
8505else
8506  ac_cpp_err=yes
8507fi
8508if test -z "$ac_cpp_err"; then
8509  # Broken: success on invalid input.
8510continue
8511else
8512  echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515  # Passes both tests.
8516ac_preproc_ok=:
8517break
8518fi
8519rm -f conftest.err conftest.$ac_ext
8520
8521done
8522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8523rm -f conftest.err conftest.$ac_ext
8524if $ac_preproc_ok; then
8525  :
8526else
8527  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8528See \`config.log' for more details." >&5
8529echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8530See \`config.log' for more details." >&2;}
8531   { (exit 1); exit 1; }; }
8532fi
8533
8534ac_ext=cc
8535ac_cpp='$CXXCPP $CPPFLAGS'
8536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8539
8540fi
8541
8542
8543
8544# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8545
8546# find the maximum length of command line arguments
8547echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8548echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8549if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8550  echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552    i=0
8553  teststring="ABCD"
8554
8555  case $build_os in
8556  msdosdjgpp*)
8557    # On DJGPP, this test can blow up pretty badly due to problems in libc
8558    # (any single argument exceeding 2000 bytes causes a buffer overrun
8559    # during glob expansion).  Even if it were fixed, the result of this
8560    # check would be larger than it should be.
8561    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8562    ;;
8563
8564  gnu*)
8565    # Under GNU Hurd, this test is not required because there is
8566    # no limit to the length of command line arguments.
8567    # Libtool will interpret -1 as no limit whatsoever
8568    lt_cv_sys_max_cmd_len=-1;
8569    ;;
8570
8571  cygwin* | mingw*)
8572    # On Win9x/ME, this test blows up -- it succeeds, but takes
8573    # about 5 minutes as the teststring grows exponentially.
8574    # Worse, since 9x/ME are not pre-emptively multitasking,
8575    # you end up with a "frozen" computer, even though with patience
8576    # the test eventually succeeds (with a max line length of 256k).
8577    # Instead, let's just punt: use the minimum linelength reported by
8578    # all of the supported platforms: 8192 (on NT/2K/XP).
8579    lt_cv_sys_max_cmd_len=8192;
8580    ;;
8581
8582  amigaos*)
8583    # On AmigaOS with pdksh, this test takes hours, literally.
8584    # So we just punt and use a minimum line length of 8192.
8585    lt_cv_sys_max_cmd_len=8192;
8586    ;;
8587
8588  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8589    # This has been around since 386BSD, at least.  Likely further.
8590    if test -x /sbin/sysctl; then
8591      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8592    elif test -x /usr/sbin/sysctl; then
8593      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8594    else
8595      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8596    fi
8597    # And add a safety zone
8598    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8599    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8600    ;;
8601
8602  interix*)
8603    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8604    lt_cv_sys_max_cmd_len=196608
8605    ;;
8606
8607  osf*)
8608    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8609    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8610    # nice to cause kernel panics so lets avoid the loop below.
8611    # First set a reasonable default.
8612    lt_cv_sys_max_cmd_len=16384
8613    #
8614    if test -x /sbin/sysconfig; then
8615      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8616        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8617      esac
8618    fi
8619    ;;
8620  sco3.2v5*)
8621    lt_cv_sys_max_cmd_len=102400
8622    ;;
8623  sysv5* | sco5v6* | sysv4.2uw2*)
8624    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8625    if test -n "$kargmax"; then
8626      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8627    else
8628      lt_cv_sys_max_cmd_len=32768
8629    fi
8630    ;;
8631  *)
8632    # If test is not a shell built-in, we'll probably end up computing a
8633    # maximum length that is only half of the actual maximum length, but
8634    # we can't tell.
8635    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8636    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8637               = "XX$teststring") >/dev/null 2>&1 &&
8638            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8639            lt_cv_sys_max_cmd_len=$new_result &&
8640            test $i != 17 # 1/2 MB should be enough
8641    do
8642      i=`expr $i + 1`
8643      teststring=$teststring$teststring
8644    done
8645    teststring=
8646    # Add a significant safety factor because C++ compilers can tack on massive
8647    # amounts of additional arguments before passing them to the linker.
8648    # It appears as though 1/2 is a usable value.
8649    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8650    ;;
8651  esac
8652
8653fi
8654
8655if test -n $lt_cv_sys_max_cmd_len ; then
8656  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8657echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8658else
8659  echo "$as_me:$LINENO: result: none" >&5
8660echo "${ECHO_T}none" >&6
8661fi
8662
8663
8664
8665
8666# Check for command to grab the raw symbol name followed by C symbol from nm.
8667echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8668echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8669if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8670  echo $ECHO_N "(cached) $ECHO_C" >&6
8671else
8672
8673# These are sane defaults that work on at least a few old systems.
8674# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8675
8676# Character class describing NM global symbol codes.
8677symcode='[BCDEGRST]'
8678
8679# Regexp to match symbols that can be accessed directly from C.
8680sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8681
8682# Transform an extracted symbol line into a proper C declaration
8683lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8684
8685# Transform an extracted symbol line into symbol name and symbol address
8686lt_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'"
8687
8688# Define system-specific variables.
8689case $host_os in
8690aix*)
8691  symcode='[BCDT]'
8692  ;;
8693cygwin* | mingw* | pw32*)
8694  symcode='[ABCDGISTW]'
8695  ;;
8696hpux*) # Its linker distinguishes data from code symbols
8697  if test "$host_cpu" = ia64; then
8698    symcode='[ABCDEGRST]'
8699  fi
8700  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8701  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'"
8702  ;;
8703linux*)
8704  if test "$host_cpu" = ia64; then
8705    symcode='[ABCDGIRSTW]'
8706    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8707    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'"
8708  fi
8709  ;;
8710irix* | nonstopux*)
8711  symcode='[BCDEGRST]'
8712  ;;
8713osf*)
8714  symcode='[BCDEGQRST]'
8715  ;;
8716solaris*)
8717  symcode='[BDRT]'
8718  ;;
8719sco3.2v5*)
8720  symcode='[DT]'
8721  ;;
8722sysv4.2uw2*)
8723  symcode='[DT]'
8724  ;;
8725sysv5* | sco5v6* | unixware* | OpenUNIX*)
8726  symcode='[ABDT]'
8727  ;;
8728sysv4)
8729  symcode='[DFNSTU]'
8730  ;;
8731esac
8732
8733# Handle CRLF in mingw tool chain
8734opt_cr=
8735case $build_os in
8736mingw*)
8737  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8738  ;;
8739esac
8740
8741# If we're using GNU nm, then use its standard symbol codes.
8742case `$NM -V 2>&1` in
8743*GNU* | *'with BFD'*)
8744  symcode='[ABCDGIRSTW]' ;;
8745esac
8746
8747# Try without a prefix undercore, then with it.
8748for ac_symprfx in "" "_"; do
8749
8750  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8751  symxfrm="\\1 $ac_symprfx\\2 \\2"
8752
8753  # Write the raw and C identifiers.
8754  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8755
8756  # Check to see that the pipe works correctly.
8757  pipe_works=no
8758
8759  rm -f conftest*
8760  cat > conftest.$ac_ext <<EOF
8761#ifdef __cplusplus
8762extern "C" {
8763#endif
8764char nm_test_var;
8765void nm_test_func(){}
8766#ifdef __cplusplus
8767}
8768#endif
8769int main(){nm_test_var='a';nm_test_func();return(0);}
8770EOF
8771
8772  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773  (eval $ac_compile) 2>&5
8774  ac_status=$?
8775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776  (exit $ac_status); }; then
8777    # Now try to grab the symbols.
8778    nlist=conftest.nm
8779    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8780  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); } && test -s "$nlist"; then
8784      # Try sorting and uniquifying the output.
8785      if sort "$nlist" | uniq > "$nlist"T; then
8786        mv -f "$nlist"T "$nlist"
8787      else
8788        rm -f "$nlist"T
8789      fi
8790
8791      # Make sure that we snagged all the symbols we need.
8792      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8793        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8794          cat <<EOF > conftest.$ac_ext
8795#ifdef __cplusplus
8796extern "C" {
8797#endif
8798
8799EOF
8800          # Now generate the symbol file.
8801          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8802
8803          cat <<EOF >> conftest.$ac_ext
8804#if defined (__STDC__) && __STDC__
8805# define lt_ptr_t void *
8806#else
8807# define lt_ptr_t char *
8808# define const
8809#endif
8810
8811/* The mapping between symbol names and symbols. */
8812const struct {
8813  const char *name;
8814  lt_ptr_t address;
8815}
8816lt_preloaded_symbols[] =
8817{
8818EOF
8819          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8820          cat <<\EOF >> conftest.$ac_ext
8821  {0, (lt_ptr_t) 0}
8822};
8823
8824#ifdef __cplusplus
8825}
8826#endif
8827EOF
8828          # Now try linking the two files.
8829          mv conftest.$ac_objext conftstm.$ac_objext
8830          lt_save_LIBS="$LIBS"
8831          lt_save_CFLAGS="$CFLAGS"
8832          LIBS="conftstm.$ac_objext"
8833          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8834          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835  (eval $ac_link) 2>&5
8836  ac_status=$?
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8839            pipe_works=yes
8840          fi
8841          LIBS="$lt_save_LIBS"
8842          CFLAGS="$lt_save_CFLAGS"
8843        else
8844          echo "cannot find nm_test_func in $nlist" >&5
8845        fi
8846      else
8847        echo "cannot find nm_test_var in $nlist" >&5
8848      fi
8849    else
8850      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8851    fi
8852  else
8853    echo "$progname: failed program was:" >&5
8854    cat conftest.$ac_ext >&5
8855  fi
8856  rm -f conftest* conftst*
8857
8858  # Do not use the global_symbol_pipe unless it works.
8859  if test "$pipe_works" = yes; then
8860    break
8861  else
8862    lt_cv_sys_global_symbol_pipe=
8863  fi
8864done
8865
8866fi
8867
8868if test -z "$lt_cv_sys_global_symbol_pipe"; then
8869  lt_cv_sys_global_symbol_to_cdecl=
8870fi
8871if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8872  echo "$as_me:$LINENO: result: failed" >&5
8873echo "${ECHO_T}failed" >&6
8874else
8875  echo "$as_me:$LINENO: result: ok" >&5
8876echo "${ECHO_T}ok" >&6
8877fi
8878
8879echo "$as_me:$LINENO: checking for objdir" >&5
8880echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8881if test "${lt_cv_objdir+set}" = set; then
8882  echo $ECHO_N "(cached) $ECHO_C" >&6
8883else
8884  rm -f .libs 2>/dev/null
8885mkdir .libs 2>/dev/null
8886if test -d .libs; then
8887  lt_cv_objdir=.libs
8888else
8889  # MS-DOS does not allow filenames that begin with a dot.
8890  lt_cv_objdir=_libs
8891fi
8892rmdir .libs 2>/dev/null
8893fi
8894echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8895echo "${ECHO_T}$lt_cv_objdir" >&6
8896objdir=$lt_cv_objdir
8897
8898
8899
8900
8901
8902case $host_os in
8903aix3*)
8904  # AIX sometimes has problems with the GCC collect2 program.  For some
8905  # reason, if we set the COLLECT_NAMES environment variable, the problems
8906  # vanish in a puff of smoke.
8907  if test "X${COLLECT_NAMES+set}" != Xset; then
8908    COLLECT_NAMES=
8909    export COLLECT_NAMES
8910  fi
8911  ;;
8912esac
8913
8914# Sed substitution that helps us do robust quoting.  It backslashifies
8915# metacharacters that are still active within double-quoted strings.
8916Xsed='sed -e 1s/^X//'
8917sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8918
8919# Same as above, but do not quote variable references.
8920double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8921
8922# Sed substitution to delay expansion of an escaped shell variable in a
8923# double_quote_subst'ed string.
8924delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8925
8926# Sed substitution to avoid accidental globbing in evaled expressions
8927no_glob_subst='s/\*/\\\*/g'
8928
8929# Constants:
8930rm="rm -f"
8931
8932# Global variables:
8933default_ofile=libtool
8934can_build_shared=yes
8935
8936# All known linkers require a `.a' archive for static linking (except MSVC,
8937# which needs '.lib').
8938libext=a
8939ltmain="$ac_aux_dir/ltmain.sh"
8940ofile="$default_ofile"
8941with_gnu_ld="$lt_cv_prog_gnu_ld"
8942
8943if test -n "$ac_tool_prefix"; then
8944  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8945set dummy ${ac_tool_prefix}ar; ac_word=$2
8946echo "$as_me:$LINENO: checking for $ac_word" >&5
8947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8948if test "${ac_cv_prog_AR+set}" = set; then
8949  echo $ECHO_N "(cached) $ECHO_C" >&6
8950else
8951  if test -n "$AR"; then
8952  ac_cv_prog_AR="$AR" # Let the user override the test.
8953else
8954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955for as_dir in $PATH
8956do
8957  IFS=$as_save_IFS
8958  test -z "$as_dir" && as_dir=.
8959  for ac_exec_ext in '' $ac_executable_extensions; do
8960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8961    ac_cv_prog_AR="${ac_tool_prefix}ar"
8962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8963    break 2
8964  fi
8965done
8966done
8967
8968fi
8969fi
8970AR=$ac_cv_prog_AR
8971if test -n "$AR"; then
8972  echo "$as_me:$LINENO: result: $AR" >&5
8973echo "${ECHO_T}$AR" >&6
8974else
8975  echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977fi
8978
8979fi
8980if test -z "$ac_cv_prog_AR"; then
8981  ac_ct_AR=$AR
8982  # Extract the first word of "ar", so it can be a program name with args.
8983set dummy ar; ac_word=$2
8984echo "$as_me:$LINENO: checking for $ac_word" >&5
8985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8986if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8987  echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989  if test -n "$ac_ct_AR"; then
8990  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995  IFS=$as_save_IFS
8996  test -z "$as_dir" && as_dir=.
8997  for ac_exec_ext in '' $ac_executable_extensions; do
8998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999    ac_cv_prog_ac_ct_AR="ar"
9000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9001    break 2
9002  fi
9003done
9004done
9005
9006  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9007fi
9008fi
9009ac_ct_AR=$ac_cv_prog_ac_ct_AR
9010if test -n "$ac_ct_AR"; then
9011  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9012echo "${ECHO_T}$ac_ct_AR" >&6
9013else
9014  echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016fi
9017
9018  AR=$ac_ct_AR
9019else
9020  AR="$ac_cv_prog_AR"
9021fi
9022
9023if test -n "$ac_tool_prefix"; then
9024  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9025set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9026echo "$as_me:$LINENO: checking for $ac_word" >&5
9027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9028if test "${ac_cv_prog_RANLIB+set}" = set; then
9029  echo $ECHO_N "(cached) $ECHO_C" >&6
9030else
9031  if test -n "$RANLIB"; then
9032  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9033else
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037  IFS=$as_save_IFS
9038  test -z "$as_dir" && as_dir=.
9039  for ac_exec_ext in '' $ac_executable_extensions; do
9040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043    break 2
9044  fi
9045done
9046done
9047
9048fi
9049fi
9050RANLIB=$ac_cv_prog_RANLIB
9051if test -n "$RANLIB"; then
9052  echo "$as_me:$LINENO: result: $RANLIB" >&5
9053echo "${ECHO_T}$RANLIB" >&6
9054else
9055  echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
9057fi
9058
9059fi
9060if test -z "$ac_cv_prog_RANLIB"; then
9061  ac_ct_RANLIB=$RANLIB
9062  # Extract the first word of "ranlib", so it can be a program name with args.
9063set dummy ranlib; ac_word=$2
9064echo "$as_me:$LINENO: checking for $ac_word" >&5
9065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9066if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9067  echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069  if test -n "$ac_ct_RANLIB"; then
9070  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075  IFS=$as_save_IFS
9076  test -z "$as_dir" && as_dir=.
9077  for ac_exec_ext in '' $ac_executable_extensions; do
9078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079    ac_cv_prog_ac_ct_RANLIB="ranlib"
9080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081    break 2
9082  fi
9083done
9084done
9085
9086  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9087fi
9088fi
9089ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9090if test -n "$ac_ct_RANLIB"; then
9091  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9092echo "${ECHO_T}$ac_ct_RANLIB" >&6
9093else
9094  echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
9096fi
9097
9098  RANLIB=$ac_ct_RANLIB
9099else
9100  RANLIB="$ac_cv_prog_RANLIB"
9101fi
9102
9103if test -n "$ac_tool_prefix"; then
9104  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9105set dummy ${ac_tool_prefix}strip; ac_word=$2
9106echo "$as_me:$LINENO: checking for $ac_word" >&5
9107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9108if test "${ac_cv_prog_STRIP+set}" = set; then
9109  echo $ECHO_N "(cached) $ECHO_C" >&6
9110else
9111  if test -n "$STRIP"; then
9112  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9113else
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117  IFS=$as_save_IFS
9118  test -z "$as_dir" && as_dir=.
9119  for ac_exec_ext in '' $ac_executable_extensions; do
9120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9121    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9123    break 2
9124  fi
9125done
9126done
9127
9128fi
9129fi
9130STRIP=$ac_cv_prog_STRIP
9131if test -n "$STRIP"; then
9132  echo "$as_me:$LINENO: result: $STRIP" >&5
9133echo "${ECHO_T}$STRIP" >&6
9134else
9135  echo "$as_me:$LINENO: result: no" >&5
9136echo "${ECHO_T}no" >&6
9137fi
9138
9139fi
9140if test -z "$ac_cv_prog_STRIP"; then
9141  ac_ct_STRIP=$STRIP
9142  # Extract the first word of "strip", so it can be a program name with args.
9143set dummy strip; ac_word=$2
9144echo "$as_me:$LINENO: checking for $ac_word" >&5
9145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9146if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9147  echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149  if test -n "$ac_ct_STRIP"; then
9150  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9151else
9152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155  IFS=$as_save_IFS
9156  test -z "$as_dir" && as_dir=.
9157  for ac_exec_ext in '' $ac_executable_extensions; do
9158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9159    ac_cv_prog_ac_ct_STRIP="strip"
9160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9161    break 2
9162  fi
9163done
9164done
9165
9166  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9167fi
9168fi
9169ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9170if test -n "$ac_ct_STRIP"; then
9171  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9172echo "${ECHO_T}$ac_ct_STRIP" >&6
9173else
9174  echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
9176fi
9177
9178  STRIP=$ac_ct_STRIP
9179else
9180  STRIP="$ac_cv_prog_STRIP"
9181fi
9182
9183
9184old_CC="$CC"
9185old_CFLAGS="$CFLAGS"
9186
9187# Set sane defaults for various variables
9188test -z "$AR" && AR=ar
9189test -z "$AR_FLAGS" && AR_FLAGS=cru
9190test -z "$AS" && AS=as
9191test -z "$CC" && CC=cc
9192test -z "$LTCC" && LTCC=$CC
9193test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9194test -z "$DLLTOOL" && DLLTOOL=dlltool
9195test -z "$LD" && LD=ld
9196test -z "$LN_S" && LN_S="ln -s"
9197test -z "$MAGIC_CMD" && MAGIC_CMD=file
9198test -z "$NM" && NM=nm
9199test -z "$SED" && SED=sed
9200test -z "$OBJDUMP" && OBJDUMP=objdump
9201test -z "$RANLIB" && RANLIB=:
9202test -z "$STRIP" && STRIP=:
9203test -z "$ac_objext" && ac_objext=o
9204
9205# Determine commands to create old-style static archives.
9206old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9207old_postinstall_cmds='chmod 644 $oldlib'
9208old_postuninstall_cmds=
9209
9210if test -n "$RANLIB"; then
9211  case $host_os in
9212  openbsd*)
9213    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9214    ;;
9215  *)
9216    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9217    ;;
9218  esac
9219  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9220fi
9221
9222for cc_temp in $compiler""; do
9223  case $cc_temp in
9224    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9225    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9226    \-*) ;;
9227    *) break;;
9228  esac
9229done
9230cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9231
9232
9233# Only perform the check for file, if the check method requires it
9234case $deplibs_check_method in
9235file_magic*)
9236  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9237    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9238echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9239if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9240  echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242  case $MAGIC_CMD in
9243[\\/*] |  ?:[\\/]*)
9244  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9245  ;;
9246*)
9247  lt_save_MAGIC_CMD="$MAGIC_CMD"
9248  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9249  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9250  for ac_dir in $ac_dummy; do
9251    IFS="$lt_save_ifs"
9252    test -z "$ac_dir" && ac_dir=.
9253    if test -f $ac_dir/${ac_tool_prefix}file; then
9254      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9255      if test -n "$file_magic_test_file"; then
9256        case $deplibs_check_method in
9257        "file_magic "*)
9258          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9259          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9260          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9261            $EGREP "$file_magic_regex" > /dev/null; then
9262            :
9263          else
9264            cat <<EOF 1>&2
9265
9266*** Warning: the command libtool uses to detect shared libraries,
9267*** $file_magic_cmd, produces output that libtool cannot recognize.
9268*** The result is that libtool may fail to recognize shared libraries
9269*** as such.  This will affect the creation of libtool libraries that
9270*** depend on shared libraries, but programs linked with such libtool
9271*** libraries will work regardless of this problem.  Nevertheless, you
9272*** may want to report the problem to your system manager and/or to
9273*** bug-libtool@gnu.org
9274
9275EOF
9276          fi ;;
9277        esac
9278      fi
9279      break
9280    fi
9281  done
9282  IFS="$lt_save_ifs"
9283  MAGIC_CMD="$lt_save_MAGIC_CMD"
9284  ;;
9285esac
9286fi
9287
9288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9289if test -n "$MAGIC_CMD"; then
9290  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9291echo "${ECHO_T}$MAGIC_CMD" >&6
9292else
9293  echo "$as_me:$LINENO: result: no" >&5
9294echo "${ECHO_T}no" >&6
9295fi
9296
9297if test -z "$lt_cv_path_MAGIC_CMD"; then
9298  if test -n "$ac_tool_prefix"; then
9299    echo "$as_me:$LINENO: checking for file" >&5
9300echo $ECHO_N "checking for file... $ECHO_C" >&6
9301if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9302  echo $ECHO_N "(cached) $ECHO_C" >&6
9303else
9304  case $MAGIC_CMD in
9305[\\/*] |  ?:[\\/]*)
9306  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9307  ;;
9308*)
9309  lt_save_MAGIC_CMD="$MAGIC_CMD"
9310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9311  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9312  for ac_dir in $ac_dummy; do
9313    IFS="$lt_save_ifs"
9314    test -z "$ac_dir" && ac_dir=.
9315    if test -f $ac_dir/file; then
9316      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9317      if test -n "$file_magic_test_file"; then
9318        case $deplibs_check_method in
9319        "file_magic "*)
9320          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9321          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9322          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9323            $EGREP "$file_magic_regex" > /dev/null; then
9324            :
9325          else
9326            cat <<EOF 1>&2
9327
9328*** Warning: the command libtool uses to detect shared libraries,
9329*** $file_magic_cmd, produces output that libtool cannot recognize.
9330*** The result is that libtool may fail to recognize shared libraries
9331*** as such.  This will affect the creation of libtool libraries that
9332*** depend on shared libraries, but programs linked with such libtool
9333*** libraries will work regardless of this problem.  Nevertheless, you
9334*** may want to report the problem to your system manager and/or to
9335*** bug-libtool@gnu.org
9336
9337EOF
9338          fi ;;
9339        esac
9340      fi
9341      break
9342    fi
9343  done
9344  IFS="$lt_save_ifs"
9345  MAGIC_CMD="$lt_save_MAGIC_CMD"
9346  ;;
9347esac
9348fi
9349
9350MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9351if test -n "$MAGIC_CMD"; then
9352  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9353echo "${ECHO_T}$MAGIC_CMD" >&6
9354else
9355  echo "$as_me:$LINENO: result: no" >&5
9356echo "${ECHO_T}no" >&6
9357fi
9358
9359  else
9360    MAGIC_CMD=:
9361  fi
9362fi
9363
9364  fi
9365  ;;
9366esac
9367
9368enable_dlopen=no
9369enable_win32_dll=no
9370
9371# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9372if test "${enable_libtool_lock+set}" = set; then
9373  enableval="$enable_libtool_lock"
9374
9375fi;
9376test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9377
9378
9379# Check whether --with-pic or --without-pic was given.
9380if test "${with_pic+set}" = set; then
9381  withval="$with_pic"
9382  pic_mode="$withval"
9383else
9384  pic_mode=default
9385fi;
9386test -z "$pic_mode" && pic_mode=default
9387
9388# Use C for the default configuration in the libtool script
9389tagname=
9390lt_save_CC="$CC"
9391ac_ext=c
9392ac_cpp='$CPP $CPPFLAGS'
9393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9395ac_compiler_gnu=$ac_cv_c_compiler_gnu
9396
9397
9398# Source file extension for C test sources.
9399ac_ext=c
9400
9401# Object file extension for compiled C test sources.
9402objext=o
9403objext=$objext
9404
9405# Code to be used in simple compile tests
9406lt_simple_compile_test_code="int some_variable = 0;\n"
9407
9408# Code to be used in simple link tests
9409lt_simple_link_test_code='int main(){return(0);}\n'
9410
9411
9412# If no C compiler was specified, use CC.
9413LTCC=${LTCC-"$CC"}
9414
9415# If no C compiler flags were specified, use CFLAGS.
9416LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9417
9418# Allow CC to be a program name with arguments.
9419compiler=$CC
9420
9421
9422# save warnings/boilerplate of simple test code
9423ac_outfile=conftest.$ac_objext
9424printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9425eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9426_lt_compiler_boilerplate=`cat conftest.err`
9427$rm conftest*
9428
9429ac_outfile=conftest.$ac_objext
9430printf "$lt_simple_link_test_code" >conftest.$ac_ext
9431eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9432_lt_linker_boilerplate=`cat conftest.err`
9433$rm conftest*
9434
9435
9436## CAVEAT EMPTOR:
9437## There is no encapsulation within the following macros, do not change
9438## the running order or otherwise move them around unless you know exactly
9439## what you are doing...
9440
9441lt_prog_compiler_no_builtin_flag=
9442
9443if test "$GCC" = yes; then
9444  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9445
9446
9447echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9448echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9449if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9450  echo $ECHO_N "(cached) $ECHO_C" >&6
9451else
9452  lt_cv_prog_compiler_rtti_exceptions=no
9453  ac_outfile=conftest.$ac_objext
9454   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9455   lt_compiler_flag="-fno-rtti -fno-exceptions"
9456   # Insert the option either (1) after the last *FLAGS variable, or
9457   # (2) before a word containing "conftest.", or (3) at the end.
9458   # Note that $ac_compile itself does not contain backslashes and begins
9459   # with a dollar sign (not a hyphen), so the echo should work correctly.
9460   # The option is referenced via a variable to avoid confusing sed.
9461   lt_compile=`echo "$ac_compile" | $SED \
9462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464   -e 's:$: $lt_compiler_flag:'`
9465   (eval echo "\"\$as_me:9465: $lt_compile\"" >&5)
9466   (eval "$lt_compile" 2>conftest.err)
9467   ac_status=$?
9468   cat conftest.err >&5
9469   echo "$as_me:9469: \$? = $ac_status" >&5
9470   if (exit $ac_status) && test -s "$ac_outfile"; then
9471     # The compiler can only warn and ignore the option if not recognized
9472     # So say no if there are warnings other than the usual output.
9473     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9474     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9476       lt_cv_prog_compiler_rtti_exceptions=yes
9477     fi
9478   fi
9479   $rm conftest*
9480
9481fi
9482echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9483echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9484
9485if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9486    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9487else
9488    :
9489fi
9490
9491fi
9492
9493lt_prog_compiler_wl=
9494lt_prog_compiler_pic=
9495lt_prog_compiler_static=
9496
9497echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9498echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9499
9500  if test "$GCC" = yes; then
9501    lt_prog_compiler_wl='-Wl,'
9502    lt_prog_compiler_static='-static'
9503
9504    case $host_os in
9505      aix*)
9506      # All AIX code is PIC.
9507      if test "$host_cpu" = ia64; then
9508        # AIX 5 now supports IA64 processor
9509        lt_prog_compiler_static='-Bstatic'
9510      fi
9511      ;;
9512
9513    amigaos*)
9514      # FIXME: we need at least 68020 code to build shared libraries, but
9515      # adding the `-m68020' flag to GCC prevents building anything better,
9516      # like `-m68040'.
9517      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9518      ;;
9519
9520    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9521      # PIC is the default for these OSes.
9522      ;;
9523
9524    mingw* | pw32* | os2*)
9525      # This hack is so that the source file can tell whether it is being
9526      # built for inclusion in a dll (and should export symbols for example).
9527      lt_prog_compiler_pic='-DDLL_EXPORT'
9528      ;;
9529
9530    darwin* | rhapsody*)
9531      # PIC is the default on this platform
9532      # Common symbols not allowed in MH_DYLIB files
9533      lt_prog_compiler_pic='-fno-common'
9534      ;;
9535
9536    interix3*)
9537      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9538      # Instead, we relocate shared libraries at runtime.
9539      ;;
9540
9541    msdosdjgpp*)
9542      # Just because we use GCC doesn't mean we suddenly get shared libraries
9543      # on systems that don't support them.
9544      lt_prog_compiler_can_build_shared=no
9545      enable_shared=no
9546      ;;
9547
9548    sysv4*MP*)
9549      if test -d /usr/nec; then
9550        lt_prog_compiler_pic=-Kconform_pic
9551      fi
9552      ;;
9553
9554    hpux*)
9555      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9556      # not for PA HP-UX.
9557      case $host_cpu in
9558      hppa*64*|ia64*)
9559        # +Z the default
9560        ;;
9561      *)
9562        lt_prog_compiler_pic='-fPIC'
9563        ;;
9564      esac
9565      ;;
9566
9567    *)
9568      lt_prog_compiler_pic='-fPIC'
9569      ;;
9570    esac
9571  else
9572    # PORTME Check for flag to pass linker flags through the system compiler.
9573    case $host_os in
9574    aix*)
9575      lt_prog_compiler_wl='-Wl,'
9576      if test "$host_cpu" = ia64; then
9577        # AIX 5 now supports IA64 processor
9578        lt_prog_compiler_static='-Bstatic'
9579      else
9580        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9581      fi
9582      ;;
9583      darwin*)
9584        # PIC is the default on this platform
9585        # Common symbols not allowed in MH_DYLIB files
9586       case $cc_basename in
9587         xlc*)
9588         lt_prog_compiler_pic='-qnocommon'
9589         lt_prog_compiler_wl='-Wl,'
9590         ;;
9591       esac
9592       ;;
9593
9594    mingw* | pw32* | os2*)
9595      # This hack is so that the source file can tell whether it is being
9596      # built for inclusion in a dll (and should export symbols for example).
9597      lt_prog_compiler_pic='-DDLL_EXPORT'
9598      ;;
9599
9600    hpux9* | hpux10* | hpux11*)
9601      lt_prog_compiler_wl='-Wl,'
9602      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9603      # not for PA HP-UX.
9604      case $host_cpu in
9605      hppa*64*|ia64*)
9606        # +Z the default
9607        ;;
9608      *)
9609        lt_prog_compiler_pic='+Z'
9610        ;;
9611      esac
9612      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9613      lt_prog_compiler_static='${wl}-a ${wl}archive'
9614      ;;
9615
9616    irix5* | irix6* | nonstopux*)
9617      lt_prog_compiler_wl='-Wl,'
9618      # PIC (with -KPIC) is the default.
9619      lt_prog_compiler_static='-non_shared'
9620      ;;
9621
9622    newsos6)
9623      lt_prog_compiler_pic='-KPIC'
9624      lt_prog_compiler_static='-Bstatic'
9625      ;;
9626
9627    linux*)
9628      case $cc_basename in
9629      icc* | ecc*)
9630        lt_prog_compiler_wl='-Wl,'
9631        lt_prog_compiler_pic='-KPIC'
9632        lt_prog_compiler_static='-static'
9633        ;;
9634      pgcc* | pgf77* | pgf90* | pgf95*)
9635        # Portland Group compilers (*not* the Pentium gcc compiler,
9636        # which looks to be a dead project)
9637        lt_prog_compiler_wl='-Wl,'
9638        lt_prog_compiler_pic='-fpic'
9639        lt_prog_compiler_static='-Bstatic'
9640        ;;
9641      ccc*)
9642        lt_prog_compiler_wl='-Wl,'
9643        # All Alpha code is PIC.
9644        lt_prog_compiler_static='-non_shared'
9645        ;;
9646      esac
9647      ;;
9648
9649    osf3* | osf4* | osf5*)
9650      lt_prog_compiler_wl='-Wl,'
9651      # All OSF/1 code is PIC.
9652      lt_prog_compiler_static='-non_shared'
9653      ;;
9654
9655    solaris*)
9656      lt_prog_compiler_pic='-KPIC'
9657      lt_prog_compiler_static='-Bstatic'
9658      case $cc_basename in
9659      f77* | f90* | f95*)
9660        lt_prog_compiler_wl='-Qoption ld ';;
9661      *)
9662        lt_prog_compiler_wl='-Wl,';;
9663      esac
9664      ;;
9665
9666    sunos4*)
9667      lt_prog_compiler_wl='-Qoption ld '
9668      lt_prog_compiler_pic='-PIC'
9669      lt_prog_compiler_static='-Bstatic'
9670      ;;
9671
9672    sysv4 | sysv4.2uw2* | sysv4.3*)
9673      lt_prog_compiler_wl='-Wl,'
9674      lt_prog_compiler_pic='-KPIC'
9675      lt_prog_compiler_static='-Bstatic'
9676      ;;
9677
9678    sysv4*MP*)
9679      if test -d /usr/nec ;then
9680        lt_prog_compiler_pic='-Kconform_pic'
9681        lt_prog_compiler_static='-Bstatic'
9682      fi
9683      ;;
9684
9685    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9686      lt_prog_compiler_wl='-Wl,'
9687      lt_prog_compiler_pic='-KPIC'
9688      lt_prog_compiler_static='-Bstatic'
9689      ;;
9690
9691    unicos*)
9692      lt_prog_compiler_wl='-Wl,'
9693      lt_prog_compiler_can_build_shared=no
9694      ;;
9695
9696    uts4*)
9697      lt_prog_compiler_pic='-pic'
9698      lt_prog_compiler_static='-Bstatic'
9699      ;;
9700
9701    *)
9702      lt_prog_compiler_can_build_shared=no
9703      ;;
9704    esac
9705  fi
9706
9707echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9708echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9709
9710#
9711# Check to make sure the PIC flag actually works.
9712#
9713if test -n "$lt_prog_compiler_pic"; then
9714
9715echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9716echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9717if test "${lt_prog_compiler_pic_works+set}" = set; then
9718  echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720  lt_prog_compiler_pic_works=no
9721  ac_outfile=conftest.$ac_objext
9722   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9723   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9724   # Insert the option either (1) after the last *FLAGS variable, or
9725   # (2) before a word containing "conftest.", or (3) at the end.
9726   # Note that $ac_compile itself does not contain backslashes and begins
9727   # with a dollar sign (not a hyphen), so the echo should work correctly.
9728   # The option is referenced via a variable to avoid confusing sed.
9729   lt_compile=`echo "$ac_compile" | $SED \
9730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732   -e 's:$: $lt_compiler_flag:'`
9733   (eval echo "\"\$as_me:9733: $lt_compile\"" >&5)
9734   (eval "$lt_compile" 2>conftest.err)
9735   ac_status=$?
9736   cat conftest.err >&5
9737   echo "$as_me:9737: \$? = $ac_status" >&5
9738   if (exit $ac_status) && test -s "$ac_outfile"; then
9739     # The compiler can only warn and ignore the option if not recognized
9740     # So say no if there are warnings other than the usual output.
9741     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9742     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9743     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9744       lt_prog_compiler_pic_works=yes
9745     fi
9746   fi
9747   $rm conftest*
9748
9749fi
9750echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9751echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9752
9753if test x"$lt_prog_compiler_pic_works" = xyes; then
9754    case $lt_prog_compiler_pic in
9755     "" | " "*) ;;
9756     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9757     esac
9758else
9759    lt_prog_compiler_pic=
9760     lt_prog_compiler_can_build_shared=no
9761fi
9762
9763fi
9764case $host_os in
9765  # For platforms which do not support PIC, -DPIC is meaningless:
9766  *djgpp*)
9767    lt_prog_compiler_pic=
9768    ;;
9769  *)
9770    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9771    ;;
9772esac
9773
9774#
9775# Check to make sure the static flag actually works.
9776#
9777wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9778echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9779echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9780if test "${lt_prog_compiler_static_works+set}" = set; then
9781  echo $ECHO_N "(cached) $ECHO_C" >&6
9782else
9783  lt_prog_compiler_static_works=no
9784   save_LDFLAGS="$LDFLAGS"
9785   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9786   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9787   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9788     # The linker can only warn and ignore the option if not recognized
9789     # So say no if there are warnings
9790     if test -s conftest.err; then
9791       # Append any errors to the config.log.
9792       cat conftest.err 1>&5
9793       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9794       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9795       if diff conftest.exp conftest.er2 >/dev/null; then
9796         lt_prog_compiler_static_works=yes
9797       fi
9798     else
9799       lt_prog_compiler_static_works=yes
9800     fi
9801   fi
9802   $rm conftest*
9803   LDFLAGS="$save_LDFLAGS"
9804
9805fi
9806echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9807echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9808
9809if test x"$lt_prog_compiler_static_works" = xyes; then
9810    :
9811else
9812    lt_prog_compiler_static=
9813fi
9814
9815
9816echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9817echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9818if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9819  echo $ECHO_N "(cached) $ECHO_C" >&6
9820else
9821  lt_cv_prog_compiler_c_o=no
9822   $rm -r conftest 2>/dev/null
9823   mkdir conftest
9824   cd conftest
9825   mkdir out
9826   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9827
9828   lt_compiler_flag="-o out/conftest2.$ac_objext"
9829   # Insert the option either (1) after the last *FLAGS variable, or
9830   # (2) before a word containing "conftest.", or (3) at the end.
9831   # Note that $ac_compile itself does not contain backslashes and begins
9832   # with a dollar sign (not a hyphen), so the echo should work correctly.
9833   lt_compile=`echo "$ac_compile" | $SED \
9834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9836   -e 's:$: $lt_compiler_flag:'`
9837   (eval echo "\"\$as_me:9837: $lt_compile\"" >&5)
9838   (eval "$lt_compile" 2>out/conftest.err)
9839   ac_status=$?
9840   cat out/conftest.err >&5
9841   echo "$as_me:9841: \$? = $ac_status" >&5
9842   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9843   then
9844     # The compiler can only warn and ignore the option if not recognized
9845     # So say no if there are warnings
9846     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9847     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9848     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9849       lt_cv_prog_compiler_c_o=yes
9850     fi
9851   fi
9852   chmod u+w . 2>&5
9853   $rm conftest*
9854   # SGI C++ compiler will create directory out/ii_files/ for
9855   # template instantiation
9856   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9857   $rm out/* && rmdir out
9858   cd ..
9859   rmdir conftest
9860   $rm conftest*
9861
9862fi
9863echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9864echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9865
9866
9867hard_links="nottested"
9868if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9869  # do not overwrite the value of need_locks provided by the user
9870  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9871echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9872  hard_links=yes
9873  $rm conftest*
9874  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9875  touch conftest.a
9876  ln conftest.a conftest.b 2>&5 || hard_links=no
9877  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9878  echo "$as_me:$LINENO: result: $hard_links" >&5
9879echo "${ECHO_T}$hard_links" >&6
9880  if test "$hard_links" = no; then
9881    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9882echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9883    need_locks=warn
9884  fi
9885else
9886  need_locks=no
9887fi
9888
9889echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9890echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9891
9892  runpath_var=
9893  allow_undefined_flag=
9894  enable_shared_with_static_runtimes=no
9895  archive_cmds=
9896  archive_expsym_cmds=
9897  old_archive_From_new_cmds=
9898  old_archive_from_expsyms_cmds=
9899  export_dynamic_flag_spec=
9900  whole_archive_flag_spec=
9901  thread_safe_flag_spec=
9902  hardcode_libdir_flag_spec=
9903  hardcode_libdir_flag_spec_ld=
9904  hardcode_libdir_separator=
9905  hardcode_direct=no
9906  hardcode_minus_L=no
9907  hardcode_shlibpath_var=unsupported
9908  link_all_deplibs=unknown
9909  hardcode_automatic=no
9910  module_cmds=
9911  module_expsym_cmds=
9912  always_export_symbols=no
9913  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9914  # include_expsyms should be a list of space-separated symbols to be *always*
9915  # included in the symbol list
9916  include_expsyms=
9917  # exclude_expsyms can be an extended regexp of symbols to exclude
9918  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9919  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9920  # as well as any symbol that contains `d'.
9921  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9922  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9923  # platforms (ab)use it in PIC code, but their linkers get confused if
9924  # the symbol is explicitly referenced.  Since portable code cannot
9925  # rely on this symbol name, it's probably fine to never include it in
9926  # preloaded symbol tables.
9927  extract_expsyms_cmds=
9928  # Just being paranoid about ensuring that cc_basename is set.
9929  for cc_temp in $compiler""; do
9930  case $cc_temp in
9931    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9932    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9933    \-*) ;;
9934    *) break;;
9935  esac
9936done
9937cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9938
9939  case $host_os in
9940  cygwin* | mingw* | pw32*)
9941    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9942    # When not using gcc, we currently assume that we are using
9943    # Microsoft Visual C++.
9944    if test "$GCC" != yes; then
9945      with_gnu_ld=no
9946    fi
9947    ;;
9948  interix*)
9949    # we just hope/assume this is gcc and not c89 (= MSVC++)
9950    with_gnu_ld=yes
9951    ;;
9952  openbsd*)
9953    with_gnu_ld=no
9954    ;;
9955  esac
9956
9957  ld_shlibs=yes
9958  if test "$with_gnu_ld" = yes; then
9959    # If archive_cmds runs LD, not CC, wlarc should be empty
9960    wlarc='${wl}'
9961
9962    # Set some defaults for GNU ld with shared library support. These
9963    # are reset later if shared libraries are not supported. Putting them
9964    # here allows them to be overridden if necessary.
9965    runpath_var=LD_RUN_PATH
9966    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9967    export_dynamic_flag_spec='${wl}--export-dynamic'
9968    # ancient GNU ld didn't support --whole-archive et. al.
9969    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9970        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9971      else
9972        whole_archive_flag_spec=
9973    fi
9974    supports_anon_versioning=no
9975    case `$LD -v 2>/dev/null` in
9976      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9977      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9978      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9979      *\ 2.11.*) ;; # other 2.11 versions
9980      *) supports_anon_versioning=yes ;;
9981    esac
9982
9983    # See if GNU ld supports shared libraries.
9984    case $host_os in
9985    aix3* | aix4* | aix5*)
9986      # On AIX/PPC, the GNU linker is very broken
9987      if test "$host_cpu" != ia64; then
9988        ld_shlibs=no
9989        cat <<EOF 1>&2
9990
9991*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9992*** to be unable to reliably create shared libraries on AIX.
9993*** Therefore, libtool is disabling shared libraries support.  If you
9994*** really care for shared libraries, you may want to modify your PATH
9995*** so that a non-GNU linker is found, and then restart.
9996
9997EOF
9998      fi
9999      ;;
10000
10001    amigaos*)
10002      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)'
10003      hardcode_libdir_flag_spec='-L$libdir'
10004      hardcode_minus_L=yes
10005
10006      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10007      # that the semantics of dynamic libraries on AmigaOS, at least up
10008      # to version 4, is to share data among multiple programs linked
10009      # with the same dynamic library.  Since this doesn't match the
10010      # behavior of shared libraries on other platforms, we can't use
10011      # them.
10012      ld_shlibs=no
10013      ;;
10014
10015    beos*)
10016      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10017        allow_undefined_flag=unsupported
10018        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10019        # support --undefined.  This deserves some investigation.  FIXME
10020        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10021      else
10022        ld_shlibs=no
10023      fi
10024      ;;
10025
10026    cygwin* | mingw* | pw32*)
10027      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10028      # as there is no search path for DLLs.
10029      hardcode_libdir_flag_spec='-L$libdir'
10030      allow_undefined_flag=unsupported
10031      always_export_symbols=no
10032      enable_shared_with_static_runtimes=yes
10033      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10034
10035      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10036        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10037        # If the export-symbols file already is a .def file (1st line
10038        # is EXPORTS), use it as is; otherwise, prepend...
10039        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10040          cp $export_symbols $output_objdir/$soname.def;
10041        else
10042          echo EXPORTS > $output_objdir/$soname.def;
10043          cat $export_symbols >> $output_objdir/$soname.def;
10044        fi~
10045        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10046      else
10047        ld_shlibs=no
10048      fi
10049      ;;
10050
10051    interix3*)
10052      hardcode_direct=no
10053      hardcode_shlibpath_var=no
10054      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10055      export_dynamic_flag_spec='${wl}-E'
10056      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10057      # Instead, shared libraries are loaded at an image base (0x10000000 by
10058      # default) and relocated if they conflict, which is a slow very memory
10059      # consuming and fragmenting process.  To avoid this, we pick a random,
10060      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10061      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10062      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10063      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'
10064      ;;
10065
10066    linux*)
10067      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10068        tmp_addflag=
10069        case $cc_basename,$host_cpu in
10070        pgcc*)                          # Portland Group C compiler
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'
10073          ;;
10074        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10075          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'
10076          tmp_addflag=' $pic_flag -Mnomain' ;;
10077        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10078          tmp_addflag=' -i_dynamic' ;;
10079        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10080          tmp_addflag=' -i_dynamic -nofor_main' ;;
10081        ifc* | ifort*)                  # Intel Fortran compiler
10082          tmp_addflag=' -nofor_main' ;;
10083        esac
10084        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085
10086        if test $supports_anon_versioning = yes; then
10087          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10088  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10089  $echo "local: *; };" >> $output_objdir/$libname.ver~
10090          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10091        fi
10092      else
10093        ld_shlibs=no
10094      fi
10095      ;;
10096
10097    netbsd*)
10098      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10099        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10100        wlarc=
10101      else
10102        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10104      fi
10105      ;;
10106
10107    solaris*)
10108      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10109        ld_shlibs=no
10110        cat <<EOF 1>&2
10111
10112*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10113*** create shared libraries on Solaris systems.  Therefore, libtool
10114*** is disabling shared libraries support.  We urge you to upgrade GNU
10115*** binutils to release 2.9.1 or newer.  Another option is to modify
10116*** your PATH or compiler configuration so that the native linker is
10117*** used, and then restart.
10118
10119EOF
10120      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10121        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10123      else
10124        ld_shlibs=no
10125      fi
10126      ;;
10127
10128    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10129      case `$LD -v 2>&1` in
10130        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10131        ld_shlibs=no
10132        cat <<_LT_EOF 1>&2
10133
10134*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10135*** reliably create shared libraries on SCO systems.  Therefore, libtool
10136*** is disabling shared libraries support.  We urge you to upgrade GNU
10137*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10138*** your PATH or compiler configuration so that the native linker is
10139*** used, and then restart.
10140
10141_LT_EOF
10142        ;;
10143        *)
10144          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10145            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10146            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10147            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10148          else
10149            ld_shlibs=no
10150          fi
10151        ;;
10152      esac
10153      ;;
10154
10155    sunos4*)
10156      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157      wlarc=
10158      hardcode_direct=yes
10159      hardcode_shlibpath_var=no
10160      ;;
10161
10162    *)
10163      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10164        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10165        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10166      else
10167        ld_shlibs=no
10168      fi
10169      ;;
10170    esac
10171
10172    if test "$ld_shlibs" = no; then
10173      runpath_var=
10174      hardcode_libdir_flag_spec=
10175      export_dynamic_flag_spec=
10176      whole_archive_flag_spec=
10177    fi
10178  else
10179    # PORTME fill in a description of your system's linker (not GNU ld)
10180    case $host_os in
10181    aix3*)
10182      allow_undefined_flag=unsupported
10183      always_export_symbols=yes
10184      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'
10185      # Note: this linker hardcodes the directories in LIBPATH if there
10186      # are no directories specified by -L.
10187      hardcode_minus_L=yes
10188      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10189        # Neither direct hardcoding nor static linking is supported with a
10190        # broken collect2.
10191        hardcode_direct=unsupported
10192      fi
10193      ;;
10194
10195    aix4* | aix5*)
10196      if test "$host_cpu" = ia64; then
10197        # On IA64, the linker does run time linking by default, so we don't
10198        # have to do anything special.
10199        aix_use_runtimelinking=no
10200        exp_sym_flag='-Bexport'
10201        no_entry_flag=""
10202      else
10203        # If we're using GNU nm, then we don't want the "-C" option.
10204        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10205        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10206          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'
10207        else
10208          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'
10209        fi
10210        aix_use_runtimelinking=no
10211
10212        # Test if we are trying to use run time linking or normal
10213        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10214        # need to do runtime linking.
10215        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10216          for ld_flag in $LDFLAGS; do
10217          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10218            aix_use_runtimelinking=yes
10219            break
10220          fi
10221          done
10222          ;;
10223        esac
10224
10225        exp_sym_flag='-bexport'
10226        no_entry_flag='-bnoentry'
10227      fi
10228
10229      # When large executables or shared objects are built, AIX ld can
10230      # have problems creating the table of contents.  If linking a library
10231      # or program results in "error TOC overflow" add -mminimal-toc to
10232      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10233      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10234
10235      archive_cmds=''
10236      hardcode_direct=yes
10237      hardcode_libdir_separator=':'
10238      link_all_deplibs=yes
10239
10240      if test "$GCC" = yes; then
10241        case $host_os in aix4.[012]|aix4.[012].*)
10242        # We only want to do this on AIX 4.2 and lower, the check
10243        # below for broken collect2 doesn't work under 4.3+
10244          collect2name=`${CC} -print-prog-name=collect2`
10245          if test -f "$collect2name" && \
10246           strings "$collect2name" | grep resolve_lib_name >/dev/null
10247          then
10248          # We have reworked collect2
10249          hardcode_direct=yes
10250          else
10251          # We have old collect2
10252          hardcode_direct=unsupported
10253          # It fails to find uninstalled libraries when the uninstalled
10254          # path is not listed in the libpath.  Setting hardcode_minus_L
10255          # to unsupported forces relinking
10256          hardcode_minus_L=yes
10257          hardcode_libdir_flag_spec='-L$libdir'
10258          hardcode_libdir_separator=
10259          fi
10260          ;;
10261        esac
10262        shared_flag='-shared'
10263        if test "$aix_use_runtimelinking" = yes; then
10264          shared_flag="$shared_flag "'${wl}-G'
10265        fi
10266      else
10267        # not using gcc
10268        if test "$host_cpu" = ia64; then
10269        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10270        # chokes on -Wl,-G. The following line is correct:
10271          shared_flag='-G'
10272        else
10273          if test "$aix_use_runtimelinking" = yes; then
10274            shared_flag='${wl}-G'
10275          else
10276            shared_flag='${wl}-bM:SRE'
10277          fi
10278        fi
10279      fi
10280
10281      # It seems that -bexpall does not export symbols beginning with
10282      # underscore (_), so it is better to generate a list of symbols to export.
10283      always_export_symbols=yes
10284      if test "$aix_use_runtimelinking" = yes; then
10285        # Warning - without using the other runtime loading flags (-brtl),
10286        # -berok will link without error, but may produce a broken library.
10287        allow_undefined_flag='-berok'
10288       # Determine the default libpath from the value encoded in an empty executable.
10289       cat >conftest.$ac_ext <<_ACEOF
10290/* confdefs.h.  */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h.  */
10295
10296#ifdef F77_DUMMY_MAIN
10297
10298#  ifdef __cplusplus
10299     extern "C"
10300#  endif
10301   int F77_DUMMY_MAIN() { return 1; }
10302
10303#endif
10304int
10305main ()
10306{
10307
10308  ;
10309  return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
10313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314  (eval $ac_link) 2>conftest.er1
10315  ac_status=$?
10316  grep -v '^ *+' conftest.er1 >conftest.err
10317  rm -f conftest.er1
10318  cat conftest.err >&5
10319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320  (exit $ac_status); } &&
10321         { ac_try='test -z "$ac_c_werror_flag"
10322                         || test ! -s conftest.err'
10323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324  (eval $ac_try) 2>&5
10325  ac_status=$?
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); }; } &&
10328         { ac_try='test -s conftest$ac_exeext'
10329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330  (eval $ac_try) 2>&5
10331  ac_status=$?
10332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333  (exit $ac_status); }; }; then
10334
10335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10336}'`
10337# Check for a 64-bit object if we didn't find anything.
10338if 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; }
10339}'`; fi
10340else
10341  echo "$as_me: failed program was:" >&5
10342sed 's/^/| /' conftest.$ac_ext >&5
10343
10344fi
10345rm -f conftest.err conftest.$ac_objext \
10346      conftest$ac_exeext conftest.$ac_ext
10347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10348
10349       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10350        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"
10351       else
10352        if test "$host_cpu" = ia64; then
10353          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10354          allow_undefined_flag="-z nodefs"
10355          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"
10356        else
10357         # Determine the default libpath from the value encoded in an empty executable.
10358         cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h.  */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h.  */
10364
10365#ifdef F77_DUMMY_MAIN
10366
10367#  ifdef __cplusplus
10368     extern "C"
10369#  endif
10370   int F77_DUMMY_MAIN() { return 1; }
10371
10372#endif
10373int
10374main ()
10375{
10376
10377  ;
10378  return 0;
10379}
10380_ACEOF
10381rm -f conftest.$ac_objext conftest$ac_exeext
10382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383  (eval $ac_link) 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } &&
10390         { ac_try='test -z "$ac_c_werror_flag"
10391                         || test ! -s conftest.err'
10392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393  (eval $ac_try) 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); }; } &&
10397         { ac_try='test -s conftest$ac_exeext'
10398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399  (eval $ac_try) 2>&5
10400  ac_status=$?
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); }; }; then
10403
10404aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10405}'`
10406# Check for a 64-bit object if we didn't find anything.
10407if 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; }
10408}'`; fi
10409else
10410  echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413fi
10414rm -f conftest.err conftest.$ac_objext \
10415      conftest$ac_exeext conftest.$ac_ext
10416if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10417
10418         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10419          # Warning - without using the other run time loading flags,
10420          # -berok will link without error, but may produce a broken library.
10421          no_undefined_flag=' ${wl}-bernotok'
10422          allow_undefined_flag=' ${wl}-berok'
10423          # Exported symbols can be pulled into shared objects from archives
10424          whole_archive_flag_spec='$convenience'
10425          archive_cmds_need_lc=yes
10426          # This is similar to how AIX traditionally builds its shared libraries.
10427          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'
10428        fi
10429      fi
10430      ;;
10431
10432    amigaos*)
10433      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)'
10434      hardcode_libdir_flag_spec='-L$libdir'
10435      hardcode_minus_L=yes
10436      # see comment about different semantics on the GNU ld section
10437      ld_shlibs=no
10438      ;;
10439
10440    bsdi[45]*)
10441      export_dynamic_flag_spec=-rdynamic
10442      ;;
10443
10444    cygwin* | mingw* | pw32*)
10445      # When not using gcc, we currently assume that we are using
10446      # Microsoft Visual C++.
10447      # hardcode_libdir_flag_spec is actually meaningless, as there is
10448      # no search path for DLLs.
10449      hardcode_libdir_flag_spec=' '
10450      allow_undefined_flag=unsupported
10451      # Tell ltmain to make .lib files, not .a files.
10452      libext=lib
10453      # Tell ltmain to make .dll files, not .so files.
10454      shrext_cmds=".dll"
10455      # FIXME: Setting linknames here is a bad hack.
10456      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10457      # The linker will automatically build a .lib file if we build a DLL.
10458      old_archive_From_new_cmds='true'
10459      # FIXME: Should let the user specify the lib program.
10460      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10461      fix_srcfile_path='`cygpath -w "$srcfile"`'
10462      enable_shared_with_static_runtimes=yes
10463      ;;
10464
10465    darwin* | rhapsody*)
10466      case $host_os in
10467        rhapsody* | darwin1.[012])
10468         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10469         ;;
10470       *) # Darwin 1.3 on
10471         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10472           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10473         else
10474           case ${MACOSX_DEPLOYMENT_TARGET} in
10475             10.[012])
10476               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10477               ;;
10478             10.*)
10479               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10480               ;;
10481           esac
10482         fi
10483         ;;
10484      esac
10485      archive_cmds_need_lc=no
10486      hardcode_direct=no
10487      hardcode_automatic=yes
10488      hardcode_shlibpath_var=unsupported
10489      whole_archive_flag_spec=''
10490      link_all_deplibs=yes
10491    if test "$GCC" = yes ; then
10492        output_verbose_link_cmd='echo'
10493        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10494      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10495      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10496      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}'
10497      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}'
10498    else
10499      case $cc_basename in
10500        xlc*)
10501         output_verbose_link_cmd='echo'
10502         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10503         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10504          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10505         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}'
10506          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}'
10507          ;;
10508       *)
10509         ld_shlibs=no
10510          ;;
10511      esac
10512    fi
10513      ;;
10514
10515    dgux*)
10516      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10517      hardcode_libdir_flag_spec='-L$libdir'
10518      hardcode_shlibpath_var=no
10519      ;;
10520
10521    freebsd1*)
10522      ld_shlibs=no
10523      ;;
10524
10525    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10526    # support.  Future versions do this automatically, but an explicit c++rt0.o
10527    # does not break anything, and helps significantly (at the cost of a little
10528    # extra space).
10529    freebsd2.2*)
10530      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10531      hardcode_libdir_flag_spec='-R$libdir'
10532      hardcode_direct=yes
10533      hardcode_shlibpath_var=no
10534      ;;
10535
10536    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10537    freebsd2*)
10538      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10539      hardcode_direct=yes
10540      hardcode_minus_L=yes
10541      hardcode_shlibpath_var=no
10542      ;;
10543
10544    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10545    freebsd* | kfreebsd*-gnu | dragonfly*)
10546      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10547      hardcode_libdir_flag_spec='-R$libdir'
10548      hardcode_direct=yes
10549      hardcode_shlibpath_var=no
10550      ;;
10551
10552    hpux9*)
10553      if test "$GCC" = yes; then
10554        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'
10555      else
10556        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'
10557      fi
10558      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10559      hardcode_libdir_separator=:
10560      hardcode_direct=yes
10561
10562      # hardcode_minus_L: Not really in the search PATH,
10563      # but as the default location of the library.
10564      hardcode_minus_L=yes
10565      export_dynamic_flag_spec='${wl}-E'
10566      ;;
10567
10568    hpux10*)
10569      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10570        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10571      else
10572        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10573      fi
10574      if test "$with_gnu_ld" = no; then
10575        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10576        hardcode_libdir_separator=:
10577
10578        hardcode_direct=yes
10579        export_dynamic_flag_spec='${wl}-E'
10580
10581        # hardcode_minus_L: Not really in the search PATH,
10582        # but as the default location of the library.
10583        hardcode_minus_L=yes
10584      fi
10585      ;;
10586
10587    hpux11*)
10588      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10589        case $host_cpu in
10590        hppa*64*)
10591          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10592          ;;
10593        ia64*)
10594          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10595          ;;
10596        *)
10597          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10598          ;;
10599        esac
10600      else
10601        case $host_cpu in
10602        hppa*64*)
10603          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10604          ;;
10605        ia64*)
10606          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10607          ;;
10608        *)
10609          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10610          ;;
10611        esac
10612      fi
10613      if test "$with_gnu_ld" = no; then
10614        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10615        hardcode_libdir_separator=:
10616
10617        case $host_cpu in
10618        hppa*64*|ia64*)
10619          hardcode_libdir_flag_spec_ld='+b $libdir'
10620          hardcode_direct=no
10621          hardcode_shlibpath_var=no
10622          ;;
10623        *)
10624          hardcode_direct=yes
10625          export_dynamic_flag_spec='${wl}-E'
10626
10627          # hardcode_minus_L: Not really in the search PATH,
10628          # but as the default location of the library.
10629          hardcode_minus_L=yes
10630          ;;
10631        esac
10632      fi
10633      ;;
10634
10635    irix5* | irix6* | nonstopux*)
10636      if test "$GCC" = yes; then
10637        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'
10638      else
10639        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'
10640        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10641      fi
10642      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10643      hardcode_libdir_separator=:
10644      link_all_deplibs=yes
10645      ;;
10646
10647    netbsd*)
10648      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10649        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10650      else
10651        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10652      fi
10653      hardcode_libdir_flag_spec='-R$libdir'
10654      hardcode_direct=yes
10655      hardcode_shlibpath_var=no
10656      ;;
10657
10658    newsos6)
10659      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660      hardcode_direct=yes
10661      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10662      hardcode_libdir_separator=:
10663      hardcode_shlibpath_var=no
10664      ;;
10665
10666    openbsd*)
10667      hardcode_direct=yes
10668      hardcode_shlibpath_var=no
10669      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10670        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10671        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10672        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10673        export_dynamic_flag_spec='${wl}-E'
10674      else
10675       case $host_os in
10676         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10677           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10678           hardcode_libdir_flag_spec='-R$libdir'
10679           ;;
10680         *)
10681           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10682           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10683           ;;
10684       esac
10685      fi
10686      ;;
10687
10688    os2*)
10689      hardcode_libdir_flag_spec='-L$libdir'
10690      hardcode_minus_L=yes
10691      allow_undefined_flag=unsupported
10692      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'
10693      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10694      ;;
10695
10696    osf3*)
10697      if test "$GCC" = yes; then
10698        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10699        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'
10700      else
10701        allow_undefined_flag=' -expect_unresolved \*'
10702        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'
10703      fi
10704      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10705      hardcode_libdir_separator=:
10706      ;;
10707
10708    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10709      if test "$GCC" = yes; then
10710        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10711        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'
10712        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10713      else
10714        allow_undefined_flag=' -expect_unresolved \*'
10715        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'
10716        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10717        $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'
10718
10719        # Both c and cxx compiler support -rpath directly
10720        hardcode_libdir_flag_spec='-rpath $libdir'
10721      fi
10722      hardcode_libdir_separator=:
10723      ;;
10724
10725    solaris*)
10726      no_undefined_flag=' -z text'
10727      if test "$GCC" = yes; then
10728        wlarc='${wl}'
10729        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10731          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10732      else
10733        wlarc=''
10734        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10735        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10736        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10737      fi
10738      hardcode_libdir_flag_spec='-R$libdir'
10739      hardcode_shlibpath_var=no
10740      case $host_os in
10741      solaris2.[0-5] | solaris2.[0-5].*) ;;
10742      *)
10743        # The compiler driver will combine linker options so we
10744        # cannot just pass the convience library names through
10745        # without $wl, iff we do not link with $LD.
10746        # Luckily, gcc supports the same syntax we need for Sun Studio.
10747        # Supported since Solaris 2.6 (maybe 2.5.1?)
10748        case $wlarc in
10749        '')
10750          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10751        *)
10752          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' ;;
10753        esac ;;
10754      esac
10755      link_all_deplibs=yes
10756      ;;
10757
10758    sunos4*)
10759      if test "x$host_vendor" = xsequent; then
10760        # Use $CC to link under sequent, because it throws in some extra .o
10761        # files that make .init and .fini sections work.
10762        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10763      else
10764        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10765      fi
10766      hardcode_libdir_flag_spec='-L$libdir'
10767      hardcode_direct=yes
10768      hardcode_minus_L=yes
10769      hardcode_shlibpath_var=no
10770      ;;
10771
10772    sysv4)
10773      case $host_vendor in
10774        sni)
10775          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776          hardcode_direct=yes # is this really true???
10777        ;;
10778        siemens)
10779          ## LD is ld it makes a PLAMLIB
10780          ## CC just makes a GrossModule.
10781          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10782          reload_cmds='$CC -r -o $output$reload_objs'
10783          hardcode_direct=no
10784        ;;
10785        motorola)
10786          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10788        ;;
10789      esac
10790      runpath_var='LD_RUN_PATH'
10791      hardcode_shlibpath_var=no
10792      ;;
10793
10794    sysv4.3*)
10795      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10796      hardcode_shlibpath_var=no
10797      export_dynamic_flag_spec='-Bexport'
10798      ;;
10799
10800    sysv4*MP*)
10801      if test -d /usr/nec; then
10802        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10803        hardcode_shlibpath_var=no
10804        runpath_var=LD_RUN_PATH
10805        hardcode_runpath_var=yes
10806        ld_shlibs=yes
10807      fi
10808      ;;
10809
10810    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10811      no_undefined_flag='${wl}-z,text'