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

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

restoring BuildTools/ThirdParty?/HSL/stable/1.3

  • Property svn:executable set to *
File size: 886.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='ThirdPartyHSL 1.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINHSL_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA77_TRUE COIN_HAS_MA77_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL 1.3 to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL 1.3:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089                          (implies --disable-shared)
1090  --enable-debug-hsl compile project HSL with debug compiler flags
1091  --enable-doscompile     Under Cygwin, compile so that executables run under
1092                          DOS. Set to mingw to use gcc/g++/ld with
1093                          -mno-cygwin. Set to msvc to use cl/link (or
1094                          icl/link). Default when mentioned: mingw. Default
1095                          when not mentioned: disabled.
1096  --disable-pkg-config    disable use of pkg-config (if available)
1097  --enable-static[=PKGS]
1098                          build static libraries [default=no]
1099  --disable-dependency-tracking  speeds up one-time build
1100  --enable-dependency-tracking   do not reject slow dependency extractors
1101  --enable-maintainer-mode  enable make rules and dependencies not useful
1102                          (and sometimes confusing) to the casual installer
1103  --enable-shared[=PKGS]
1104                          build shared libraries [default=yes]
1105  --enable-fast-install[=PKGS]
1106                          optimize for fast installation [default=yes]
1107  --disable-libtool-lock  avoid locking (might break parallel builds)
1108  --disable-interpackage-dependencies
1109                          disables deduction of Makefile dependencies from
1110                          package linker flags
1111
1112Optional Packages:
1113  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1114  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1115  --with-hsl-verbosity specify the debug verbosity level for project HSL
1116  --with-hsl-checklevel specify the sanity check level for project HSL
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124
1125  --with-metis-lib linker flags for using package Metis
1126  --with-metis-incdir directory with header files for using package Metis
1127  --with-metis-datadir directory with data files for using package Metis
1128  --with-blas             specify BLAS library (or BUILD to enforce use of
1129                          ThirdParty/Blas)
1130  --with-blas-lib linker flags for using package Blas
1131  --with-blas-incdir directory with header files for using package Blas
1132  --with-blas-datadir directory with data files for using package Blas
1133
1134Some influential environment variables:
1135  CDEFS       Additional -D flags to be used when compiling C code.
1136  ADD_CFLAGS  Additional C compiler options
1137  DBG_CFLAGS  Debug C compiler options
1138  OPT_CFLAGS  Optimize C compiler options
1139  CC          C compiler command
1140  CFLAGS      C compiler flags
1141  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1142              nonstandard directory <lib dir>
1143  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1144              headers in a nonstandard directory <include dir>
1145  MPICC       C MPI Compiler
1146  ADD_FFLAGS  Additional Fortran compiler options
1147  DBG_FFLAGS  Debug Fortran compiler options
1148  OPT_FFLAGS  Optimize Fortran compiler options
1149  F77         Fortran 77 compiler command
1150  FFLAGS      Fortran 77 compiler flags
1151  MPIF77      Fortran MPI Compiler
1152  PKG_CONFIG  path to pkg-config utility
1153  FC          Fortran compiler command
1154  FCFLAGS     Fortran compiler flags
1155  CPP         C preprocessor
1156  CXX         C++ compiler command
1157  CXXFLAGS    C++ compiler flags
1158  CXXCPP      C++ preprocessor
1159
1160Use these variables to override the choices made by `configure' or to help
1161it to find libraries and programs with nonstandard names/locations.
1162
1163Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1164_ACEOF
1165fi
1166
1167if test "$ac_init_help" = "recursive"; then
1168  # If there are subdirs, report their specific --help.
1169  ac_popdir=`pwd`
1170  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171    test -d $ac_dir || continue
1172    ac_builddir=.
1173
1174if test "$ac_dir" != .; then
1175  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1176  # A "../" for each directory in $ac_dir_suffix.
1177  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1178else
1179  ac_dir_suffix= ac_top_builddir=
1180fi
1181
1182case $srcdir in
1183  .)  # No --srcdir option.  We are building in place.
1184    ac_srcdir=.
1185    if test -z "$ac_top_builddir"; then
1186       ac_top_srcdir=.
1187    else
1188       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1189    fi ;;
1190  [\\/]* | ?:[\\/]* )  # Absolute path.
1191    ac_srcdir=$srcdir$ac_dir_suffix;
1192    ac_top_srcdir=$srcdir ;;
1193  *) # Relative path.
1194    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1196esac
1197
1198# Do not use `cd foo && pwd` to compute absolute paths, because
1199# the directories may not exist.
1200case `pwd` in
1201.) ac_abs_builddir="$ac_dir";;
1202*)
1203  case "$ac_dir" in
1204  .) ac_abs_builddir=`pwd`;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_top_builddir=${ac_top_builddir}.;;
1211*)
1212  case ${ac_top_builddir}. in
1213  .) ac_abs_top_builddir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_srcdir=$ac_srcdir;;
1220*)
1221  case $ac_srcdir in
1222  .) ac_abs_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1225  esac;;
1226esac
1227case $ac_abs_builddir in
1228.) ac_abs_top_srcdir=$ac_top_srcdir;;
1229*)
1230  case $ac_top_srcdir in
1231  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1234  esac;;
1235esac
1236
1237    cd $ac_dir
1238    # Check for guested configure; otherwise get Cygnus style configure.
1239    if test -f $ac_srcdir/configure.gnu; then
1240      echo
1241      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1242    elif test -f $ac_srcdir/configure; then
1243      echo
1244      $SHELL $ac_srcdir/configure  --help=recursive
1245    elif test -f $ac_srcdir/configure.ac ||
1246           test -f $ac_srcdir/configure.in; then
1247      echo
1248      $ac_configure --help
1249    else
1250      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1251    fi
1252    cd $ac_popdir
1253  done
1254fi
1255
1256test -n "$ac_init_help" && exit 0
1257if $ac_init_version; then
1258  cat <<\_ACEOF
1259ThirdPartyHSL configure 1.3
1260generated by GNU Autoconf 2.59
1261
1262Copyright (C) 2003 Free Software Foundation, Inc.
1263This configure script is free software; the Free Software Foundation
1264gives unlimited permission to copy, distribute and modify it.
1265
1266
1267Copyright 2006, 2009 International Business Machines and others.
1268All Rights Reserved.
1269This file is part of the open source package Coin which is distributed
1270under the Eclipse Public License.
1271_ACEOF
1272  exit 0
1273fi
1274exec 5>config.log
1275cat >&5 <<_ACEOF
1276This file contains any messages produced by compilers while
1277running configure, to aid debugging if configure makes a mistake.
1278
1279It was created by ThirdPartyHSL $as_me 1.3, which was
1280generated by GNU Autoconf 2.59.  Invocation command line was
1281
1282  $ $0 $@
1283
1284_ACEOF
1285{
1286cat <<_ASUNAME
1287## --------- ##
1288## Platform. ##
1289## --------- ##
1290
1291hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1292uname -m = `(uname -m) 2>/dev/null || echo unknown`
1293uname -r = `(uname -r) 2>/dev/null || echo unknown`
1294uname -s = `(uname -s) 2>/dev/null || echo unknown`
1295uname -v = `(uname -v) 2>/dev/null || echo unknown`
1296
1297/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1298/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1299
1300/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1301/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1302/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1303hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1304/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1305/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1306/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1307
1308_ASUNAME
1309
1310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1311for as_dir in $PATH
1312do
1313  IFS=$as_save_IFS
1314  test -z "$as_dir" && as_dir=.
1315  echo "PATH: $as_dir"
1316done
1317
1318} >&5
1319
1320cat >&5 <<_ACEOF
1321
1322
1323## ----------- ##
1324## Core tests. ##
1325## ----------- ##
1326
1327_ACEOF
1328
1329
1330# Keep a trace of the command line.
1331# Strip out --no-create and --no-recursion so they do not pile up.
1332# Strip out --silent because we don't want to record it for future runs.
1333# Also quote any args containing shell meta-characters.
1334# Make two passes to allow for proper duplicate-argument suppression.
1335ac_configure_args=
1336ac_configure_args0=
1337ac_configure_args1=
1338ac_sep=
1339ac_must_keep_next=false
1340for ac_pass in 1 2
1341do
1342  for ac_arg
1343  do
1344    case $ac_arg in
1345    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1346    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347    | -silent | --silent | --silen | --sile | --sil)
1348      continue ;;
1349    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1350      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1351    esac
1352    case $ac_pass in
1353    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1354    2)
1355      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1356      if test $ac_must_keep_next = true; then
1357        ac_must_keep_next=false # Got value, back to normal.
1358      else
1359        case $ac_arg in
1360          *=* | --config-cache | -C | -disable-* | --disable-* \
1361          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1362          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1363          | -with-* | --with-* | -without-* | --without-* | --x)
1364            case "$ac_configure_args0 " in
1365              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1366            esac
1367            ;;
1368          -* ) ac_must_keep_next=true ;;
1369        esac
1370      fi
1371      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1372      # Get rid of the leading space.
1373      ac_sep=" "
1374      ;;
1375    esac
1376  done
1377done
1378$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1379$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1380
1381# When interrupted or exit'd, cleanup temporary files, and complete
1382# config.log.  We remove comments because anyway the quotes in there
1383# would cause problems or look ugly.
1384# WARNING: Be sure not to use single quotes in there, as some shells,
1385# such as our DU 5.0 friend, will then `close' the trap.
1386trap 'exit_status=$?
1387  # Save into config.log some information that might help in debugging.
1388  {
1389    echo
1390
1391    cat <<\_ASBOX
1392## ---------------- ##
1393## Cache variables. ##
1394## ---------------- ##
1395_ASBOX
1396    echo
1397    # The following way of writing the cache mishandles newlines in values,
1398{
1399  (set) 2>&1 |
1400    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1401    *ac_space=\ *)
1402      sed -n \
1403        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1404          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1405      ;;
1406    *)
1407      sed -n \
1408        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1409      ;;
1410    esac;
1411}
1412    echo
1413
1414    cat <<\_ASBOX
1415## ----------------- ##
1416## Output variables. ##
1417## ----------------- ##
1418_ASBOX
1419    echo
1420    for ac_var in $ac_subst_vars
1421    do
1422      eval ac_val=$`echo $ac_var`
1423      echo "$ac_var='"'"'$ac_val'"'"'"
1424    done | sort
1425    echo
1426
1427    if test -n "$ac_subst_files"; then
1428      cat <<\_ASBOX
1429## ------------- ##
1430## Output files. ##
1431## ------------- ##
1432_ASBOX
1433      echo
1434      for ac_var in $ac_subst_files
1435      do
1436        eval ac_val=$`echo $ac_var`
1437        echo "$ac_var='"'"'$ac_val'"'"'"
1438      done | sort
1439      echo
1440    fi
1441
1442    if test -s confdefs.h; then
1443      cat <<\_ASBOX
1444## ----------- ##
1445## confdefs.h. ##
1446## ----------- ##
1447_ASBOX
1448      echo
1449      sed "/^$/d" confdefs.h | sort
1450      echo
1451    fi
1452    test "$ac_signal" != 0 &&
1453      echo "$as_me: caught signal $ac_signal"
1454    echo "$as_me: exit $exit_status"
1455  } >&5
1456  rm -f core *.core &&
1457  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1458    exit $exit_status
1459     ' 0
1460for ac_signal in 1 2 13 15; do
1461  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1462done
1463ac_signal=0
1464
1465# confdefs.h avoids OS command line length limits that DEFS can exceed.
1466rm -rf conftest* confdefs.h
1467# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1468echo >confdefs.h
1469
1470# Predefined preprocessor variables.
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_NAME "$PACKAGE_NAME"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_VERSION "$PACKAGE_VERSION"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_STRING "$PACKAGE_STRING"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1494_ACEOF
1495
1496
1497# Let the site file select an alternate cache file if it wants to.
1498# Prefer explicitly selected file to automatically selected ones.
1499if test -z "$CONFIG_SITE"; then
1500  if test "x$prefix" != xNONE; then
1501    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1502  else
1503    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1504  fi
1505fi
1506for ac_site_file in $CONFIG_SITE; do
1507  if test -r "$ac_site_file"; then
1508    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1509echo "$as_me: loading site script $ac_site_file" >&6;}
1510    sed 's/^/| /' "$ac_site_file" >&5
1511    . "$ac_site_file"
1512  fi
1513done
1514
1515if test -r "$cache_file"; then
1516  # Some versions of bash will fail to source /dev/null (special
1517  # files actually), so we avoid doing that.
1518  if test -f "$cache_file"; then
1519    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1520echo "$as_me: loading cache $cache_file" >&6;}
1521    case $cache_file in
1522      [\\/]* | ?:[\\/]* ) . $cache_file;;
1523      *)                      . ./$cache_file;;
1524    esac
1525  fi
1526else
1527  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1528echo "$as_me: creating cache $cache_file" >&6;}
1529  >$cache_file
1530fi
1531
1532# Check that the precious variables saved in the cache have kept the same
1533# value.
1534ac_cache_corrupted=false
1535for ac_var in `(set) 2>&1 |
1536               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1537  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1538  eval ac_new_set=\$ac_env_${ac_var}_set
1539  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1540  eval ac_new_val="\$ac_env_${ac_var}_value"
1541  case $ac_old_set,$ac_new_set in
1542    set,)
1543      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1544echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1545      ac_cache_corrupted=: ;;
1546    ,set)
1547      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1548echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1549      ac_cache_corrupted=: ;;
1550    ,);;
1551    *)
1552      if test "x$ac_old_val" != "x$ac_new_val"; then
1553        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1554echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1555        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1556echo "$as_me:   former value:  $ac_old_val" >&2;}
1557        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1558echo "$as_me:   current value: $ac_new_val" >&2;}
1559        ac_cache_corrupted=:
1560      fi;;
1561  esac
1562  # Pass precious variables to config.status.
1563  if test "$ac_new_set" = set; then
1564    case $ac_new_val in
1565    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1566      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1567    *) ac_arg=$ac_var=$ac_new_val ;;
1568    esac
1569    case " $ac_configure_args " in
1570      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1571      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1572    esac
1573  fi
1574done
1575if $ac_cache_corrupted; then
1576  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1577echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1578  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1579echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1580   { (exit 1); exit 1; }; }
1581fi
1582
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618# List one file in the package so that the configure script can test
1619# whether the package is actually there
1620# Here we don't know yet which files are actually provided...
1621
1622
1623# Where should everything be installed by default?  Here, we want it
1624# to be installed directly in 'bin', 'lib', 'include' subdirectories
1625# of the directory where configure is run.  The default would be
1626# /usr/local.
1627
1628
1629
1630# As backup, we make sure we don't loose an FLIBS if it has been set
1631# by the user
1632save_FLIBS="$FLIBS"
1633
1634# A useful makefile conditional that is always false
1635
1636
1637if false; then
1638  ALWAYS_FALSE_TRUE=
1639  ALWAYS_FALSE_FALSE='#'
1640else
1641  ALWAYS_FALSE_TRUE='#'
1642  ALWAYS_FALSE_FALSE=
1643fi
1644
1645
1646# We set the following variable so that we know later in AC_COIN_FINALIZE
1647# that we are in a project main directory
1648coin_projectdir=yes
1649
1650# Set the project's version numbers
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define COINHSL_VERSION "$PACKAGE_VERSION"
1655_ACEOF
1656
1657
1658  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1659  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1660  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1661  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1662  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1663  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1664
1665cat >>confdefs.h <<_ACEOF
1666#define COINHSL_VERSION_MAJOR $coin_majorver
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define COINHSL_VERSION_MINOR $coin_minorver
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define COINHSL_VERSION_RELEASE $coin_releasever
1677_ACEOF
1678
1679
1680  # We use the following variable to have a string with the upper case
1681  # version of the project name
1682  COIN_PRJCT=COINHSL
1683
1684  # Set the project's SVN revision number. The complicated sed expression
1685  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1686  # as a single number.
1687  # Extract the first word of "svnversion", so it can be a program name with args.
1688set dummy svnversion; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_have_svnversion+set}" = set; then
1692  echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694  if test -n "$have_svnversion"; then
1695  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1696else
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700  IFS=$as_save_IFS
1701  test -z "$as_dir" && as_dir=.
1702  for ac_exec_ext in '' $ac_executable_extensions; do
1703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704    ac_cv_prog_have_svnversion="yes"
1705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706    break 2
1707  fi
1708done
1709done
1710
1711  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1712fi
1713fi
1714have_svnversion=$ac_cv_prog_have_svnversion
1715if test -n "$have_svnversion"; then
1716  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1717echo "${ECHO_T}$have_svnversion" >&6
1718else
1719  echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723  if test "x$have_svnversion" = xyes; then
1724
1725    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1726    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1727      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1728
1729cat >>confdefs.h <<_ACEOF
1730#define COINHSL_SVN_REV $COINHSL_SVN_REV
1731_ACEOF
1732
1733    fi
1734  fi
1735
1736
1737
1738# Capture libtool library version, if given.
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# turn off warnings and pedantic mode since they could make trouble on some platforms,
1807# and we couldn't fix them anyway
1808coin_skip_warn_fflags=yes
1809
1810# provide flag to allow compilation of a stand-alone shared library
1811# Check whether --enable-loadable-library or --disable-loadable-library was given.
1812if test "${enable_loadable_library+set}" = set; then
1813  enableval="$enable_loadable_library"
1814
1815fi;
1816
1817# Check if user wants to produce debugging code
1818
1819echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1820echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1821
1822# Check whether --enable-debug or --disable-debug was given.
1823if test "${enable_debug+set}" = set; then
1824  enableval="$enable_debug"
1825  case "${enableval}" in
1826   yes) coin_debug_compile=true
1827        if test "${enable_shared+set}" = set; then :; else
1828          enable_shared=no
1829        fi
1830        ;;
1831   no)  coin_debug_compile=false
1832        ;;
1833   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1834echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1835   { (exit 1); exit 1; }; }
1836        ;;
1837esac
1838else
1839  coin_debug_compile=false
1840fi;
1841
1842# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1843if test "${enable_debug_hsl+set}" = set; then
1844  enableval="$enable_debug_hsl"
1845  case "${enableval}" in
1846    yes) coin_debug_compile=true
1847         ;;
1848    no)  coin_debug_compile=false
1849         ;;
1850    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1851echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1852   { (exit 1); exit 1; }; }
1853         ;;
1854 esac
1855else
1856  :
1857fi;
1858
1859 # m4_ifvaln([HSL],
1860
1861if test $coin_debug_compile = true; then
1862  echo "$as_me:$LINENO: result: yes" >&5
1863echo "${ECHO_T}yes" >&6
1864else
1865  echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869
1870# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1871if test "${with_hsl_verbosity+set}" = set; then
1872  withval="$with_hsl_verbosity"
1873  if test "$withval" = yes; then
1874                withval=1
1875              fi
1876              coin_hsl_verbosity=$withval
1877else
1878  coin_hsl_verbosity=0
1879fi;
1880
1881cat >>confdefs.h <<_ACEOF
1882#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1883_ACEOF
1884
1885
1886
1887# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1888if test "${with_hsl_checklevel+set}" = set; then
1889  withval="$with_hsl_checklevel"
1890  if test "$withval" = yes; then
1891                withval=1
1892              fi
1893              coin_hsl_checklevel=$withval
1894else
1895  coin_hsl_checklevel=0
1896fi;
1897
1898cat >>confdefs.h <<_ACEOF
1899#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1900_ACEOF
1901
1902
1903 # m4_ifvaln([HSL],
1904
1905
1906
1907# Get the name of the C compiler (for a dummy program)
1908case $build in
1909  *-mingw*)
1910    if test "${LD+set}" = set; then :; else
1911      LD=link
1912    fi
1913    ;;
1914 esac
1915 case $enable_doscompile in
1916   msvc)
1917     if test "x${LD+set}" = xset; then :; else
1918       LD=link
1919     fi
1920     ;;
1921 esac
1922
1923
1924 # Check whether --enable-doscompile or --disable-doscompile was given.
1925if test "${enable_doscompile+set}" = set; then
1926  enableval="$enable_doscompile"
1927  if test "$enable_doscompile" != no; then
1928     case $build in
1929       *-cygwin* | *-mingw*) ;;
1930       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1931echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1932   { (exit 1); exit 1; }; } ;;
1933     esac
1934   fi
1935else
1936  enable_doscompile=no
1937fi;
1938 case "$enable_doscompile" in
1939   mingw)
1940     case $build in
1941       *-mingw*) enable_doscompile=no ;;
1942     esac
1943     ;;
1944   msvc|no) ;;
1945   yes) enable_doscompile=mingw ;;
1946   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1947                    Try configure --help=recursive." >&5
1948echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1949                    Try configure --help=recursive." >&2;}
1950   { (exit 1); exit 1; }; }
1951      ;;
1952  esac
1953  if test "$enable_doscompile" != no ; then
1954    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1955echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1956  fi
1957
1958
1959
1960
1961ac_ext=c
1962ac_cpp='$CPP $CPPFLAGS'
1963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
1967
1968# For consistency, we set the C compiler to the same value of the C++
1969# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1970if test x"$CXX" != x; then
1971  case "$CXX" in
1972    clang* ) ;;
1973    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1974      if test x"$CC" = x; then
1975        CC="$CXX"
1976        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1977echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1978      fi
1979      ;;
1980  esac
1981fi
1982
1983
1984
1985
1986
1987
1988coin_has_cc=yes
1989
1990save_cflags="$CFLAGS"
1991
1992# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1993# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1994# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1995# compiler. In this case, put cc after gcc.
1996
1997case $build in
1998  *-cygwin* | *-mingw*)
1999             if test "$enable_doscompile" = msvc ; then
2000               comps="icl cl"
2001             else
2002               comps="gcc cl"
2003             fi ;;
2004  *-*-solaris*)
2005             # Extract the first word of "cc", so it can be a program name with args.
2006set dummy cc; ac_word=$2
2007echo "$as_me:$LINENO: checking for $ac_word" >&5
2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2010  echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012  if test -n "$sol_cc_compiler"; then
2013  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2014else
2015  ac_prog_rejected=no
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2024       ac_prog_rejected=yes
2025       continue
2026     fi
2027    ac_cv_prog_sol_cc_compiler="cc"
2028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029    break 2
2030  fi
2031done
2032done
2033
2034if test $ac_prog_rejected = yes; then
2035  # We found a bogon in the path, so make sure we never use it.
2036  set dummy $ac_cv_prog_sol_cc_compiler
2037  shift
2038  if test $# != 0; then
2039    # We chose a different compiler from the bogus one.
2040    # However, it has the same basename, so the bogon will be chosen
2041    # first if we set sol_cc_compiler to just the basename; use the full file name.
2042    shift
2043    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2044  fi
2045fi
2046fi
2047fi
2048sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2049if test -n "$sol_cc_compiler"; then
2050  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2051echo "${ECHO_T}$sol_cc_compiler" >&6
2052else
2053  echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055fi
2056
2057             if test "$sol_cc_compiler" = "cc" ; then
2058               comps="cc xlc gcc pgcc icc"
2059             else
2060               comps="xlc gcc pgcc icc cc"
2061             fi
2062             ;;
2063  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2064  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2065  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2066esac
2067
2068# We delete the cached value, since the test might not have been
2069# performed with our choice of compilers earlier
2070$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2071# AC_MSG_NOTICE([C compiler candidates: $comps])
2072ac_ext=c
2073ac_cpp='$CPP $CPPFLAGS'
2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077if test -n "$ac_tool_prefix"; then
2078  for ac_prog in $comps
2079  do
2080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2082echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084if test "${ac_cv_prog_CC+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  if test -n "$CC"; then
2088  ac_cv_prog_CC="$CC" # Let the user override the test.
2089else
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093  IFS=$as_save_IFS
2094  test -z "$as_dir" && as_dir=.
2095  for ac_exec_ext in '' $ac_executable_extensions; do
2096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099    break 2
2100  fi
2101done
2102done
2103
2104fi
2105fi
2106CC=$ac_cv_prog_CC
2107if test -n "$CC"; then
2108  echo "$as_me:$LINENO: result: $CC" >&5
2109echo "${ECHO_T}$CC" >&6
2110else
2111  echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
2113fi
2114
2115    test -n "$CC" && break
2116  done
2117fi
2118if test -z "$CC"; then
2119  ac_ct_CC=$CC
2120  for ac_prog in $comps
2121do
2122  # Extract the first word of "$ac_prog", so it can be a program name with args.
2123set dummy $ac_prog; ac_word=$2
2124echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  if test -n "$ac_ct_CC"; then
2130  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137  for ac_exec_ext in '' $ac_executable_extensions; do
2138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139    ac_cv_prog_ac_ct_CC="$ac_prog"
2140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141    break 2
2142  fi
2143done
2144done
2145
2146fi
2147fi
2148ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149if test -n "$ac_ct_CC"; then
2150  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151echo "${ECHO_T}$ac_ct_CC" >&6
2152else
2153  echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6
2155fi
2156
2157  test -n "$ac_ct_CC" && break
2158done
2159
2160  CC=$ac_ct_CC
2161fi
2162
2163
2164test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: no acceptable C compiler found in \$PATH
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169
2170# Provide some information about the compiler.
2171echo "$as_me:$LINENO:" \
2172     "checking for C compiler version" >&5
2173ac_compiler=`set X $ac_compile; echo $2`
2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2175  (eval $ac_compiler --version </dev/null >&5) 2>&5
2176  ac_status=$?
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); }
2179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2180  (eval $ac_compiler -v </dev/null >&5) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }
2184{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2185  (eval $ac_compiler -V </dev/null >&5) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }
2189
2190cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h.  */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h.  */
2196
2197int
2198main ()
2199{
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205ac_clean_files_save=$ac_clean_files
2206ac_clean_files="$ac_clean_files a.out a.exe b.out"
2207# Try to create an executable without -o first, disregard a.out.
2208# It will help us diagnose broken compilers, and finding out an intuition
2209# of exeext.
2210echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2211echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2212ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2213if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2214  (eval $ac_link_default) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; then
2218  # Find the output, starting from the most likely.  This scheme is
2219# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2220# resort.
2221
2222# Be careful to initialize this variable, since it used to be cached.
2223# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2224ac_cv_exeext=
2225# b.out is created by i960 compilers.
2226for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2227do
2228  test -f "$ac_file" || continue
2229  case $ac_file in
2230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2231        ;;
2232    conftest.$ac_ext )
2233        # This is the source file.
2234        ;;
2235    [ab].out )
2236        # We found the default executable, but exeext='' is most
2237        # certainly right.
2238        break;;
2239    *.* )
2240        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241        # FIXME: I believe we export ac_cv_exeext for Libtool,
2242        # but it would be cool to find out if it's true.  Does anybody
2243        # maintain Libtool? --akim.
2244        export ac_cv_exeext
2245        break;;
2246    * )
2247        break;;
2248  esac
2249done
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: C compiler cannot create executables
2257See \`config.log' for more details." >&2;}
2258   { (exit 77); exit 77; }; }
2259fi
2260
2261ac_exeext=$ac_cv_exeext
2262echo "$as_me:$LINENO: result: $ac_file" >&5
2263echo "${ECHO_T}$ac_file" >&6
2264
2265# Check the compiler produces executables we can run.  If not, either
2266# the compiler is broken, or we cross compile.
2267echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2268echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2269# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2270# If not cross compiling, check that we can run a simple program.
2271if test "$cross_compiling" != yes; then
2272  if { ac_try='./$ac_file'
2273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274  (eval $ac_try) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; }; then
2278    cross_compiling=no
2279  else
2280    if test "$cross_compiling" = maybe; then
2281        cross_compiling=yes
2282    else
2283        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2284If you meant to cross compile, use \`--host'.
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290    fi
2291  fi
2292fi
2293echo "$as_me:$LINENO: result: yes" >&5
2294echo "${ECHO_T}yes" >&6
2295
2296rm -f a.out a.exe conftest$ac_cv_exeext b.out
2297ac_clean_files=$ac_clean_files_save
2298# Check the compiler produces executables we can run.  If not, either
2299# the compiler is broken, or we cross compile.
2300echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2301echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2302echo "$as_me:$LINENO: result: $cross_compiling" >&5
2303echo "${ECHO_T}$cross_compiling" >&6
2304
2305echo "$as_me:$LINENO: checking for suffix of executables" >&5
2306echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2308  (eval $ac_link) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; then
2312  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2313# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2314# work properly (i.e., refer to `conftest.exe'), while it won't with
2315# `rm'.
2316for ac_file in conftest.exe conftest conftest.*; do
2317  test -f "$ac_file" || continue
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2320    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321          export ac_cv_exeext
2322          break;;
2323    * ) break;;
2324  esac
2325done
2326else
2327  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2330See \`config.log' for more details." >&2;}
2331   { (exit 1); exit 1; }; }
2332fi
2333
2334rm -f conftest$ac_cv_exeext
2335echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2336echo "${ECHO_T}$ac_cv_exeext" >&6
2337
2338rm -f conftest.$ac_ext
2339EXEEXT=$ac_cv_exeext
2340ac_exeext=$EXEEXT
2341echo "$as_me:$LINENO: checking for suffix of object files" >&5
2342echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2343if test "${ac_cv_objext+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361rm -f conftest.o conftest.obj
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; then
2367  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2368  case $ac_file in
2369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2370    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2371       break;;
2372  esac
2373done
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2379See \`config.log' for more details." >&5
2380echo "$as_me: error: cannot compute suffix of object files: cannot compile
2381See \`config.log' for more details." >&2;}
2382   { (exit 1); exit 1; }; }
2383fi
2384
2385rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386fi
2387echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2388echo "${ECHO_T}$ac_cv_objext" >&6
2389OBJEXT=$ac_cv_objext
2390ac_objext=$OBJEXT
2391echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2392echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2393if test "${ac_cv_c_compiler_gnu+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  cat >conftest.$ac_ext <<_ACEOF
2397/* confdefs.h.  */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h.  */
2402
2403int
2404main ()
2405{
2406#ifndef __GNUC__
2407       choke me
2408#endif
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416  (eval $ac_compile) 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423         { ac_try='test -z "$ac_c_werror_flag"
2424                         || test ! -s conftest.err'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; } &&
2430         { ac_try='test -s conftest.$ac_objext'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; }; then
2436  ac_compiler_gnu=yes
2437else
2438  echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441ac_compiler_gnu=no
2442fi
2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445
2446fi
2447echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449GCC=`test $ac_compiler_gnu = yes && echo yes`
2450ac_test_CFLAGS=${CFLAGS+set}
2451ac_save_CFLAGS=$CFLAGS
2452CFLAGS="-g"
2453echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2455if test "${ac_cv_prog_cc_g+set}" = set; then
2456  echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458  cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464
2465int
2466main ()
2467{
2468
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475  (eval $ac_compile) 2>conftest.er1
2476  ac_status=$?
2477  grep -v '^ *+' conftest.er1 >conftest.err
2478  rm -f conftest.er1
2479  cat conftest.err >&5
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } &&
2482         { ac_try='test -z "$ac_c_werror_flag"
2483                         || test ! -s conftest.err'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; } &&
2489         { ac_try='test -s conftest.$ac_objext'
2490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491  (eval $ac_try) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  ac_cv_prog_cc_g=yes
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500ac_cv_prog_cc_g=no
2501fi
2502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503fi
2504echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2505echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2506if test "$ac_test_CFLAGS" = set; then
2507  CFLAGS=$ac_save_CFLAGS
2508elif test $ac_cv_prog_cc_g = yes; then
2509  if test "$GCC" = yes; then
2510    CFLAGS="-g -O2"
2511  else
2512    CFLAGS="-g"
2513  fi
2514else
2515  if test "$GCC" = yes; then
2516    CFLAGS="-O2"
2517  else
2518    CFLAGS=
2519  fi
2520fi
2521echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2522echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2523if test "${ac_cv_prog_cc_stdc+set}" = set; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526  ac_cv_prog_cc_stdc=no
2527ac_save_CC=$CC
2528cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534#include <stdarg.h>
2535#include <stdio.h>
2536#include <sys/types.h>
2537#include <sys/stat.h>
2538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2539struct buf { int x; };
2540FILE * (*rcsopen) (struct buf *, struct stat *, int);
2541static char *e (p, i)
2542     char **p;
2543     int i;
2544{
2545  return p[i];
2546}
2547static char *f (char * (*g) (char **, int), char **p, ...)
2548{
2549  char *s;
2550  va_list v;
2551  va_start (v,p);
2552  s = g (p, va_arg (v,int));
2553  va_end (v);
2554  return s;
2555}
2556
2557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2558   function prototypes and stuff, but not '\xHH' hex character constants.
2559   These don't provoke an error unfortunately, instead are silently treated
2560   as 'x'.  The following induces an error, until -std1 is added to get
2561   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2562   array size at least.  It's necessary to write '\x00'==0 to get something
2563   that's true only with -std1.  */
2564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2565
2566int test (int i, double x);
2567struct s1 {int (*f) (int a);};
2568struct s2 {int (*f) (double a);};
2569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2570int argc;
2571char **argv;
2572int
2573main ()
2574{
2575return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580# Don't try gcc -ansi; that turns off useful extensions and
2581# breaks some systems' header files.
2582# AIX                   -qlanglvl=ansi
2583# Ultrix and OSF/1      -std1
2584# HP-UX 10.20 and later -Ae
2585# HP-UX older versions  -Aa -D_HPUX_SOURCE
2586# SVR4                  -Xc -D__EXTENSIONS__
2587for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2588do
2589  CC="$ac_save_CC $ac_arg"
2590  rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592  (eval $ac_compile) 2>conftest.er1
2593  ac_status=$?
2594  grep -v '^ *+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } &&
2599         { ac_try='test -z "$ac_c_werror_flag"
2600                         || test ! -s conftest.err'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; } &&
2606         { ac_try='test -s conftest.$ac_objext'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; }; then
2612  ac_cv_prog_cc_stdc=$ac_arg
2613break
2614else
2615  echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618fi
2619rm -f conftest.err conftest.$ac_objext
2620done
2621rm -f conftest.$ac_ext conftest.$ac_objext
2622CC=$ac_save_CC
2623
2624fi
2625
2626case "x$ac_cv_prog_cc_stdc" in
2627  x|xno)
2628    echo "$as_me:$LINENO: result: none needed" >&5
2629echo "${ECHO_T}none needed" >&6 ;;
2630  *)
2631    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2632echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2633    CC="$CC $ac_cv_prog_cc_stdc" ;;
2634esac
2635
2636# Some people use a C++ compiler to compile C.  Since we use `exit',
2637# in C++ we need to declare it.  In case someone uses the same compiler
2638# for both compiling C and C++ we need to have the C++ compiler decide
2639# the declaration of exit, since it's the most demanding environment.
2640cat >conftest.$ac_ext <<_ACEOF
2641#ifndef __cplusplus
2642  choke me
2643#endif
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647  (eval $ac_compile) 2>conftest.er1
2648  ac_status=$?
2649  grep -v '^ *+' conftest.er1 >conftest.err
2650  rm -f conftest.er1
2651  cat conftest.err >&5
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); } &&
2654         { ac_try='test -z "$ac_c_werror_flag"
2655                         || test ! -s conftest.err'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; } &&
2661         { ac_try='test -s conftest.$ac_objext'
2662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663  (eval $ac_try) 2>&5
2664  ac_status=$?
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); }; }; then
2667  for ac_declaration in \
2668   '' \
2669   'extern "C" void std::exit (int) throw (); using std::exit;' \
2670   'extern "C" void std::exit (int); using std::exit;' \
2671   'extern "C" void exit (int) throw ();' \
2672   'extern "C" void exit (int);' \
2673   'void exit (int);'
2674do
2675  cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h.  */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h.  */
2681$ac_declaration
2682#include <stdlib.h>
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700         { ac_try='test -z "$ac_c_werror_flag"
2701                         || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707         { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  :
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718continue
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721  cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727$ac_declaration
2728int
2729main ()
2730{
2731exit (42);
2732  ;
2733  return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -z "$ac_c_werror_flag"
2746                         || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752         { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  break
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765done
2766rm -f conftest*
2767if test -n "$ac_declaration"; then
2768  echo '#ifdef __cplusplus' >>confdefs.h
2769  echo $ac_declaration      >>confdefs.h
2770  echo '#endif'             >>confdefs.h
2771fi
2772
2773else
2774  echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777fi
2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785if test -z "$CC" ; then
2786  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2787echo "$as_me: error: Failed to find a C compiler!" >&2;}
2788   { (exit 1); exit 1; }; }
2789fi
2790# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2791case "$CC" in
2792  clang* ) ;;
2793  cl* | */cl* | CL* | */CL* )
2794    if test "$ac_cv_prog_cc_g" = yes ; then
2795      ac_cv_prog_cc_g=no
2796      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2797echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2798    fi ;;
2799esac
2800CFLAGS="$save_cflags"
2801
2802# add automake conditional so we can recognize cl compiler in makefile
2803coin_cc_is_cl=false
2804case "$CC" in
2805  clang* ) ;;
2806  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2807    coin_cc_is_cl=true
2808    ;;
2809esac
2810
2811
2812if test $coin_cc_is_cl = true; then
2813  COIN_CC_IS_CL_TRUE=
2814  COIN_CC_IS_CL_FALSE='#'
2815else
2816  COIN_CC_IS_CL_TRUE='#'
2817  COIN_CC_IS_CL_FALSE=
2818fi
2819
2820
2821# Check if a project specific CFLAGS variable has been set
2822if test x$COIN_PRJCT != x; then
2823  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2824  if test x$coin_tmp = xset; then
2825    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2826  fi
2827fi
2828
2829if test x"$CFLAGS" = x; then
2830
2831  coin_add_cflags=
2832  coin_opt_cflags=
2833  coin_dbg_cflags=
2834  coin_warn_cflags=
2835
2836  if test "$GCC" = "yes"; then
2837    case "$CC" in
2838      icc* | */icc*)
2839        ;;
2840      *)
2841        coin_opt_cflags="-O3"
2842        coin_add_cflags="-pipe"
2843        coin_dbg_cflags="-g -O0"
2844        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2845        case $build in
2846          *-darwin*)
2847            ;;
2848          *)
2849            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2850            ;;
2851        esac
2852        case $enable_doscompile in
2853          mingw)
2854            CFLAGS="-mno-cygwin"
2855            cat >conftest.$ac_ext <<_ACEOF
2856/* confdefs.h.  */
2857_ACEOF
2858cat confdefs.h >>conftest.$ac_ext
2859cat >>conftest.$ac_ext <<_ACEOF
2860/* end confdefs.h.  */
2861
2862int
2863main ()
2864{
2865int i=0; i++;
2866  ;
2867  return 0;
2868}
2869_ACEOF
2870rm -f conftest.$ac_objext conftest$ac_exeext
2871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2872  (eval $ac_link) 2>conftest.er1
2873  ac_status=$?
2874  grep -v '^ *+' conftest.er1 >conftest.err
2875  rm -f conftest.er1
2876  cat conftest.err >&5
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); } &&
2879         { ac_try='test -z "$ac_c_werror_flag"
2880                         || test ! -s conftest.err'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; } &&
2886         { ac_try='test -s conftest$ac_exeext'
2887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888  (eval $ac_try) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }; }; then
2892  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897fi
2898rm -f conftest.err conftest.$ac_objext \
2899      conftest$ac_exeext conftest.$ac_ext
2900            CFLAGS=
2901          ;;
2902        esac
2903    esac
2904  fi
2905  if test -z "$coin_opt_cflags"; then
2906    case $build in
2907      *-cygwin* | *-mingw*)
2908        case "$CC" in
2909          clang* ) ;;
2910          cl* | */cl* | CL* | */CL*)
2911            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2912              coin_opt_cflags='-MD -O2'
2913              coin_dbg_cflags='-MDd'
2914            else
2915              coin_opt_cflags='-MT -O2'
2916              coin_dbg_cflags='-MTd'
2917            fi
2918            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2919            ;;
2920          icl* | */icl* | ICL* | */ICL*)
2921            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2922              coin_opt_cflags='-MD -Ox'
2923              coin_dbg_cflags='-MDd -debug'
2924            else
2925              coin_opt_cflags='-MT -Ox'
2926              coin_dbg_cflags='-MTd -debug'
2927            fi
2928            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2929            ;;
2930        esac
2931        ;;
2932      *-linux-*)
2933        case "$CC" in
2934          icc* | */icc*)
2935            coin_opt_cflags="-O3 -ip -mp1"
2936            coin_add_cflags=""
2937            coin_dbg_cflags="-g"
2938            # Check if -i_dynamic is necessary (for new glibc library)
2939            CFLAGS=
2940            cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946
2947int
2948main ()
2949{
2950int i=0; i++;
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext conftest$ac_exeext
2956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957  (eval $ac_link) 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } &&
2964         { ac_try='test -z "$ac_c_werror_flag"
2965                         || test ! -s conftest.err'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; } &&
2971         { ac_try='test -s conftest$ac_exeext'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; }; then
2977  :
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982coin_add_cflags="-i_dynamic $coin_add_cflags"
2983fi
2984rm -f conftest.err conftest.$ac_objext \
2985      conftest$ac_exeext conftest.$ac_ext
2986            ;;
2987          pgcc* | */pgcc*)
2988            coin_opt_cflags="-fast"
2989            coin_add_cflags="-Kieee -pc 64"
2990            coin_dbg_cflags="-g"
2991            ;;
2992        esac
2993        ;;
2994      *-ibm-*)
2995        case "$CC" in
2996          xlc* | */xlc* | mpxlc* | */mpxlc*)
2997            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2998            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2999            coin_dbg_cflags="-g"
3000          ;;
3001        esac
3002        ;;
3003      *-hp-*)
3004        coin_opt_cflags="-O"
3005        coin_add_cflags="-Ae"
3006        coin_dbg_cflags="-g"
3007        ;;
3008      *-*-solaris*)
3009        coin_opt_cflags="-xO4"
3010        coin_dbg_cflags="-g"
3011        ;;
3012      *-sgi-*)
3013        coin_opt_cflags="-O -OPT:Olimit=0"
3014        coin_dbg_cflags="-g"
3015        ;;
3016    esac
3017  fi
3018
3019  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3020    coin_dbg_cflags="-g"
3021  fi
3022
3023  if test -z "$coin_opt_cflags"; then
3024    # Try if -O option works if nothing else is set
3025    CFLAGS="-O"
3026    cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036int i=0; i++;
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext conftest$ac_exeext
3042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043  (eval $ac_link) 2>conftest.er1
3044  ac_status=$?
3045  grep -v '^ *+' conftest.er1 >conftest.err
3046  rm -f conftest.er1
3047  cat conftest.err >&5
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); } &&
3050         { ac_try='test -z "$ac_c_werror_flag"
3051                         || test ! -s conftest.err'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; } &&
3057         { ac_try='test -s conftest$ac_exeext'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; }; then
3063  coin_opt_cflags="-O"
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068fi
3069rm -f conftest.err conftest.$ac_objext \
3070      conftest$ac_exeext conftest.$ac_ext
3071  fi
3072
3073  # if PM doesn't want the warning messages, take them out
3074  if test x"$coin_skip_warn_cflags" = xyes; then
3075    coin_warn_cflags=
3076  fi
3077
3078  if test x${DBG_CFLAGS+set} != xset; then
3079    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3080  fi
3081  if test x${OPT_CFLAGS+set} != xset; then
3082    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3083  fi
3084
3085  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3086  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3087
3088  if test "$coin_debug_compile" = "true"; then
3089    CFLAGS="$DBG_CFLAGS"
3090  else
3091    CFLAGS="$OPT_CFLAGS"
3092  fi
3093else
3094  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3095  if test x${DBG_CFLAGS+set} != xset; then
3096    DBG_CFLAGS="$CFLAGS"
3097  fi
3098  if test x${OPT_CFLAGS+set} != xset; then
3099    OPT_CFLAGS="$CFLAGS"
3100  fi
3101fi
3102
3103# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3104
3105case "$CFLAGS" in
3106  *-mno-cygwin*)
3107    if test x${CPPFLAGS+set} != xset ; then
3108      CPPFLAGS="-mno-cygwin"
3109    else
3110      case "$CPPFLAGS" in
3111        *-mno-cygwin*)
3112          ;;
3113        *)
3114          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3115          ;;
3116      esac
3117    fi ;;
3118esac
3119
3120# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3121if test x$COIN_PRJCT != x; then
3122  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3123fi
3124
3125# Try if CFLAGS works
3126save_CFLAGS="$CFLAGS"
3127cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134int
3135main ()
3136{
3137int i=0; i++;
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext conftest$ac_exeext
3143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3144  (eval $ac_link) 2>conftest.er1
3145  ac_status=$?
3146  grep -v '^ *+' conftest.er1 >conftest.err
3147  rm -f conftest.er1
3148  cat conftest.err >&5
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } &&
3151         { ac_try='test -z "$ac_c_werror_flag"
3152                         || test ! -s conftest.err'
3153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154  (eval $ac_try) 2>&5
3155  ac_status=$?
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); }; } &&
3158         { ac_try='test -s conftest$ac_exeext'
3159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160  (eval $ac_try) 2>&5
3161  ac_status=$?
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; }; then
3164  :
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169CFLAGS=
3170fi
3171rm -f conftest.err conftest.$ac_objext \
3172      conftest$ac_exeext conftest.$ac_ext
3173if test -z "$CFLAGS"; then
3174  { 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
3175echo "$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;}
3176  CFLAGS='-O'
3177  cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h.  */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h.  */
3183
3184int
3185main ()
3186{
3187int i=0; i++;
3188  ;
3189  return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext conftest$ac_exeext
3193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194  (eval $ac_link) 2>conftest.er1
3195  ac_status=$?
3196  grep -v '^ *+' conftest.er1 >conftest.err
3197  rm -f conftest.er1
3198  cat conftest.err >&5
3199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200  (exit $ac_status); } &&
3201         { ac_try='test -z "$ac_c_werror_flag"
3202                         || test ! -s conftest.err'
3203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204  (eval $ac_try) 2>&5
3205  ac_status=$?
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); }; } &&
3208         { ac_try='test -s conftest$ac_exeext'
3209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210  (eval $ac_try) 2>&5
3211  ac_status=$?
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); }; }; then
3214  :
3215else
3216  echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219CFLAGS=
3220fi
3221rm -f conftest.err conftest.$ac_objext \
3222      conftest$ac_exeext conftest.$ac_ext
3223  if test -z "$CFLAGS"; then
3224    { 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
3225echo "$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;}
3226  fi
3227fi
3228
3229{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3230echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3231
3232
3233if test x"$MPICC" = x; then :; else
3234  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3235echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3236  CC="$MPICC"
3237fi
3238
3239# Correct the LD variable if we are using the MS or Intel-windows compiler
3240case "$CC" in
3241  clang* ) ;;
3242  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3243    case $build in
3244  *-mingw*)
3245    if test "${LD+set}" = set; then :; else
3246      LD=link
3247    fi
3248    ;;
3249 esac
3250 case $enable_doscompile in
3251   msvc)
3252     if test "x${LD+set}" = xset; then :; else
3253       LD=link
3254     fi
3255     ;;
3256 esac
3257
3258    ;;
3259esac
3260
3261ac_ext=c
3262ac_cpp='$CPP $CPPFLAGS'
3263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267
3268
3269# Get the name of the Fortran compiler and appropriate compiler options
3270case $build in
3271  *-cygwin* | *-mingw*)
3272     if test "$enable_doscompile" = msvc ; then
3273       coin_f77_comps="ifort fl32 compile_f2c"
3274     else
3275       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3276     fi ;;
3277  *-*-solaris*)
3278     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3279  *-linux-gnu*)
3280     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3281  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3282 esac
3283
3284
3285
3286
3287
3288
3289ac_ext=f
3290ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3291ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3293
3294
3295
3296
3297
3298
3299coin_has_f77=yes
3300
3301save_fflags="$FFLAGS"
3302
3303# We delete the cached value, since the test might not have been
3304# performed with our choice of compilers earlier
3305$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3306
3307# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3308# coin_f77_comps to see if there's a program that matches one of the names.
3309# If there's no such program, F77 = unavailable. If we match the name,
3310# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3311# compiler.
3312# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3313
3314
3315{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3316echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3317if test -n "$ac_tool_prefix"; then
3318  for ac_prog in $coin_f77_comps
3319  do
3320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322echo "$as_me:$LINENO: checking for $ac_word" >&5
3323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324if test "${ac_cv_prog_F77+set}" = set; then
3325  echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327  if test -n "$F77"; then
3328  ac_cv_prog_F77="$F77" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333  IFS=$as_save_IFS
3334  test -z "$as_dir" && as_dir=.
3335  for ac_exec_ext in '' $ac_executable_extensions; do
3336  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339    break 2
3340  fi
3341done
3342done
3343
3344fi
3345fi
3346F77=$ac_cv_prog_F77
3347if test -n "$F77"; then
3348  echo "$as_me:$LINENO: result: $F77" >&5
3349echo "${ECHO_T}$F77" >&6
3350else
3351  echo "$as_me:$LINENO: result: no" >&5
3352echo "${ECHO_T}no" >&6
3353fi
3354
3355    test -n "$F77" && break
3356  done
3357fi
3358if test -z "$F77"; then
3359  ac_ct_F77=$F77
3360  for ac_prog in $coin_f77_comps
3361do
3362  # Extract the first word of "$ac_prog", so it can be a program name with args.
3363set dummy $ac_prog; ac_word=$2
3364echo "$as_me:$LINENO: checking for $ac_word" >&5
3365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3367  echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369  if test -n "$ac_ct_F77"; then
3370  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377  for ac_exec_ext in '' $ac_executable_extensions; do
3378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379    ac_cv_prog_ac_ct_F77="$ac_prog"
3380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381    break 2
3382  fi
3383done
3384done
3385
3386fi
3387fi
3388ac_ct_F77=$ac_cv_prog_ac_ct_F77
3389if test -n "$ac_ct_F77"; then
3390  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3391echo "${ECHO_T}$ac_ct_F77" >&6
3392else
3393  echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6
3395fi
3396
3397  test -n "$ac_ct_F77" && break
3398done
3399test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3400
3401  F77=$ac_ct_F77
3402fi
3403
3404
3405if test "$F77" != "unavailable" ; then
3406  ac_ext=f
3407ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3408ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3410if test -n "$ac_tool_prefix"; then
3411  for ac_prog in $coin_f77_comps
3412  do
3413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415echo "$as_me:$LINENO: checking for $ac_word" >&5
3416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417if test "${ac_cv_prog_F77+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  if test -n "$F77"; then
3421  ac_cv_prog_F77="$F77" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428  for ac_exec_ext in '' $ac_executable_extensions; do
3429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435done
3436
3437fi
3438fi
3439F77=$ac_cv_prog_F77
3440if test -n "$F77"; then
3441  echo "$as_me:$LINENO: result: $F77" >&5
3442echo "${ECHO_T}$F77" >&6
3443else
3444  echo "$as_me:$LINENO: result: no" >&5
3445echo "${ECHO_T}no" >&6
3446fi
3447
3448    test -n "$F77" && break
3449  done
3450fi
3451if test -z "$F77"; then
3452  ac_ct_F77=$F77
3453  for ac_prog in $coin_f77_comps
3454do
3455  # Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  if test -n "$ac_ct_F77"; then
3463  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470  for ac_exec_ext in '' $ac_executable_extensions; do
3471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472    ac_cv_prog_ac_ct_F77="$ac_prog"
3473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474    break 2
3475  fi
3476done
3477done
3478
3479fi
3480fi
3481ac_ct_F77=$ac_cv_prog_ac_ct_F77
3482if test -n "$ac_ct_F77"; then
3483  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3484echo "${ECHO_T}$ac_ct_F77" >&6
3485else
3486  echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi
3489
3490  test -n "$ac_ct_F77" && break
3491done
3492
3493  F77=$ac_ct_F77
3494fi
3495
3496
3497# Provide some information about the compiler.
3498echo "$as_me:3498:" \
3499     "checking for Fortran 77 compiler version" >&5
3500ac_compiler=`set X $ac_compile; echo $2`
3501{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3502  (eval $ac_compiler --version </dev/null >&5) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }
3506{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3507  (eval $ac_compiler -v </dev/null >&5) 2>&5
3508  ac_status=$?
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); }
3511{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3512  (eval $ac_compiler -V </dev/null >&5) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }
3516rm -f a.out
3517
3518# If we don't use `.F' as extension, the preprocessor is not run on the
3519# input file.  (Note that this only needs to work for GNU compilers.)
3520ac_save_ext=$ac_ext
3521ac_ext=F
3522echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3523echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3524if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527  cat >conftest.$ac_ext <<_ACEOF
3528      program main
3529#ifndef __GNUC__
3530       choke me
3531#endif
3532
3533      end
3534_ACEOF
3535rm -f conftest.$ac_objext
3536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537  (eval $ac_compile) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } &&
3544         { ac_try='test -z "$ac_f77_werror_flag"
3545                         || test ! -s conftest.err'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; } &&
3551         { ac_try='test -s conftest.$ac_objext'
3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553  (eval $ac_try) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }; }; then
3557  ac_compiler_gnu=yes
3558else
3559  echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562ac_compiler_gnu=no
3563fi
3564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3565ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3566
3567fi
3568echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3569echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3570ac_ext=$ac_save_ext
3571ac_test_FFLAGS=${FFLAGS+set}
3572ac_save_FFLAGS=$FFLAGS
3573FFLAGS=
3574echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3575echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3576if test "${ac_cv_prog_f77_g+set}" = set; then
3577  echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579  FFLAGS=-g
3580cat >conftest.$ac_ext <<_ACEOF
3581      program main
3582
3583      end
3584_ACEOF
3585rm -f conftest.$ac_objext
3586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3587  (eval $ac_compile) 2>conftest.er1
3588  ac_status=$?
3589  grep -v '^ *+' conftest.er1 >conftest.err
3590  rm -f conftest.er1
3591  cat conftest.err >&5
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); } &&
3594         { ac_try='test -z "$ac_f77_werror_flag"
3595                         || test ! -s conftest.err'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; } &&
3601         { ac_try='test -s conftest.$ac_objext'
3602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603  (eval $ac_try) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; }; then
3607  ac_cv_prog_f77_g=yes
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612ac_cv_prog_f77_g=no
3613fi
3614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3615
3616fi
3617echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3618echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3619if test "$ac_test_FFLAGS" = set; then
3620  FFLAGS=$ac_save_FFLAGS
3621elif test $ac_cv_prog_f77_g = yes; then
3622  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3623    FFLAGS="-g -O2"
3624  else
3625    FFLAGS="-g"
3626  fi
3627else
3628  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3629    FFLAGS="-O2"
3630  else
3631    FFLAGS=
3632  fi
3633fi
3634
3635G77=`test $ac_compiler_gnu = yes && echo yes`
3636ac_ext=f
3637ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3638ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3640
3641else
3642  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3643echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3644fi
3645
3646FFLAGS="$save_fflags"
3647
3648# Check if a project specific FFLAGS variable has been set
3649if test x$COIN_PRJCT != x; then
3650  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3651  if test x$coin_tmp = xset; then
3652    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3653  fi
3654fi
3655
3656if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3657
3658  coin_add_fflags=
3659  coin_opt_fflags=
3660  coin_dbg_fflags=
3661  coin_warn_fflags=
3662
3663  if test "$G77" = "yes"; then
3664    coin_opt_fflags="-O3"
3665    coin_add_fflags="-pipe"
3666    coin_dbg_fflags="-g -O0"
3667    case $enable_doscompile in
3668      mingw)
3669        FFLAGS="-mno-cygwin"
3670        cat >conftest.$ac_ext <<_ACEOF
3671      program main
3672      write(*,*) 'Hello world'
3673      end
3674_ACEOF
3675rm -f conftest.$ac_objext conftest$ac_exeext
3676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677  (eval $ac_link) 2>conftest.er1
3678  ac_status=$?
3679  grep -v '^ *+' conftest.er1 >conftest.err
3680  rm -f conftest.er1
3681  cat conftest.err >&5
3682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683  (exit $ac_status); } &&
3684         { ac_try='test -z "$ac_f77_werror_flag"
3685                         || test ! -s conftest.err'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; } &&
3691         { ac_try='test -s conftest$ac_exeext'
3692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693  (eval $ac_try) 2>&5
3694  ac_status=$?
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); }; }; then
3697  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3698else
3699  echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702fi
3703rm -f conftest.err conftest.$ac_objext \
3704      conftest$ac_exeext conftest.$ac_ext
3705        FFLAGS=
3706      ;;
3707    esac
3708  else
3709    case $build in
3710      *-cygwin* | *-mingw*)
3711        case $F77 in
3712          ifort* | */ifort* | IFORT* | */IFORT* )
3713            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3714              coin_opt_fflags='-MD -O3'
3715              coin_dbg_fflags='-MDd -debug'
3716            else
3717              coin_opt_fflags='-MT -O3'
3718              coin_dbg_fflags='-MTd -debug'
3719            fi
3720            coin_add_fflags='-fpp -nologo'
3721          ;;
3722          compile_f2c*)
3723            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3724              coin_opt_fflags='-MD -O2'
3725              coin_dbg_fflags='-MDd'
3726            else
3727              coin_opt_fflags='-MT -O2'
3728              coin_dbg_fflags='-MTd'
3729            fi
3730            coin_add_fflags='-nologo -wd4996'
3731          ;;
3732        esac
3733        ;;
3734      *-linux-*)
3735        case $F77 in
3736          ifc* | */ifc* | ifort* | */ifort*)
3737            coin_opt_fflags="-O3 -ip"
3738            coin_add_fflags="-cm -w90 -w95"
3739            coin_dbg_fflags="-g -CA -CB -CS"
3740            # Check if -i_dynamic is necessary (for new glibc library)
3741            FFLAGS=
3742            cat >conftest.$ac_ext <<_ACEOF
3743      program main
3744      write(*,*) 'Hello world'
3745      end
3746_ACEOF
3747rm -f conftest.$ac_objext conftest$ac_exeext
3748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749  (eval $ac_link) 2>conftest.er1
3750  ac_status=$?
3751  grep -v '^ *+' conftest.er1 >conftest.err
3752  rm -f conftest.er1
3753  cat conftest.err >&5
3754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755  (exit $ac_status); } &&
3756         { ac_try='test -z "$ac_f77_werror_flag"
3757                         || test ! -s conftest.err'
3758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759  (eval $ac_try) 2>&5
3760  ac_status=$?
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); }; } &&
3763         { ac_try='test -s conftest$ac_exeext'
3764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765  (eval $ac_try) 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); }; }; then
3769  :
3770else
3771  echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774coin_add_fflags="-i_dynamic $coin_add_fflags"
3775fi
3776rm -f conftest.err conftest.$ac_objext \
3777      conftest$ac_exeext conftest.$ac_ext
3778            ;;
3779          pgf77* | */pgf77* | pgf90* | */pgf90*)
3780            coin_opt_fflags="-fast"
3781            coin_add_fflags="-Kieee -pc 64"
3782            coin_dbg_fflags="-g"
3783          ;;
3784        esac
3785        ;;
3786      *-ibm-*)
3787        case "$F77" in
3788          xlf* | */xlf* | mpxlf* | */mpxlf* )
3789            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3790            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3791            coin_dbg_fflags="-g -C"
3792            ;;
3793        esac
3794        ;;
3795      *-hp-*)
3796        coin_opt_fflags="+O3"
3797        coin_add_fflags="+U77"
3798        coin_dbg_fflags="-C -g"
3799        ;;
3800      *-*-solaris*)
3801        coin_opt_fflags="-O4"
3802        coin_dbg_fflags="-g"
3803        ;;
3804      *-sgi-*)
3805        coin_opt_fflags="-O5 -OPT:Olimit=0"
3806        coin_dbg_fflags="-g"
3807        ;;
3808    esac
3809  fi
3810
3811  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3812    coin_dbg_fflags="-g"
3813  fi
3814
3815  if test -z "$coin_opt_fflags"; then
3816    # Try if -O option works if nothing else is set
3817    FFLAGS=-O
3818    cat >conftest.$ac_ext <<_ACEOF
3819      program main
3820      integer i
3821      end
3822_ACEOF
3823rm -f conftest.$ac_objext conftest$ac_exeext
3824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3825  (eval $ac_link) 2>conftest.er1
3826  ac_status=$?
3827  grep -v '^ *+' conftest.er1 >conftest.err
3828  rm -f conftest.er1
3829  cat conftest.err >&5
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); } &&
3832         { ac_try='test -z "$ac_f77_werror_flag"
3833                         || test ! -s conftest.err'
3834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835  (eval $ac_try) 2>&5
3836  ac_status=$?
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); }; } &&
3839         { ac_try='test -s conftest$ac_exeext'
3840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841  (eval $ac_try) 2>&5
3842  ac_status=$?
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); }; }; then
3845  coin_opt_fflags="-O"
3846else
3847  echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850fi
3851rm -f conftest.err conftest.$ac_objext \
3852      conftest$ac_exeext conftest.$ac_ext
3853  fi
3854
3855  # if PM doesn't want the warning messages, take them out
3856  if test x"$coin_skip_warn_fflags" = xyes; then
3857    coin_warn_fflags=
3858  fi
3859
3860  if test x${DBG_FFLAGS+set} != xset; then
3861    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3862  fi
3863  if test x${OPT_FFLAGS+set} != xset; then
3864    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3865  fi
3866
3867  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3868  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3869
3870  if test "$coin_debug_compile" = "true"; then
3871    FFLAGS="$DBG_FFLAGS"
3872  else
3873    FFLAGS="$OPT_FFLAGS"
3874  fi
3875else
3876  FFLAGS="$FFLAGS $ADD_FFLAGS"
3877  if test x${DBG_FFLAGS+set} != xset; then
3878    DBG_FFLAGS="$FFLAGS"
3879  fi
3880  if test x${OPT_FFLAGS+set} != xset; then
3881    OPT_FFLAGS="$FFLAGS"
3882  fi
3883fi
3884
3885# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3886case "$FFLAGS" in
3887  *-mno-cygwin*)
3888    if test x${CPPFLAGS+set} != xset ; then
3889      CPPFLAGS="-mno-cygwin"
3890    else
3891      case "$CPPFLAGS" in
3892        *-mno-cygwin*)
3893          ;;
3894        *)
3895          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3896          ;;
3897      esac
3898    fi ;;
3899esac
3900
3901# Try if FFLAGS works
3902if test "$F77" != "unavailable" ; then
3903  cat >conftest.$ac_ext <<_ACEOF
3904      program main
3905      integer i
3906      end
3907_ACEOF
3908rm -f conftest.$ac_objext conftest$ac_exeext
3909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3910  (eval $ac_link) 2>conftest.er1
3911  ac_status=$?
3912  grep -v '^ *+' conftest.er1 >conftest.err
3913  rm -f conftest.er1
3914  cat conftest.err >&5
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); } &&
3917         { ac_try='test -z "$ac_f77_werror_flag"
3918                         || test ! -s conftest.err'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; } &&
3924         { ac_try='test -s conftest$ac_exeext'
3925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926  (eval $ac_try) 2>&5
3927  ac_status=$?
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); }; }; then
3930  :
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935FFLAGS=
3936fi
3937rm -f conftest.err conftest.$ac_objext \
3938      conftest$ac_exeext conftest.$ac_ext
3939  if test -z "$FFLAGS"; then
3940    { 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
3941echo "$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;}
3942    FFLAGS='-O'
3943    cat >conftest.$ac_ext <<_ACEOF
3944      program main
3945      integer i
3946      end
3947_ACEOF
3948rm -f conftest.$ac_objext conftest$ac_exeext
3949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950  (eval $ac_link) 2>conftest.er1
3951  ac_status=$?
3952  grep -v '^ *+' conftest.er1 >conftest.err
3953  rm -f conftest.er1
3954  cat conftest.err >&5
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); } &&
3957         { ac_try='test -z "$ac_f77_werror_flag"
3958                         || test ! -s conftest.err'
3959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960  (eval $ac_try) 2>&5
3961  ac_status=$?
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); }; } &&
3964         { ac_try='test -s conftest$ac_exeext'
3965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966  (eval $ac_try) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; }; then
3970  :
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975FFLAGS=
3976fi
3977rm -f conftest.err conftest.$ac_objext \
3978      conftest$ac_exeext conftest.$ac_ext
3979    if test -z "$FFLAGS"; then
3980      { 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
3981echo "$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;}
3982    fi
3983  fi
3984fi
3985
3986{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3987echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3988
3989
3990if test x"$MPIF77" = x; then :; else
3991  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3992echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3993  F77="$MPIF77"
3994fi
3995
3996# correct the LD variable if we use the intel fortran compiler in windows
3997case "$F77" in
3998  ifort* | */ifort* | IFORT* | */IFORT*)
3999    case $build in
4000  *-mingw*)
4001    if test "${LD+set}" = set; then :; else
4002      LD=link
4003    fi
4004    ;;
4005 esac
4006 case $enable_doscompile in
4007   msvc)
4008     if test "x${LD+set}" = xset; then :; else
4009       LD=link
4010     fi
4011     ;;
4012 esac
4013
4014    ;;
4015esac
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023
4024
4025# Check if pkg-config is available (to setup addlibs file)
4026
4027
4028# Check whether --enable-pkg-config or --disable-pkg-config was given.
4029if test "${enable_pkg_config+set}" = set; then
4030  enableval="$enable_pkg_config"
4031  use_pkgconfig="$enableval"
4032else
4033  if test x$coin_cc_is_cl = xtrue; then
4034     use_pkgconfig=no
4035   else
4036     use_pkgconfig=yes
4037   fi
4038fi;
4039
4040if test $use_pkgconfig = yes ; then
4041  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4042    if test -n "$ac_tool_prefix"; then
4043  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4044set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4045echo "$as_me:$LINENO: checking for $ac_word" >&5
4046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4048  echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050  if test -n "$PKG_CONFIG"; then
4051  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056  IFS=$as_save_IFS
4057  test -z "$as_dir" && as_dir=.
4058  for ac_exec_ext in '' $ac_executable_extensions; do
4059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065done
4066
4067fi
4068fi
4069PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4070if test -n "$PKG_CONFIG"; then
4071  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4072echo "${ECHO_T}$PKG_CONFIG" >&6
4073else
4074  echo "$as_me:$LINENO: result: no" >&5
4075echo "${ECHO_T}no" >&6
4076fi
4077
4078fi
4079if test -z "$ac_cv_prog_PKG_CONFIG"; then
4080  ac_ct_PKG_CONFIG=$PKG_CONFIG
4081  # Extract the first word of "pkg-config", so it can be a program name with args.
4082set dummy pkg-config; ac_word=$2
4083echo "$as_me:$LINENO: checking for $ac_word" >&5
4084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4086  echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088  if test -n "$ac_ct_PKG_CONFIG"; then
4089  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4090else
4091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094  IFS=$as_save_IFS
4095  test -z "$as_dir" && as_dir=.
4096  for ac_exec_ext in '' $ac_executable_extensions; do
4097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100    break 2
4101  fi
4102done
4103done
4104
4105fi
4106fi
4107ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4108if test -n "$ac_ct_PKG_CONFIG"; then
4109  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4110echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4111else
4112  echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114fi
4115
4116  PKG_CONFIG=$ac_ct_PKG_CONFIG
4117else
4118  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4119fi
4120
4121  fi
4122  if test -n "$PKG_CONFIG"; then
4123    _pkg_min_version=0.16.0
4124    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4125echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4126    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4127      echo "$as_me:$LINENO: result: yes" >&5
4128echo "${ECHO_T}yes" >&6
4129    else
4130      echo "$as_me:$LINENO: result: no" >&5
4131echo "${ECHO_T}no" >&6
4132      PKG_CONFIG=""
4133    fi
4134  fi
4135
4136  # check if pkg-config supports the short-errors flag
4137  if test -n "$PKG_CONFIG" && \
4138    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4139    pkg_short_errors=" --short-errors "
4140  else
4141    pkg_short_errors=""
4142  fi
4143fi
4144
4145
4146
4147if test -n "$PKG_CONFIG"; then
4148  COIN_HAS_PKGCONFIG_TRUE=
4149  COIN_HAS_PKGCONFIG_FALSE='#'
4150else
4151  COIN_HAS_PKGCONFIG_TRUE='#'
4152  COIN_HAS_PKGCONFIG_FALSE=
4153fi
4154
4155
4156
4157# assemble pkg-config search path for installed projects
4158COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4159
4160# 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
4161# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4162# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4163if test "x${prefix}" = xNONE ; then
4164  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4165else
4166  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4167fi
4168
4169
4170# Check whether --with-coin-instdir or --without-coin-instdir was given.
4171if test "${with_coin_instdir+set}" = set; then
4172  withval="$with_coin_instdir"
4173  if test -d "$withval"; then : ; else
4174     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4175echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4176   { (exit 1); exit 1; }; }
4177   fi
4178   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4179
4180fi;
4181
4182
4183
4184# assemble additional pkg-config search paths for uninstalled projects
4185if test x$coin_projectdir = xyes ; then
4186  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4187  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4188  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4189  # 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)
4190  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4191  if test -e ../coin_subdirs.txt ; then
4192    for i in `cat ../coin_subdirs.txt` ; do
4193      if test -d ../$i ; then
4194        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4195      fi
4196      if test -d ../$i/pkgconfig ; then
4197        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4198      fi
4199    done
4200  fi
4201
4202  if test -e ../../coin_subdirs.txt ; then
4203    for i in `cat ../../coin_subdirs.txt` ; do
4204      if test -d ../../$i ; then
4205        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4206      fi
4207      if test -d ../../$i/pkgconfig ; then
4208        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4209      fi
4210    done
4211  fi
4212
4213
4214fi
4215
4216if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4217  { 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
4218echo "$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;}
4219fi
4220
4221
4222
4223# Get the linker flags (FLIBS) that are required for linking against this blas library
4224
4225# get FLIBS
4226ac_ext=f
4227ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4228ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4230echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4231echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4232if test "${ac_cv_prog_f77_v+set}" = set; then
4233  echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235  cat >conftest.$ac_ext <<_ACEOF
4236      program main
4237
4238      end
4239_ACEOF
4240rm -f conftest.$ac_objext
4241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242  (eval $ac_compile) 2>conftest.er1
4243  ac_status=$?
4244  grep -v '^ *+' conftest.er1 >conftest.err
4245  rm -f conftest.er1
4246  cat conftest.err >&5
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); } &&
4249         { ac_try='test -z "$ac_f77_werror_flag"
4250                         || test ! -s conftest.err'
4251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252  (eval $ac_try) 2>&5
4253  ac_status=$?
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); }; } &&
4256         { ac_try='test -s conftest.$ac_objext'
4257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258  (eval $ac_try) 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }; }; then
4262  ac_cv_prog_f77_v=
4263# Try some options frequently used verbose output
4264for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4265  cat >conftest.$ac_ext <<_ACEOF
4266      program main
4267
4268      end
4269_ACEOF
4270
4271# Compile and link our simple test program by passing a flag (argument
4272# 1 to this macro) to the Fortran compiler in order to get
4273# "verbose" output that we can then parse for the Fortran linker
4274# flags.
4275ac_save_FFLAGS=$FFLAGS
4276FFLAGS="$FFLAGS $ac_verb"
4277(eval echo $as_me:4277: \"$ac_link\") >&5
4278ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4279echo "$ac_f77_v_output" >&5
4280FFLAGS=$ac_save_FFLAGS
4281
4282rm -f conftest*
4283
4284# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4285# /foo, /bar, and /baz are search directories for the Fortran linker.
4286# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4287ac_f77_v_output="`echo $ac_f77_v_output |
4288        grep 'LPATH is:' |
4289        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4290
4291case $ac_f77_v_output in
4292  # If we are using xlf then replace all the commas with spaces.
4293  *xlfentry*)
4294    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4295
4296  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4297  # $LIBS confuse us, and the libraries appear later in the output anyway).
4298  *mGLOB_options_string*)
4299    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4300
4301  # If we are using Cray Fortran then delete quotes.
4302  # Use "\"" instead of '"' for font-lock-mode.
4303  # FIXME: a more general fix for quoted arguments with spaces?
4304  *cft90*)
4305    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4306esac
4307
4308
4309  # look for -l* and *.a constructs in the output
4310  for ac_arg in $ac_f77_v_output; do
4311     case $ac_arg in
4312        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4313          ac_cv_prog_f77_v=$ac_verb
4314          break 2 ;;
4315     esac
4316  done
4317done
4318if test -z "$ac_cv_prog_f77_v"; then
4319   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4320echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4321fi
4322else
4323  echo "$as_me: failed program was:" >&5
4324sed 's/^/| /' conftest.$ac_ext >&5
4325
4326{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4327echo "$as_me: WARNING: compilation failed" >&2;}
4328fi
4329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4330
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4333echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4334echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4335echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4336if test "${ac_cv_f77_libs+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  if test "x$FLIBS" != "x"; then
4340  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4341else
4342
4343cat >conftest.$ac_ext <<_ACEOF
4344      program main
4345
4346      end
4347_ACEOF
4348
4349# Compile and link our simple test program by passing a flag (argument
4350# 1 to this macro) to the Fortran compiler in order to get
4351# "verbose" output that we can then parse for the Fortran linker
4352# flags.
4353ac_save_FFLAGS=$FFLAGS
4354FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4355(eval echo $as_me:4355: \"$ac_link\") >&5
4356ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4357echo "$ac_f77_v_output" >&5
4358FFLAGS=$ac_save_FFLAGS
4359
4360rm -f conftest*
4361
4362# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4363# /foo, /bar, and /baz are search directories for the Fortran linker.
4364# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4365ac_f77_v_output="`echo $ac_f77_v_output |
4366        grep 'LPATH is:' |
4367        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4368
4369case $ac_f77_v_output in
4370  # If we are using xlf then replace all the commas with spaces.
4371  *xlfentry*)
4372    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4373
4374  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4375  # $LIBS confuse us, and the libraries appear later in the output anyway).
4376  *mGLOB_options_string*)
4377    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4378
4379  # If we are using Cray Fortran then delete quotes.
4380  # Use "\"" instead of '"' for font-lock-mode.
4381  # FIXME: a more general fix for quoted arguments with spaces?
4382  *cft90*)
4383    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4384esac
4385
4386
4387
4388ac_cv_f77_libs=
4389
4390# Save positional arguments (if any)
4391ac_save_positional="$@"
4392
4393set X $ac_f77_v_output
4394while test $# != 1; do
4395  shift
4396  ac_arg=$1
4397  case $ac_arg in
4398        [\\/]*.a | ?:[\\/]*.a)
4399            ac_exists=false
4400  for ac_i in $ac_cv_f77_libs; do
4401    if test x"$ac_arg" = x"$ac_i"; then
4402      ac_exists=true
4403      break
4404    fi
4405  done
4406
4407  if test x"$ac_exists" = xtrue; then
4408  :
4409else
4410  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4411fi
4412
4413          ;;
4414        -bI:*)
4415            ac_exists=false
4416  for ac_i in $ac_cv_f77_libs; do
4417    if test x"$ac_arg" = x"$ac_i"; then
4418      ac_exists=true
4419      break
4420    fi
4421  done
4422
4423  if test x"$ac_exists" = xtrue; then
4424  :
4425else
4426  if test "$ac_compiler_gnu" = yes; then
4427  for ac_link_opt in $ac_arg; do
4428    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4429  done
4430else
4431  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4432fi
4433fi
4434
4435          ;;
4436          # Ignore these flags.
4437        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4438          ;;
4439        -lkernel32)
4440          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4441          ;;
4442        -[LRuY])
4443          # These flags, when seen by themselves, take an argument.
4444          # We remove the space between option and argument and re-iterate
4445          # unless we find an empty arg or a new option (starting with -)
4446          case $2 in
4447             "" | -*);;
4448             *)
4449                ac_arg="$ac_arg$2"
4450                shift; shift
4451                set X $ac_arg "$@"
4452                ;;
4453          esac
4454          ;;
4455        -YP,*)
4456          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4457              ac_exists=false
4458  for ac_i in $ac_cv_f77_libs; do
4459    if test x"$ac_j" = x"$ac_i"; then
4460      ac_exists=true
4461      break
4462    fi
4463  done
4464
4465  if test x"$ac_exists" = xtrue; then
4466  :
4467else
4468  ac_arg="$ac_arg $ac_j"
4469                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4470fi
4471
4472          done
4473          ;;
4474        -[lLR]*)
4475            ac_exists=false
4476  for ac_i in $ac_cv_f77_libs; do
4477    if test x"$ac_arg" = x"$ac_i"; then
4478      ac_exists=true
4479      break
4480    fi
4481  done
4482
4483  if test x"$ac_exists" = xtrue; then
4484  :
4485else
4486  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4487fi
4488
4489          ;;
4490          # Ignore everything else.
4491  esac
4492done
4493# restore positional arguments
4494set X $ac_save_positional; shift
4495
4496# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4497# then we insist that the "run path" must be an absolute path (i.e. it
4498# must begin with a "/").
4499case `(uname -sr) 2>/dev/null` in
4500   "SunOS 5"*)
4501      ac_ld_run_path=`echo $ac_f77_v_output |
4502                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4503      test "x$ac_ld_run_path" != x &&
4504        if test "$ac_compiler_gnu" = yes; then
4505  for ac_link_opt in $ac_ld_run_path; do
4506    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4507  done
4508else
4509  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4510fi
4511      ;;
4512esac
4513fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4514
4515fi
4516echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4517echo "${ECHO_T}$ac_cv_f77_libs" >&6
4518FLIBS="$ac_cv_f77_libs"
4519
4520
4521ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527orig_FLIBS="$FLIBS"
4528
4529# If FLIBS has been set by the user, we just restore its value here
4530if test x"$save_FLIBS" != x; then
4531  FLIBS="$save_FLIBS"
4532else
4533  # This is to correct a missing exclusion in autoconf 2.59
4534  if test x"$FLIBS" != x; then
4535    my_flibs=
4536    for flag in $FLIBS; do
4537      case $flag in
4538        -lcrt*.o) ;;
4539        -lcygwin) ;;
4540               *) my_flibs="$my_flibs $flag" ;;
4541      esac
4542    done
4543    FLIBS="$my_flibs"
4544  fi
4545
4546  case $build in
4547  # The following is a fix to define FLIBS for ifort on Windows
4548  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4549  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4550  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4551  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4552  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4553     *-cygwin* | *-mingw*)
4554       case "$F77" in
4555#         ifort* | */ifort* | IFORT* | */IFORT*)
4556#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4557#           if "$coin_debug_compile" = true ; then
4558#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4559#           else
4560#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4561#           fi
4562#           ;;
4563         compile_f2c*)
4564           FLIBS=`$F77 -FLIBS` ;;
4565       esac;;
4566     *-hp-*)
4567         FLIBS="$FLIBS -lm";;
4568     *-ibm-*)
4569         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4570     *-linux-*)
4571       case "$F77" in
4572         pgf77* | */pgf77* | pgf90* | */pgf90*)
4573# ask linker to go through the archives multiple times
4574# (the Fortran compiler seems to do that automatically...)
4575           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4576       esac
4577  esac
4578  ac_cv_f77_libs="$FLIBS"
4579fi
4580
4581if test "x$orig_FLIBS" != "x$FLIBS" ; then
4582  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4583echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4584fi
4585
4586ac_ext=f
4587ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4588ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4590
4591echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4592echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4593if test "${ac_cv_f77_dummy_main+set}" = set; then
4594  echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596  ac_f77_dm_save_LIBS=$LIBS
4597 LIBS="$LIBS $FLIBS"
4598 ac_fortran_dm_var=F77_DUMMY_MAIN
4599 ac_ext=c
4600ac_cpp='$CPP $CPPFLAGS'
4601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605 # First, try linking without a dummy main:
4606 cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h.  */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h.  */
4612
4613#ifdef F77_DUMMY_MAIN
4614
4615#  ifdef __cplusplus
4616     extern "C"
4617#  endif
4618   int F77_DUMMY_MAIN() { return 1; }
4619
4620#endif
4621int
4622main ()
4623{
4624
4625  ;
4626  return 0;
4627}
4628_ACEOF
4629rm -f conftest.$ac_objext conftest$ac_exeext
4630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631  (eval $ac_link) 2>conftest.er1
4632  ac_status=$?
4633  grep -v '^ *+' conftest.er1 >conftest.err
4634  rm -f conftest.er1
4635  cat conftest.err >&5
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); } &&
4638         { ac_try='test -z "$ac_c_werror_flag"
4639                         || test ! -s conftest.err'
4640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641  (eval $ac_try) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; } &&
4645         { ac_try='test -s conftest$ac_exeext'
4646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647  (eval $ac_try) 2>&5
4648  ac_status=$?
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; }; then
4651  ac_cv_fortran_dummy_main=none
4652else
4653  echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656ac_cv_fortran_dummy_main=unknown
4657fi
4658rm -f conftest.err conftest.$ac_objext \
4659      conftest$ac_exeext conftest.$ac_ext
4660
4661 if test $ac_cv_fortran_dummy_main = unknown; then
4662   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4663     cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h.  */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h.  */
4669#define $ac_fortran_dm_var $ac_func
4670#ifdef F77_DUMMY_MAIN
4671
4672#  ifdef __cplusplus
4673     extern "C"
4674#  endif
4675   int F77_DUMMY_MAIN() { return 1; }
4676
4677#endif
4678int
4679main ()
4680{
4681
4682  ;
4683  return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext conftest$ac_exeext
4687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688  (eval $ac_link) 2>conftest.er1
4689  ac_status=$?
4690  grep -v '^ *+' conftest.er1 >conftest.err
4691  rm -f conftest.er1
4692  cat conftest.err >&5
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } &&
4695         { ac_try='test -z "$ac_c_werror_flag"
4696                         || test ! -s conftest.err'
4697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698  (eval $ac_try) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); }; } &&
4702         { ac_try='test -s conftest$ac_exeext'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; }; then
4708  ac_cv_fortran_dummy_main=$ac_func; break
4709else
4710  echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713fi
4714rm -f conftest.err conftest.$ac_objext \
4715      conftest$ac_exeext conftest.$ac_ext
4716   done
4717 fi
4718 ac_ext=f
4719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4722 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4723 rm -f conftest*
4724 LIBS=$ac_f77_dm_save_LIBS
4725
4726fi
4727echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4728echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4729F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4730if test "$F77_DUMMY_MAIN" != unknown; then
4731  if test $F77_DUMMY_MAIN != none; then
4732
4733cat >>confdefs.h <<_ACEOF
4734#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4735_ACEOF
4736
4737  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4738
4739cat >>confdefs.h <<\_ACEOF
4740#define FC_DUMMY_MAIN_EQ_F77 1
4741_ACEOF
4742
4743  fi
4744fi
4745else
4746  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4747See \`config.log' for more details." >&5
4748echo "$as_me: error: linking to Fortran libraries from C fails
4749See \`config.log' for more details." >&2;}
4750   { (exit 1); exit 1; }; }
4751fi
4752
4753
4754ac_ext=f
4755ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4756ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4758
4759ac_ext=f
4760ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4761ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4763echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4764echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4765if test "${ac_cv_f77_mangling+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  cat >conftest.$ac_ext <<_ACEOF
4769      subroutine foobar()
4770      return
4771      end
4772      subroutine foo_bar()
4773      return
4774      end
4775_ACEOF
4776rm -f conftest.$ac_objext
4777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778  (eval $ac_compile) 2>conftest.er1
4779  ac_status=$?
4780  grep -v '^ *+' conftest.er1 >conftest.err
4781  rm -f conftest.er1
4782  cat conftest.err >&5
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); } &&
4785         { ac_try='test -z "$ac_f77_werror_flag"
4786                         || test ! -s conftest.err'
4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788  (eval $ac_try) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; } &&
4792         { ac_try='test -s conftest.$ac_objext'
4793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794  (eval $ac_try) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; }; then
4798  mv conftest.$ac_objext cfortran_test.$ac_objext
4799
4800  ac_save_LIBS=$LIBS
4801  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4802
4803  ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808  ac_success=no
4809  for ac_foobar in foobar FOOBAR; do
4810    for ac_underscore in "" "_"; do
4811      ac_func="$ac_foobar$ac_underscore"
4812      cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h.  */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h.  */
4818
4819/* Override any gcc2 internal prototype to avoid an error.  */
4820#ifdef __cplusplus
4821extern "C"
4822#endif
4823/* We use char because int might match the return type of a gcc2
4824   builtin and then its argument prototype would still apply.  */
4825char $ac_func ();
4826#ifdef F77_DUMMY_MAIN
4827
4828#  ifdef __cplusplus
4829     extern "C"
4830#  endif
4831   int F77_DUMMY_MAIN() { return 1; }
4832
4833#endif
4834int
4835main ()
4836{
4837$ac_func ();
4838  ;
4839  return 0;
4840}
4841_ACEOF
4842rm -f conftest.$ac_objext conftest$ac_exeext
4843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4844  (eval $ac_link) 2>conftest.er1
4845  ac_status=$?
4846  grep -v '^ *+' conftest.er1 >conftest.err
4847  rm -f conftest.er1
4848  cat conftest.err >&5
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); } &&
4851         { ac_try='test -z "$ac_c_werror_flag"
4852                         || test ! -s conftest.err'
4853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854  (eval $ac_try) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); }; } &&
4858         { ac_try='test -s conftest$ac_exeext'
4859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860  (eval $ac_try) 2>&5
4861  ac_status=$?
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); }; }; then
4864  ac_success=yes; break 2
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869fi
4870rm -f conftest.err conftest.$ac_objext \
4871      conftest$ac_exeext conftest.$ac_ext
4872    done
4873  done
4874  ac_ext=f
4875ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4876ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4878
4879  if test "$ac_success" = "yes"; then
4880     case $ac_foobar in
4881        foobar)
4882           ac_case=lower
4883           ac_foo_bar=foo_bar
4884           ;;
4885        FOOBAR)
4886           ac_case=upper
4887           ac_foo_bar=FOO_BAR
4888           ;;
4889     esac
4890
4891     ac_ext=c
4892ac_cpp='$CPP $CPPFLAGS'
4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896     ac_success_extra=no
4897     for ac_extra in "" "_"; do
4898        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4899        cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h.  */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h.  */
4905
4906/* Override any gcc2 internal prototype to avoid an error.  */
4907#ifdef __cplusplus
4908extern "C"
4909#endif
4910/* We use char because int might match the return type of a gcc2
4911   builtin and then its argument prototype would still apply.  */
4912char $ac_func ();
4913#ifdef F77_DUMMY_MAIN
4914
4915#  ifdef __cplusplus
4916     extern "C"
4917#  endif
4918   int F77_DUMMY_MAIN() { return 1; }
4919
4920#endif
4921int
4922main ()
4923{
4924$ac_func ();
4925  ;
4926  return 0;
4927}
4928_ACEOF
4929rm -f conftest.$ac_objext conftest$ac_exeext
4930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931  (eval $ac_link) 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } &&
4938         { ac_try='test -z "$ac_c_werror_flag"
4939                         || test ! -s conftest.err'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; } &&
4945         { ac_try='test -s conftest$ac_exeext'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; }; then
4951  ac_success_extra=yes; break
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956fi
4957rm -f conftest.err conftest.$ac_objext \
4958      conftest$ac_exeext conftest.$ac_ext
4959     done
4960     ac_ext=f
4961ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4962ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4964
4965     if test "$ac_success_extra" = "yes"; then
4966        ac_cv_f77_mangling="$ac_case case"
4967        if test -z "$ac_underscore"; then
4968           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4969        else
4970           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4971        fi
4972        if test -z "$ac_extra"; then
4973           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4974        else
4975           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4976        fi
4977      else
4978        ac_cv_f77_mangling="unknown"
4979      fi
4980  else
4981     ac_cv_f77_mangling="unknown"
4982  fi
4983
4984  LIBS=$ac_save_LIBS
4985  rm -f cfortran_test* conftest*
4986else
4987  echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4991See \`config.log' for more details." >&5
4992echo "$as_me: error: cannot compile a simple Fortran program
4993See \`config.log' for more details." >&2;}
4994   { (exit 1); exit 1; }; }
4995fi
4996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997
4998fi
4999echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
5000echo "${ECHO_T}$ac_cv_f77_mangling" >&6
5001
5002ac_ext=f
5003ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5004ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5006
5007
5008ac_ext=f
5009ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5010ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5012
5013ac_ext=f
5014ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5015ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5017
5018
5019case $ac_cv_f77_mangling in
5020  "lower case, no underscore, no extra underscore")
5021          cat >>confdefs.h <<\_ACEOF
5022#define F77_FUNC(name,NAME) name
5023_ACEOF
5024
5025          cat >>confdefs.h <<\_ACEOF
5026#define F77_FUNC_(name,NAME) name
5027_ACEOF
5028 ;;
5029  "lower case, no underscore, extra underscore")
5030          cat >>confdefs.h <<\_ACEOF
5031#define F77_FUNC(name,NAME) name
5032_ACEOF
5033
5034          cat >>confdefs.h <<\_ACEOF
5035#define F77_FUNC_(name,NAME) name ## _
5036_ACEOF
5037 ;;
5038  "lower case, underscore, no extra underscore")
5039          cat >>confdefs.h <<\_ACEOF
5040#define F77_FUNC(name,NAME) name ## _
5041_ACEOF
5042
5043          cat >>confdefs.h <<\_ACEOF
5044#define F77_FUNC_(name,NAME) name ## _
5045_ACEOF
5046 ;;
5047  "lower case, underscore, extra underscore")
5048          cat >>confdefs.h <<\_ACEOF
5049#define F77_FUNC(name,NAME) name ## _
5050_ACEOF
5051
5052          cat >>confdefs.h <<\_ACEOF
5053#define F77_FUNC_(name,NAME) name ## __
5054_ACEOF
5055 ;;
5056  "upper case, no underscore, no extra underscore")
5057          cat >>confdefs.h <<\_ACEOF
5058#define F77_FUNC(name,NAME) NAME
5059_ACEOF
5060
5061          cat >>confdefs.h <<\_ACEOF
5062#define F77_FUNC_(name,NAME) NAME
5063_ACEOF
5064 ;;
5065  "upper case, no underscore, extra underscore")
5066          cat >>confdefs.h <<\_ACEOF
5067#define F77_FUNC(name,NAME) NAME
5068_ACEOF
5069
5070          cat >>confdefs.h <<\_ACEOF
5071#define F77_FUNC_(name,NAME) NAME ## _
5072_ACEOF
5073 ;;
5074  "upper case, underscore, no extra underscore")
5075          cat >>confdefs.h <<\_ACEOF
5076#define F77_FUNC(name,NAME) NAME ## _
5077_ACEOF
5078
5079          cat >>confdefs.h <<\_ACEOF
5080#define F77_FUNC_(name,NAME) NAME ## _
5081_ACEOF
5082 ;;
5083  "upper case, underscore, extra underscore")
5084          cat >>confdefs.h <<\_ACEOF
5085#define F77_FUNC(name,NAME) NAME ## _
5086_ACEOF
5087
5088          cat >>confdefs.h <<\_ACEOF
5089#define F77_FUNC_(name,NAME) NAME ## __
5090_ACEOF
5091 ;;
5092  *)
5093          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5094echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5095          ;;
5096esac
5097
5098ac_ext=f
5099ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5100ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5102
5103ac_ext=c
5104ac_cpp='$CPP $CPPFLAGS'
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109
5110
5111
5112# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
5113HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
5114
5115# Need egrep later on
5116echo "$as_me:$LINENO: checking for egrep" >&5
5117echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5118if test "${ac_cv_prog_egrep+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5122    then ac_cv_prog_egrep='grep -E'
5123    else ac_cv_prog_egrep='egrep'
5124    fi
5125fi
5126echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5127echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5128 EGREP=$ac_cv_prog_egrep
5129
5130
5131
5132# Also set up the FC compiler variable, required to compile .f90
5133# files.  We use the same compile and flags as F77 and FFLAGS, unless
5134# the user has set FC and FCFLAGS explicitly.
5135if test "$FC" = ""; then
5136  FC="$F77"
5137fi
5138if test "$FCFLAGS" = ""; then
5139  FCFLAGS="$FFLAGS"
5140fi
5141ac_ext=${FC_SRCEXT-f}
5142ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5143ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5145if test -n "$ac_tool_prefix"; then
5146  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5147  do
5148    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152if test "${ac_cv_prog_FC+set}" = set; then
5153  echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155  if test -n "$FC"; then
5156  ac_cv_prog_FC="$FC" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161  IFS=$as_save_IFS
5162  test -z "$as_dir" && as_dir=.
5163  for ac_exec_ext in '' $ac_executable_extensions; do
5164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167    break 2
5168  fi
5169done
5170done
5171
5172fi
5173fi
5174FC=$ac_cv_prog_FC
5175if test -n "$FC"; then
5176  echo "$as_me:$LINENO: result: $FC" >&5
5177echo "${ECHO_T}$FC" >&6
5178else
5179  echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181fi
5182
5183    test -n "$FC" && break
5184  done
5185fi
5186if test -z "$FC"; then
5187  ac_ct_FC=$FC
5188  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5189do
5190  # Extract the first word of "$ac_prog", so it can be a program name with args.
5191set dummy $ac_prog; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  if test -n "$ac_ct_FC"; then
5198  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205  for ac_exec_ext in '' $ac_executable_extensions; do
5206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207    ac_cv_prog_ac_ct_FC="$ac_prog"
5208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212done
5213
5214fi
5215fi
5216ac_ct_FC=$ac_cv_prog_ac_ct_FC
5217if test -n "$ac_ct_FC"; then
5218  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5219echo "${ECHO_T}$ac_ct_FC" >&6
5220else
5221  echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223fi
5224
5225  test -n "$ac_ct_FC" && break
5226done
5227
5228  FC=$ac_ct_FC
5229fi
5230
5231
5232# Provide some information about the compiler.
5233echo "$as_me:5233:" \
5234     "checking for Fortran compiler version" >&5
5235ac_compiler=`set X $ac_compile; echo $2`
5236{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5237  (eval $ac_compiler --version </dev/null >&5) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }
5241{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5242  (eval $ac_compiler -v </dev/null >&5) 2>&5
5243  ac_status=$?
5244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245  (exit $ac_status); }
5246{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5247  (eval $ac_compiler -V </dev/null >&5) 2>&5
5248  ac_status=$?
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); }
5251rm -f a.out
5252
5253# If we don't use `.F' as extension, the preprocessor is not run on the
5254# input file.  (Note that this only needs to work for GNU compilers.)
5255ac_save_ext=$ac_ext
5256ac_ext=F
5257echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5258echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5259if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  cat >conftest.$ac_ext <<_ACEOF
5263      program main
5264#ifndef __GNUC__
5265       choke me
5266#endif
5267
5268      end
5269_ACEOF
5270rm -f conftest.$ac_objext
5271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272  (eval $ac_compile) 2>conftest.er1
5273  ac_status=$?
5274  grep -v '^ *+' conftest.er1 >conftest.err
5275  rm -f conftest.er1
5276  cat conftest.err >&5
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); } &&
5279         { ac_try='test -z "$ac_fc_werror_flag"
5280                         || test ! -s conftest.err'
5281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282  (eval $ac_try) 2>&5
5283  ac_status=$?
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); }; } &&
5286         { ac_try='test -s conftest.$ac_objext'
5287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288  (eval $ac_try) 2>&5
5289  ac_status=$?
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); }; }; then
5292  ac_compiler_gnu=yes
5293else
5294  echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297ac_compiler_gnu=no
5298fi
5299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5301
5302fi
5303echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5304echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5305ac_ext=$ac_save_ext
5306ac_test_FFLAGS=${FCFLAGS+set}
5307ac_save_FFLAGS=$FCFLAGS
5308FCFLAGS=
5309echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5310echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5311if test "${ac_cv_prog_fc_g+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  FCFLAGS=-g
5315cat >conftest.$ac_ext <<_ACEOF
5316      program main
5317
5318      end
5319_ACEOF
5320rm -f conftest.$ac_objext
5321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322  (eval $ac_compile) 2>conftest.er1
5323  ac_status=$?
5324  grep -v '^ *+' conftest.er1 >conftest.err
5325  rm -f conftest.er1
5326  cat conftest.err >&5
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); } &&
5329         { ac_try='test -z "$ac_fc_werror_flag"
5330                         || test ! -s conftest.err'
5331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332  (eval $ac_try) 2>&5
5333  ac_status=$?
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); }; } &&
5336         { ac_try='test -s conftest.$ac_objext'
5337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338  (eval $ac_try) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }; }; then
5342  ac_cv_prog_fc_g=yes
5343else
5344  echo "$as_me: failed program was:" >&5
5345sed 's/^/| /' conftest.$ac_ext >&5
5346
5347ac_cv_prog_fc_g=no
5348fi
5349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5350
5351fi
5352echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5353echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5354if test "$ac_test_FFLAGS" = set; then
5355  FCFLAGS=$ac_save_FFLAGS
5356elif test $ac_cv_prog_fc_g = yes; then
5357  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5358    FCFLAGS="-g -O2"
5359  else
5360    FCFLAGS="-g"
5361  fi
5362else
5363  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5364    FCFLAGS="-O2"
5365  else
5366    FCFLAGS=
5367  fi
5368fi
5369
5370ac_ext=c
5371ac_cpp='$CPP $CPPFLAGS'
5372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375
5376
5377# Initialize autotools
5378
5379if test x$enable_loadable_library = xyes; then
5380  flag=force_shared
5381fi
5382{
5383
5384
5385
5386# START
5387
5388coin_disable_shared=no
5389# Test if force_shared has been set
5390if test "x$flag" = xforce_shared; then
5391  if test x$enable_shared = xno; then
5392    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5393echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5394   { (exit 1); exit 1; }; }
5395  fi
5396  enable_shared=yes;
5397else
5398  # On Cygwin and AIX, building DLLs doesn't work
5399  case $build in
5400    *-cygwin*)
5401      coin_disable_shared=yes
5402      platform=Cygwin
5403    ;;
5404    *-aix*)
5405      coin_disable_shared=yes
5406      platform=AIX
5407    ;;
5408    *-mingw*)
5409      coin_disable_shared=yes
5410      platform="Msys"
5411#      case "$CXX" in
5412#        cl*)
5413#          coin_disable_shared=yes
5414#          platform="Msys with cl"
5415#      ;;
5416#      esac
5417    ;;
5418  esac
5419fi
5420if test x"$coin_disable_shared" = xyes; then
5421  if test x"$enable_shared" = xyes; then
5422    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5423echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5424  else
5425    # we don't disable shared, because it was not selected anyway
5426    coin_disable_shared=no
5427  fi
5428  enable_shared=no
5429fi
5430# By default, we only want the shared objects to be compiled
5431# Check whether --enable-static or --disable-static was given.
5432if test "${enable_static+set}" = set; then
5433  enableval="$enable_static"
5434  p=${PACKAGE-default}
5435    case $enableval in
5436    yes) enable_static=yes ;;
5437    no) enable_static=no ;;
5438    *)
5439     enable_static=no
5440      # Look at the argument we got.  We use all the common list separators.
5441      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5442      for pkg in $enableval; do
5443        IFS="$lt_save_ifs"
5444        if test "X$pkg" = "X$p"; then
5445          enable_static=yes
5446        fi
5447      done
5448      IFS="$lt_save_ifs"
5449      ;;
5450    esac
5451else
5452  enable_static=no
5453fi;
5454
5455
5456
5457
5458# Initialize automake
5459echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5461LN_S=$as_ln_s
5462if test "$LN_S" = "ln -s"; then
5463  echo "$as_me:$LINENO: result: yes" >&5
5464echo "${ECHO_T}yes" >&6
5465else
5466  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467echo "${ECHO_T}no, using $LN_S" >&6
5468fi
5469
5470am__api_version="1.9"
5471# Find a good install program.  We prefer a C program (faster),
5472# so one script is as good as another.  But avoid the broken or
5473# incompatible versions:
5474# SysV /etc/install, /usr/sbin/install
5475# SunOS /usr/etc/install
5476# IRIX /sbin/install
5477# AIX /bin/install
5478# AmigaOS /C/install, which installs bootblocks on floppy discs
5479# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5480# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5481# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5482# OS/2's system install, which has a completely different semantic
5483# ./install, which can be erroneously created by make from ./install.sh.
5484echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5485echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5486if test -z "$INSTALL"; then
5487if test "${ac_cv_path_install+set}" = set; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493  IFS=$as_save_IFS
5494  test -z "$as_dir" && as_dir=.
5495  # Account for people who put trailing slashes in PATH elements.
5496case $as_dir/ in
5497  ./ | .// | /cC/* | \
5498  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5499  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5500  /usr/ucb/* ) ;;
5501  *)
5502    # OSF1 and SCO ODT 3.0 have their own names for install.
5503    # Don't use installbsd from OSF since it installs stuff as root
5504    # by default.
5505    for ac_prog in ginstall scoinst install; do
5506      for ac_exec_ext in '' $ac_executable_extensions; do
5507        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5508          if test $ac_prog = install &&
5509            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5510            # AIX install.  It has an incompatible calling convention.
5511            :
5512          elif test $ac_prog = install &&
5513            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5514            # program-specific install script used by HP pwplus--don't use.
5515            :
5516          else
5517            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5518            break 3
5519          fi
5520        fi
5521      done
5522    done
5523    ;;
5524esac
5525done
5526
5527
5528fi
5529  if test "${ac_cv_path_install+set}" = set; then
5530    INSTALL=$ac_cv_path_install
5531  else
5532    # As a last resort, use the slow shell script.  We don't cache a
5533    # path for INSTALL within a source directory, because that will
5534    # break other packages using the cache if that directory is
5535    # removed, or if the path is relative.
5536    INSTALL=$ac_install_sh
5537  fi
5538fi
5539echo "$as_me:$LINENO: result: $INSTALL" >&5
5540echo "${ECHO_T}$INSTALL" >&6
5541
5542# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5543# It thinks the first close brace ends the variable substitution.
5544test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5545
5546test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5547
5548test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5549
5550echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5551echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5552# Just in case
5553sleep 1
5554echo timestamp > conftest.file
5555# Do `set' in a subshell so we don't clobber the current shell's
5556# arguments.  Must try -L first in case configure is actually a
5557# symlink; some systems play weird games with the mod time of symlinks
5558# (eg FreeBSD returns the mod time of the symlink's containing
5559# directory).
5560if (
5561   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5562   if test "$*" = "X"; then
5563      # -L didn't work.
5564      set X `ls -t $srcdir/configure conftest.file`
5565   fi
5566   rm -f conftest.file
5567   if test "$*" != "X $srcdir/configure conftest.file" \
5568      && test "$*" != "X conftest.file $srcdir/configure"; then
5569
5570      # If neither matched, then we have a broken ls.  This can happen
5571      # if, for instance, CONFIG_SHELL is bash and it inherits a
5572      # broken ls alias from the environment.  This has actually
5573      # happened.  Such a system could not be considered "sane".
5574      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5575alias in your environment" >&5
5576echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5577alias in your environment" >&2;}
5578   { (exit 1); exit 1; }; }
5579   fi
5580
5581   test "$2" = conftest.file
5582   )
5583then
5584   # Ok.
5585   :
5586else
5587   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5588Check your system clock" >&5
5589echo "$as_me: error: newly created file is older than distributed files!
5590Check your system clock" >&2;}
5591   { (exit 1); exit 1; }; }
5592fi
5593echo "$as_me:$LINENO: result: yes" >&5
5594echo "${ECHO_T}yes" >&6
5595test "$program_prefix" != NONE &&
5596  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5597# Use a double $ so make ignores it.
5598test "$program_suffix" != NONE &&
5599  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5600# Double any \ or $.  echo might interpret backslashes.
5601# By default was `s,x,x', remove it if useless.
5602cat <<\_ACEOF >conftest.sed
5603s/[\\$]/&&/g;s/;s,x,x,$//
5604_ACEOF
5605program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5606rm conftest.sed
5607
5608# expand $ac_aux_dir to an absolute path
5609am_aux_dir=`cd $ac_aux_dir && pwd`
5610
5611test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5612# Use eval to expand $SHELL
5613if eval "$MISSING --run true"; then
5614  am_missing_run="$MISSING --run "
5615else
5616  am_missing_run=
5617  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5618echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5619fi
5620
5621if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5622  # We used to keeping the `.' as first argument, in order to
5623  # allow $(mkdir_p) to be used without argument.  As in
5624  #   $(mkdir_p) $(somedir)
5625  # where $(somedir) is conditionally defined.  However this is wrong
5626  # for two reasons:
5627  #  1. if the package is installed by a user who cannot write `.'
5628  #     make install will fail,
5629  #  2. the above comment should most certainly read
5630  #     $(mkdir_p) $(DESTDIR)$(somedir)
5631  #     so it does not work when $(somedir) is undefined and
5632  #     $(DESTDIR) is not.
5633  #  To support the latter case, we have to write
5634  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5635  #  so the `.' trick is pointless.
5636  mkdir_p='mkdir -p --'
5637else
5638  # On NextStep and OpenStep, the `mkdir' command does not
5639  # recognize any option.  It will interpret all options as
5640  # directories to create, and then abort because `.' already
5641  # exists.
5642  for d in ./-p ./--version;
5643  do
5644    test -d $d && rmdir $d
5645  done
5646  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5647  if test -f "$ac_aux_dir/mkinstalldirs"; then
5648    mkdir_p='$(mkinstalldirs)'
5649  else
5650    mkdir_p='$(install_sh) -d'
5651  fi
5652fi
5653
5654for ac_prog in gawk mawk nawk awk
5655do
5656  # Extract the first word of "$ac_prog", so it can be a program name with args.
5657set dummy $ac_prog; ac_word=$2
5658echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660if test "${ac_cv_prog_AWK+set}" = set; then
5661  echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663  if test -n "$AWK"; then
5664  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671  for ac_exec_ext in '' $ac_executable_extensions; do
5672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673    ac_cv_prog_AWK="$ac_prog"
5674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678done
5679
5680fi
5681fi
5682AWK=$ac_cv_prog_AWK
5683if test -n "$AWK"; then
5684  echo "$as_me:$LINENO: result: $AWK" >&5
5685echo "${ECHO_T}$AWK" >&6
5686else
5687  echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689fi
5690
5691  test -n "$AWK" && break
5692done
5693
5694echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5695echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5696set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5697if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700  cat >conftest.make <<\_ACEOF
5701all:
5702        @echo 'ac_maketemp="$(MAKE)"'
5703_ACEOF
5704# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5705eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5706if test -n "$ac_maketemp"; then
5707  eval ac_cv_prog_make_${ac_make}_set=yes
5708else
5709  eval ac_cv_prog_make_${ac_make}_set=no
5710fi
5711rm -f conftest.make
5712fi
5713if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5714  echo "$as_me:$LINENO: result: yes" >&5
5715echo "${ECHO_T}yes" >&6
5716  SET_MAKE=
5717else
5718  echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6
5720  SET_MAKE="MAKE=${MAKE-make}"
5721fi
5722
5723rm -rf .tst 2>/dev/null
5724mkdir .tst 2>/dev/null
5725if test -d .tst; then
5726  am__leading_dot=.
5727else
5728  am__leading_dot=_
5729fi
5730rmdir .tst 2>/dev/null
5731
5732DEPDIR="${am__leading_dot}deps"
5733
5734          ac_config_commands="$ac_config_commands depfiles"
5735
5736
5737am_make=${MAKE-make}
5738cat > confinc << 'END'
5739am__doit:
5740        @echo done
5741.PHONY: am__doit
5742END
5743# If we don't find an include directive, just comment out the code.
5744echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5745echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5746am__include="#"
5747am__quote=
5748_am_result=none
5749# First try GNU make style include.
5750echo "include confinc" > confmf
5751# We grep out `Entering directory' and `Leaving directory'
5752# messages which can occur if `w' ends up in MAKEFLAGS.
5753# In particular we don't look at `^make:' because GNU make might
5754# be invoked under some other name (usually "gmake"), in which
5755# case it prints its new name instead of `make'.
5756if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5757   am__include=include
5758   am__quote=
5759   _am_result=GNU
5760fi
5761# Now try BSD make style include.
5762if test "$am__include" = "#"; then
5763   echo '.include "confinc"' > confmf
5764   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5765      am__include=.include
5766      am__quote="\""
5767      _am_result=BSD
5768   fi
5769fi
5770
5771
5772echo "$as_me:$LINENO: result: $_am_result" >&5
5773echo "${ECHO_T}$_am_result" >&6
5774rm -f confinc confmf
5775
5776# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5777if test "${enable_dependency_tracking+set}" = set; then
5778  enableval="$enable_dependency_tracking"
5779
5780fi;
5781if test "x$enable_dependency_tracking" != xno; then
5782  am_depcomp="$ac_aux_dir/depcomp"
5783  AMDEPBACKSLASH='\'
5784fi
5785
5786
5787if test "x$enable_dependency_tracking" != xno; then
5788  AMDEP_TRUE=
5789  AMDEP_FALSE='#'
5790else
5791  AMDEP_TRUE='#'
5792  AMDEP_FALSE=
5793fi
5794
5795
5796
5797
5798
5799
5800# AC_MSG_NOTICE([Beginning automake initialisation.])
5801# Stuff for automake
5802# test to see if srcdir already configured
5803if test "`cd $srcdir && pwd`" != "`pwd`" &&
5804   test -f $srcdir/config.status; then
5805  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5806echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5807   { (exit 1); exit 1; }; }
5808fi
5809
5810# test whether we have cygpath
5811if test -z "$CYGPATH_W"; then
5812  if (cygpath --version) >/dev/null 2>/dev/null; then
5813    CYGPATH_W='cygpath -w'
5814  else
5815    CYGPATH_W=echo
5816  fi
5817fi
5818
5819
5820# Define the identity of the package.
5821 PACKAGE='thirdpartyhsl'
5822 VERSION='1.3'
5823
5824
5825cat >>confdefs.h <<_ACEOF
5826#define PACKAGE "$PACKAGE"
5827_ACEOF
5828
5829
5830cat >>confdefs.h <<_ACEOF
5831#define VERSION "$VERSION"
5832_ACEOF
5833
5834# Some tools Automake needs.
5835
5836ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5837
5838
5839AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5840
5841
5842AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5843
5844
5845AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5846
5847
5848MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5849
5850install_sh=${install_sh-"$am_aux_dir/install-sh"}
5851
5852# Installed binaries are usually stripped using `strip' when the user
5853# run `make install-strip'.  However `strip' might not be the right
5854# tool to use in cross-compilation environments, therefore Automake
5855# will honor the `STRIP' environment variable to overrule this program.
5856if test "$cross_compiling" != no; then
5857  if test -n "$ac_tool_prefix"; then
5858  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5859set dummy ${ac_tool_prefix}strip; ac_word=$2
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_STRIP+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  if test -n "$STRIP"; then
5866  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873  for ac_exec_ext in '' $ac_executable_extensions; do
5874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880done
5881
5882fi
5883fi
5884STRIP=$ac_cv_prog_STRIP
5885if test -n "$STRIP"; then
5886  echo "$as_me:$LINENO: result: $STRIP" >&5
5887echo "${ECHO_T}$STRIP" >&6
5888else
5889  echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892
5893fi
5894if test -z "$ac_cv_prog_STRIP"; then
5895  ac_ct_STRIP=$STRIP
5896  # Extract the first word of "strip", so it can be a program name with args.
5897set dummy strip; ac_word=$2
5898echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  if test -n "$ac_ct_STRIP"; then
5904  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911  for ac_exec_ext in '' $ac_executable_extensions; do
5912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913    ac_cv_prog_ac_ct_STRIP="strip"
5914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918done
5919
5920  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5921fi
5922fi
5923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5924if test -n "$ac_ct_STRIP"; then
5925  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5926echo "${ECHO_T}$ac_ct_STRIP" >&6
5927else
5928  echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
5931
5932  STRIP=$ac_ct_STRIP
5933else
5934  STRIP="$ac_cv_prog_STRIP"
5935fi
5936
5937fi
5938INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5939
5940# We need awk for the "check" target.  The system "awk" is bad on
5941# some platforms.
5942# Always define AMTAR for backward compatibility.
5943
5944AMTAR=${AMTAR-"${am_missing_run}tar"}
5945
5946am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5947
5948
5949
5950
5951depcc="$CC"   am_compiler_list=
5952
5953echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5954echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5955if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5959  # We make a subdir and do the tests there.  Otherwise we can end up
5960  # making bogus files that we don't know about and never remove.  For
5961  # instance it was reported that on HP-UX the gcc test will end up
5962  # making a dummy file named `D' -- because `-MD' means `put the output
5963  # in D'.
5964  mkdir conftest.dir
5965  # Copy depcomp to subdir because otherwise we won't find it if we're
5966  # using a relative directory.
5967  cp "$am_depcomp" conftest.dir
5968  cd conftest.dir
5969  # We will build objects and dependencies in a subdirectory because
5970  # it helps to detect inapplicable dependency modes.  For instance
5971  # both Tru64's cc and ICC support -MD to output dependencies as a
5972  # side effect of compilation, but ICC will put the dependencies in
5973  # the current directory while Tru64 will put them in the object
5974  # directory.
5975  mkdir sub
5976
5977  am_cv_CC_dependencies_compiler_type=none
5978  if test "$am_compiler_list" = ""; then
5979     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5980  fi
5981  for depmode in $am_compiler_list; do
5982    # Setup a source with many dependencies, because some compilers
5983    # like to wrap large dependency lists on column 80 (with \), and
5984    # we should not choose a depcomp mode which is confused by this.
5985    #
5986    # We need to recreate these files for each test, as the compiler may
5987    # overwrite some of them when testing with obscure command lines.
5988    # This happens at least with the AIX C compiler.
5989    : > sub/conftest.c
5990    for i in 1 2 3 4 5 6; do
5991      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5992      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5993      # Solaris 8's {/usr,}/bin/sh.
5994      touch sub/conftst$i.h
5995    done
5996    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5997
5998    case $depmode in
5999    nosideeffect)
6000      # after this tag, mechanisms are not by side-effect, so they'll
6001      # only be used when explicitly requested
6002      if test "x$enable_dependency_tracking" = xyes; then
6003        continue
6004      else
6005        break
6006      fi
6007      ;;
6008    none) break ;;
6009    esac
6010    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6011    # mode.  It turns out that the SunPro C++ compiler does not properly
6012    # handle `-M -o', and we need to detect this.
6013    if depmode=$depmode \
6014       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6015       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6016       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6017         >/dev/null 2>conftest.err &&
6018       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6019       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6020       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6021      # icc doesn't choke on unknown options, it will just issue warnings
6022      # or remarks (even with -Werror).  So we grep stderr for any message
6023      # that says an option was ignored or not supported.
6024      # When given -MP, icc 7.0 and 7.1 complain thusly:
6025      #   icc: Command line warning: ignoring option '-M'; no argument required
6026      # The diagnosis changed in icc 8.0:
6027      #   icc: Command line remark: option '-MP' not supported
6028      if (grep 'ignoring option' conftest.err ||
6029          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6030        am_cv_CC_dependencies_compiler_type=$depmode
6031        break
6032      fi
6033    fi
6034  done
6035
6036  cd ..
6037  rm -rf conftest.dir
6038else
6039  am_cv_CC_dependencies_compiler_type=none
6040fi
6041
6042fi
6043echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6044echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6045CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6046
6047
6048
6049if
6050  test "x$enable_dependency_tracking" != xno \
6051  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6052  am__fastdepCC_TRUE=
6053  am__fastdepCC_FALSE='#'
6054else
6055  am__fastdepCC_TRUE='#'
6056  am__fastdepCC_FALSE=
6057fi
6058
6059
6060
6061echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6062echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6063    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6064if test "${enable_maintainer_mode+set}" = set; then
6065  enableval="$enable_maintainer_mode"
6066  USE_MAINTAINER_MODE=$enableval
6067else
6068  USE_MAINTAINER_MODE=no
6069fi;
6070  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6071echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6072
6073
6074if test $USE_MAINTAINER_MODE = yes; then
6075  MAINTAINER_MODE_TRUE=
6076  MAINTAINER_MODE_FALSE='#'
6077else
6078  MAINTAINER_MODE_TRUE='#'
6079  MAINTAINER_MODE_FALSE=
6080fi
6081
6082  MAINT=$MAINTAINER_MODE_TRUE
6083
6084
6085
6086coin_have_externals=no
6087if test "$enable_maintainer_mode" = yes; then
6088
6089  # If maintainer mode is chosen, we make sure that the correct versions
6090  # of the tools are used, and that we know where libtool.m4 is (to
6091  # recreate acinclude.m4)
6092
6093
6094  LIBTOOLM4=
6095  # Normally, $HOME
6096  AUTOTOOLS_DFLT=$HOME
6097
6098  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6099echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6100if test "${ac_cv_use_correct_autotools+set}" = set; then
6101  echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103  ac_cv_use_correct_autotools=check
6104fi
6105echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6106echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6107
6108  if test $ac_cv_use_correct_autotools = check; then
6109    ac_cv_use_correct_autotools=yes
6110    # Check if we have autoconf
6111    # Extract the first word of "autoconf", so it can be a program name with args.
6112set dummy autoconf; ac_word=$2
6113echo "$as_me:$LINENO: checking for $ac_word" >&5
6114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115if test "${ac_cv_prog_have_autoconf+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  if test -n "$have_autoconf"; then
6119  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126  for ac_exec_ext in '' $ac_executable_extensions; do
6127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128    ac_cv_prog_have_autoconf="yes"
6129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133done
6134
6135  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6136fi
6137fi
6138have_autoconf=$ac_cv_prog_have_autoconf
6139if test -n "$have_autoconf"; then
6140  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6141echo "${ECHO_T}$have_autoconf" >&6
6142else
6143  echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145fi
6146
6147    if test $have_autoconf = no; then
6148      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6149echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6150   { (exit 1); exit 1; }; }
6151    fi
6152
6153    # Check whether autoconf is the correct version
6154    correct_version='2.59'
6155    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6156    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6157echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6158    autoconf --version > confauto.out 2>&1
6159    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6160      echo "$as_me:$LINENO: result: yes" >&5
6161echo "${ECHO_T}yes" >&6
6162    else
6163      rm -f confauto.out
6164      echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
6166      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6167echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6168   { (exit 1); exit 1; }; }
6169    fi
6170    rm -f confauto.out
6171
6172    # Check if the executable autoconf is picked up from the correct location
6173    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6174echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6175    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6176    autoconf_dir=`cd $autoconf_dir; pwd`
6177    if test x$AUTOTOOLS_DIR = x; then
6178      want_dir=$AUTOTOOLS_DFLT/bin
6179    else
6180      want_dir=$AUTOTOOLS_DIR/bin
6181    fi
6182    if test $autoconf_dir = `cd $want_dir; pwd`; then
6183      echo "$as_me:$LINENO: result: yes" >&5
6184echo "${ECHO_T}yes" >&6
6185    else
6186      rm -f confauto.out
6187      echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6
6189      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6190echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6191   { (exit 1); exit 1; }; }
6192    fi
6193
6194    # Check if we have automake
6195    # Extract the first word of "automake", so it can be a program name with args.
6196set dummy automake; ac_word=$2
6197echo "$as_me:$LINENO: checking for $ac_word" >&5
6198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6199if test "${ac_cv_prog_have_automake+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  if test -n "$have_automake"; then
6203  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208  IFS=$as_save_IFS
6209  test -z "$as_dir" && as_dir=.
6210  for ac_exec_ext in '' $ac_executable_extensions; do
6211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212    ac_cv_prog_have_automake="yes"
6213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214    break 2
6215  fi
6216done
6217done
6218
6219  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6220fi
6221fi
6222have_automake=$ac_cv_prog_have_automake
6223if test -n "$have_automake"; then
6224  echo "$as_me:$LINENO: result: $have_automake" >&5
6225echo "${ECHO_T}$have_automake" >&6
6226else
6227  echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229fi
6230
6231    if test $have_automake = no; then
6232      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6233echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6234   { (exit 1); exit 1; }; }
6235    fi
6236
6237    # Check whether automake is the correct version
6238    correct_version='1.9.6'
6239    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6240    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6241echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6242    automake --version > confauto.out 2>&1
6243    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6244      echo "$as_me:$LINENO: result: yes" >&5
6245echo "${ECHO_T}yes" >&6
6246    else
6247      rm -f confauto.out
6248      echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
6250      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6251echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6252   { (exit 1); exit 1; }; }
6253    fi
6254    rm -f confauto.out
6255
6256    # Check if the executable automake is picked up from the correct location
6257    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6258echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6259    automake_dir=`which automake | sed -e 's=/automake=='`
6260    automake_dir=`cd $automake_dir; pwd`
6261    if test x$AUTOTOOLS_DIR = x; then
6262      want_dir=$AUTOTOOLS_DFLT/bin
6263    else
6264      want_dir=$AUTOTOOLS_DIR/bin
6265    fi
6266    if test $automake_dir = `cd $want_dir; pwd`; then
6267      echo "$as_me:$LINENO: result: yes" >&5
6268echo "${ECHO_T}yes" >&6
6269    else
6270      rm -f confauto.out
6271      echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6274echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6275   { (exit 1); exit 1; }; }
6276    fi
6277
6278    # Check if this is the correct version of libtool (with escaped dots)
6279    if test x$AUTOTOOLS_DIR = x; then
6280      want_dir=$AUTOTOOLS_DFLT/share
6281    else
6282      want_dir=$AUTOTOOLS_DIR/share
6283    fi
6284    correct_version='1.5.22'
6285    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6286    if test -r $want_dir/libtool/ltmain.sh; then
6287  have_ltmain=yes
6288  :
6289else
6290  have_ltmain=no
6291  :
6292fi
6293
6294    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6295echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6296    if test $have_ltmain = yes; then
6297    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6298        echo "$as_me:$LINENO: result: yes" >&5
6299echo "${ECHO_T}yes" >&6
6300      else
6301        echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6
6303        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6304echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6305   { (exit 1); exit 1; }; }
6306      fi
6307    else
6308      echo "$as_me:$LINENO: result: no" >&5
6309echo "${ECHO_T}no" >&6
6310      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6311echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6312   { (exit 1); exit 1; }; }
6313    fi
6314  fi
6315
6316  # Check if we can find the libtool file
6317  if test x$AUTOTOOLS_DIR = x; then
6318    want_dir=$AUTOTOOLS_DFLT/share
6319  else
6320    want_dir=$AUTOTOOLS_DIR/share
6321  fi
6322  if test -r $want_dir/aclocal/libtool.m4; then
6323  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6324  :
6325else
6326  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6327echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6328   { (exit 1); exit 1; }; }
6329  :
6330fi
6331
6332
6333  # Check if we have an Dependencies file
6334  if test -r $srcdir/Dependencies; then
6335    coin_have_externals=yes
6336  fi
6337  # Check if subversion is installed and understands https
6338  # Extract the first word of "svn", so it can be a program name with args.
6339set dummy svn; ac_word=$2
6340echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6342if test "${ac_cv_prog_have_svn+set}" = set; then
6343  echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345  if test -n "$have_svn"; then
6346  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351  IFS=$as_save_IFS
6352  test -z "$as_dir" && as_dir=.
6353  for ac_exec_ext in '' $ac_executable_extensions; do
6354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355    ac_cv_prog_have_svn="yes"
6356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357    break 2
6358  fi
6359done
6360done
6361
6362  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6363fi
6364fi
6365have_svn=$ac_cv_prog_have_svn
6366if test -n "$have_svn"; then
6367  echo "$as_me:$LINENO: result: $have_svn" >&5
6368echo "${ECHO_T}$have_svn" >&6
6369else
6370  echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6
6372fi
6373
6374  if test x$have_svn = xyes; then
6375    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6376echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6377if test "${ac_cv_svn_understands_https+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  svn --version > confauto.out 2>&1
6381                    if $EGREP https confauto.out >/dev/null 2>&1; then
6382                      ac_cv_svn_understands_https=yes
6383                    else
6384                      ac_cv_svn_understands_https=no
6385                      have_svn=no
6386                      ac_cv_prog_have_svn=no
6387                    fi
6388                    rm -f confauto.out
6389fi
6390echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6391echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6392  fi
6393
6394  # Find the location of the BuildTools directory
6395  BUILDTOOLSDIR=
6396  if test -r $srcdir/BuildTools/coin.m4; then
6397    BUILDTOOLSDIR=$srcdir/BuildTools
6398  else
6399    if test -r $srcdir/../BuildTools/coin.m4; then
6400      BUILDTOOLSDIR=$srcdir/../BuildTools
6401    else
6402      if test -r $srcdir/../../BuildTools/coin.m4; then
6403        BUILDTOOLSDIR=$srcdir/../../BuildTools
6404      else
6405        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6406echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6407   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6408      fi
6409    fi
6410  fi
6411
6412
6413  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6414  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6415    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6416  fi
6417
6418  # The following variable is set to the name of the directory where
6419  # the autotool scripts are located
6420
6421  AUX_DIR=$ac_aux_dir
6422fi
6423
6424# helpful variable for the base directory of this package
6425abs_source_dir=`cd $srcdir; pwd`
6426
6427
6428# Stuff for example Makefiles
6429if test x$prefix = xNONE; then
6430  full_prefix=$ac_default_prefix
6431else
6432  full_prefix=$prefix
6433fi
6434full_prefix=`cd $full_prefix ; pwd`
6435
6436abs_lib_dir=$full_prefix/lib
6437
6438abs_include_dir=$full_prefix/include
6439
6440abs_bin_dir=$full_prefix/bin
6441
6442
6443
6444if test $coin_have_externals = yes && test x$have_svn = xyes; then
6445  HAVE_EXTERNALS_TRUE=
6446  HAVE_EXTERNALS_FALSE='#'
6447else
6448  HAVE_EXTERNALS_TRUE='#'
6449  HAVE_EXTERNALS_FALSE=
6450fi
6451
6452
6453# AC_MSG_NOTICE([End automake initialisation.])
6454
6455
6456
6457LIBTOOL=
6458if test -r ../libtool; then
6459  coin_config_dir=..
6460  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6461fi
6462if test "x$LIBTOOL" = x; then
6463  if test -r ../../libtool; then
6464    coin_config_dir=../..
6465    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6466  fi
6467fi
6468
6469if test "x$LIBTOOL" = x; then
6470# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6471  # Stuff for libtool
6472  # Check whether --enable-shared or --disable-shared was given.
6473if test "${enable_shared+set}" = set; then
6474  enableval="$enable_shared"
6475  p=${PACKAGE-default}
6476    case $enableval in
6477    yes) enable_shared=yes ;;
6478    no) enable_shared=no ;;
6479    *)
6480      enable_shared=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_shared=yes
6487        fi
6488      done
6489      IFS="$lt_save_ifs"
6490      ;;
6491    esac
6492else
6493  enable_shared=yes
6494fi;
6495
6496# Check whether --enable-fast-install or --disable-fast-install was given.
6497if test "${enable_fast_install+set}" = set; then
6498  enableval="$enable_fast_install"
6499  p=${PACKAGE-default}
6500    case $enableval in
6501    yes) enable_fast_install=yes ;;
6502    no) enable_fast_install=no ;;
6503    *)
6504      enable_fast_install=no
6505      # Look at the argument we got.  We use all the common list separators.
6506      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6507      for pkg in $enableval; do
6508        IFS="$lt_save_ifs"
6509        if test "X$pkg" = "X$p"; then
6510          enable_fast_install=yes
6511        fi
6512      done
6513      IFS="$lt_save_ifs"
6514      ;;
6515    esac
6516else
6517  enable_fast_install=yes
6518fi;
6519
6520echo "$as_me:$LINENO: checking host system type" >&5
6521echo $ECHO_N "checking host system type... $ECHO_C" >&6
6522if test "${ac_cv_host+set}" = set; then
6523  echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525  ac_cv_host_alias=$host_alias
6526test -z "$ac_cv_host_alias" &&
6527  ac_cv_host_alias=$ac_cv_build_alias
6528ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6529  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6530echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6531   { (exit 1); exit 1; }; }
6532
6533fi
6534echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6535echo "${ECHO_T}$ac_cv_host" >&6
6536host=$ac_cv_host
6537host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6538host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6539host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6540
6541
6542echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6543echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6544if test "${lt_cv_path_SED+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  # Loop through the user's path and test for sed and gsed.
6548# Then use that list of sed's as ones to test for truncation.
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552  IFS=$as_save_IFS
6553  test -z "$as_dir" && as_dir=.
6554  for lt_ac_prog in sed gsed; do
6555    for ac_exec_ext in '' $ac_executable_extensions; do
6556      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6557        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6558      fi
6559    done
6560  done
6561done
6562lt_ac_max=0
6563lt_ac_count=0
6564# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6565# along with /bin/sed that truncates output.
6566for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6567  test ! -f $lt_ac_sed && continue
6568  cat /dev/null > conftest.in
6569  lt_ac_count=0
6570  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6571  # Check for GNU sed and select it if it is found.
6572  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6573    lt_cv_path_SED=$lt_ac_sed
6574    break
6575  fi
6576  while true; do
6577    cat conftest.in conftest.in >conftest.tmp
6578    mv conftest.tmp conftest.in
6579    cp conftest.in conftest.nl
6580    echo >>conftest.nl
6581    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6582    cmp -s conftest.out conftest.nl || break
6583    # 10000 chars as input seems more than enough
6584    test $lt_ac_count -gt 10 && break
6585    lt_ac_count=`expr $lt_ac_count + 1`
6586    if test $lt_ac_count -gt $lt_ac_max; then
6587      lt_ac_max=$lt_ac_count
6588      lt_cv_path_SED=$lt_ac_sed
6589    fi
6590  done
6591done
6592
6593fi
6594
6595SED=$lt_cv_path_SED
6596echo "$as_me:$LINENO: result: $SED" >&5
6597echo "${ECHO_T}$SED" >&6
6598
6599
6600# Check whether --with-gnu-ld or --without-gnu-ld was given.
6601if test "${with_gnu_ld+set}" = set; then
6602  withval="$with_gnu_ld"
6603  test "$withval" = no || with_gnu_ld=yes
6604else
6605  with_gnu_ld=no
6606fi;
6607ac_prog=ld
6608if test "$GCC" = yes; then
6609  # Check if gcc -print-prog-name=ld gives a path.
6610  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6611echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6612  case $host in
6613  *-*-mingw*)
6614    # gcc leaves a trailing carriage return which upsets mingw
6615    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6616  *)
6617    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6618  esac
6619  case $ac_prog in
6620    # Accept absolute paths.
6621    [\\/]* | ?:[\\/]*)
6622      re_direlt='/[^/][^/]*/\.\./'
6623      # Canonicalize the pathname of ld
6624      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6625      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6626        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6627      done
6628      test -z "$LD" && LD="$ac_prog"
6629      ;;
6630  "")
6631    # If it fails, then pretend we aren't using GCC.
6632    ac_prog=ld
6633    ;;
6634  *)
6635    # If it is relative, then search for the first ld in PATH.
6636    with_gnu_ld=unknown
6637    ;;
6638  esac
6639elif test "$with_gnu_ld" = yes; then
6640  echo "$as_me:$LINENO: checking for GNU ld" >&5
6641echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6642else
6643  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6644echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6645fi
6646if test "${lt_cv_path_LD+set}" = set; then
6647  echo $ECHO_N "(cached) $ECHO_C" >&6
6648else
6649  if test -z "$LD"; then
6650  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6651  for ac_dir in $PATH; do
6652    IFS="$lt_save_ifs"
6653    test -z "$ac_dir" && ac_dir=.
6654    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6655      lt_cv_path_LD="$ac_dir/$ac_prog"
6656      # Check to see if the program is GNU ld.  I'd rather use --version,
6657      # but apparently some variants of GNU ld only accept -v.
6658      # Break only if it was the GNU/non-GNU ld that we prefer.
6659      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6660      *GNU* | *'with BFD'*)
6661        test "$with_gnu_ld" != no && break
6662        ;;
6663      *)
6664        test "$with_gnu_ld" != yes && break
6665        ;;
6666      esac
6667    fi
6668  done
6669  IFS="$lt_save_ifs"
6670else
6671  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6672fi
6673fi
6674
6675LD="$lt_cv_path_LD"
6676if test -n "$LD"; then
6677  echo "$as_me:$LINENO: result: $LD" >&5
6678echo "${ECHO_T}$LD" >&6
6679else
6680  echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6
6682fi
6683test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6684echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6685   { (exit 1); exit 1; }; }
6686echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6687echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6688if test "${lt_cv_prog_gnu_ld+set}" = set; then
6689  echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6692case `$LD -v 2>&1 </dev/null` in
6693*GNU* | *'with BFD'*)
6694  lt_cv_prog_gnu_ld=yes
6695  ;;
6696*)
6697  lt_cv_prog_gnu_ld=no
6698  ;;
6699esac
6700fi
6701echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6702echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6703with_gnu_ld=$lt_cv_prog_gnu_ld
6704
6705
6706echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6707echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6708if test "${lt_cv_ld_reload_flag+set}" = set; then
6709  echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711  lt_cv_ld_reload_flag='-r'
6712fi
6713echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6714echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6715reload_flag=$lt_cv_ld_reload_flag
6716case $reload_flag in
6717"" | " "*) ;;
6718*) reload_flag=" $reload_flag" ;;
6719esac
6720reload_cmds='$LD$reload_flag -o $output$reload_objs'
6721case $host_os in
6722  darwin*)
6723    if test "$GCC" = yes; then
6724      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6725    else
6726      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6727    fi
6728    ;;
6729esac
6730
6731echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6732echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6733if test "${lt_cv_path_NM+set}" = set; then
6734  echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736  if test -n "$NM"; then
6737  # Let the user override the test.
6738  lt_cv_path_NM="$NM"
6739else
6740  lt_nm_to_check="${ac_tool_prefix}nm"
6741  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6742    lt_nm_to_check="$lt_nm_to_check nm"
6743  fi
6744  for lt_tmp_nm in $lt_nm_to_check; do
6745    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6746    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6747      IFS="$lt_save_ifs"
6748      test -z "$ac_dir" && ac_dir=.
6749      tmp_nm="$ac_dir/$lt_tmp_nm"
6750      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6751        # Check to see if the nm accepts a BSD-compat flag.
6752        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6753        #   nm: unknown option "B" ignored
6754        # Tru64's nm complains that /dev/null is an invalid object file
6755        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6756        */dev/null* | *'Invalid file or object type'*)
6757          lt_cv_path_NM="$tmp_nm -B"
6758          break
6759          ;;
6760        *)
6761          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6762          */dev/null*)
6763            lt_cv_path_NM="$tmp_nm -p"
6764            break
6765            ;;
6766          *)
6767            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6768            continue # so that we can try to find one that supports BSD flags
6769            ;;
6770          esac
6771          ;;
6772        esac
6773      fi
6774    done
6775    IFS="$lt_save_ifs"
6776  done
6777  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6778fi
6779fi
6780echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6781echo "${ECHO_T}$lt_cv_path_NM" >&6
6782NM="$lt_cv_path_NM"
6783
6784echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6785echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6786if test "${lt_cv_deplibs_check_method+set}" = set; then
6787  echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789  lt_cv_file_magic_cmd='$MAGIC_CMD'
6790lt_cv_file_magic_test_file=
6791lt_cv_deplibs_check_method='unknown'
6792# Need to set the preceding variable on all platforms that support
6793# interlibrary dependencies.
6794# 'none' -- dependencies not supported.
6795# `unknown' -- same as none, but documents that we really don't know.
6796# 'pass_all' -- all dependencies passed with no checks.
6797# 'test_compile' -- check by making test program.
6798# 'file_magic [[regex]]' -- check by looking for files in library path
6799# which responds to the $file_magic_cmd with a given extended regex.
6800# If you have `file' or equivalent on your system and you're not sure
6801# whether `pass_all' will *always* work, you probably want this one.
6802
6803case $host_os in
6804aix4* | aix5*)
6805  lt_cv_deplibs_check_method=pass_all
6806  ;;
6807
6808beos*)
6809  lt_cv_deplibs_check_method=pass_all
6810  ;;
6811
6812bsdi[45]*)
6813  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6814  lt_cv_file_magic_cmd='/usr/bin/file -L'
6815  lt_cv_file_magic_test_file=/shlib/libc.so
6816  ;;
6817
6818cygwin*)
6819  # func_win32_libid is a shell function defined in ltmain.sh
6820  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6821  lt_cv_file_magic_cmd='func_win32_libid'
6822  ;;
6823
6824mingw* | pw32*)
6825  # Base MSYS/MinGW do not provide the 'file' command needed by
6826  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6827  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6828  lt_cv_file_magic_cmd='$OBJDUMP -f'
6829  ;;
6830
6831darwin* | rhapsody*)
6832  lt_cv_deplibs_check_method=pass_all
6833  ;;
6834
6835freebsd* | kfreebsd*-gnu | dragonfly*)
6836  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6837    case $host_cpu in
6838    i*86 )
6839      # Not sure whether the presence of OpenBSD here was a mistake.
6840      # Let's accept both of them until this is cleared up.
6841      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6842      lt_cv_file_magic_cmd=/usr/bin/file
6843      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6844      ;;
6845    esac
6846  else
6847    lt_cv_deplibs_check_method=pass_all
6848  fi
6849  ;;
6850
6851gnu*)
6852  lt_cv_deplibs_check_method=pass_all
6853  ;;
6854
6855hpux10.20* | hpux11*)
6856  lt_cv_file_magic_cmd=/usr/bin/file
6857  case $host_cpu in
6858  ia64*)
6859    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6860    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6861    ;;
6862  hppa*64*)
6863    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]'
6864    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6865    ;;
6866  *)
6867    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6868    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6869    ;;
6870  esac
6871  ;;
6872
6873interix3*)
6874  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6875  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6876  ;;
6877
6878irix5* | irix6* | nonstopux*)
6879  case $LD in
6880  *-32|*"-32 ") libmagic=32-bit;;
6881  *-n32|*"-n32 ") libmagic=N32;;
6882  *-64|*"-64 ") libmagic=64-bit;;
6883  *) libmagic=never-match;;
6884  esac
6885  lt_cv_deplibs_check_method=pass_all
6886  ;;
6887
6888# This must be Linux ELF.
6889linux*)
6890  lt_cv_deplibs_check_method=pass_all
6891  ;;
6892
6893netbsd*)
6894  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6896  else
6897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6898  fi
6899  ;;
6900
6901newos6*)
6902  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6903  lt_cv_file_magic_cmd=/usr/bin/file
6904  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6905  ;;
6906
6907nto-qnx*)
6908  lt_cv_deplibs_check_method=unknown
6909  ;;
6910
6911openbsd*)
6912  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6913    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6914  else
6915    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6916  fi
6917  ;;
6918
6919osf3* | osf4* | osf5*)
6920  lt_cv_deplibs_check_method=pass_all
6921  ;;
6922
6923solaris*)
6924  lt_cv_deplibs_check_method=pass_all
6925  ;;
6926
6927sysv4 | sysv4.3*)
6928  case $host_vendor in
6929  motorola)
6930    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]'
6931    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6932    ;;
6933  ncr)
6934    lt_cv_deplibs_check_method=pass_all
6935    ;;
6936  sequent)
6937    lt_cv_file_magic_cmd='/bin/file'
6938    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6939    ;;
6940  sni)
6941    lt_cv_file_magic_cmd='/bin/file'
6942    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6943    lt_cv_file_magic_test_file=/lib/libc.so
6944    ;;
6945  siemens)
6946    lt_cv_deplibs_check_method=pass_all
6947    ;;
6948  pc)
6949    lt_cv_deplibs_check_method=pass_all
6950    ;;
6951  esac
6952  ;;
6953
6954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6955  lt_cv_deplibs_check_method=pass_all
6956  ;;
6957esac
6958
6959fi
6960echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6961echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6962file_magic_cmd=$lt_cv_file_magic_cmd
6963deplibs_check_method=$lt_cv_deplibs_check_method
6964test -z "$deplibs_check_method" && deplibs_check_method=unknown
6965
6966
6967
6968
6969# If no C compiler was specified, use CC.
6970LTCC=${LTCC-"$CC"}
6971
6972# If no C compiler flags were specified, use CFLAGS.
6973LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6974
6975# Allow CC to be a program name with arguments.
6976compiler=$CC
6977
6978# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6979if test "${enable_libtool_lock+set}" = set; then
6980  enableval="$enable_libtool_lock"
6981
6982fi;
6983test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6984
6985# Some flags need to be propagated to the compiler or linker for good
6986# libtool support.
6987case $host in
6988ia64-*-hpux*)
6989  # Find out which ABI we are using.
6990  echo 'int i;' > conftest.$ac_ext
6991  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992  (eval $ac_compile) 2>&5
6993  ac_status=$?
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); }; then
6996    case `/usr/bin/file conftest.$ac_objext` in
6997    *ELF-32*)
6998      HPUX_IA64_MODE="32"
6999      ;;
7000    *ELF-64*)
7001      HPUX_IA64_MODE="64"
7002      ;;
7003    esac
7004  fi
7005  rm -rf conftest*
7006  ;;
7007*-*-irix6*)
7008  # Find out which ABI we are using.
7009  echo '#line 7009 "configure"' > conftest.$ac_ext
7010  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011  (eval $ac_compile) 2>&5
7012  ac_status=$?
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); }; then
7015   if test "$lt_cv_prog_gnu_ld" = yes; then
7016    case `/usr/bin/file conftest.$ac_objext` in
7017    *32-bit*)
7018      LD="${LD-ld} -melf32bsmip"
7019      ;;
7020    *N32*)
7021      LD="${LD-ld} -melf32bmipn32"
7022      ;;
7023    *64-bit*)
7024      LD="${LD-ld} -melf64bmip"
7025      ;;
7026    esac
7027   else
7028    case `/usr/bin/file conftest.$ac_objext` in
7029    *32-bit*)
7030      LD="${LD-ld} -32"
7031      ;;
7032    *N32*)
7033      LD="${LD-ld} -n32"
7034      ;;
7035    *64-bit*)
7036      LD="${LD-ld} -64"
7037      ;;
7038    esac
7039   fi
7040  fi
7041  rm -rf conftest*
7042  ;;
7043
7044x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7045  # Find out which ABI we are using.
7046  echo 'int i;' > conftest.$ac_ext
7047  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048  (eval $ac_compile) 2>&5
7049  ac_status=$?
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); }; then
7052    case `/usr/bin/file conftest.o` in
7053    *32-bit*)
7054      case $host in
7055        x86_64-*linux*)
7056          LD="${LD-ld} -m elf_i386"
7057          ;;
7058        ppc64-*linux*|powerpc64-*linux*)
7059          LD="${LD-ld} -m elf32ppclinux"
7060          ;;
7061        s390x-*linux*)
7062          LD="${LD-ld} -m elf_s390"
7063          ;;
7064        sparc64-*linux*)
7065          LD="${LD-ld} -m elf32_sparc"
7066          ;;
7067      esac
7068      ;;
7069    *64-bit*)
7070      case $host in
7071        x86_64-*linux*)
7072          LD="${LD-ld} -m elf_x86_64"
7073          ;;
7074        ppc*-*linux*|powerpc*-*linux*)
7075          LD="${LD-ld} -m elf64ppc"
7076          ;;
7077        s390*-*linux*)
7078          LD="${LD-ld} -m elf64_s390"
7079          ;;
7080        sparc*-*linux*)
7081          LD="${LD-ld} -m elf64_sparc"
7082          ;;
7083      esac
7084      ;;
7085    esac
7086  fi
7087  rm -rf conftest*
7088  ;;
7089
7090*-*-sco3.2v5*)
7091  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7092  SAVE_CFLAGS="$CFLAGS"
7093  CFLAGS="$CFLAGS -belf"
7094  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7095echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7096if test "${lt_cv_cc_needs_belf+set}" = set; then
7097  echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099  ac_ext=c
7100ac_cpp='$CPP $CPPFLAGS'
7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105     cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h.  */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h.  */
7111
7112#ifdef F77_DUMMY_MAIN
7113
7114#  ifdef __cplusplus
7115     extern "C"
7116#  endif
7117   int F77_DUMMY_MAIN() { return 1; }
7118
7119#endif
7120int
7121main ()
7122{
7123
7124  ;
7125  return 0;
7126}
7127_ACEOF
7128rm -f conftest.$ac_objext conftest$ac_exeext
7129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130  (eval $ac_link) 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } &&
7137         { ac_try='test -z "$ac_c_werror_flag"
7138                         || test ! -s conftest.err'
7139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140  (eval $ac_try) 2>&5
7141  ac_status=$?
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); }; } &&
7144         { ac_try='test -s conftest$ac_exeext'
7145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146  (eval $ac_try) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); }; }; then
7150  lt_cv_cc_needs_belf=yes
7151else
7152  echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155lt_cv_cc_needs_belf=no
7156fi
7157rm -f conftest.err conftest.$ac_objext \
7158      conftest$ac_exeext conftest.$ac_ext
7159     ac_ext=c
7160ac_cpp='$CPP $CPPFLAGS'
7161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
7165fi
7166echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7167echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7168  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7169    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7170    CFLAGS="$SAVE_CFLAGS"
7171  fi
7172  ;;
7173sparc*-*solaris*)
7174  # Find out which ABI we are using.
7175  echo 'int i;' > conftest.$ac_ext
7176  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177  (eval $ac_compile) 2>&5
7178  ac_status=$?
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); }; then
7181    case `/usr/bin/file conftest.o` in
7182    *64-bit*)
7183      case $lt_cv_prog_gnu_ld in
7184      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7185      *)    LD="${LD-ld} -64" ;;
7186      esac
7187      ;;
7188    esac
7189  fi
7190  rm -rf conftest*
7191  ;;
7192
7193
7194esac
7195
7196need_locks="$enable_libtool_lock"
7197
7198
7199ac_ext=c
7200ac_cpp='$CPP $CPPFLAGS'
7201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7205echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7206# On Suns, sometimes $CPP names a directory.
7207if test -n "$CPP" && test -d "$CPP"; then
7208  CPP=
7209fi
7210if test -z "$CPP"; then
7211  if test "${ac_cv_prog_CPP+set}" = set; then
7212  echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214      # Double quotes because CPP needs to be expanded
7215    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7216    do
7217      ac_preproc_ok=false
7218for ac_c_preproc_warn_flag in '' yes
7219do
7220  # Use a header file that comes with gcc, so configuring glibc
7221  # with a fresh cross-compiler works.
7222  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7223  # <limits.h> exists even on freestanding compilers.
7224  # On the NeXT, cc -E runs the code through the compiler's parser,
7225  # not just through cpp. "Syntax error" is here to catch this case.
7226  cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h.  */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h.  */
7232#ifdef __STDC__
7233# include <limits.h>
7234#else
7235# include <assert.h>
7236#endif
7237                     Syntax error
7238_ACEOF
7239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7240  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7241  ac_status=$?
7242  grep -v '^ *+' conftest.er1 >conftest.err
7243  rm -f conftest.er1
7244  cat conftest.err >&5
7245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246  (exit $ac_status); } >/dev/null; then
7247  if test -s conftest.err; then
7248    ac_cpp_err=$ac_c_preproc_warn_flag
7249    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7250  else
7251    ac_cpp_err=
7252  fi
7253else
7254  ac_cpp_err=yes
7255fi
7256if test -z "$ac_cpp_err"; then
7257  :
7258else
7259  echo "$as_me: failed program was:" >&5
7260sed 's/^/| /' conftest.$ac_ext >&5
7261
7262  # Broken: fails on valid input.
7263continue
7264fi
7265rm -f conftest.err conftest.$ac_ext
7266
7267  # OK, works on sane cases.  Now check whether non-existent headers
7268  # can be detected and how.
7269  cat >conftest.$ac_ext <<_ACEOF
7270/* confdefs.h.  */
7271_ACEOF
7272cat confdefs.h >>conftest.$ac_ext
7273cat >>conftest.$ac_ext <<_ACEOF
7274/* end confdefs.h.  */
7275#include <ac_nonexistent.h>
7276_ACEOF
7277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7278  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7279  ac_status=$?
7280  grep -v '^ *+' conftest.er1 >conftest.err
7281  rm -f conftest.er1
7282  cat conftest.err >&5
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); } >/dev/null; then
7285  if test -s conftest.err; then
7286    ac_cpp_err=$ac_c_preproc_warn_flag
7287    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7288  else
7289    ac_cpp_err=
7290  fi
7291else
7292  ac_cpp_err=yes
7293fi
7294if test -z "$ac_cpp_err"; then
7295  # Broken: success on invalid input.
7296continue
7297else
7298  echo "$as_me: failed program was:" >&5
7299sed 's/^/| /' conftest.$ac_ext >&5
7300
7301  # Passes both tests.
7302ac_preproc_ok=:
7303break
7304fi
7305rm -f conftest.err conftest.$ac_ext
7306
7307done
7308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309rm -f conftest.err conftest.$ac_ext
7310if $ac_preproc_ok; then
7311  break
7312fi
7313
7314    done
7315    ac_cv_prog_CPP=$CPP
7316
7317fi
7318  CPP=$ac_cv_prog_CPP
7319else
7320  ac_cv_prog_CPP=$CPP
7321fi
7322echo "$as_me:$LINENO: result: $CPP" >&5
7323echo "${ECHO_T}$CPP" >&6
7324ac_preproc_ok=false
7325for ac_c_preproc_warn_flag in '' yes
7326do
7327  # Use a header file that comes with gcc, so configuring glibc
7328  # with a fresh cross-compiler works.
7329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7330  # <limits.h> exists even on freestanding compilers.
7331  # On the NeXT, cc -E runs the code through the compiler's parser,
7332  # not just through cpp. "Syntax error" is here to catch this case.
7333  cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h.  */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h.  */
7339#ifdef __STDC__
7340# include <limits.h>
7341#else
7342# include <assert.h>
7343#endif
7344                     Syntax error
7345_ACEOF
7346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7348  ac_status=$?
7349  grep -v '^ *+' conftest.er1 >conftest.err
7350  rm -f conftest.er1
7351  cat conftest.err >&5
7352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353  (exit $ac_status); } >/dev/null; then
7354  if test -s conftest.err; then
7355    ac_cpp_err=$ac_c_preproc_warn_flag
7356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7357  else
7358    ac_cpp_err=
7359  fi
7360else
7361  ac_cpp_err=yes
7362fi
7363if test -z "$ac_cpp_err"; then
7364  :
7365else
7366  echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
7368
7369  # Broken: fails on valid input.
7370continue
7371fi
7372rm -f conftest.err conftest.$ac_ext
7373
7374  # OK, works on sane cases.  Now check whether non-existent headers
7375  # can be detected and how.
7376  cat >conftest.$ac_ext <<_ACEOF
7377/* confdefs.h.  */
7378_ACEOF
7379cat confdefs.h >>conftest.$ac_ext
7380cat >>conftest.$ac_ext <<_ACEOF
7381/* end confdefs.h.  */
7382#include <ac_nonexistent.h>
7383_ACEOF
7384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7386  ac_status=$?
7387  grep -v '^ *+' conftest.er1 >conftest.err
7388  rm -f conftest.er1
7389  cat conftest.err >&5
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); } >/dev/null; then
7392  if test -s conftest.err; then
7393    ac_cpp_err=$ac_c_preproc_warn_flag
7394    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7395  else
7396    ac_cpp_err=
7397  fi
7398else
7399  ac_cpp_err=yes
7400fi
7401if test -z "$ac_cpp_err"; then
7402  # Broken: success on invalid input.
7403continue
7404else
7405  echo "$as_me: failed program was:" >&5
7406sed 's/^/| /' conftest.$ac_ext >&5
7407
7408  # Passes both tests.
7409ac_preproc_ok=:
7410break
7411fi
7412rm -f conftest.err conftest.$ac_ext
7413
7414done
7415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7416rm -f conftest.err conftest.$ac_ext
7417if $ac_preproc_ok; then
7418  :
7419else
7420  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7421See \`config.log' for more details." >&5
7422echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7423See \`config.log' for more details." >&2;}
7424   { (exit 1); exit 1; }; }
7425fi
7426
7427ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433
7434echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7435echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7436if test "${ac_cv_header_stdc+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  cat >conftest.$ac_ext <<_ACEOF
7440/* confdefs.h.  */
7441_ACEOF
7442cat confdefs.h >>conftest.$ac_ext
7443cat >>conftest.$ac_ext <<_ACEOF
7444/* end confdefs.h.  */
7445#include <stdlib.h>
7446#include <stdarg.h>
7447#include <string.h>
7448#include <float.h>
7449
7450#ifdef F77_DUMMY_MAIN
7451
7452#  ifdef __cplusplus
7453     extern "C"
7454#  endif
7455   int F77_DUMMY_MAIN() { return 1; }
7456
7457#endif
7458int
7459main ()
7460{
7461
7462  ;
7463  return 0;
7464}
7465_ACEOF
7466rm -f conftest.$ac_objext
7467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468  (eval $ac_compile) 2>conftest.er1
7469  ac_status=$?
7470  grep -v '^ *+' conftest.er1 >conftest.err
7471  rm -f conftest.er1
7472  cat conftest.err >&5
7473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474  (exit $ac_status); } &&
7475         { ac_try='test -z "$ac_c_werror_flag"
7476                         || test ! -s conftest.err'
7477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478  (eval $ac_try) 2>&5
7479  ac_status=$?
7480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481  (exit $ac_status); }; } &&
7482         { ac_try='test -s conftest.$ac_objext'
7483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484  (eval $ac_try) 2>&5
7485  ac_status=$?
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); }; }; then
7488  ac_cv_header_stdc=yes
7489else
7490  echo "$as_me: failed program was:" >&5
7491sed 's/^/| /' conftest.$ac_ext >&5
7492
7493ac_cv_header_stdc=no
7494fi
7495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496
7497if test $ac_cv_header_stdc = yes; then
7498  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7499  cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h.  */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h.  */
7505#include <string.h>
7506
7507_ACEOF
7508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509  $EGREP "memchr" >/dev/null 2>&1; then
7510  :
7511else
7512  ac_cv_header_stdc=no
7513fi
7514rm -f conftest*
7515
7516fi
7517
7518if test $ac_cv_header_stdc = yes; then
7519  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
7527
7528_ACEOF
7529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7530  $EGREP "free" >/dev/null 2>&1; then
7531  :
7532else
7533  ac_cv_header_stdc=no
7534fi
7535rm -f conftest*
7536
7537fi
7538
7539if test $ac_cv_header_stdc = yes; then
7540  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7541  if test "$cross_compiling" = yes; then
7542  :
7543else
7544  cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h.  */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h.  */
7550#include <ctype.h>
7551#if ((' ' & 0x0FF) == 0x020)
7552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7554#else
7555# define ISLOWER(c) \
7556                   (('a' <= (c) && (c) <= 'i') \
7557                     || ('j' <= (c) && (c) <= 'r') \
7558                     || ('s' <= (c) && (c) <= 'z'))
7559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7560#endif
7561
7562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7563int
7564main ()
7565{
7566  int i;
7567  for (i = 0; i < 256; i++)
7568    if (XOR (islower (i), ISLOWER (i))
7569        || toupper (i) != TOUPPER (i))
7570      exit(2);
7571  exit (0);
7572}
7573_ACEOF
7574rm -f conftest$ac_exeext
7575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576  (eval $ac_link) 2>&5
7577  ac_status=$?
7578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581  (eval $ac_try) 2>&5
7582  ac_status=$?
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); }; }; then
7585  :
7586else
7587  echo "$as_me: program exited with status $ac_status" >&5
7588echo "$as_me: failed program was:" >&5
7589sed 's/^/| /' conftest.$ac_ext >&5
7590
7591( exit $ac_status )
7592ac_cv_header_stdc=no
7593fi
7594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7595fi
7596fi
7597fi
7598echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7599echo "${ECHO_T}$ac_cv_header_stdc" >&6
7600if test $ac_cv_header_stdc = yes; then
7601
7602cat >>confdefs.h <<\_ACEOF
7603#define STDC_HEADERS 1
7604_ACEOF
7605
7606fi
7607
7608# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7619                  inttypes.h stdint.h unistd.h
7620do
7621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7622echo "$as_me:$LINENO: checking for $ac_header" >&5
7623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7624if eval "test \"\${$as_ac_Header+set}\" = set"; then
7625  echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627  cat >conftest.$ac_ext <<_ACEOF
7628/* confdefs.h.  */
7629_ACEOF
7630cat confdefs.h >>conftest.$ac_ext
7631cat >>conftest.$ac_ext <<_ACEOF
7632/* end confdefs.h.  */
7633$ac_includes_default
7634
7635#include <$ac_header>
7636_ACEOF
7637rm -f conftest.$ac_objext
7638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639  (eval $ac_compile) 2>conftest.er1
7640  ac_status=$?
7641  grep -v '^ *+' conftest.er1 >conftest.err
7642  rm -f conftest.er1
7643  cat conftest.err >&5
7644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645  (exit $ac_status); } &&
7646         { ac_try='test -z "$ac_c_werror_flag"
7647                         || test ! -s conftest.err'
7648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649  (eval $ac_try) 2>&5
7650  ac_status=$?
7651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652  (exit $ac_status); }; } &&
7653         { ac_try='test -s conftest.$ac_objext'
7654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655  (eval $ac_try) 2>&5
7656  ac_status=$?
7657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658  (exit $ac_status); }; }; then
7659  eval "$as_ac_Header=yes"
7660else
7661  echo "$as_me: failed program was:" >&5
7662sed 's/^/| /' conftest.$ac_ext >&5
7663
7664eval "$as_ac_Header=no"
7665fi
7666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667fi
7668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671  cat >>confdefs.h <<_ACEOF
7672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7673_ACEOF
7674
7675fi
7676
7677done
7678
7679
7680
7681for ac_header in dlfcn.h
7682do
7683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684if eval "test \"\${$as_ac_Header+set}\" = set"; then
7685  echo "$as_me:$LINENO: checking for $ac_header" >&5
7686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688  echo $ECHO_N "(cached) $ECHO_C" >&6
7689fi
7690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7692else
7693  # Is the header compilable?
7694echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7696cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h.  */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h.  */
7702$ac_includes_default
7703#include <$ac_header>
7704_ACEOF
7705rm -f conftest.$ac_objext
7706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7707  (eval $ac_compile) 2>conftest.er1
7708  ac_status=$?
7709  grep -v '^ *+' conftest.er1 >conftest.err
7710  rm -f conftest.er1
7711  cat conftest.err >&5
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); } &&
7714         { ac_try='test -z "$ac_c_werror_flag"
7715                         || test ! -s conftest.err'
7716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717  (eval $ac_try) 2>&5
7718  ac_status=$?
7719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); }; } &&
7721         { ac_try='test -s conftest.$ac_objext'
7722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723  (eval $ac_try) 2>&5
7724  ac_status=$?
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); }; }; then
7727  ac_header_compiler=yes
7728else
7729  echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732ac_header_compiler=no
7733fi
7734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7736echo "${ECHO_T}$ac_header_compiler" >&6
7737
7738# Is the header present?
7739echo "$as_me:$LINENO: checking $ac_header presence" >&5
7740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7741cat >conftest.$ac_ext <<_ACEOF
7742/* confdefs.h.  */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h.  */
7747#include <$ac_header>
7748_ACEOF
7749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7750  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7751  ac_status=$?
7752  grep -v '^ *+' conftest.er1 >conftest.err
7753  rm -f conftest.er1
7754  cat conftest.err >&5
7755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756  (exit $ac_status); } >/dev/null; then
7757  if test -s conftest.err; then
7758    ac_cpp_err=$ac_c_preproc_warn_flag
7759    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7760  else
7761    ac_cpp_err=
7762  fi
7763else
7764  ac_cpp_err=yes
7765fi
7766if test -z "$ac_cpp_err"; then
7767  ac_header_preproc=yes
7768else
7769  echo "$as_me: failed program was:" >&5
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7772  ac_header_preproc=no
7773fi
7774rm -f conftest.err conftest.$ac_ext
7775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7776echo "${ECHO_T}$ac_header_preproc" >&6
7777
7778# So?  What about this header?
7779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7780  yes:no: )
7781    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7783    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7785    ac_header_preproc=yes
7786    ;;
7787  no:yes:* )
7788    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7790    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7791echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7792    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7794    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7795echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7796    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7798    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7800    (
7801      cat <<\_ASBOX
7802## --------------------------------------------------------------- ##
7803## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7804## --------------------------------------------------------------- ##
7805_ASBOX
7806    ) |
7807      sed "s/^/$as_me: WARNING:     /" >&2
7808    ;;
7809esac
7810echo "$as_me:$LINENO: checking for $ac_header" >&5
7811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7812if eval "test \"\${$as_ac_Header+set}\" = set"; then
7813  echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815  eval "$as_ac_Header=\$ac_header_preproc"
7816fi
7817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7819
7820fi
7821if test `eval echo '${'$as_ac_Header'}'` = yes; then
7822  cat >>confdefs.h <<_ACEOF
7823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7824_ACEOF
7825
7826fi
7827
7828done
7829
7830ac_ext=cc
7831ac_cpp='$CXXCPP $CPPFLAGS'
7832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7835if test -n "$ac_tool_prefix"; then
7836  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7837  do
7838    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7839set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7840echo "$as_me:$LINENO: checking for $ac_word" >&5
7841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7842if test "${ac_cv_prog_CXX+set}" = set; then
7843  echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845  if test -n "$CXX"; then
7846  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853  for ac_exec_ext in '' $ac_executable_extensions; do
7854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860done
7861
7862fi
7863fi
7864CXX=$ac_cv_prog_CXX
7865if test -n "$CXX"; then
7866  echo "$as_me:$LINENO: result: $CXX" >&5
7867echo "${ECHO_T}$CXX" >&6
7868else
7869  echo "$as_me:$LINENO: result: no" >&5
7870echo "${ECHO_T}no" >&6
7871fi
7872
7873    test -n "$CXX" && break
7874  done
7875fi
7876if test -z "$CXX"; then
7877  ac_ct_CXX=$CXX
7878  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7879do
7880  # Extract the first word of "$ac_prog", so it can be a program name with args.
7881set dummy $ac_prog; ac_word=$2
7882echo "$as_me:$LINENO: checking for $ac_word" >&5
7883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7884if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7885  echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887  if test -n "$ac_ct_CXX"; then
7888  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7889else
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893  IFS=$as_save_IFS
7894  test -z "$as_dir" && as_dir=.
7895  for ac_exec_ext in '' $ac_executable_extensions; do
7896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897    ac_cv_prog_ac_ct_CXX="$ac_prog"
7898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7899    break 2
7900  fi
7901done
7902done
7903
7904fi
7905fi
7906ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7907if test -n "$ac_ct_CXX"; then
7908  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7909echo "${ECHO_T}$ac_ct_CXX" >&6
7910else
7911  echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913fi
7914
7915  test -n "$ac_ct_CXX" && break
7916done
7917test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7918
7919  CXX=$ac_ct_CXX
7920fi
7921
7922
7923# Provide some information about the compiler.
7924echo "$as_me:$LINENO:" \
7925     "checking for C++ compiler version" >&5
7926ac_compiler=`set X $ac_compile; echo $2`
7927{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7928  (eval $ac_compiler --version </dev/null >&5) 2>&5
7929  ac_status=$?
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); }
7932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7933  (eval $ac_compiler -v </dev/null >&5) 2>&5
7934  ac_status=$?
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); }
7937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7938  (eval $ac_compiler -V </dev/null >&5) 2>&5
7939  ac_status=$?
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); }
7942
7943echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7944echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7945if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7946  echo $ECHO_N "(cached) $ECHO_C" >&6
7947else
7948  cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h.  */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h.  */
7954
7955#ifdef F77_DUMMY_MAIN
7956
7957#  ifdef __cplusplus
7958     extern "C"
7959#  endif
7960   int F77_DUMMY_MAIN() { return 1; }
7961
7962#endif
7963int
7964main ()
7965{
7966#ifndef __GNUC__
7967       choke me
7968#endif
7969
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974rm -f conftest.$ac_objext
7975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976  (eval $ac_compile) 2>conftest.er1
7977  ac_status=$?
7978  grep -v '^ *+' conftest.er1 >conftest.err
7979  rm -f conftest.er1
7980  cat conftest.err >&5
7981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982  (exit $ac_status); } &&
7983         { ac_try='test -z "$ac_cxx_werror_flag"
7984                         || test ! -s conftest.err'
7985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986  (eval $ac_try) 2>&5
7987  ac_status=$?
7988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989  (exit $ac_status); }; } &&
7990         { ac_try='test -s conftest.$ac_objext'
7991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992  (eval $ac_try) 2>&5
7993  ac_status=$?
7994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995  (exit $ac_status); }; }; then
7996  ac_compiler_gnu=yes
7997else
7998  echo "$as_me: failed program was:" >&5
7999sed 's/^/| /' conftest.$ac_ext >&5
8000
8001ac_compiler_gnu=no
8002fi
8003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8004ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8005
8006fi
8007echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8008echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8009GXX=`test $ac_compiler_gnu = yes && echo yes`
8010ac_test_CXXFLAGS=${CXXFLAGS+set}
8011ac_save_CXXFLAGS=$CXXFLAGS
8012CXXFLAGS="-g"
8013echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8014echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8015if test "${ac_cv_prog_cxx_g+set}" = set; then
8016  echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018  cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h.  */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h.  */
8024
8025#ifdef F77_DUMMY_MAIN
8026
8027#  ifdef __cplusplus
8028     extern "C"
8029#  endif
8030   int F77_DUMMY_MAIN() { return 1; }
8031
8032#endif
8033int
8034main ()
8035{
8036
8037  ;
8038  return 0;
8039}
8040_ACEOF
8041rm -f conftest.$ac_objext
8042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043  (eval $ac_compile) 2>conftest.er1
8044  ac_status=$?
8045  grep -v '^ *+' conftest.er1 >conftest.err
8046  rm -f conftest.er1
8047  cat conftest.err >&5
8048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); } &&
8050         { ac_try='test -z "$ac_cxx_werror_flag"
8051                         || test ! -s conftest.err'
8052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053  (eval $ac_try) 2>&5
8054  ac_status=$?
8055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056  (exit $ac_status); }; } &&
8057         { ac_try='test -s conftest.$ac_objext'
8058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059  (eval $ac_try) 2>&5
8060  ac_status=$?
8061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062  (exit $ac_status); }; }; then
8063  ac_cv_prog_cxx_g=yes
8064else
8065  echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068ac_cv_prog_cxx_g=no
8069fi
8070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8071fi
8072echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8073echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8074if test "$ac_test_CXXFLAGS" = set; then
8075  CXXFLAGS=$ac_save_CXXFLAGS
8076elif test $ac_cv_prog_cxx_g = yes; then
8077  if test "$GXX" = yes; then
8078    CXXFLAGS="-g -O2"
8079  else
8080    CXXFLAGS="-g"
8081  fi
8082else
8083  if test "$GXX" = yes; then
8084    CXXFLAGS="-O2"
8085  else
8086    CXXFLAGS=
8087  fi
8088fi
8089for ac_declaration in \
8090   '' \
8091   'extern "C" void std::exit (int) throw (); using std::exit;' \
8092   'extern "C" void std::exit (int); using std::exit;' \
8093   'extern "C" void exit (int) throw ();' \
8094   'extern "C" void exit (int);' \
8095   'void exit (int);'
8096do
8097  cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h.  */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h.  */
8103$ac_declaration
8104#include <stdlib.h>
8105#ifdef F77_DUMMY_MAIN
8106
8107#  ifdef __cplusplus
8108     extern "C"
8109#  endif
8110   int F77_DUMMY_MAIN() { return 1; }
8111
8112#endif
8113int
8114main ()
8115{
8116exit (42);
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext
8122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8123  (eval $ac_compile) 2>conftest.er1
8124  ac_status=$?
8125  grep -v '^ *+' conftest.er1 >conftest.err
8126  rm -f conftest.er1
8127  cat conftest.err >&5
8128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129  (exit $ac_status); } &&
8130         { ac_try='test -z "$ac_cxx_werror_flag"
8131                         || test ! -s conftest.err'
8132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133  (eval $ac_try) 2>&5
8134  ac_status=$?
8135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136  (exit $ac_status); }; } &&
8137         { ac_try='test -s conftest.$ac_objext'
8138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139  (eval $ac_try) 2>&5
8140  ac_status=$?
8141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142  (exit $ac_status); }; }; then
8143  :
8144else
8145  echo "$as_me: failed program was:" >&5
8146sed 's/^/| /' conftest.$ac_ext >&5
8147
8148continue
8149fi
8150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8151  cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h.  */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h.  */
8157$ac_declaration
8158#ifdef F77_DUMMY_MAIN
8159
8160#  ifdef __cplusplus
8161     extern "C"
8162#  endif
8163   int F77_DUMMY_MAIN() { return 1; }
8164
8165#endif
8166int
8167main ()
8168{
8169exit (42);
8170  ;
8171  return 0;
8172}
8173_ACEOF
8174rm -f conftest.$ac_objext
8175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176  (eval $ac_compile) 2>conftest.er1
8177  ac_status=$?
8178  grep -v '^ *+' conftest.er1 >conftest.err
8179  rm -f conftest.er1
8180  cat conftest.err >&5
8181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182  (exit $ac_status); } &&
8183         { ac_try='test -z "$ac_cxx_werror_flag"
8184                         || test ! -s conftest.err'
8185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186  (eval $ac_try) 2>&5
8187  ac_status=$?
8188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189  (exit $ac_status); }; } &&
8190         { ac_try='test -s conftest.$ac_objext'
8191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192  (eval $ac_try) 2>&5
8193  ac_status=$?
8194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195  (exit $ac_status); }; }; then
8196  break
8197else
8198  echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201fi
8202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203done
8204rm -f conftest*
8205if test -n "$ac_declaration"; then
8206  echo '#ifdef __cplusplus' >>confdefs.h
8207  echo $ac_declaration      >>confdefs.h
8208  echo '#endif'             >>confdefs.h
8209fi
8210
8211ac_ext=cc
8212ac_cpp='$CXXCPP $CPPFLAGS'
8213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8216
8217depcc="$CXX"  am_compiler_list=
8218
8219echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8220echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8221if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8222  echo $ECHO_N "(cached) $ECHO_C" >&6
8223else
8224  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8225  # We make a subdir and do the tests there.  Otherwise we can end up
8226  # making bogus files that we don't know about and never remove.  For
8227  # instance it was reported that on HP-UX the gcc test will end up
8228  # making a dummy file named `D' -- because `-MD' means `put the output
8229  # in D'.
8230  mkdir conftest.dir
8231  # Copy depcomp to subdir because otherwise we won't find it if we're
8232  # using a relative directory.
8233  cp "$am_depcomp" conftest.dir
8234  cd conftest.dir
8235  # We will build objects and dependencies in a subdirectory because
8236  # it helps to detect inapplicable dependency modes.  For instance
8237  # both Tru64's cc and ICC support -MD to output dependencies as a
8238  # side effect of compilation, but ICC will put the dependencies in
8239  # the current directory while Tru64 will put them in the object
8240  # directory.
8241  mkdir sub
8242
8243  am_cv_CXX_dependencies_compiler_type=none
8244  if test "$am_compiler_list" = ""; then
8245     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8246  fi
8247  for depmode in $am_compiler_list; do
8248    # Setup a source with many dependencies, because some compilers
8249    # like to wrap large dependency lists on column 80 (with \), and
8250    # we should not choose a depcomp mode which is confused by this.
8251    #
8252    # We need to recreate these files for each test, as the compiler may
8253    # overwrite some of them when testing with obscure command lines.
8254    # This happens at least with the AIX C compiler.
8255    : > sub/conftest.c
8256    for i in 1 2 3 4 5 6; do
8257      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8258      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8259      # Solaris 8's {/usr,}/bin/sh.
8260      touch sub/conftst$i.h
8261    done
8262    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8263
8264    case $depmode in
8265    nosideeffect)
8266      # after this tag, mechanisms are not by side-effect, so they'll
8267      # only be used when explicitly requested
8268      if test "x$enable_dependency_tracking" = xyes; then
8269        continue
8270      else
8271        break
8272      fi
8273      ;;
8274    none) break ;;
8275    esac
8276    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8277    # mode.  It turns out that the SunPro C++ compiler does not properly
8278    # handle `-M -o', and we need to detect this.
8279    if depmode=$depmode \
8280       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8281       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8282       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8283         >/dev/null 2>conftest.err &&
8284       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8285       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8286       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8287      # icc doesn't choke on unknown options, it will just issue warnings
8288      # or remarks (even with -Werror).  So we grep stderr for any message
8289      # that says an option was ignored or not supported.
8290      # When given -MP, icc 7.0 and 7.1 complain thusly:
8291      #   icc: Command line warning: ignoring option '-M'; no argument required
8292      # The diagnosis changed in icc 8.0:
8293      #   icc: Command line remark: option '-MP' not supported
8294      if (grep 'ignoring option' conftest.err ||
8295          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8296        am_cv_CXX_dependencies_compiler_type=$depmode
8297        break
8298      fi
8299    fi
8300  done
8301
8302  cd ..
8303  rm -rf conftest.dir
8304else
8305  am_cv_CXX_dependencies_compiler_type=none
8306fi
8307
8308fi
8309echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8310echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8311CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8312
8313
8314
8315if
8316  test "x$enable_dependency_tracking" != xno \
8317  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8318  am__fastdepCXX_TRUE=
8319  am__fastdepCXX_FALSE='#'
8320else
8321  am__fastdepCXX_TRUE='#'
8322  am__fastdepCXX_FALSE=
8323fi
8324
8325
8326
8327
8328if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8329    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8330    (test "X$CXX" != "Xg++"))) ; then
8331  ac_ext=cc
8332ac_cpp='$CXXCPP $CPPFLAGS'
8333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8336echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8337echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8338if test -z "$CXXCPP"; then
8339  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8340  echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342      # Double quotes because CXXCPP needs to be expanded
8343    for CXXCPP in "$CXX -E" "/lib/cpp"
8344    do
8345      ac_preproc_ok=false
8346for ac_cxx_preproc_warn_flag in '' yes
8347do
8348  # Use a header file that comes with gcc, so configuring glibc
8349  # with a fresh cross-compiler works.
8350  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8351  # <limits.h> exists even on freestanding compilers.
8352  # On the NeXT, cc -E runs the code through the compiler's parser,
8353  # not just through cpp. "Syntax error" is here to catch this case.
8354  cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h.  */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h.  */
8360#ifdef __STDC__
8361# include <limits.h>
8362#else
8363# include <assert.h>
8364#endif
8365                     Syntax error
8366_ACEOF
8367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8369  ac_status=$?
8370  grep -v '^ *+' conftest.er1 >conftest.err
8371  rm -f conftest.er1
8372  cat conftest.err >&5
8373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374  (exit $ac_status); } >/dev/null; then
8375  if test -s conftest.err; then
8376    ac_cpp_err=$ac_cxx_preproc_warn_flag
8377    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8378  else
8379    ac_cpp_err=
8380  fi
8381else
8382  ac_cpp_err=yes
8383fi
8384if test -z "$ac_cpp_err"; then
8385  :
8386else
8387  echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390  # Broken: fails on valid input.
8391continue
8392fi
8393rm -f conftest.err conftest.$ac_ext
8394
8395  # OK, works on sane cases.  Now check whether non-existent headers
8396  # can be detected and how.
8397  cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h.  */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h.  */
8403#include <ac_nonexistent.h>
8404_ACEOF
8405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407  ac_status=$?
8408  grep -v '^ *+' conftest.er1 >conftest.err
8409  rm -f conftest.er1
8410  cat conftest.err >&5
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); } >/dev/null; then
8413  if test -s conftest.err; then
8414    ac_cpp_err=$ac_cxx_preproc_warn_flag
8415    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8416  else
8417    ac_cpp_err=
8418  fi
8419else
8420  ac_cpp_err=yes
8421fi
8422if test -z "$ac_cpp_err"; then
8423  # Broken: success on invalid input.
8424continue
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429  # Passes both tests.
8430ac_preproc_ok=:
8431break
8432fi
8433rm -f conftest.err conftest.$ac_ext
8434
8435done
8436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8437rm -f conftest.err conftest.$ac_ext
8438if $ac_preproc_ok; then
8439  break
8440fi
8441
8442    done
8443    ac_cv_prog_CXXCPP=$CXXCPP
8444
8445fi
8446  CXXCPP=$ac_cv_prog_CXXCPP
8447else
8448  ac_cv_prog_CXXCPP=$CXXCPP
8449fi
8450echo "$as_me:$LINENO: result: $CXXCPP" >&5
8451echo "${ECHO_T}$CXXCPP" >&6
8452ac_preproc_ok=false
8453for ac_cxx_preproc_warn_flag in '' yes
8454do
8455  # Use a header file that comes with gcc, so configuring glibc
8456  # with a fresh cross-compiler works.
8457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8458  # <limits.h> exists even on freestanding compilers.
8459  # On the NeXT, cc -E runs the code through the compiler's parser,
8460  # not just through cpp. "Syntax error" is here to catch this case.
8461  cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h.  */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h.  */
8467#ifdef __STDC__
8468# include <limits.h>
8469#else
8470# include <assert.h>
8471#endif
8472                     Syntax error
8473_ACEOF
8474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476  ac_status=$?
8477  grep -v '^ *+' conftest.er1 >conftest.err
8478  rm -f conftest.er1
8479  cat conftest.err >&5
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); } >/dev/null; then
8482  if test -s conftest.err; then
8483    ac_cpp_err=$ac_cxx_preproc_warn_flag
8484    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8485  else
8486    ac_cpp_err=
8487  fi
8488else
8489  ac_cpp_err=yes
8490fi
8491if test -z "$ac_cpp_err"; then
8492  :
8493else
8494  echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
8497  # Broken: fails on valid input.
8498continue
8499fi
8500rm -f conftest.err conftest.$ac_ext
8501
8502  # OK, works on sane cases.  Now check whether non-existent headers
8503  # can be detected and how.
8504  cat >conftest.$ac_ext <<_ACEOF
8505/* confdefs.h.  */
8506_ACEOF
8507cat confdefs.h >>conftest.$ac_ext
8508cat >>conftest.$ac_ext <<_ACEOF
8509/* end confdefs.h.  */
8510#include <ac_nonexistent.h>
8511_ACEOF
8512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8514  ac_status=$?
8515  grep -v '^ *+' conftest.er1 >conftest.err
8516  rm -f conftest.er1
8517  cat conftest.err >&5
8518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519  (exit $ac_status); } >/dev/null; then
8520  if test -s conftest.err; then
8521    ac_cpp_err=$ac_cxx_preproc_warn_flag
8522    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8523  else
8524    ac_cpp_err=
8525  fi
8526else
8527  ac_cpp_err=yes
8528fi
8529if test -z "$ac_cpp_err"; then
8530  # Broken: success on invalid input.
8531continue
8532else
8533  echo "$as_me: failed program was:" >&5
8534sed 's/^/| /' conftest.$ac_ext >&5
8535
8536  # Passes both tests.
8537ac_preproc_ok=:
8538break
8539fi
8540rm -f conftest.err conftest.$ac_ext
8541
8542done
8543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8544rm -f conftest.err conftest.$ac_ext
8545if $ac_preproc_ok; then
8546  :
8547else
8548  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8549See \`config.log' for more details." >&5
8550echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8551See \`config.log' for more details." >&2;}
8552   { (exit 1); exit 1; }; }
8553fi
8554
8555ac_ext=cc
8556ac_cpp='$CXXCPP $CPPFLAGS'
8557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8560
8561fi
8562
8563
8564
8565# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8566
8567# find the maximum length of command line arguments
8568echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8569echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8570if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8571  echo $ECHO_N "(cached) $ECHO_C" >&6
8572else
8573    i=0
8574  teststring="ABCD"
8575
8576  case $build_os in
8577  msdosdjgpp*)
8578    # On DJGPP, this test can blow up pretty badly due to problems in libc
8579    # (any single argument exceeding 2000 bytes causes a buffer overrun
8580    # during glob expansion).  Even if it were fixed, the result of this
8581    # check would be larger than it should be.
8582    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8583    ;;
8584
8585  gnu*)
8586    # Under GNU Hurd, this test is not required because there is
8587    # no limit to the length of command line arguments.
8588    # Libtool will interpret -1 as no limit whatsoever
8589    lt_cv_sys_max_cmd_len=-1;
8590    ;;
8591
8592  cygwin* | mingw*)
8593    # On Win9x/ME, this test blows up -- it succeeds, but takes
8594    # about 5 minutes as the teststring grows exponentially.
8595    # Worse, since 9x/ME are not pre-emptively multitasking,
8596    # you end up with a "frozen" computer, even though with patience
8597    # the test eventually succeeds (with a max line length of 256k).
8598    # Instead, let's just punt: use the minimum linelength reported by
8599    # all of the supported platforms: 8192 (on NT/2K/XP).
8600    lt_cv_sys_max_cmd_len=8192;
8601    ;;
8602
8603  amigaos*)
8604    # On AmigaOS with pdksh, this test takes hours, literally.
8605    # So we just punt and use a minimum line length of 8192.
8606    lt_cv_sys_max_cmd_len=8192;
8607    ;;
8608
8609  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8610    # This has been around since 386BSD, at least.  Likely further.
8611    if test -x /sbin/sysctl; then
8612      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8613    elif test -x /usr/sbin/sysctl; then
8614      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8615    else
8616      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8617    fi
8618    # And add a safety zone
8619    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8620    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8621    ;;
8622
8623  interix*)
8624    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8625    lt_cv_sys_max_cmd_len=196608
8626    ;;
8627
8628  osf*)
8629    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8630    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8631    # nice to cause kernel panics so lets avoid the loop below.
8632    # First set a reasonable default.
8633    lt_cv_sys_max_cmd_len=16384
8634    #
8635    if test -x /sbin/sysconfig; then
8636      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8637        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8638      esac
8639    fi
8640    ;;
8641  sco3.2v5*)
8642    lt_cv_sys_max_cmd_len=102400
8643    ;;
8644  sysv5* | sco5v6* | sysv4.2uw2*)
8645    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8646    if test -n "$kargmax"; then
8647      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8648    else
8649      lt_cv_sys_max_cmd_len=32768
8650    fi
8651    ;;
8652  *)
8653    # If test is not a shell built-in, we'll probably end up computing a
8654    # maximum length that is only half of the actual maximum length, but
8655    # we can't tell.
8656    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8657    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8658               = "XX$teststring") >/dev/null 2>&1 &&
8659            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8660            lt_cv_sys_max_cmd_len=$new_result &&
8661            test $i != 17 # 1/2 MB should be enough
8662    do
8663      i=`expr $i + 1`
8664      teststring=$teststring$teststring
8665    done
8666    teststring=
8667    # Add a significant safety factor because C++ compilers can tack on massive
8668    # amounts of additional arguments before passing them to the linker.
8669    # It appears as though 1/2 is a usable value.
8670    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8671    ;;
8672  esac
8673
8674fi
8675
8676if test -n $lt_cv_sys_max_cmd_len ; then
8677  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8678echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8679else
8680  echo "$as_me:$LINENO: result: none" >&5
8681echo "${ECHO_T}none" >&6
8682fi
8683
8684
8685
8686
8687# Check for command to grab the raw symbol name followed by C symbol from nm.
8688echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8689echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8690if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8691  echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693
8694# These are sane defaults that work on at least a few old systems.
8695# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8696
8697# Character class describing NM global symbol codes.
8698symcode='[BCDEGRST]'
8699
8700# Regexp to match symbols that can be accessed directly from C.
8701sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8702
8703# Transform an extracted symbol line into a proper C declaration
8704lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8705
8706# Transform an extracted symbol line into symbol name and symbol address
8707lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8708
8709# Define system-specific variables.
8710case $host_os in
8711aix*)
8712  symcode='[BCDT]'
8713  ;;
8714cygwin* | mingw* | pw32*)
8715  symcode='[ABCDGISTW]'
8716  ;;
8717hpux*) # Its linker distinguishes data from code symbols
8718  if test "$host_cpu" = ia64; then
8719    symcode='[ABCDEGRST]'
8720  fi
8721  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8722  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'"
8723  ;;
8724linux*)
8725  if test "$host_cpu" = ia64; then
8726    symcode='[ABCDGIRSTW]'
8727    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8728    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'"
8729  fi
8730  ;;
8731irix* | nonstopux*)
8732  symcode='[BCDEGRST]'
8733  ;;
8734osf*)
8735  symcode='[BCDEGQRST]'
8736  ;;
8737solaris*)
8738  symcode='[BDRT]'
8739  ;;
8740sco3.2v5*)
8741  symcode='[DT]'
8742  ;;
8743sysv4.2uw2*)
8744  symcode='[DT]'
8745  ;;
8746sysv5* | sco5v6* | unixware* | OpenUNIX*)
8747  symcode='[ABDT]'
8748  ;;
8749sysv4)
8750  symcode='[DFNSTU]'
8751  ;;
8752esac
8753
8754# Handle CRLF in mingw tool chain
8755opt_cr=
8756case $build_os in
8757mingw*)
8758  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8759  ;;
8760esac
8761
8762# If we're using GNU nm, then use its standard symbol codes.
8763case `$NM -V 2>&1` in
8764*GNU* | *'with BFD'*)
8765  symcode='[ABCDGIRSTW]' ;;
8766esac
8767
8768# Try without a prefix undercore, then with it.
8769for ac_symprfx in "" "_"; do
8770
8771  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8772  symxfrm="\\1 $ac_symprfx\\2 \\2"
8773
8774  # Write the raw and C identifiers.
8775  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8776
8777  # Check to see that the pipe works correctly.
8778  pipe_works=no
8779
8780  rm -f conftest*
8781  cat > conftest.$ac_ext <<EOF
8782#ifdef __cplusplus
8783extern "C" {
8784#endif
8785char nm_test_var;
8786void nm_test_func(){}
8787#ifdef __cplusplus
8788}
8789#endif
8790int main(){nm_test_var='a';nm_test_func();return(0);}
8791EOF
8792
8793  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794  (eval $ac_compile) 2>&5
8795  ac_status=$?
8796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797  (exit $ac_status); }; then
8798    # Now try to grab the symbols.
8799    nlist=conftest.nm
8800    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8801  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8802  ac_status=$?
8803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804  (exit $ac_status); } && test -s "$nlist"; then
8805      # Try sorting and uniquifying the output.
8806      if sort "$nlist" | uniq > "$nlist"T; then
8807        mv -f "$nlist"T "$nlist"
8808      else
8809        rm -f "$nlist"T
8810      fi
8811
8812      # Make sure that we snagged all the symbols we need.
8813      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8814        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8815          cat <<EOF > conftest.$ac_ext
8816#ifdef __cplusplus
8817extern "C" {
8818#endif
8819
8820EOF
8821          # Now generate the symbol file.
8822          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8823
8824          cat <<EOF >> conftest.$ac_ext
8825#if defined (__STDC__) && __STDC__
8826# define lt_ptr_t void *
8827#else
8828# define lt_ptr_t char *
8829# define const
8830#endif
8831
8832/* The mapping between symbol names and symbols. */
8833const struct {
8834  const char *name;
8835  lt_ptr_t address;
8836}
8837lt_preloaded_symbols[] =
8838{
8839EOF
8840          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8841          cat <<\EOF >> conftest.$ac_ext
8842  {0, (lt_ptr_t) 0}
8843};
8844
8845#ifdef __cplusplus
8846}
8847#endif
8848EOF
8849          # Now try linking the two files.
8850          mv conftest.$ac_objext conftstm.$ac_objext
8851          lt_save_LIBS="$LIBS"
8852          lt_save_CFLAGS="$CFLAGS"
8853          LIBS="conftstm.$ac_objext"
8854          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8855          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856  (eval $ac_link) 2>&5
8857  ac_status=$?
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8860            pipe_works=yes
8861          fi
8862          LIBS="$lt_save_LIBS"
8863          CFLAGS="$lt_save_CFLAGS"
8864        else
8865          echo "cannot find nm_test_func in $nlist" >&5
8866        fi
8867      else
8868        echo "cannot find nm_test_var in $nlist" >&5
8869      fi
8870    else
8871      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8872    fi
8873  else
8874    echo "$progname: failed program was:" >&5
8875    cat conftest.$ac_ext >&5
8876  fi
8877  rm -f conftest* conftst*
8878
8879  # Do not use the global_symbol_pipe unless it works.
8880  if test "$pipe_works" = yes; then
8881    break
8882  else
8883    lt_cv_sys_global_symbol_pipe=
8884  fi
8885done
8886
8887fi
8888
8889if test -z "$lt_cv_sys_global_symbol_pipe"; then
8890  lt_cv_sys_global_symbol_to_cdecl=
8891fi
8892if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8893  echo "$as_me:$LINENO: result: failed" >&5
8894echo "${ECHO_T}failed" >&6
8895else
8896  echo "$as_me:$LINENO: result: ok" >&5
8897echo "${ECHO_T}ok" >&6
8898fi
8899
8900echo "$as_me:$LINENO: checking for objdir" >&5
8901echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8902if test "${lt_cv_objdir+set}" = set; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905  rm -f .libs 2>/dev/null
8906mkdir .libs 2>/dev/null
8907if test -d .libs; then
8908  lt_cv_objdir=.libs
8909else
8910  # MS-DOS does not allow filenames that begin with a dot.
8911  lt_cv_objdir=_libs
8912fi
8913rmdir .libs 2>/dev/null
8914fi
8915echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8916echo "${ECHO_T}$lt_cv_objdir" >&6
8917objdir=$lt_cv_objdir
8918
8919
8920
8921
8922
8923case $host_os in
8924aix3*)
8925  # AIX sometimes has problems with the GCC collect2 program.  For some
8926  # reason, if we set the COLLECT_NAMES environment variable, the problems
8927  # vanish in a puff of smoke.
8928  if test "X${COLLECT_NAMES+set}" != Xset; then
8929    COLLECT_NAMES=
8930    export COLLECT_NAMES
8931  fi
8932  ;;
8933esac
8934
8935# Sed substitution that helps us do robust quoting.  It backslashifies
8936# metacharacters that are still active within double-quoted strings.
8937Xsed='sed -e 1s/^X//'
8938sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8939
8940# Same as above, but do not quote variable references.
8941double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8942
8943# Sed substitution to delay expansion of an escaped shell variable in a
8944# double_quote_subst'ed string.
8945delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8946
8947# Sed substitution to avoid accidental globbing in evaled expressions
8948no_glob_subst='s/\*/\\\*/g'
8949
8950# Constants:
8951rm="rm -f"
8952
8953# Global variables:
8954default_ofile=libtool
8955can_build_shared=yes
8956
8957# All known linkers require a `.a' archive for static linking (except MSVC,
8958# which needs '.lib').
8959libext=a
8960ltmain="$ac_aux_dir/ltmain.sh"
8961ofile="$default_ofile"
8962with_gnu_ld="$lt_cv_prog_gnu_ld"
8963
8964if test -n "$ac_tool_prefix"; then
8965  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8966set dummy ${ac_tool_prefix}ar; ac_word=$2
8967echo "$as_me:$LINENO: checking for $ac_word" >&5
8968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8969if test "${ac_cv_prog_AR+set}" = set; then
8970  echo $ECHO_N "(cached) $ECHO_C" >&6
8971else
8972  if test -n "$AR"; then
8973  ac_cv_prog_AR="$AR" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978  IFS=$as_save_IFS
8979  test -z "$as_dir" && as_dir=.
8980  for ac_exec_ext in '' $ac_executable_extensions; do
8981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982    ac_cv_prog_AR="${ac_tool_prefix}ar"
8983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984    break 2
8985  fi
8986done
8987done
8988
8989fi
8990fi
8991AR=$ac_cv_prog_AR
8992if test -n "$AR"; then
8993  echo "$as_me:$LINENO: result: $AR" >&5
8994echo "${ECHO_T}$AR" >&6
8995else
8996  echo "$as_me:$LINENO: result: no" >&5
8997echo "${ECHO_T}no" >&6
8998fi
8999
9000fi
9001if test -z "$ac_cv_prog_AR"; then
9002  ac_ct_AR=$AR
9003  # Extract the first word of "ar", so it can be a program name with args.
9004set dummy ar; ac_word=$2
9005echo "$as_me:$LINENO: checking for $ac_word" >&5
9006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9007if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9008  echo $ECHO_N "(cached) $ECHO_C" >&6
9009else
9010  if test -n "$ac_ct_AR"; then
9011  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9012else
9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014for as_dir in $PATH
9015do
9016  IFS=$as_save_IFS
9017  test -z "$as_dir" && as_dir=.
9018  for ac_exec_ext in '' $ac_executable_extensions; do
9019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9020    ac_cv_prog_ac_ct_AR="ar"
9021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9022    break 2
9023  fi
9024done
9025done
9026
9027  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9028fi
9029fi
9030ac_ct_AR=$ac_cv_prog_ac_ct_AR
9031if test -n "$ac_ct_AR"; then
9032  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9033echo "${ECHO_T}$ac_ct_AR" >&6
9034else
9035  echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
9037fi
9038
9039  AR=$ac_ct_AR
9040else
9041  AR="$ac_cv_prog_AR"
9042fi
9043
9044if test -n "$ac_tool_prefix"; then
9045  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9047echo "$as_me:$LINENO: checking for $ac_word" >&5
9048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9049if test "${ac_cv_prog_RANLIB+set}" = set; then
9050  echo $ECHO_N "(cached) $ECHO_C" >&6
9051else
9052  if test -n "$RANLIB"; then
9053  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9054else
9055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056for as_dir in $PATH
9057do
9058  IFS=$as_save_IFS
9059  test -z "$as_dir" && as_dir=.
9060  for ac_exec_ext in '' $ac_executable_extensions; do
9061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064    break 2
9065  fi
9066done
9067done
9068
9069fi
9070fi
9071RANLIB=$ac_cv_prog_RANLIB
9072if test -n "$RANLIB"; then
9073  echo "$as_me:$LINENO: result: $RANLIB" >&5
9074echo "${ECHO_T}$RANLIB" >&6
9075else
9076  echo "$as_me:$LINENO: result: no" >&5
9077echo "${ECHO_T}no" >&6
9078fi
9079
9080fi
9081if test -z "$ac_cv_prog_RANLIB"; then
9082  ac_ct_RANLIB=$RANLIB
9083  # Extract the first word of "ranlib", so it can be a program name with args.
9084set dummy ranlib; ac_word=$2
9085echo "$as_me:$LINENO: checking for $ac_word" >&5
9086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9087if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9088  echo $ECHO_N "(cached) $ECHO_C" >&6
9089else
9090  if test -n "$ac_ct_RANLIB"; then
9091  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096  IFS=$as_save_IFS
9097  test -z "$as_dir" && as_dir=.
9098  for ac_exec_ext in '' $ac_executable_extensions; do
9099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100    ac_cv_prog_ac_ct_RANLIB="ranlib"
9101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9102    break 2
9103  fi
9104done
9105done
9106
9107  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9108fi
9109fi
9110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9111if test -n "$ac_ct_RANLIB"; then
9112  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9113echo "${ECHO_T}$ac_ct_RANLIB" >&6
9114else
9115  echo "$as_me:$LINENO: result: no" >&5
9116echo "${ECHO_T}no" >&6
9117fi
9118
9119  RANLIB=$ac_ct_RANLIB
9120else
9121  RANLIB="$ac_cv_prog_RANLIB"
9122fi
9123
9124if test -n "$ac_tool_prefix"; then
9125  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9126set dummy ${ac_tool_prefix}strip; ac_word=$2
9127echo "$as_me:$LINENO: checking for $ac_word" >&5
9128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9129if test "${ac_cv_prog_STRIP+set}" = set; then
9130  echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132  if test -n "$STRIP"; then
9133  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9134else
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138  IFS=$as_save_IFS
9139  test -z "$as_dir" && as_dir=.
9140  for ac_exec_ext in '' $ac_executable_extensions; do
9141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9144    break 2
9145  fi
9146done
9147done
9148
9149fi
9150fi
9151STRIP=$ac_cv_prog_STRIP
9152if test -n "$STRIP"; then
9153  echo "$as_me:$LINENO: result: $STRIP" >&5
9154echo "${ECHO_T}$STRIP" >&6
9155else
9156  echo "$as_me:$LINENO: result: no" >&5
9157echo "${ECHO_T}no" >&6
9158fi
9159
9160fi
9161if test -z "$ac_cv_prog_STRIP"; then
9162  ac_ct_STRIP=$STRIP
9163  # Extract the first word of "strip", so it can be a program name with args.
9164set dummy strip; ac_word=$2
9165echo "$as_me:$LINENO: checking for $ac_word" >&5
9166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9167if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9168  echo $ECHO_N "(cached) $ECHO_C" >&6
9169else
9170  if test -n "$ac_ct_STRIP"; then
9171  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9172else
9173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176  IFS=$as_save_IFS
9177  test -z "$as_dir" && as_dir=.
9178  for ac_exec_ext in '' $ac_executable_extensions; do
9179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180    ac_cv_prog_ac_ct_STRIP="strip"
9181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182    break 2
9183  fi
9184done
9185done
9186
9187  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9188fi
9189fi
9190ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9191if test -n "$ac_ct_STRIP"; then
9192  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9193echo "${ECHO_T}$ac_ct_STRIP" >&6
9194else
9195  echo "$as_me:$LINENO: result: no" >&5
9196echo "${ECHO_T}no" >&6
9197fi
9198
9199  STRIP=$ac_ct_STRIP
9200else
9201  STRIP="$ac_cv_prog_STRIP"
9202fi
9203
9204
9205old_CC="$CC"
9206old_CFLAGS="$CFLAGS"
9207
9208# Set sane defaults for various variables
9209test -z "$AR" && AR=ar
9210test -z "$AR_FLAGS" && AR_FLAGS=cru
9211test -z "$AS" && AS=as
9212test -z "$CC" && CC=cc
9213test -z "$LTCC" && LTCC=$CC
9214test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9215test -z "$DLLTOOL" && DLLTOOL=dlltool
9216test -z "$LD" && LD=ld
9217test -z "$LN_S" && LN_S="ln -s"
9218test -z "$MAGIC_CMD" && MAGIC_CMD=file
9219test -z "$NM" && NM=nm
9220test -z "$SED" && SED=sed
9221test -z "$OBJDUMP" && OBJDUMP=objdump
9222test -z "$RANLIB" && RANLIB=:
9223test -z "$STRIP" && STRIP=:
9224test -z "$ac_objext" && ac_objext=o
9225
9226# Determine commands to create old-style static archives.
9227old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9228old_postinstall_cmds='chmod 644 $oldlib'
9229old_postuninstall_cmds=
9230
9231if test -n "$RANLIB"; then
9232  case $host_os in
9233  openbsd*)
9234    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9235    ;;
9236  *)
9237    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9238    ;;
9239  esac
9240  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9241fi
9242
9243for cc_temp in $compiler""; do
9244  case $cc_temp in
9245    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9246    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9247    \-*) ;;
9248    *) break;;
9249  esac
9250done
9251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9252
9253
9254# Only perform the check for file, if the check method requires it
9255case $deplibs_check_method in
9256file_magic*)
9257  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9258    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9259echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9260if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9261  echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263  case $MAGIC_CMD in
9264[\\/*] |  ?:[\\/]*)
9265  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9266  ;;
9267*)
9268  lt_save_MAGIC_CMD="$MAGIC_CMD"
9269  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9270  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9271  for ac_dir in $ac_dummy; do
9272    IFS="$lt_save_ifs"
9273    test -z "$ac_dir" && ac_dir=.
9274    if test -f $ac_dir/${ac_tool_prefix}file; then
9275      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9276      if test -n "$file_magic_test_file"; then
9277        case $deplibs_check_method in
9278        "file_magic "*)
9279          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9280          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9281          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9282            $EGREP "$file_magic_regex" > /dev/null; then
9283            :
9284          else
9285            cat <<EOF 1>&2
9286
9287*** Warning: the command libtool uses to detect shared libraries,
9288*** $file_magic_cmd, produces output that libtool cannot recognize.
9289*** The result is that libtool may fail to recognize shared libraries
9290*** as such.  This will affect the creation of libtool libraries that
9291*** depend on shared libraries, but programs linked with such libtool
9292*** libraries will work regardless of this problem.  Nevertheless, you
9293*** may want to report the problem to your system manager and/or to
9294*** bug-libtool@gnu.org
9295
9296EOF
9297          fi ;;
9298        esac
9299      fi
9300      break
9301    fi
9302  done
9303  IFS="$lt_save_ifs"
9304  MAGIC_CMD="$lt_save_MAGIC_CMD"
9305  ;;
9306esac
9307fi
9308
9309MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9310if test -n "$MAGIC_CMD"; then
9311  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9312echo "${ECHO_T}$MAGIC_CMD" >&6
9313else
9314  echo "$as_me:$LINENO: result: no" >&5
9315echo "${ECHO_T}no" >&6
9316fi
9317
9318if test -z "$lt_cv_path_MAGIC_CMD"; then
9319  if test -n "$ac_tool_prefix"; then
9320    echo "$as_me:$LINENO: checking for file" >&5
9321echo $ECHO_N "checking for file... $ECHO_C" >&6
9322if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9323  echo $ECHO_N "(cached) $ECHO_C" >&6
9324else
9325  case $MAGIC_CMD in
9326[\\/*] |  ?:[\\/]*)
9327  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9328  ;;
9329*)
9330  lt_save_MAGIC_CMD="$MAGIC_CMD"
9331  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9332  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9333  for ac_dir in $ac_dummy; do
9334    IFS="$lt_save_ifs"
9335    test -z "$ac_dir" && ac_dir=.
9336    if test -f $ac_dir/file; then
9337      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9338      if test -n "$file_magic_test_file"; then
9339        case $deplibs_check_method in
9340        "file_magic "*)
9341          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9342          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9343          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9344            $EGREP "$file_magic_regex" > /dev/null; then
9345            :
9346          else
9347            cat <<EOF 1>&2
9348
9349*** Warning: the command libtool uses to detect shared libraries,
9350*** $file_magic_cmd, produces output that libtool cannot recognize.
9351*** The result is that libtool may fail to recognize shared libraries
9352*** as such.  This will affect the creation of libtool libraries that
9353*** depend on shared libraries, but programs linked with such libtool
9354*** libraries will work regardless of this problem.  Nevertheless, you
9355*** may want to report the problem to your system manager and/or to
9356*** bug-libtool@gnu.org
9357
9358EOF
9359          fi ;;
9360        esac
9361      fi
9362      break
9363    fi
9364  done
9365  IFS="$lt_save_ifs"
9366  MAGIC_CMD="$lt_save_MAGIC_CMD"
9367  ;;
9368esac
9369fi
9370
9371MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9372if test -n "$MAGIC_CMD"; then
9373  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9374echo "${ECHO_T}$MAGIC_CMD" >&6
9375else
9376  echo "$as_me:$LINENO: result: no" >&5
9377echo "${ECHO_T}no" >&6
9378fi
9379
9380  else
9381    MAGIC_CMD=:
9382  fi
9383fi
9384
9385  fi
9386  ;;
9387esac
9388
9389enable_dlopen=no
9390enable_win32_dll=no
9391
9392# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9393if test "${enable_libtool_lock+set}" = set; then
9394  enableval="$enable_libtool_lock"
9395
9396fi;
9397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9398
9399
9400# Check whether --with-pic or --without-pic was given.
9401if test "${with_pic+set}" = set; then
9402  withval="$with_pic"
9403  pic_mode="$withval"
9404else
9405  pic_mode=default
9406fi;
9407test -z "$pic_mode" && pic_mode=default
9408
9409# Use C for the default configuration in the libtool script
9410tagname=
9411lt_save_CC="$CC"
9412ac_ext=c
9413ac_cpp='$CPP $CPPFLAGS'
9414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416ac_compiler_gnu=$ac_cv_c_compiler_gnu
9417
9418
9419# Source file extension for C test sources.
9420ac_ext=c
9421
9422# Object file extension for compiled C test sources.
9423objext=o
9424objext=$objext
9425
9426# Code to be used in simple compile tests
9427lt_simple_compile_test_code="int some_variable = 0;\n"
9428
9429# Code to be used in simple link tests
9430lt_simple_link_test_code='int main(){return(0);}\n'
9431
9432
9433# If no C compiler was specified, use CC.
9434LTCC=${LTCC-"$CC"}
9435
9436# If no C compiler flags were specified, use CFLAGS.
9437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9438
9439# Allow CC to be a program name with arguments.
9440compiler=$CC
9441
9442
9443# save warnings/boilerplate of simple test code
9444ac_outfile=conftest.$ac_objext
9445printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9446eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9447_lt_compiler_boilerplate=`cat conftest.err`
9448$rm conftest*
9449
9450ac_outfile=conftest.$ac_objext
9451printf "$lt_simple_link_test_code" >conftest.$ac_ext
9452eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9453_lt_linker_boilerplate=`cat conftest.err`
9454$rm conftest*
9455
9456
9457## CAVEAT EMPTOR:
9458## There is no encapsulation within the following macros, do not change
9459## the running order or otherwise move them around unless you know exactly
9460## what you are doing...
9461
9462lt_prog_compiler_no_builtin_flag=
9463
9464if test "$GCC" = yes; then
9465  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9466
9467
9468echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9469echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9470if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9471  echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473  lt_cv_prog_compiler_rtti_exceptions=no
9474  ac_outfile=conftest.$ac_objext
9475   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9476   lt_compiler_flag="-fno-rtti -fno-exceptions"
9477   # Insert the option either (1) after the last *FLAGS variable, or
9478   # (2) before a word containing "conftest.", or (3) at the end.
9479   # Note that $ac_compile itself does not contain backslashes and begins
9480   # with a dollar sign (not a hyphen), so the echo should work correctly.
9481   # The option is referenced via a variable to avoid confusing sed.
9482   lt_compile=`echo "$ac_compile" | $SED \
9483   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485   -e 's:$: $lt_compiler_flag:'`
9486   (eval echo "\"\$as_me:9486: $lt_compile\"" >&5)
9487   (eval "$lt_compile" 2>conftest.err)
9488   ac_status=$?
9489   cat conftest.err >&5
9490   echo "$as_me:9490: \$? = $ac_status" >&5
9491   if (exit $ac_status) && test -s "$ac_outfile"; then
9492     # The compiler can only warn and ignore the option if not recognized
9493     # So say no if there are warnings other than the usual output.
9494     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9495     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9496     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9497       lt_cv_prog_compiler_rtti_exceptions=yes
9498     fi
9499   fi
9500   $rm conftest*
9501
9502fi
9503echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9504echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9505
9506if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9507    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9508else
9509    :
9510fi
9511
9512fi
9513
9514lt_prog_compiler_wl=
9515lt_prog_compiler_pic=
9516lt_prog_compiler_static=
9517
9518echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9519echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9520
9521  if test "$GCC" = yes; then
9522    lt_prog_compiler_wl='-Wl,'
9523    lt_prog_compiler_static='-static'
9524
9525    case $host_os in
9526      aix*)
9527      # All AIX code is PIC.
9528      if test "$host_cpu" = ia64; then
9529        # AIX 5 now supports IA64 processor
9530        lt_prog_compiler_static='-Bstatic'
9531      fi
9532      ;;
9533
9534    amigaos*)
9535      # FIXME: we need at least 68020 code to build shared libraries, but
9536      # adding the `-m68020' flag to GCC prevents building anything better,
9537      # like `-m68040'.
9538      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9539      ;;
9540
9541    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9542      # PIC is the default for these OSes.
9543      ;;
9544
9545    mingw* | pw32* | os2*)
9546      # This hack is so that the source file can tell whether it is being
9547      # built for inclusion in a dll (and should export symbols for example).
9548      lt_prog_compiler_pic='-DDLL_EXPORT'
9549      ;;
9550
9551    darwin* | rhapsody*)
9552      # PIC is the default on this platform
9553      # Common symbols not allowed in MH_DYLIB files
9554      lt_prog_compiler_pic='-fno-common'
9555      ;;
9556
9557    interix3*)
9558      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9559      # Instead, we relocate shared libraries at runtime.
9560      ;;
9561
9562    msdosdjgpp*)
9563      # Just because we use GCC doesn't mean we suddenly get shared libraries
9564      # on systems that don't support them.
9565      lt_prog_compiler_can_build_shared=no
9566      enable_shared=no
9567      ;;
9568
9569    sysv4*MP*)
9570      if test -d /usr/nec; then
9571        lt_prog_compiler_pic=-Kconform_pic
9572      fi
9573      ;;
9574
9575    hpux*)
9576      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9577      # not for PA HP-UX.
9578      case $host_cpu in
9579      hppa*64*|ia64*)
9580        # +Z the default
9581        ;;
9582      *)
9583        lt_prog_compiler_pic='-fPIC'
9584        ;;
9585      esac
9586      ;;
9587
9588    *)
9589      lt_prog_compiler_pic='-fPIC'
9590      ;;
9591    esac
9592  else
9593    # PORTME Check for flag to pass linker flags through the system compiler.
9594    case $host_os in
9595    aix*)
9596      lt_prog_compiler_wl='-Wl,'
9597      if test "$host_cpu" = ia64; then
9598        # AIX 5 now supports IA64 processor
9599        lt_prog_compiler_static='-Bstatic'
9600      else
9601        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9602      fi
9603      ;;
9604      darwin*)
9605        # PIC is the default on this platform
9606        # Common symbols not allowed in MH_DYLIB files
9607       case $cc_basename in
9608         xlc*)
9609         lt_prog_compiler_pic='-qnocommon'
9610         lt_prog_compiler_wl='-Wl,'
9611         ;;
9612       esac
9613       ;;
9614
9615    mingw* | pw32* | os2*)
9616      # This hack is so that the source file can tell whether it is being
9617      # built for inclusion in a dll (and should export symbols for example).
9618      lt_prog_compiler_pic='-DDLL_EXPORT'
9619      ;;
9620
9621    hpux9* | hpux10* | hpux11*)
9622      lt_prog_compiler_wl='-Wl,'
9623      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9624      # not for PA HP-UX.
9625      case $host_cpu in
9626      hppa*64*|ia64*)
9627        # +Z the default
9628        ;;
9629      *)
9630        lt_prog_compiler_pic='+Z'
9631        ;;
9632      esac
9633      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9634      lt_prog_compiler_static='${wl}-a ${wl}archive'
9635      ;;
9636
9637    irix5* | irix6* | nonstopux*)
9638      lt_prog_compiler_wl='-Wl,'
9639      # PIC (with -KPIC) is the default.
9640      lt_prog_compiler_static='-non_shared'
9641      ;;
9642
9643    newsos6)
9644      lt_prog_compiler_pic='-KPIC'
9645      lt_prog_compiler_static='-Bstatic'
9646      ;;
9647
9648    linux*)
9649      case $cc_basename in
9650      icc* | ecc*)
9651        lt_prog_compiler_wl='-Wl,'
9652        lt_prog_compiler_pic='-KPIC'
9653        lt_prog_compiler_static='-static'
9654        ;;
9655      pgcc* | pgf77* | pgf90* | pgf95*)
9656        # Portland Group compilers (*not* the Pentium gcc compiler,
9657        # which looks to be a dead project)
9658        lt_prog_compiler_wl='-Wl,'
9659        lt_prog_compiler_pic='-fpic'
9660        lt_prog_compiler_static='-Bstatic'
9661        ;;
9662      ccc*)
9663        lt_prog_compiler_wl='-Wl,'
9664        # All Alpha code is PIC.
9665        lt_prog_compiler_static='-non_shared'
9666        ;;
9667      esac
9668      ;;
9669
9670    osf3* | osf4* | osf5*)
9671      lt_prog_compiler_wl='-Wl,'
9672      # All OSF/1 code is PIC.
9673      lt_prog_compiler_static='-non_shared'
9674      ;;
9675
9676    solaris*)
9677      lt_prog_compiler_pic='-KPIC'
9678      lt_prog_compiler_static='-Bstatic'
9679      case $cc_basename in
9680      f77* | f90* | f95*)
9681        lt_prog_compiler_wl='-Qoption ld ';;
9682      *)
9683        lt_prog_compiler_wl='-Wl,';;
9684      esac
9685      ;;
9686
9687    sunos4*)
9688      lt_prog_compiler_wl='-Qoption ld '
9689      lt_prog_compiler_pic='-PIC'
9690      lt_prog_compiler_static='-Bstatic'
9691      ;;
9692
9693    sysv4 | sysv4.2uw2* | sysv4.3*)
9694      lt_prog_compiler_wl='-Wl,'
9695      lt_prog_compiler_pic='-KPIC'
9696      lt_prog_compiler_static='-Bstatic'
9697      ;;
9698
9699    sysv4*MP*)
9700      if test -d /usr/nec ;then
9701        lt_prog_compiler_pic='-Kconform_pic'
9702        lt_prog_compiler_static='-Bstatic'
9703      fi
9704      ;;
9705
9706    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707      lt_prog_compiler_wl='-Wl,'
9708      lt_prog_compiler_pic='-KPIC'
9709      lt_prog_compiler_static='-Bstatic'
9710      ;;
9711
9712    unicos*)
9713      lt_prog_compiler_wl='-Wl,'
9714      lt_prog_compiler_can_build_shared=no
9715      ;;
9716
9717    uts4*)
9718      lt_prog_compiler_pic='-pic'
9719      lt_prog_compiler_static='-Bstatic'
9720      ;;
9721
9722    *)
9723      lt_prog_compiler_can_build_shared=no
9724      ;;
9725    esac
9726  fi
9727
9728echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9729echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9730
9731#
9732# Check to make sure the PIC flag actually works.
9733#
9734if test -n "$lt_prog_compiler_pic"; then
9735
9736echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9737echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9738if test "${lt_prog_compiler_pic_works+set}" = set; then
9739  echo $ECHO_N "(cached) $ECHO_C" >&6
9740else
9741  lt_prog_compiler_pic_works=no
9742  ac_outfile=conftest.$ac_objext
9743   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9744   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9745   # Insert the option either (1) after the last *FLAGS variable, or
9746   # (2) before a word containing "conftest.", or (3) at the end.
9747   # Note that $ac_compile itself does not contain backslashes and begins
9748   # with a dollar sign (not a hyphen), so the echo should work correctly.
9749   # The option is referenced via a variable to avoid confusing sed.
9750   lt_compile=`echo "$ac_compile" | $SED \
9751   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9752   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9753   -e 's:$: $lt_compiler_flag:'`
9754   (eval echo "\"\$as_me:9754: $lt_compile\"" >&5)
9755   (eval "$lt_compile" 2>conftest.err)
9756   ac_status=$?
9757   cat conftest.err >&5
9758   echo "$as_me:9758: \$? = $ac_status" >&5
9759   if (exit $ac_status) && test -s "$ac_outfile"; then
9760     # The compiler can only warn and ignore the option if not recognized
9761     # So say no if there are warnings other than the usual output.
9762     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9763     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9764     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9765       lt_prog_compiler_pic_works=yes
9766     fi
9767   fi
9768   $rm conftest*
9769
9770fi
9771echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9772echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9773
9774if test x"$lt_prog_compiler_pic_works" = xyes; then
9775    case $lt_prog_compiler_pic in
9776     "" | " "*) ;;
9777     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9778     esac
9779else
9780    lt_prog_compiler_pic=
9781     lt_prog_compiler_can_build_shared=no
9782fi
9783
9784fi
9785case $host_os in
9786  # For platforms which do not support PIC, -DPIC is meaningless:
9787  *djgpp*)
9788    lt_prog_compiler_pic=
9789    ;;
9790  *)
9791    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9792    ;;
9793esac
9794
9795#
9796# Check to make sure the static flag actually works.
9797#
9798wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9799echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9800echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9801if test "${lt_prog_compiler_static_works+set}" = set; then
9802  echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804  lt_prog_compiler_static_works=no
9805   save_LDFLAGS="$LDFLAGS"
9806   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9807   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9808   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9809     # The linker can only warn and ignore the option if not recognized
9810     # So say no if there are warnings
9811     if test -s conftest.err; then
9812       # Append any errors to the config.log.
9813       cat conftest.err 1>&5
9814       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9815       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9816       if diff conftest.exp conftest.er2 >/dev/null; then
9817         lt_prog_compiler_static_works=yes
9818       fi
9819     else
9820       lt_prog_compiler_static_works=yes
9821     fi
9822   fi
9823   $rm conftest*
9824   LDFLAGS="$save_LDFLAGS"
9825
9826fi
9827echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9828echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9829
9830if test x"$lt_prog_compiler_static_works" = xyes; then
9831    :
9832else
9833    lt_prog_compiler_static=
9834fi
9835
9836
9837echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9838echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9839if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9840  echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842  lt_cv_prog_compiler_c_o=no
9843   $rm -r conftest 2>/dev/null
9844   mkdir conftest
9845   cd conftest
9846   mkdir out
9847   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9848
9849   lt_compiler_flag="-o out/conftest2.$ac_objext"
9850   # Insert the option either (1) after the last *FLAGS variable, or
9851   # (2) before a word containing "conftest.", or (3) at the end.
9852   # Note that $ac_compile itself does not contain backslashes and begins
9853   # with a dollar sign (not a hyphen), so the echo should work correctly.
9854   lt_compile=`echo "$ac_compile" | $SED \
9855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9857   -e 's:$: $lt_compiler_flag:'`
9858   (eval echo "\"\$as_me:9858: $lt_compile\"" >&5)
9859   (eval "$lt_compile" 2>out/conftest.err)
9860   ac_status=$?
9861   cat out/conftest.err >&5
9862   echo "$as_me:9862: \$? = $ac_status" >&5
9863   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9864   then
9865     # The compiler can only warn and ignore the option if not recognized
9866     # So say no if there are warnings
9867     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9868     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9869     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9870       lt_cv_prog_compiler_c_o=yes
9871     fi
9872   fi
9873   chmod u+w . 2>&5
9874   $rm conftest*
9875   # SGI C++ compiler will create directory out/ii_files/ for
9876   # template instantiation
9877   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9878   $rm out/* && rmdir out
9879   cd ..
9880   rmdir conftest
9881   $rm conftest*
9882
9883fi
9884echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9885echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9886
9887
9888hard_links="nottested"
9889if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9890  # do not overwrite the value of need_locks provided by the user
9891  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9892echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9893  hard_links=yes
9894  $rm conftest*
9895  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9896  touch conftest.a
9897  ln conftest.a conftest.b 2>&5 || hard_links=no
9898  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9899  echo "$as_me:$LINENO: result: $hard_links" >&5
9900echo "${ECHO_T}$hard_links" >&6
9901  if test "$hard_links" = no; then
9902    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9903echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9904    need_locks=warn
9905  fi
9906else
9907  need_locks=no
9908fi
9909
9910echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9911echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9912
9913  runpath_var=
9914  allow_undefined_flag=
9915  enable_shared_with_static_runtimes=no
9916  archive_cmds=
9917  archive_expsym_cmds=
9918  old_archive_From_new_cmds=
9919  old_archive_from_expsyms_cmds=
9920  export_dynamic_flag_spec=
9921  whole_archive_flag_spec=
9922  thread_safe_flag_spec=
9923  hardcode_libdir_flag_spec=
9924  hardcode_libdir_flag_spec_ld=
9925  hardcode_libdir_separator=
9926  hardcode_direct=no
9927  hardcode_minus_L=no
9928  hardcode_shlibpath_var=unsupported
9929  link_all_deplibs=unknown
9930  hardcode_automatic=no
9931  module_cmds=
9932  module_expsym_cmds=
9933  always_export_symbols=no
9934  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9935  # include_expsyms should be a list of space-separated symbols to be *always*
9936  # included in the symbol list
9937  include_expsyms=
9938  # exclude_expsyms can be an extended regexp of symbols to exclude
9939  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9940  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9941  # as well as any symbol that contains `d'.
9942  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9943  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9944  # platforms (ab)use it in PIC code, but their linkers get confused if
9945  # the symbol is explicitly referenced.  Since portable code cannot
9946  # rely on this symbol name, it's probably fine to never include it in
9947  # preloaded symbol tables.
9948  extract_expsyms_cmds=
9949  # Just being paranoid about ensuring that cc_basename is set.
9950  for cc_temp in $compiler""; do
9951  case $cc_temp in
9952    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9953    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9954    \-*) ;;
9955    *) break;;
9956  esac
9957done
9958cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9959
9960  case $host_os in
9961  cygwin* | mingw* | pw32*)
9962    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9963    # When not using gcc, we currently assume that we are using
9964    # Microsoft Visual C++.
9965    if test "$GCC" != yes; then
9966      with_gnu_ld=no
9967    fi
9968    ;;
9969  interix*)
9970    # we just hope/assume this is gcc and not c89 (= MSVC++)
9971    with_gnu_ld=yes
9972    ;;
9973  openbsd*)
9974    with_gnu_ld=no
9975    ;;
9976  esac
9977
9978  ld_shlibs=yes
9979  if test "$with_gnu_ld" = yes; then
9980    # If archive_cmds runs LD, not CC, wlarc should be empty
9981    wlarc='${wl}'
9982
9983    # Set some defaults for GNU ld with shared library support. These
9984    # are reset later if shared libraries are not supported. Putting them
9985    # here allows them to be overridden if necessary.
9986    runpath_var=LD_RUN_PATH
9987    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9988    export_dynamic_flag_spec='${wl}--export-dynamic'
9989    # ancient GNU ld didn't support --whole-archive et. al.
9990    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9991        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9992      else
9993        whole_archive_flag_spec=
9994    fi
9995    supports_anon_versioning=no
9996    case `$LD -v 2>/dev/null` in
9997      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9998      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9999      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10000      *\ 2.11.*) ;; # other 2.11 versions
10001      *) supports_anon_versioning=yes ;;
10002    esac
10003
10004    # See if GNU ld supports shared libraries.
10005    case $host_os in
10006    aix3* | aix4* | aix5*)
10007      # On AIX/PPC, the GNU linker is very broken
10008      if test "$host_cpu" != ia64; then
10009        ld_shlibs=no
10010        cat <<EOF 1>&2
10011
10012*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10013*** to be unable to reliably create shared libraries on AIX.
10014*** Therefore, libtool is disabling shared libraries support.  If you
10015*** really care for shared libraries, you may want to modify your PATH
10016*** so that a non-GNU linker is found, and then restart.
10017
10018EOF
10019      fi
10020      ;;
10021
10022    amigaos*)
10023      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)'
10024      hardcode_libdir_flag_spec='-L$libdir'
10025      hardcode_minus_L=yes
10026
10027      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10028      # that the semantics of dynamic libraries on AmigaOS, at least up
10029      # to version 4, is to share data among multiple programs linked
10030      # with the same dynamic library.  Since this doesn't match the
10031      # behavior of shared libraries on other platforms, we can't use
10032      # them.
10033      ld_shlibs=no
10034      ;;
10035
10036    beos*)
10037      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10038        allow_undefined_flag=unsupported
10039        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10040        # support --undefined.  This deserves some investigation.  FIXME
10041        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042      else
10043        ld_shlibs=no
10044      fi
10045      ;;
10046
10047    cygwin* | mingw* | pw32*)
10048      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10049      # as there is no search path for DLLs.
10050      hardcode_libdir_flag_spec='-L$libdir'
10051      allow_undefined_flag=unsupported
10052      always_export_symbols=no
10053      enable_shared_with_static_runtimes=yes
10054      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10055
10056      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10057        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10058        # If the export-symbols file already is a .def file (1st line
10059        # is EXPORTS), use it as is; otherwise, prepend...
10060        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10061          cp $export_symbols $output_objdir/$soname.def;
10062        else
10063          echo EXPORTS > $output_objdir/$soname.def;
10064          cat $export_symbols >> $output_objdir/$soname.def;
10065        fi~
10066        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10067      else
10068        ld_shlibs=no
10069      fi
10070      ;;
10071
10072    interix3*)
10073      hardcode_direct=no
10074      hardcode_shlibpath_var=no
10075      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076      export_dynamic_flag_spec='${wl}-E'
10077      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10078      # Instead, shared libraries are loaded at an image base (0x10000000 by
10079      # default) and relocated if they conflict, which is a slow very memory
10080      # consuming and fragmenting process.  To avoid this, we pick a random,
10081      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10082      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10083      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10084      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'
10085      ;;
10086
10087    linux*)
10088      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10089        tmp_addflag=
10090        case $cc_basename,$host_cpu in
10091        pgcc*)                          # Portland Group C compiler
10092          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'
10093          tmp_addflag=' $pic_flag'
10094          ;;
10095        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10096          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'
10097          tmp_addflag=' $pic_flag -Mnomain' ;;
10098        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10099          tmp_addflag=' -i_dynamic' ;;
10100        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10101          tmp_addflag=' -i_dynamic -nofor_main' ;;
10102        ifc* | ifort*)                  # Intel Fortran compiler
10103          tmp_addflag=' -nofor_main' ;;
10104        esac
10105        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106
10107        if test $supports_anon_versioning = yes; then
10108          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10109  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10110  $echo "local: *; };" >> $output_objdir/$libname.ver~
10111          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10112        fi
10113      else
10114        ld_shlibs=no
10115      fi
10116      ;;
10117
10118    netbsd*)
10119      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10120        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10121        wlarc=
10122      else
10123        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10125      fi
10126      ;;
10127
10128    solaris*)
10129      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10130        ld_shlibs=no
10131        cat <<EOF 1>&2
10132
10133*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10134*** create shared libraries on Solaris systems.  Therefore, libtool
10135*** is disabling shared libraries support.  We urge you to upgrade GNU
10136*** binutils to release 2.9.1 or newer.  Another option is to modify
10137*** your PATH or compiler configuration so that the native linker is
10138*** used, and then restart.
10139
10140EOF
10141      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10142        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10143        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10144      else
10145        ld_shlibs=no
10146      fi
10147      ;;
10148
10149    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10150      case `$LD -v 2>&1` in
10151        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10152        ld_shlibs=no
10153        cat <<_LT_EOF 1>&2
10154
10155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10156*** reliably create shared libraries on SCO systems.  Therefore, libtool
10157*** is disabling shared libraries support.  We urge you to upgrade GNU
10158*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10159*** your PATH or compiler configuration so that the native linker is
10160*** used, and then restart.
10161
10162_LT_EOF
10163        ;;
10164        *)
10165          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10166            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10167            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10168            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10169          else
10170            ld_shlibs=no
10171          fi
10172        ;;
10173      esac
10174      ;;
10175
10176    sunos4*)
10177      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10178      wlarc=
10179      hardcode_direct=yes
10180      hardcode_shlibpath_var=no
10181      ;;
10182
10183    *)
10184      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10185        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187      else
10188        ld_shlibs=no
10189      fi
10190      ;;
10191    esac
10192
10193    if test "$ld_shlibs" = no; then
10194      runpath_var=
10195      hardcode_libdir_flag_spec=
10196      export_dynamic_flag_spec=
10197      whole_archive_flag_spec=
10198    fi
10199  else
10200    # PORTME fill in a description of your system's linker (not GNU ld)
10201    case $host_os in
10202    aix3*)
10203      allow_undefined_flag=unsupported
10204      always_export_symbols=yes
10205      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'
10206      # Note: this linker hardcodes the directories in LIBPATH if there
10207      # are no directories specified by -L.
10208      hardcode_minus_L=yes
10209      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10210        # Neither direct hardcoding nor static linking is supported with a
10211        # broken collect2.
10212        hardcode_direct=unsupported
10213      fi
10214      ;;
10215
10216    aix4* | aix5*)
10217      if test "$host_cpu" = ia64; then
10218        # On IA64, the linker does run time linking by default, so we don't
10219        # have to do anything special.
10220        aix_use_runtimelinking=no
10221        exp_sym_flag='-Bexport'
10222        no_entry_flag=""
10223      else
10224        # If we're using GNU nm, then we don't want the "-C" option.
10225        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10226        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10227          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'
10228        else
10229          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'
10230        fi
10231        aix_use_runtimelinking=no
10232
10233        # Test if we are trying to use run time linking or normal
10234        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10235        # need to do runtime linking.
10236        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10237          for ld_flag in $LDFLAGS; do
10238          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10239            aix_use_runtimelinking=yes
10240            break
10241          fi
10242          done
10243          ;;
10244        esac
10245
10246        exp_sym_flag='-bexport'
10247        no_entry_flag='-bnoentry'
10248      fi
10249
10250      # When large executables or shared objects are built, AIX ld can
10251      # have problems creating the table of contents.  If linking a library
10252      # or program results in "error TOC overflow" add -mminimal-toc to
10253      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10254      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10255
10256      archive_cmds=''
10257      hardcode_direct=yes
10258      hardcode_libdir_separator=':'
10259      link_all_deplibs=yes
10260
10261      if test "$GCC" = yes; then
10262        case $host_os in aix4.[012]|aix4.[012].*)
10263        # We only want to do this on AIX 4.2 and lower, the check
10264        # below for broken collect2 doesn't work under 4.3+
10265          collect2name=`${CC} -print-prog-name=collect2`
10266          if test -f "$collect2name" && \
10267           strings "$collect2name" | grep resolve_lib_name >/dev/null
10268          then
10269          # We have reworked collect2
10270          hardcode_direct=yes
10271          else
10272          # We have old collect2
10273          hardcode_direct=unsupported
10274          # It fails to find uninstalled libraries when the uninstalled
10275          # path is not listed in the libpath.  Setting hardcode_minus_L
10276          # to unsupported forces relinking
10277          hardcode_minus_L=yes
10278          hardcode_libdir_flag_spec='-L$libdir'
10279          hardcode_libdir_separator=
10280          fi
10281          ;;
10282        esac
10283        shared_flag='-shared'
10284        if test "$aix_use_runtimelinking" = yes; then
10285          shared_flag="$shared_flag "'${wl}-G'
10286        fi
10287      else
10288        # not using gcc
10289        if test "$host_cpu" = ia64; then
10290        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10291        # chokes on -Wl,-G. The following line is correct:
10292          shared_flag='-G'
10293        else
10294          if test "$aix_use_runtimelinking" = yes; then
10295            shared_flag='${wl}-G'
10296          else
10297            shared_flag='${wl}-bM:SRE'
10298          fi
10299        fi
10300      fi
10301
10302      # It seems that -bexpall does not export symbols beginning with
10303      # underscore (_), so it is better to generate a list of symbols to export.
10304      always_export_symbols=yes
10305      if test "$aix_use_runtimelinking" = yes; then
10306        # Warning - without using the other runtime loading flags (-brtl),
10307        # -berok will link without error, but may produce a broken library.
10308        allow_undefined_flag='-berok'
10309       # Determine the default libpath from the value encoded in an empty executable.
10310       cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h.  */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h.  */
10316
10317#ifdef F77_DUMMY_MAIN
10318
10319#  ifdef __cplusplus
10320     extern "C"
10321#  endif
10322   int F77_DUMMY_MAIN() { return 1; }
10323
10324#endif
10325int
10326main ()
10327{
10328
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335  (eval $ac_link) 2>conftest.er1
10336  ac_status=$?
10337  grep -v '^ *+' conftest.er1 >conftest.err
10338  rm -f conftest.er1
10339  cat conftest.err >&5
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } &&
10342         { ac_try='test -z "$ac_c_werror_flag"
10343                         || test ! -s conftest.err'
10344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345  (eval $ac_try) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); }; } &&
10349         { ac_try='test -s conftest$ac_exeext'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; }; then
10355
10356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10357}'`
10358# Check for a 64-bit object if we didn't find anything.
10359if 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; }
10360}'`; fi
10361else
10362  echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365fi
10366rm -f conftest.err conftest.$ac_objext \
10367      conftest$ac_exeext conftest.$ac_ext
10368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10369
10370       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10371        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"
10372       else
10373        if test "$host_cpu" = ia64; then
10374          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10375          allow_undefined_flag="-z nodefs"
10376          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"
10377        else
10378         # Determine the default libpath from the value encoded in an empty executable.
10379         cat >conftest.$ac_ext <<_ACEOF
10380/* confdefs.h.  */
10381_ACEOF
10382cat confdefs.h >>conftest.$ac_ext
10383cat >>conftest.$ac_ext <<_ACEOF
10384/* end confdefs.h.  */
10385
10386#ifdef F77_DUMMY_MAIN
10387
10388#  ifdef __cplusplus
10389     extern "C"
10390#  endif
10391   int F77_DUMMY_MAIN() { return 1; }
10392
10393#endif
10394int
10395main ()
10396{
10397
10398  ;
10399  return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404  (eval $ac_link) 2>conftest.er1
10405  ac_status=$?
10406  grep -v '^ *+' conftest.er1 >conftest.err
10407  rm -f conftest.er1
10408  cat conftest.err >&5
10409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } &&
10411         { ac_try='test -z "$ac_c_werror_flag"
10412                         || test ! -s conftest.err'
10413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414  (eval $ac_try) 2>&5
10415  ac_status=$?
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); }; } &&
10418         { ac_try='test -s conftest$ac_exeext'
10419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420  (eval $ac_try) 2>&5
10421  ac_status=$?
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); }; }; then
10424
10425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10426}'`
10427# Check for a 64-bit object if we didn't find anything.
10428if 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; }
10429}'`; fi
10430else
10431  echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434fi
10435rm -f conftest.err conftest.$ac_objext \
10436      conftest$ac_exeext conftest.$ac_ext
10437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10438
10439         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10440          # Warning - without using the other run time loading flags,
10441          # -berok will link without error, but may produce a broken library.
10442          no_undefined_flag=' ${wl}-bernotok'
10443          allow_undefined_flag=' ${wl}-berok'
10444          # Exported symbols can be pulled into shared objects from archives
10445          whole_archive_flag_spec='$convenience'
10446          archive_cmds_need_lc=yes
10447          # This is similar to how AIX traditionally builds its shared libraries.
10448          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'
10449        fi
10450      fi
10451      ;;
10452
10453    amigaos*)
10454      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)'
10455      hardcode_libdir_flag_spec='-L$libdir'
10456      hardcode_minus_L=yes
10457      # see comment about different semantics on the GNU ld section
10458      ld_shlibs=no
10459      ;;
10460
10461    bsdi[45]*)
10462      export_dynamic_flag_spec=-rdynamic
10463      ;;
10464
10465    cygwin* | mingw* | pw32*)
10466      # When not using gcc, we currently assume that we are using
10467      # Microsoft Visual C++.
10468      # hardcode_libdir_flag_spec is actually meaningless, as there is
10469      # no search path for DLLs.
10470      hardcode_libdir_flag_spec=' '
10471      allow_undefined_flag=unsupported
10472      # Tell ltmain to make .lib files, not .a files.
10473      libext=lib
10474      # Tell ltmain to make .dll files, not .so files.
10475      shrext_cmds=".dll"
10476      # FIXME: Setting linknames here is a bad hack.
10477      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10478      # The linker will automatically build a .lib file if we build a DLL.
10479      old_archive_From_new_cmds='true'
10480      # FIXME: Should let the user specify the lib program.
10481      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10482      fix_srcfile_path='`cygpath -w "$srcfile"`'
10483      enable_shared_with_static_runtimes=yes
10484      ;;
10485
10486    darwin* | rhapsody*)
10487      case $host_os in
10488        rhapsody* | darwin1.[012])
10489         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10490         ;;
10491       *) # Darwin 1.3 on
10492         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10493           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10494         else
10495           case ${MACOSX_DEPLOYMENT_TARGET} in
10496             10.[012])
10497               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10498               ;;
10499             10.*)
10500               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10501               ;;
10502           esac
10503         fi
10504         ;;
10505      esac
10506      archive_cmds_need_lc=no
10507      hardcode_direct=no
10508      hardcode_automatic=yes
10509      hardcode_shlibpath_var=unsupported
10510      whole_archive_flag_spec=''
10511      link_all_deplibs=yes
10512    if test "$GCC" = yes ; then
10513        output_verbose_link_cmd='echo'
10514        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10515      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10516      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10517      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}'
10518      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}'
10519    else
10520      case $cc_basename in
10521        xlc*)
10522         output_verbose_link_cmd='echo'
10523         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10524         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10525          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10526         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}'
10527          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}'
10528          ;;
10529       *)
10530         ld_shlibs=no
10531          ;;
10532      esac
10533    fi
10534      ;;
10535
10536    dgux*)
10537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538      hardcode_libdir_flag_spec='-L$libdir'
10539      hardcode_shlibpath_var=no
10540      ;;
10541
10542    freebsd1*)
10543      ld_shlibs=no
10544      ;;
10545
10546    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10547    # support.  Future versions do this automatically, but an explicit c++rt0.o
10548    # does not break anything, and helps significantly (at the cost of a little
10549    # extra space).
10550    freebsd2.2*)
10551      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10552      hardcode_libdir_flag_spec='-R$libdir'
10553      hardcode_direct=yes
10554      hardcode_shlibpath_var=no
10555      ;;
10556
10557    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10558    freebsd2*)
10559      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10560      hardcode_direct=yes
10561      hardcode_minus_L=yes
10562      hardcode_shlibpath_var=no
10563      ;;
10564
10565    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10566    freebsd* | kfreebsd*-gnu | dragonfly*)
10567      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10568      hardcode_libdir_flag_spec='-R$libdir'
10569      hardcode_direct=yes
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    hpux9*)
10574      if test "$GCC" = yes; then
10575        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'
10576      else
10577        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'
10578      fi
10579      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10580      hardcode_libdir_separator=:
10581      hardcode_direct=yes
10582
10583      # hardcode_minus_L: Not really in the search PATH,
10584      # but as the default location of the library.
10585      hardcode_minus_L=yes
10586      export_dynamic_flag_spec='${wl}-E'
10587      ;;
10588
10589    hpux10*)
10590      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10591        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10592      else
10593        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10594      fi
10595      if test "$with_gnu_ld" = no; then
10596        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10597        hardcode_libdir_separator=:
10598
10599        hardcode_direct=yes
10600        export_dynamic_flag_spec='${wl}-E'
10601
10602        # hardcode_minus_L: Not really in the search PATH,
10603        # but as the default location of the library.
10604        hardcode_minus_L=yes
10605      fi
10606      ;;
10607
10608    hpux11*)
10609      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10610        case $host_cpu in
10611        hppa*64*)
10612          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10613          ;;
10614        ia64*)
10615          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10616          ;;
10617        *)
10618          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10619          ;;
10620        esac
10621      else
10622        case $host_cpu in
10623        hppa*64*)
10624          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10625          ;;
10626        ia64*)
10627          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10628          ;;
10629        *)
10630          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10631          ;;
10632        esac
10633      fi
10634      if test "$with_gnu_ld" = no; then
10635        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10636        hardcode_libdir_separator=:
10637
10638        case $host_cpu in
10639        hppa*64*|ia64*)
10640          hardcode_libdir_flag_spec_ld='+b $libdir'
10641          hardcode_direct=no
10642          hardcode_shlibpath_var=no
10643          ;;
10644        *)
10645          hardcode_direct=yes
10646          export_dynamic_flag_spec='${wl}-E'
10647
10648          # hardcode_minus_L: Not really in the search PATH,
10649          # but as the default location of the library.
10650          hardcode_minus_L=yes
10651          ;;
10652        esac
10653      fi
10654      ;;
10655
10656    irix5* | irix6* | nonstopux*)
10657      if test "$GCC" = yes; then
10658        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'
10659      else
10660        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'
10661        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10662      fi
10663      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10664      hardcode_libdir_separator=:
10665      link_all_deplibs=yes
10666      ;;
10667
10668    netbsd*)
10669      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10670        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10671      else
10672        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10673      fi
10674      hardcode_libdir_flag_spec='-R$libdir'
10675      hardcode_direct=yes
10676      hardcode_shlibpath_var=no
10677      ;;
10678
10679    newsos6)
10680      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681      hardcode_direct=yes
10682      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10683      hardcode_libdir_separator=:
10684      hardcode_shlibpath_var=no
10685      ;;
10686
10687    openbsd*)
10688      hardcode_direct=yes
10689      hardcode_shlibpath_var=no
10690      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10691        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10692        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10693        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10694        export_dynamic_flag_spec='${wl}-E'
10695      else
10696       case $host_os in
10697         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10698           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10699           hardcode_libdir_flag_spec='-R$libdir'
10700           ;;
10701         *)
10702           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10703           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10704           ;;
10705       esac
10706      fi
10707      ;;
10708
10709    os2*)
10710      hardcode_libdir_flag_spec='-L$libdir'
10711      hardcode_minus_L=yes
10712      allow_undefined_flag=unsupported
10713      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'
10714      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10715      ;;
10716
10717    osf3*)
10718      if test "$GCC" = yes; then
10719        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10720        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'
10721      else
10722        allow_undefined_flag=' -expect_unresolved \*'
10723        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'
10724      fi
10725      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10726      hardcode_libdir_separator=:
10727      ;;
10728
10729    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10730      if test "$GCC" = yes; then
10731        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10732        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'
10733        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10734      else
10735        allow_undefined_flag=' -expect_unresolved \*'
10736        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'
10737        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10738        $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'
10739
10740        # Both c and cxx compiler support -rpath directly
10741        hardcode_libdir_flag_spec='-rpath $libdir'
10742      fi
10743      hardcode_libdir_separator=:
10744      ;;
10745
10746    solaris*)
10747      no_undefined_flag=' -z text'
10748      if test "$GCC" = yes; then
10749        wlarc='${wl}'
10750        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10751        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10752          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10753      else
10754        wlarc=''
10755        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10757        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10758      fi
10759      hardcode_libdir_flag_spec='-R$libdir'
10760      hardcode_shlibpath_var=no
10761      case $host_os in
10762      solaris2.[0-5] | solaris2.[0-5].*) ;;
10763      *)
10764        # The compiler driver will combine linker options so we
10765        # cannot just pass the convience library names through
10766        # without $wl, iff we do not link with $LD.
10767        # Luckily, gcc supports the same syntax we need for Sun Studio.
10768        # Supported since Solaris 2.6 (maybe 2.5.1?)
10769        case $wlarc in
10770        '')
10771          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10772        *)
10773          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' ;;
10774        esac ;;
10775      esac
10776      link_all_deplibs=yes
10777      ;;
10778
10779    sunos4*)
10780      if test "x$host_vendor" = xsequent; then
10781        # Use $CC to link under sequent, because it throws in some extra .o
10782        # files that make .init and .fini sections work.
10783        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10784      else
10785        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10786      fi
10787      hardcode_libdir_flag_spec='-L$libdir'
10788      hardcode_direct=yes
10789      hardcode_minus_L=yes
10790      hardcode_shlibpath_var=no
10791      ;;
10792
10793    sysv4)
10794      case $host_vendor in
10795        sni)
10796          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797          hardcode_direct=yes # is this really true???
10798        ;;
10799        siemens)
10800          ## LD is ld it makes a PLAMLIB
10801          ## CC just makes a GrossModule.
10802          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10803          reload_cmds='$CC -r -o $output$reload_objs'
10804          hardcode_direct=no
10805        ;;
10806        motorola)
10807          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10808          hardcode_direct=