source: ThirdParty/HSL/trunk/configure @ 2484

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

add missing compile of mc68i

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