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

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

temporarily committing release candidate

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