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

Last change on this file since 3216 was 3216, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty?/HSL/stable/1.3

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