source: ThirdParty/HSL/trunk/configure @ 2985

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

revert r2394:HEAD - releases are not to be modified

  • Property svn:executable set to *
File size: 895.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.4.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package BuildTools which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.4'
433PACKAGE_STRING='ThirdPartyHSL 1.4'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="coinhsl/common/deps.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINHSL_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_HSL_MA77_TRUE COIN_HAS_HSL_MA77_FALSE COIN_HAS_HSL_MA86_TRUE COIN_HAS_HSL_MA86_FALSE COIN_HAS_HSL_MA97_TRUE COIN_HAS_HSL_MA97_FALSE COIN_HAS_HSL_MC68_TRUE COIN_HAS_HSL_MC68_FALSE COIN_HAS_DEPSF90_TRUE COIN_HAS_DEPSF90_FALSE BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL 1.4 to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL 1.4:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089                          (implies --disable-shared)
1090  --enable-debug-hsl compile project HSL with debug compiler flags
1091  --enable-doscompile     Under Cygwin, compile so that executables run under
1092                          DOS. Set to mingw to use gcc/g++/ld with
1093                          -mno-cygwin. Set to msvc to use cl/link (or
1094                          icl/link). Default when mentioned: mingw. Default
1095                          when not mentioned: disabled.
1096  --disable-pkg-config    disable use of pkg-config (if available)
1097  --enable-static[=PKGS]
1098                          build static libraries [default=no]
1099  --disable-dependency-tracking  speeds up one-time build
1100  --enable-dependency-tracking   do not reject slow dependency extractors
1101  --enable-maintainer-mode  enable make rules and dependencies not useful
1102                          (and sometimes confusing) to the casual installer
1103  --enable-shared[=PKGS]
1104                          build shared libraries [default=yes]
1105  --enable-fast-install[=PKGS]
1106                          optimize for fast installation [default=yes]
1107  --disable-libtool-lock  avoid locking (might break parallel builds)
1108  --disable-interpackage-dependencies
1109                          disables deduction of Makefile dependencies from
1110                          package linker flags
1111
1112Optional Packages:
1113  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1114  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1115  --with-hsl-verbosity specify the debug verbosity level for project HSL
1116  --with-hsl-checklevel specify the sanity check level for project HSL
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124  --with-blas             specify BLAS library (or BUILD to enforce use of
1125                          ThirdParty/Blas)
1126
1127  --with-blas-lib linker flags for using package Blas
1128  --with-blas-incdir directory with header files for using package Blas
1129  --with-blas-datadir directory with data files for using package Blas
1130  --with-metis-lib linker flags for using package Metis
1131  --with-metis-incdir directory with header files for using package Metis
1132  --with-metis-datadir directory with data files for using package Metis
1133
1134Some influential environment variables:
1135  CDEFS       Additional -D flags to be used when compiling C code.
1136  ADD_CFLAGS  Additional C compiler options
1137  DBG_CFLAGS  Debug C compiler options
1138  OPT_CFLAGS  Optimize C compiler options
1139  CC          C compiler command
1140  CFLAGS      C compiler flags
1141  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1142              nonstandard directory <lib dir>
1143  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1144              headers in a nonstandard directory <include dir>
1145  MPICC       C MPI Compiler
1146  ADD_FFLAGS  Additional Fortran compiler options
1147  DBG_FFLAGS  Debug Fortran compiler options
1148  OPT_FFLAGS  Optimize Fortran compiler options
1149  F77         Fortran 77 compiler command
1150  FFLAGS      Fortran 77 compiler flags
1151  MPIF77      Fortran MPI Compiler
1152  PKG_CONFIG  path to pkg-config utility
1153  FC          Fortran compiler command
1154  FCFLAGS     Fortran compiler flags
1155  CPP         C preprocessor
1156  CXX         C++ compiler command
1157  CXXFLAGS    C++ compiler flags
1158  CXXCPP      C++ preprocessor
1159
1160Use these variables to override the choices made by `configure' or to help
1161it to find libraries and programs with nonstandard names/locations.
1162
1163Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1164_ACEOF
1165fi
1166
1167if test "$ac_init_help" = "recursive"; then
1168  # If there are subdirs, report their specific --help.
1169  ac_popdir=`pwd`
1170  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171    test -d $ac_dir || continue
1172    ac_builddir=.
1173
1174if test "$ac_dir" != .; then
1175  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1176  # A "../" for each directory in $ac_dir_suffix.
1177  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1178else
1179  ac_dir_suffix= ac_top_builddir=
1180fi
1181
1182case $srcdir in
1183  .)  # No --srcdir option.  We are building in place.
1184    ac_srcdir=.
1185    if test -z "$ac_top_builddir"; then
1186       ac_top_srcdir=.
1187    else
1188       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1189    fi ;;
1190  [\\/]* | ?:[\\/]* )  # Absolute path.
1191    ac_srcdir=$srcdir$ac_dir_suffix;
1192    ac_top_srcdir=$srcdir ;;
1193  *) # Relative path.
1194    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1196esac
1197
1198# Do not use `cd foo && pwd` to compute absolute paths, because
1199# the directories may not exist.
1200case `pwd` in
1201.) ac_abs_builddir="$ac_dir";;
1202*)
1203  case "$ac_dir" in
1204  .) ac_abs_builddir=`pwd`;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_top_builddir=${ac_top_builddir}.;;
1211*)
1212  case ${ac_top_builddir}. in
1213  .) ac_abs_top_builddir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_srcdir=$ac_srcdir;;
1220*)
1221  case $ac_srcdir in
1222  .) ac_abs_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1225  esac;;
1226esac
1227case $ac_abs_builddir in
1228.) ac_abs_top_srcdir=$ac_top_srcdir;;
1229*)
1230  case $ac_top_srcdir in
1231  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1234  esac;;
1235esac
1236
1237    cd $ac_dir
1238    # Check for guested configure; otherwise get Cygnus style configure.
1239    if test -f $ac_srcdir/configure.gnu; then
1240      echo
1241      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1242    elif test -f $ac_srcdir/configure; then
1243      echo
1244      $SHELL $ac_srcdir/configure  --help=recursive
1245    elif test -f $ac_srcdir/configure.ac ||
1246           test -f $ac_srcdir/configure.in; then
1247      echo
1248      $ac_configure --help
1249    else
1250      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1251    fi
1252    cd $ac_popdir
1253  done
1254fi
1255
1256test -n "$ac_init_help" && exit 0
1257if $ac_init_version; then
1258  cat <<\_ACEOF
1259ThirdPartyHSL configure 1.4
1260generated by GNU Autoconf 2.59
1261
1262Copyright (C) 2003 Free Software Foundation, Inc.
1263This configure script is free software; the Free Software Foundation
1264gives unlimited permission to copy, distribute and modify it.
1265
1266
1267Copyright 2006, 2009 International Business Machines and others.
1268All Rights Reserved.
1269This file is part of the open source package BuildTools which is distributed
1270under the Eclipse Public License.
1271_ACEOF
1272  exit 0
1273fi
1274exec 5>config.log
1275cat >&5 <<_ACEOF
1276This file contains any messages produced by compilers while
1277running configure, to aid debugging if configure makes a mistake.
1278
1279It was created by ThirdPartyHSL $as_me 1.4, which was
1280generated by GNU Autoconf 2.59.  Invocation command line was
1281
1282  $ $0 $@
1283
1284_ACEOF
1285{
1286cat <<_ASUNAME
1287## --------- ##
1288## Platform. ##
1289## --------- ##
1290
1291hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1292uname -m = `(uname -m) 2>/dev/null || echo unknown`
1293uname -r = `(uname -r) 2>/dev/null || echo unknown`
1294uname -s = `(uname -s) 2>/dev/null || echo unknown`
1295uname -v = `(uname -v) 2>/dev/null || echo unknown`
1296
1297/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1298/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1299
1300/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1301/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1302/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1303hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1304/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1305/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1306/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1307
1308_ASUNAME
1309
1310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1311for as_dir in $PATH
1312do
1313  IFS=$as_save_IFS
1314  test -z "$as_dir" && as_dir=.
1315  echo "PATH: $as_dir"
1316done
1317
1318} >&5
1319
1320cat >&5 <<_ACEOF
1321
1322
1323## ----------- ##
1324## Core tests. ##
1325## ----------- ##
1326
1327_ACEOF
1328
1329
1330# Keep a trace of the command line.
1331# Strip out --no-create and --no-recursion so they do not pile up.
1332# Strip out --silent because we don't want to record it for future runs.
1333# Also quote any args containing shell meta-characters.
1334# Make two passes to allow for proper duplicate-argument suppression.
1335ac_configure_args=
1336ac_configure_args0=
1337ac_configure_args1=
1338ac_sep=
1339ac_must_keep_next=false
1340for ac_pass in 1 2
1341do
1342  for ac_arg
1343  do
1344    case $ac_arg in
1345    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1346    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347    | -silent | --silent | --silen | --sile | --sil)
1348      continue ;;
1349    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1350      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1351    esac
1352    case $ac_pass in
1353    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1354    2)
1355      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1356      if test $ac_must_keep_next = true; then
1357        ac_must_keep_next=false # Got value, back to normal.
1358      else
1359        case $ac_arg in
1360          *=* | --config-cache | -C | -disable-* | --disable-* \
1361          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1362          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1363          | -with-* | --with-* | -without-* | --without-* | --x)
1364            case "$ac_configure_args0 " in
1365              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1366            esac
1367            ;;
1368          -* ) ac_must_keep_next=true ;;
1369        esac
1370      fi
1371      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1372      # Get rid of the leading space.
1373      ac_sep=" "
1374      ;;
1375    esac
1376  done
1377done
1378$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1379$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1380
1381# When interrupted or exit'd, cleanup temporary files, and complete
1382# config.log.  We remove comments because anyway the quotes in there
1383# would cause problems or look ugly.
1384# WARNING: Be sure not to use single quotes in there, as some shells,
1385# such as our DU 5.0 friend, will then `close' the trap.
1386trap 'exit_status=$?
1387  # Save into config.log some information that might help in debugging.
1388  {
1389    echo
1390
1391    cat <<\_ASBOX
1392## ---------------- ##
1393## Cache variables. ##
1394## ---------------- ##
1395_ASBOX
1396    echo
1397    # The following way of writing the cache mishandles newlines in values,
1398{
1399  (set) 2>&1 |
1400    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1401    *ac_space=\ *)
1402      sed -n \
1403        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1404          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1405      ;;
1406    *)
1407      sed -n \
1408        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1409      ;;
1410    esac;
1411}
1412    echo
1413
1414    cat <<\_ASBOX
1415## ----------------- ##
1416## Output variables. ##
1417## ----------------- ##
1418_ASBOX
1419    echo
1420    for ac_var in $ac_subst_vars
1421    do
1422      eval ac_val=$`echo $ac_var`
1423      echo "$ac_var='"'"'$ac_val'"'"'"
1424    done | sort
1425    echo
1426
1427    if test -n "$ac_subst_files"; then
1428      cat <<\_ASBOX
1429## ------------- ##
1430## Output files. ##
1431## ------------- ##
1432_ASBOX
1433      echo
1434      for ac_var in $ac_subst_files
1435      do
1436        eval ac_val=$`echo $ac_var`
1437        echo "$ac_var='"'"'$ac_val'"'"'"
1438      done | sort
1439      echo
1440    fi
1441
1442    if test -s confdefs.h; then
1443      cat <<\_ASBOX
1444## ----------- ##
1445## confdefs.h. ##
1446## ----------- ##
1447_ASBOX
1448      echo
1449      sed "/^$/d" confdefs.h | sort
1450      echo
1451    fi
1452    test "$ac_signal" != 0 &&
1453      echo "$as_me: caught signal $ac_signal"
1454    echo "$as_me: exit $exit_status"
1455  } >&5
1456  rm -f core *.core &&
1457  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1458    exit $exit_status
1459     ' 0
1460for ac_signal in 1 2 13 15; do
1461  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1462done
1463ac_signal=0
1464
1465# confdefs.h avoids OS command line length limits that DEFS can exceed.
1466rm -rf conftest* confdefs.h
1467# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1468echo >confdefs.h
1469
1470# Predefined preprocessor variables.
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_NAME "$PACKAGE_NAME"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_VERSION "$PACKAGE_VERSION"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_STRING "$PACKAGE_STRING"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1494_ACEOF
1495
1496
1497# Let the site file select an alternate cache file if it wants to.
1498# Prefer explicitly selected file to automatically selected ones.
1499if test -z "$CONFIG_SITE"; then
1500  if test "x$prefix" != xNONE; then
1501    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1502  else
1503    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1504  fi
1505fi
1506for ac_site_file in $CONFIG_SITE; do
1507  if test -r "$ac_site_file"; then
1508    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1509echo "$as_me: loading site script $ac_site_file" >&6;}
1510    sed 's/^/| /' "$ac_site_file" >&5
1511    . "$ac_site_file"
1512  fi
1513done
1514
1515if test -r "$cache_file"; then
1516  # Some versions of bash will fail to source /dev/null (special
1517  # files actually), so we avoid doing that.
1518  if test -f "$cache_file"; then
1519    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1520echo "$as_me: loading cache $cache_file" >&6;}
1521    case $cache_file in
1522      [\\/]* | ?:[\\/]* ) . $cache_file;;
1523      *)                      . ./$cache_file;;
1524    esac
1525  fi
1526else
1527  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1528echo "$as_me: creating cache $cache_file" >&6;}
1529  >$cache_file
1530fi
1531
1532# Check that the precious variables saved in the cache have kept the same
1533# value.
1534ac_cache_corrupted=false
1535for ac_var in `(set) 2>&1 |
1536               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1537  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1538  eval ac_new_set=\$ac_env_${ac_var}_set
1539  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1540  eval ac_new_val="\$ac_env_${ac_var}_value"
1541  case $ac_old_set,$ac_new_set in
1542    set,)
1543      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1544echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1545      ac_cache_corrupted=: ;;
1546    ,set)
1547      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1548echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1549      ac_cache_corrupted=: ;;
1550    ,);;
1551    *)
1552      if test "x$ac_old_val" != "x$ac_new_val"; then
1553        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1554echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1555        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1556echo "$as_me:   former value:  $ac_old_val" >&2;}
1557        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1558echo "$as_me:   current value: $ac_new_val" >&2;}
1559        ac_cache_corrupted=:
1560      fi;;
1561  esac
1562  # Pass precious variables to config.status.
1563  if test "$ac_new_set" = set; then
1564    case $ac_new_val in
1565    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1566      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1567    *) ac_arg=$ac_var=$ac_new_val ;;
1568    esac
1569    case " $ac_configure_args " in
1570      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1571      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1572    esac
1573  fi
1574done
1575if $ac_cache_corrupted; then
1576  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1577echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1578  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1579echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1580   { (exit 1); exit 1; }; }
1581fi
1582
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618# List one file in the package so that the configure script can test
1619# whether the package is actually there
1620
1621
1622# Where should everything be installed by default?  Here, we want it
1623# to be installed directly in 'bin', 'lib', 'include' subdirectories
1624# of the directory where configure is run.  The default would be
1625# /usr/local.
1626
1627
1628
1629# As backup, we make sure we don't loose an FLIBS if it has been set
1630# by the user
1631save_FLIBS="$FLIBS"
1632
1633# A useful makefile conditional that is always false
1634
1635
1636if false; then
1637  ALWAYS_FALSE_TRUE=
1638  ALWAYS_FALSE_FALSE='#'
1639else
1640  ALWAYS_FALSE_TRUE='#'
1641  ALWAYS_FALSE_FALSE=
1642fi
1643
1644
1645# We set the following variable so that we know later in AC_COIN_FINALIZE
1646# that we are in a project main directory
1647coin_projectdir=yes
1648
1649# Set the project's version numbers
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define COINHSL_VERSION "$PACKAGE_VERSION"
1654_ACEOF
1655
1656
1657  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1658  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1659  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1660  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1661  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1662  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1663
1664cat >>confdefs.h <<_ACEOF
1665#define COINHSL_VERSION_MAJOR $coin_majorver
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define COINHSL_VERSION_MINOR $coin_minorver
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define COINHSL_VERSION_RELEASE $coin_releasever
1676_ACEOF
1677
1678
1679  # We use the following variable to have a string with the upper case
1680  # version of the project name
1681  COIN_PRJCT=COINHSL
1682
1683  # Set the project's SVN revision number. The complicated sed expression
1684  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1685  # as a single number.
1686  # Extract the first word of "svnversion", so it can be a program name with args.
1687set dummy svnversion; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_have_svnversion+set}" = set; then
1691  echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693  if test -n "$have_svnversion"; then
1694  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699  IFS=$as_save_IFS
1700  test -z "$as_dir" && as_dir=.
1701  for ac_exec_ext in '' $ac_executable_extensions; do
1702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703    ac_cv_prog_have_svnversion="yes"
1704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705    break 2
1706  fi
1707done
1708done
1709
1710  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1711fi
1712fi
1713have_svnversion=$ac_cv_prog_have_svnversion
1714if test -n "$have_svnversion"; then
1715  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1716echo "${ECHO_T}$have_svnversion" >&6
1717else
1718  echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722  if test "x$have_svnversion" = xyes; then
1723
1724    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1725    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1726      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1727
1728cat >>confdefs.h <<_ACEOF
1729#define COINHSL_SVN_REV $COINHSL_SVN_REV
1730_ACEOF
1731
1732    fi
1733  fi
1734
1735
1736
1737# Capture libtool library version, if given.
1738
1739
1740
1741
1742#############################################################################
1743#                         Standard build tool stuff                         #
1744#############################################################################
1745
1746# Get the system type
1747ac_aux_dir=
1748for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1749  if test -f $ac_dir/install-sh; then
1750    ac_aux_dir=$ac_dir
1751    ac_install_sh="$ac_aux_dir/install-sh -c"
1752    break
1753  elif test -f $ac_dir/install.sh; then
1754    ac_aux_dir=$ac_dir
1755    ac_install_sh="$ac_aux_dir/install.sh -c"
1756    break
1757  elif test -f $ac_dir/shtool; then
1758    ac_aux_dir=$ac_dir
1759    ac_install_sh="$ac_aux_dir/shtool install -c"
1760    break
1761  fi
1762done
1763if test -z "$ac_aux_dir"; then
1764  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1765echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1766   { (exit 1); exit 1; }; }
1767fi
1768ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1769ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1770ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1771
1772# Make sure we can run config.sub.
1773$ac_config_sub sun4 >/dev/null 2>&1 ||
1774  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1775echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1776   { (exit 1); exit 1; }; }
1777
1778echo "$as_me:$LINENO: checking build system type" >&5
1779echo $ECHO_N "checking build system type... $ECHO_C" >&6
1780if test "${ac_cv_build+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  ac_cv_build_alias=$build_alias
1784test -z "$ac_cv_build_alias" &&
1785  ac_cv_build_alias=`$ac_config_guess`
1786test -z "$ac_cv_build_alias" &&
1787  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1788echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1789   { (exit 1); exit 1; }; }
1790ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1791  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1792echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1793   { (exit 1); exit 1; }; }
1794
1795fi
1796echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1797echo "${ECHO_T}$ac_cv_build" >&6
1798build=$ac_cv_build
1799build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1800build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1801build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1802
1803
1804
1805# provide flag to allow compilation of a stand-alone shared library
1806# Check whether --enable-loadable-library or --disable-loadable-library was given.
1807if test "${enable_loadable_library+set}" = set; then
1808  enableval="$enable_loadable_library"
1809
1810fi;
1811
1812# Check if user wants to produce debugging code
1813
1814echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1815echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1816
1817# Check whether --enable-debug or --disable-debug was given.
1818if test "${enable_debug+set}" = set; then
1819  enableval="$enable_debug"
1820  case "${enableval}" in
1821   yes) coin_debug_compile=true
1822        if test "${enable_shared+set}" = set; then :; else
1823          enable_shared=no
1824        fi
1825        ;;
1826   no)  coin_debug_compile=false
1827        ;;
1828   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1829echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1830   { (exit 1); exit 1; }; }
1831        ;;
1832esac
1833else
1834  coin_debug_compile=false
1835fi;
1836
1837# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1838if test "${enable_debug_hsl+set}" = set; then
1839  enableval="$enable_debug_hsl"
1840  case "${enableval}" in
1841    yes) coin_debug_compile=true
1842         ;;
1843    no)  coin_debug_compile=false
1844         ;;
1845    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1846echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1847   { (exit 1); exit 1; }; }
1848         ;;
1849 esac
1850else
1851  :
1852fi;
1853
1854 # m4_ifvaln([HSL],
1855
1856if test $coin_debug_compile = true; then
1857  echo "$as_me:$LINENO: result: yes" >&5
1858echo "${ECHO_T}yes" >&6
1859else
1860  echo "$as_me:$LINENO: result: no" >&5
1861echo "${ECHO_T}no" >&6
1862fi
1863
1864
1865# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1866if test "${with_hsl_verbosity+set}" = set; then
1867  withval="$with_hsl_verbosity"
1868  if test "$withval" = yes; then
1869                withval=1
1870              fi
1871              coin_hsl_verbosity=$withval
1872else
1873  coin_hsl_verbosity=0
1874fi;
1875
1876cat >>confdefs.h <<_ACEOF
1877#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1878_ACEOF
1879
1880
1881
1882# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1883if test "${with_hsl_checklevel+set}" = set; then
1884  withval="$with_hsl_checklevel"
1885  if test "$withval" = yes; then
1886                withval=1
1887              fi
1888              coin_hsl_checklevel=$withval
1889else
1890  coin_hsl_checklevel=0
1891fi;
1892
1893cat >>confdefs.h <<_ACEOF
1894#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1895_ACEOF
1896
1897
1898 # m4_ifvaln([HSL],
1899
1900
1901
1902# Get the name of the C compiler (for a dummy program)
1903case $build in
1904  *-mingw*)
1905    if test "${LD+set}" = set; then :; else
1906      LD=link
1907    fi
1908    ;;
1909 esac
1910 case $enable_doscompile in
1911   msvc)
1912     if test "x${LD+set}" = xset; then :; else
1913       LD=link
1914     fi
1915     ;;
1916 esac
1917
1918
1919 # Check whether --enable-doscompile or --disable-doscompile was given.
1920if test "${enable_doscompile+set}" = set; then
1921  enableval="$enable_doscompile"
1922  if test "$enable_doscompile" != no; then
1923     case $build in
1924       *-cygwin* | *-mingw*) ;;
1925       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1926echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1927   { (exit 1); exit 1; }; } ;;
1928     esac
1929   fi
1930else
1931  enable_doscompile=no
1932fi;
1933 case "$enable_doscompile" in
1934   mingw)
1935     case $build in
1936       *-mingw*) enable_doscompile=no ;;
1937     esac
1938     ;;
1939   msvc|no) ;;
1940   yes) enable_doscompile=mingw ;;
1941   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1942                    Try configure --help=recursive." >&5
1943echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1944                    Try configure --help=recursive." >&2;}
1945   { (exit 1); exit 1; }; }
1946      ;;
1947  esac
1948  if test "$enable_doscompile" != no ; then
1949    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1950echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1951  fi
1952
1953
1954
1955
1956ac_ext=c
1957ac_cpp='$CPP $CPPFLAGS'
1958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961
1962
1963# For consistency, we set the C compiler to the same value of the C++
1964# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1965if test x"$CXX" != x; then
1966  case "$CXX" in
1967    clang* ) ;;
1968    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1969      if test x"$CC" = x; then
1970        CC="$CXX"
1971        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1972echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1973      fi
1974      ;;
1975  esac
1976fi
1977
1978
1979
1980
1981
1982
1983coin_has_cc=yes
1984
1985save_cflags="$CFLAGS"
1986
1987# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1988# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1989# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1990# compiler. In this case, put cc after gcc.
1991
1992case $build in
1993  *-cygwin* | *-mingw*)
1994             if test "$enable_doscompile" = msvc ; then
1995               comps="icl cl"
1996             else
1997               comps="gcc cl"
1998             fi ;;
1999  *-*-solaris*)
2000             # Extract the first word of "cc", so it can be a program name with args.
2001set dummy cc; ac_word=$2
2002echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  if test -n "$sol_cc_compiler"; then
2008  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2009else
2010  ac_prog_rejected=no
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  for ac_exec_ext in '' $ac_executable_extensions; do
2017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2019       ac_prog_rejected=yes
2020       continue
2021     fi
2022    ac_cv_prog_sol_cc_compiler="cc"
2023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024    break 2
2025  fi
2026done
2027done
2028
2029if test $ac_prog_rejected = yes; then
2030  # We found a bogon in the path, so make sure we never use it.
2031  set dummy $ac_cv_prog_sol_cc_compiler
2032  shift
2033  if test $# != 0; then
2034    # We chose a different compiler from the bogus one.
2035    # However, it has the same basename, so the bogon will be chosen
2036    # first if we set sol_cc_compiler to just the basename; use the full file name.
2037    shift
2038    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2039  fi
2040fi
2041fi
2042fi
2043sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2044if test -n "$sol_cc_compiler"; then
2045  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2046echo "${ECHO_T}$sol_cc_compiler" >&6
2047else
2048  echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6
2050fi
2051
2052             if test "$sol_cc_compiler" = "cc" ; then
2053               comps="cc xlc gcc pgcc icc"
2054             else
2055               comps="xlc gcc pgcc icc cc"
2056             fi
2057             ;;
2058  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2059  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2060  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2061esac
2062
2063# We delete the cached value, since the test might not have been
2064# performed with our choice of compilers earlier
2065$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2066# AC_MSG_NOTICE([C compiler candidates: $comps])
2067ac_ext=c
2068ac_cpp='$CPP $CPPFLAGS'
2069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072if test -n "$ac_tool_prefix"; then
2073  for ac_prog in $comps
2074  do
2075    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079if test "${ac_cv_prog_CC+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  if test -n "$CC"; then
2083  ac_cv_prog_CC="$CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  for ac_exec_ext in '' $ac_executable_extensions; do
2091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097done
2098
2099fi
2100fi
2101CC=$ac_cv_prog_CC
2102if test -n "$CC"; then
2103  echo "$as_me:$LINENO: result: $CC" >&5
2104echo "${ECHO_T}$CC" >&6
2105else
2106  echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
2110    test -n "$CC" && break
2111  done
2112fi
2113if test -z "$CC"; then
2114  ac_ct_CC=$CC
2115  for ac_prog in $comps
2116do
2117  # Extract the first word of "$ac_prog", so it can be a program name with args.
2118set dummy $ac_prog; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122  echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124  if test -n "$ac_ct_CC"; then
2125  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130  IFS=$as_save_IFS
2131  test -z "$as_dir" && as_dir=.
2132  for ac_exec_ext in '' $ac_executable_extensions; do
2133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134    ac_cv_prog_ac_ct_CC="$ac_prog"
2135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136    break 2
2137  fi
2138done
2139done
2140
2141fi
2142fi
2143ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144if test -n "$ac_ct_CC"; then
2145  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146echo "${ECHO_T}$ac_ct_CC" >&6
2147else
2148  echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152  test -n "$ac_ct_CC" && break
2153done
2154
2155  CC=$ac_ct_CC
2156fi
2157
2158
2159test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: no acceptable C compiler found in \$PATH
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164
2165# Provide some information about the compiler.
2166echo "$as_me:$LINENO:" \
2167     "checking for C compiler version" >&5
2168ac_compiler=`set X $ac_compile; echo $2`
2169{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2170  (eval $ac_compiler --version </dev/null >&5) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }
2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2175  (eval $ac_compiler -v </dev/null >&5) 2>&5
2176  ac_status=$?
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); }
2179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2180  (eval $ac_compiler -V </dev/null >&5) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }
2184
2185cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h.  */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h.  */
2191
2192int
2193main ()
2194{
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200ac_clean_files_save=$ac_clean_files
2201ac_clean_files="$ac_clean_files a.out a.exe b.out"
2202# Try to create an executable without -o first, disregard a.out.
2203# It will help us diagnose broken compilers, and finding out an intuition
2204# of exeext.
2205echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2206echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2207ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2208if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2209  (eval $ac_link_default) 2>&5
2210  ac_status=$?
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); }; then
2213  # Find the output, starting from the most likely.  This scheme is
2214# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2215# resort.
2216
2217# Be careful to initialize this variable, since it used to be cached.
2218# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2219ac_cv_exeext=
2220# b.out is created by i960 compilers.
2221for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2222do
2223  test -f "$ac_file" || continue
2224  case $ac_file in
2225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2226        ;;
2227    conftest.$ac_ext )
2228        # This is the source file.
2229        ;;
2230    [ab].out )
2231        # We found the default executable, but exeext='' is most
2232        # certainly right.
2233        break;;
2234    *.* )
2235        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236        # FIXME: I believe we export ac_cv_exeext for Libtool,
2237        # but it would be cool to find out if it's true.  Does anybody
2238        # maintain Libtool? --akim.
2239        export ac_cv_exeext
2240        break;;
2241    * )
2242        break;;
2243  esac
2244done
2245else
2246  echo "$as_me: failed program was:" >&5
2247sed 's/^/| /' conftest.$ac_ext >&5
2248
2249{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2250See \`config.log' for more details." >&5
2251echo "$as_me: error: C compiler cannot create executables
2252See \`config.log' for more details." >&2;}
2253   { (exit 77); exit 77; }; }
2254fi
2255
2256ac_exeext=$ac_cv_exeext
2257echo "$as_me:$LINENO: result: $ac_file" >&5
2258echo "${ECHO_T}$ac_file" >&6
2259
2260# Check the compiler produces executables we can run.  If not, either
2261# the compiler is broken, or we cross compile.
2262echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2264# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265# If not cross compiling, check that we can run a simple program.
2266if test "$cross_compiling" != yes; then
2267  if { ac_try='./$ac_file'
2268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; }; then
2273    cross_compiling=no
2274  else
2275    if test "$cross_compiling" = maybe; then
2276        cross_compiling=yes
2277    else
2278        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2279If you meant to cross compile, use \`--host'.
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: cannot run C compiled programs.
2282If you meant to cross compile, use \`--host'.
2283See \`config.log' for more details." >&2;}
2284   { (exit 1); exit 1; }; }
2285    fi
2286  fi
2287fi
2288echo "$as_me:$LINENO: result: yes" >&5
2289echo "${ECHO_T}yes" >&6
2290
2291rm -f a.out a.exe conftest$ac_cv_exeext b.out
2292ac_clean_files=$ac_clean_files_save
2293# Check the compiler produces executables we can run.  If not, either
2294# the compiler is broken, or we cross compile.
2295echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2296echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2297echo "$as_me:$LINENO: result: $cross_compiling" >&5
2298echo "${ECHO_T}$cross_compiling" >&6
2299
2300echo "$as_me:$LINENO: checking for suffix of executables" >&5
2301echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2303  (eval $ac_link) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; then
2307  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2308# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2309# work properly (i.e., refer to `conftest.exe'), while it won't with
2310# `rm'.
2311for ac_file in conftest.exe conftest conftest.*; do
2312  test -f "$ac_file" || continue
2313  case $ac_file in
2314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2315    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316          export ac_cv_exeext
2317          break;;
2318    * ) break;;
2319  esac
2320done
2321else
2322  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323See \`config.log' for more details." >&5
2324echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&2;}
2326   { (exit 1); exit 1; }; }
2327fi
2328
2329rm -f conftest$ac_cv_exeext
2330echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331echo "${ECHO_T}$ac_cv_exeext" >&6
2332
2333rm -f conftest.$ac_ext
2334EXEEXT=$ac_cv_exeext
2335ac_exeext=$EXEEXT
2336echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2338if test "${ac_cv_objext+set}" = set; then
2339  echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341  cat >conftest.$ac_ext <<_ACEOF
2342/* confdefs.h.  */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h.  */
2347
2348int
2349main ()
2350{
2351
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356rm -f conftest.o conftest.obj
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358  (eval $ac_compile) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; then
2362  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2363  case $ac_file in
2364    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2365    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366       break;;
2367  esac
2368done
2369else
2370  echo "$as_me: failed program was:" >&5
2371sed 's/^/| /' conftest.$ac_ext >&5
2372
2373{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376See \`config.log' for more details." >&2;}
2377   { (exit 1); exit 1; }; }
2378fi
2379
2380rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381fi
2382echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383echo "${ECHO_T}$ac_cv_objext" >&6
2384OBJEXT=$ac_cv_objext
2385ac_objext=$OBJEXT
2386echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2388if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397
2398int
2399main ()
2400{
2401#ifndef __GNUC__
2402       choke me
2403#endif
2404
2405  ;
2406  return 0;
2407}
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411  (eval $ac_compile) 2>conftest.er1
2412  ac_status=$?
2413  grep -v '^ *+' conftest.er1 >conftest.err
2414  rm -f conftest.er1
2415  cat conftest.err >&5
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); } &&
2418         { ac_try='test -z "$ac_c_werror_flag"
2419                         || test ! -s conftest.err'
2420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421  (eval $ac_try) 2>&5
2422  ac_status=$?
2423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424  (exit $ac_status); }; } &&
2425         { ac_try='test -s conftest.$ac_objext'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; }; then
2431  ac_compiler_gnu=yes
2432else
2433  echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436ac_compiler_gnu=no
2437fi
2438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439ac_cv_c_compiler_gnu=$ac_compiler_gnu
2440
2441fi
2442echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2443echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2444GCC=`test $ac_compiler_gnu = yes && echo yes`
2445ac_test_CFLAGS=${CFLAGS+set}
2446ac_save_CFLAGS=$CFLAGS
2447CFLAGS="-g"
2448echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2449echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2450if test "${ac_cv_prog_cc_g+set}" = set; then
2451  echo $ECHO_N "(cached) $ECHO_C" >&6
2452else
2453  cat >conftest.$ac_ext <<_ACEOF
2454/* confdefs.h.  */
2455_ACEOF
2456cat confdefs.h >>conftest.$ac_ext
2457cat >>conftest.$ac_ext <<_ACEOF
2458/* end confdefs.h.  */
2459
2460int
2461main ()
2462{
2463
2464  ;
2465  return 0;
2466}
2467_ACEOF
2468rm -f conftest.$ac_objext
2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470  (eval $ac_compile) 2>conftest.er1
2471  ac_status=$?
2472  grep -v '^ *+' conftest.er1 >conftest.err
2473  rm -f conftest.er1
2474  cat conftest.err >&5
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); } &&
2477         { ac_try='test -z "$ac_c_werror_flag"
2478                         || test ! -s conftest.err'
2479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480  (eval $ac_try) 2>&5
2481  ac_status=$?
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); }; } &&
2484         { ac_try='test -s conftest.$ac_objext'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; }; then
2490  ac_cv_prog_cc_g=yes
2491else
2492  echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495ac_cv_prog_cc_g=no
2496fi
2497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2500echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2501if test "$ac_test_CFLAGS" = set; then
2502  CFLAGS=$ac_save_CFLAGS
2503elif test $ac_cv_prog_cc_g = yes; then
2504  if test "$GCC" = yes; then
2505    CFLAGS="-g -O2"
2506  else
2507    CFLAGS="-g"
2508  fi
2509else
2510  if test "$GCC" = yes; then
2511    CFLAGS="-O2"
2512  else
2513    CFLAGS=
2514  fi
2515fi
2516echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2517echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2518if test "${ac_cv_prog_cc_stdc+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  ac_cv_prog_cc_stdc=no
2522ac_save_CC=$CC
2523cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529#include <stdarg.h>
2530#include <stdio.h>
2531#include <sys/types.h>
2532#include <sys/stat.h>
2533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2534struct buf { int x; };
2535FILE * (*rcsopen) (struct buf *, struct stat *, int);
2536static char *e (p, i)
2537     char **p;
2538     int i;
2539{
2540  return p[i];
2541}
2542static char *f (char * (*g) (char **, int), char **p, ...)
2543{
2544  char *s;
2545  va_list v;
2546  va_start (v,p);
2547  s = g (p, va_arg (v,int));
2548  va_end (v);
2549  return s;
2550}
2551
2552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2553   function prototypes and stuff, but not '\xHH' hex character constants.
2554   These don't provoke an error unfortunately, instead are silently treated
2555   as 'x'.  The following induces an error, until -std1 is added to get
2556   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2557   array size at least.  It's necessary to write '\x00'==0 to get something
2558   that's true only with -std1.  */
2559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2560
2561int test (int i, double x);
2562struct s1 {int (*f) (int a);};
2563struct s2 {int (*f) (double a);};
2564int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2565int argc;
2566char **argv;
2567int
2568main ()
2569{
2570return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575# Don't try gcc -ansi; that turns off useful extensions and
2576# breaks some systems' header files.
2577# AIX                   -qlanglvl=ansi
2578# Ultrix and OSF/1      -std1
2579# HP-UX 10.20 and later -Ae
2580# HP-UX older versions  -Aa -D_HPUX_SOURCE
2581# SVR4                  -Xc -D__EXTENSIONS__
2582for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2583do
2584  CC="$ac_save_CC $ac_arg"
2585  rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587  (eval $ac_compile) 2>conftest.er1
2588  ac_status=$?
2589  grep -v '^ *+' conftest.er1 >conftest.err
2590  rm -f conftest.er1
2591  cat conftest.err >&5
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); } &&
2594         { ac_try='test -z "$ac_c_werror_flag"
2595                         || test ! -s conftest.err'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; } &&
2601         { ac_try='test -s conftest.$ac_objext'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; }; then
2607  ac_cv_prog_cc_stdc=$ac_arg
2608break
2609else
2610  echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613fi
2614rm -f conftest.err conftest.$ac_objext
2615done
2616rm -f conftest.$ac_ext conftest.$ac_objext
2617CC=$ac_save_CC
2618
2619fi
2620
2621case "x$ac_cv_prog_cc_stdc" in
2622  x|xno)
2623    echo "$as_me:$LINENO: result: none needed" >&5
2624echo "${ECHO_T}none needed" >&6 ;;
2625  *)
2626    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2627echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2628    CC="$CC $ac_cv_prog_cc_stdc" ;;
2629esac
2630
2631# Some people use a C++ compiler to compile C.  Since we use `exit',
2632# in C++ we need to declare it.  In case someone uses the same compiler
2633# for both compiling C and C++ we need to have the C++ compiler decide
2634# the declaration of exit, since it's the most demanding environment.
2635cat >conftest.$ac_ext <<_ACEOF
2636#ifndef __cplusplus
2637  choke me
2638#endif
2639_ACEOF
2640rm -f conftest.$ac_objext
2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642  (eval $ac_compile) 2>conftest.er1
2643  ac_status=$?
2644  grep -v '^ *+' conftest.er1 >conftest.err
2645  rm -f conftest.er1
2646  cat conftest.err >&5
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); } &&
2649         { ac_try='test -z "$ac_c_werror_flag"
2650                         || test ! -s conftest.err'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; } &&
2656         { ac_try='test -s conftest.$ac_objext'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; }; then
2662  for ac_declaration in \
2663   '' \
2664   'extern "C" void std::exit (int) throw (); using std::exit;' \
2665   'extern "C" void std::exit (int); using std::exit;' \
2666   'extern "C" void exit (int) throw ();' \
2667   'extern "C" void exit (int);' \
2668   'void exit (int);'
2669do
2670  cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676$ac_declaration
2677#include <stdlib.h>
2678int
2679main ()
2680{
2681exit (42);
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695         { ac_try='test -z "$ac_c_werror_flag"
2696                         || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702         { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  :
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713continue
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716  cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722$ac_declaration
2723int
2724main ()
2725{
2726exit (42);
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733  (eval $ac_compile) 2>conftest.er1
2734  ac_status=$?
2735  grep -v '^ *+' conftest.er1 >conftest.err
2736  rm -f conftest.er1
2737  cat conftest.err >&5
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); } &&
2740         { ac_try='test -z "$ac_c_werror_flag"
2741                         || test ! -s conftest.err'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; } &&
2747         { ac_try='test -s conftest.$ac_objext'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; }; then
2753  break
2754else
2755  echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758fi
2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760done
2761rm -f conftest*
2762if test -n "$ac_declaration"; then
2763  echo '#ifdef __cplusplus' >>confdefs.h
2764  echo $ac_declaration      >>confdefs.h
2765  echo '#endif'             >>confdefs.h
2766fi
2767
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772fi
2773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780if test -z "$CC" ; then
2781  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2782echo "$as_me: error: Failed to find a C compiler!" >&2;}
2783   { (exit 1); exit 1; }; }
2784fi
2785# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2786case "$CC" in
2787  clang* ) ;;
2788  cl* | */cl* | CL* | */CL* )
2789    if test "$ac_cv_prog_cc_g" = yes ; then
2790      ac_cv_prog_cc_g=no
2791      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2792echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2793    fi ;;
2794  * )
2795    CYGPATH_W=echo
2796    ;;
2797esac
2798CFLAGS="$save_cflags"
2799
2800# add automake conditional so we can recognize cl compiler in makefile
2801coin_cc_is_cl=false
2802case "$CC" in
2803  clang* ) ;;
2804  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2805    coin_cc_is_cl=true
2806    ;;
2807esac
2808
2809
2810if test $coin_cc_is_cl = true; then
2811  COIN_CC_IS_CL_TRUE=
2812  COIN_CC_IS_CL_FALSE='#'
2813else
2814  COIN_CC_IS_CL_TRUE='#'
2815  COIN_CC_IS_CL_FALSE=
2816fi
2817
2818
2819# Check if a project specific CFLAGS variable has been set
2820if test x$COIN_PRJCT != x; then
2821  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2822  if test x$coin_tmp = xset; then
2823    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2824  fi
2825fi
2826
2827if test x"$CFLAGS" = x; then
2828
2829  coin_add_cflags=
2830  coin_opt_cflags=
2831  coin_dbg_cflags=
2832  coin_warn_cflags=
2833
2834  if test "$GCC" = "yes"; then
2835    case "$CC" in
2836      icc* | */icc*)
2837        ;;
2838      *)
2839        coin_opt_cflags="-O3"
2840        coin_add_cflags="-pipe"
2841        coin_dbg_cflags="-g -O0"
2842        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2843        case $build in
2844          *-darwin*)
2845            ;;
2846          *)
2847            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2848            ;;
2849        esac
2850        case $enable_doscompile in
2851          mingw)
2852            CFLAGS="-mno-cygwin"
2853            cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h.  */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h.  */
2859
2860int
2861main ()
2862{
2863int i=0; i++;
2864  ;
2865  return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext conftest$ac_exeext
2869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870  (eval $ac_link) 2>conftest.er1
2871  ac_status=$?
2872  grep -v '^ *+' conftest.er1 >conftest.err
2873  rm -f conftest.er1
2874  cat conftest.err >&5
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); } &&
2877         { ac_try='test -z "$ac_c_werror_flag"
2878                         || test ! -s conftest.err'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; } &&
2884         { ac_try='test -s conftest$ac_exeext'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; }; then
2890  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2891else
2892  echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895fi
2896rm -f conftest.err conftest.$ac_objext \
2897      conftest$ac_exeext conftest.$ac_ext
2898            CFLAGS=
2899          ;;
2900        esac
2901    esac
2902  fi
2903  if test -z "$coin_opt_cflags"; then
2904    case $build in
2905      *-cygwin* | *-mingw*)
2906        case "$CC" in
2907          clang* ) ;;
2908          cl* | */cl* | CL* | */CL*)
2909            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2910              coin_opt_cflags='-MD -O2'
2911              coin_dbg_cflags='-MDd'
2912            else
2913              coin_opt_cflags='-MT -O2'
2914              coin_dbg_cflags='-MTd'
2915            fi
2916            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2917            ;;
2918          icl* | */icl* | ICL* | */ICL*)
2919            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2920              coin_opt_cflags='-MD -Ox'
2921              coin_dbg_cflags='-MDd -debug'
2922            else
2923              coin_opt_cflags='-MT -Ox'
2924              coin_dbg_cflags='-MTd -debug'
2925            fi
2926            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2927            ;;
2928        esac
2929        ;;
2930      *-linux-*)
2931        case "$CC" in
2932          icc* | */icc*)
2933            coin_opt_cflags="-O3 -ip -mp1"
2934            coin_add_cflags=""
2935            coin_dbg_cflags="-g"
2936            # Check if -i_dynamic is necessary (for new glibc library)
2937            CFLAGS=
2938            cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948int i=0; i++;
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955  (eval $ac_link) 2>conftest.er1
2956  ac_status=$?
2957  grep -v '^ *+' conftest.er1 >conftest.err
2958  rm -f conftest.er1
2959  cat conftest.err >&5
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); } &&
2962         { ac_try='test -z "$ac_c_werror_flag"
2963                         || test ! -s conftest.err'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; } &&
2969         { ac_try='test -s conftest$ac_exeext'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; }; then
2975  :
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980coin_add_cflags="-i_dynamic $coin_add_cflags"
2981fi
2982rm -f conftest.err conftest.$ac_objext \
2983      conftest$ac_exeext conftest.$ac_ext
2984            ;;
2985          pgcc* | */pgcc*)
2986            coin_opt_cflags="-fast"
2987            coin_add_cflags="-Kieee -pc 64"
2988            coin_dbg_cflags="-g"
2989            ;;
2990        esac
2991        ;;
2992      *-ibm-*)
2993        case "$CC" in
2994          xlc* | */xlc* | mpxlc* | */mpxlc*)
2995            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2996            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2997            coin_dbg_cflags="-g"
2998          ;;
2999        esac
3000        ;;
3001      *-hp-*)
3002        coin_opt_cflags="-O"
3003        coin_add_cflags="-Ae"
3004        coin_dbg_cflags="-g"
3005        ;;
3006      *-*-solaris*)
3007        coin_opt_cflags="-xO4"
3008        coin_dbg_cflags="-g"
3009        ;;
3010      *-sgi-*)
3011        coin_opt_cflags="-O -OPT:Olimit=0"
3012        coin_dbg_cflags="-g"
3013        ;;
3014    esac
3015  fi
3016
3017  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3018    coin_dbg_cflags="-g"
3019  fi
3020
3021  if test -z "$coin_opt_cflags"; then
3022    # Try if -O option works if nothing else is set
3023    CFLAGS="-O"
3024    cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h.  */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h.  */
3030
3031int
3032main ()
3033{
3034int i=0; i++;
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext conftest$ac_exeext
3040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3041  (eval $ac_link) 2>conftest.er1
3042  ac_status=$?
3043  grep -v '^ *+' conftest.er1 >conftest.err
3044  rm -f conftest.er1
3045  cat conftest.err >&5
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048         { ac_try='test -z "$ac_c_werror_flag"
3049                         || test ! -s conftest.err'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; } &&
3055         { ac_try='test -s conftest$ac_exeext'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; }; then
3061  coin_opt_cflags="-O"
3062else
3063  echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069  fi
3070
3071  # if PM doesn't want the warning messages, take them out
3072  if test x"$coin_skip_warn_cflags" = xyes; then
3073    coin_warn_cflags=
3074  fi
3075
3076  if test x${DBG_CFLAGS+set} != xset; then
3077    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3078  fi
3079  if test x${OPT_CFLAGS+set} != xset; then
3080    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3081  fi
3082
3083  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3084  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3085
3086  if test "$coin_debug_compile" = "true"; then
3087    CFLAGS="$DBG_CFLAGS"
3088  else
3089    CFLAGS="$OPT_CFLAGS"
3090  fi
3091else
3092  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3093  if test x${DBG_CFLAGS+set} != xset; then
3094    DBG_CFLAGS="$CFLAGS"
3095  fi
3096  if test x${OPT_CFLAGS+set} != xset; then
3097    OPT_CFLAGS="$CFLAGS"
3098  fi
3099fi
3100
3101# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3102
3103case "$CFLAGS" in
3104  *-mno-cygwin*)
3105    if test x${CPPFLAGS+set} != xset ; then
3106      CPPFLAGS="-mno-cygwin"
3107    else
3108      case "$CPPFLAGS" in
3109        *-mno-cygwin*)
3110          ;;
3111        *)
3112          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3113          ;;
3114      esac
3115    fi ;;
3116esac
3117
3118# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3119if test x$COIN_PRJCT != x; then
3120  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3121fi
3122
3123# Try if CFLAGS works
3124save_CFLAGS="$CFLAGS"
3125cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135int i=0; i++;
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext conftest$ac_exeext
3141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142  (eval $ac_link) 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -z "$ac_c_werror_flag"
3150                         || test ! -s conftest.err'
3151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152  (eval $ac_try) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; } &&
3156         { ac_try='test -s conftest$ac_exeext'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  :
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167CFLAGS=
3168fi
3169rm -f conftest.err conftest.$ac_objext \
3170      conftest$ac_exeext conftest.$ac_ext
3171if test -z "$CFLAGS"; then
3172  { 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
3173echo "$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;}
3174  CFLAGS='-O'
3175  cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185int i=0; i++;
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext conftest$ac_exeext
3191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3192  (eval $ac_link) 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199         { ac_try='test -z "$ac_c_werror_flag"
3200                         || test ! -s conftest.err'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; } &&
3206         { ac_try='test -s conftest$ac_exeext'
3207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208  (eval $ac_try) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; }; then
3212  :
3213else
3214  echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217CFLAGS=
3218fi
3219rm -f conftest.err conftest.$ac_objext \
3220      conftest$ac_exeext conftest.$ac_ext
3221  if test -z "$CFLAGS"; then
3222    { 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
3223echo "$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;}
3224  fi
3225fi
3226
3227{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3228echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3229
3230
3231if test x"$MPICC" = x; then :; else
3232  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3233echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3234  CC="$MPICC"
3235fi
3236
3237# Correct the LD variable if we are using the MS or Intel-windows compiler
3238case "$CC" in
3239  clang* ) ;;
3240  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3241    case $build in
3242  *-mingw*)
3243    if test "${LD+set}" = set; then :; else
3244      LD=link
3245    fi
3246    ;;
3247 esac
3248 case $enable_doscompile in
3249   msvc)
3250     if test "x${LD+set}" = xset; then :; else
3251       LD=link
3252     fi
3253     ;;
3254 esac
3255
3256    ;;
3257esac
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265
3266
3267# Get the name of the Fortran compiler and appropriate compiler options
3268case $build in
3269  *-cygwin* | *-mingw*)
3270     if test "$enable_doscompile" = msvc ; then
3271       coin_f77_comps="ifort fl32 compile_f2c"
3272     else
3273       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3274     fi ;;
3275  *-*-solaris*)
3276     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3277  *-linux-gnu*)
3278     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3279  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3280 esac
3281
3282
3283
3284
3285
3286
3287ac_ext=f
3288ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3289ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3291
3292
3293
3294
3295
3296
3297coin_has_f77=yes
3298
3299save_fflags="$FFLAGS"
3300
3301# We delete the cached value, since the test might not have been
3302# performed with our choice of compilers earlier
3303$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3304
3305# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3306# coin_f77_comps to see if there's a program that matches one of the names.
3307# If there's no such program, F77 = unavailable. If we match the name,
3308# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3309# compiler.
3310# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3311
3312
3313{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3314echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3315if test -n "$ac_tool_prefix"; then
3316  for ac_prog in $coin_f77_comps
3317  do
3318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320echo "$as_me:$LINENO: checking for $ac_word" >&5
3321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322if test "${ac_cv_prog_F77+set}" = set; then
3323  echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325  if test -n "$F77"; then
3326  ac_cv_prog_F77="$F77" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  test -z "$as_dir" && as_dir=.
3333  for ac_exec_ext in '' $ac_executable_extensions; do
3334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340done
3341
3342fi
3343fi
3344F77=$ac_cv_prog_F77
3345if test -n "$F77"; then
3346  echo "$as_me:$LINENO: result: $F77" >&5
3347echo "${ECHO_T}$F77" >&6
3348else
3349  echo "$as_me:$LINENO: result: no" >&5
3350echo "${ECHO_T}no" >&6
3351fi
3352
3353    test -n "$F77" && break
3354  done
3355fi
3356if test -z "$F77"; then
3357  ac_ct_F77=$F77
3358  for ac_prog in $coin_f77_comps
3359do
3360  # Extract the first word of "$ac_prog", so it can be a program name with args.
3361set dummy $ac_prog; ac_word=$2
3362echo "$as_me:$LINENO: checking for $ac_word" >&5
3363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3365  echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367  if test -n "$ac_ct_F77"; then
3368  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375  for ac_exec_ext in '' $ac_executable_extensions; do
3376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377    ac_cv_prog_ac_ct_F77="$ac_prog"
3378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382done
3383
3384fi
3385fi
3386ac_ct_F77=$ac_cv_prog_ac_ct_F77
3387if test -n "$ac_ct_F77"; then
3388  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3389echo "${ECHO_T}$ac_ct_F77" >&6
3390else
3391  echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393fi
3394
3395  test -n "$ac_ct_F77" && break
3396done
3397test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3398
3399  F77=$ac_ct_F77
3400fi
3401
3402
3403if test "$F77" != "unavailable" ; then
3404  ac_ext=f
3405ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3406ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3408if test -n "$ac_tool_prefix"; then
3409  for ac_prog in $coin_f77_comps
3410  do
3411    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413echo "$as_me:$LINENO: checking for $ac_word" >&5
3414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3415if test "${ac_cv_prog_F77+set}" = set; then
3416  echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418  if test -n "$F77"; then
3419  ac_cv_prog_F77="$F77" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424  IFS=$as_save_IFS
3425  test -z "$as_dir" && as_dir=.
3426  for ac_exec_ext in '' $ac_executable_extensions; do
3427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433done
3434
3435fi
3436fi
3437F77=$ac_cv_prog_F77
3438if test -n "$F77"; then
3439  echo "$as_me:$LINENO: result: $F77" >&5
3440echo "${ECHO_T}$F77" >&6
3441else
3442  echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444fi
3445
3446    test -n "$F77" && break
3447  done
3448fi
3449if test -z "$F77"; then
3450  ac_ct_F77=$F77
3451  for ac_prog in $coin_f77_comps
3452do
3453  # Extract the first word of "$ac_prog", so it can be a program name with args.
3454set dummy $ac_prog; ac_word=$2
3455echo "$as_me:$LINENO: checking for $ac_word" >&5
3456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3458  echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460  if test -n "$ac_ct_F77"; then
3461  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468  for ac_exec_ext in '' $ac_executable_extensions; do
3469  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470    ac_cv_prog_ac_ct_F77="$ac_prog"
3471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475done
3476
3477fi
3478fi
3479ac_ct_F77=$ac_cv_prog_ac_ct_F77
3480if test -n "$ac_ct_F77"; then
3481  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3482echo "${ECHO_T}$ac_ct_F77" >&6
3483else
3484  echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
3486fi
3487
3488  test -n "$ac_ct_F77" && break
3489done
3490
3491  F77=$ac_ct_F77
3492fi
3493
3494
3495# Provide some information about the compiler.
3496echo "$as_me:3496:" \
3497     "checking for Fortran 77 compiler version" >&5
3498ac_compiler=`set X $ac_compile; echo $2`
3499{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3500  (eval $ac_compiler --version </dev/null >&5) 2>&5
3501  ac_status=$?
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); }
3504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3505  (eval $ac_compiler -v </dev/null >&5) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }
3509{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3510  (eval $ac_compiler -V </dev/null >&5) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }
3514rm -f a.out
3515
3516# If we don't use `.F' as extension, the preprocessor is not run on the
3517# input file.  (Note that this only needs to work for GNU compilers.)
3518ac_save_ext=$ac_ext
3519ac_ext=F
3520echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3521echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3522if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  cat >conftest.$ac_ext <<_ACEOF
3526      program main
3527#ifndef __GNUC__
3528       choke me
3529#endif
3530
3531      end
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535  (eval $ac_compile) 2>conftest.er1
3536  ac_status=$?
3537  grep -v '^ *+' conftest.er1 >conftest.err
3538  rm -f conftest.er1
3539  cat conftest.err >&5
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); } &&
3542         { ac_try='test -z "$ac_f77_werror_flag"
3543                         || test ! -s conftest.err'
3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545  (eval $ac_try) 2>&5
3546  ac_status=$?
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); }; } &&
3549         { ac_try='test -s conftest.$ac_objext'
3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551  (eval $ac_try) 2>&5
3552  ac_status=$?
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); }; }; then
3555  ac_compiler_gnu=yes
3556else
3557  echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560ac_compiler_gnu=no
3561fi
3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3564
3565fi
3566echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3567echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3568ac_ext=$ac_save_ext
3569ac_test_FFLAGS=${FFLAGS+set}
3570ac_save_FFLAGS=$FFLAGS
3571FFLAGS=
3572echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3573echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3574if test "${ac_cv_prog_f77_g+set}" = set; then
3575  echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577  FFLAGS=-g
3578cat >conftest.$ac_ext <<_ACEOF
3579      program main
3580
3581      end
3582_ACEOF
3583rm -f conftest.$ac_objext
3584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3585  (eval $ac_compile) 2>conftest.er1
3586  ac_status=$?
3587  grep -v '^ *+' conftest.er1 >conftest.err
3588  rm -f conftest.er1
3589  cat conftest.err >&5
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); } &&
3592         { ac_try='test -z "$ac_f77_werror_flag"
3593                         || test ! -s conftest.err'
3594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595  (eval $ac_try) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); }; } &&
3599         { ac_try='test -s conftest.$ac_objext'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; }; then
3605  ac_cv_prog_f77_g=yes
3606else
3607  echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610ac_cv_prog_f77_g=no
3611fi
3612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613
3614fi
3615echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3616echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3617if test "$ac_test_FFLAGS" = set; then
3618  FFLAGS=$ac_save_FFLAGS
3619elif test $ac_cv_prog_f77_g = yes; then
3620  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3621    FFLAGS="-g -O2"
3622  else
3623    FFLAGS="-g"
3624  fi
3625else
3626  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3627    FFLAGS="-O2"
3628  else
3629    FFLAGS=
3630  fi
3631fi
3632
3633G77=`test $ac_compiler_gnu = yes && echo yes`
3634ac_ext=f
3635ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3636ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3638
3639else
3640  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3641echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3642fi
3643
3644FFLAGS="$save_fflags"
3645
3646# Check if a project specific FFLAGS variable has been set
3647if test x$COIN_PRJCT != x; then
3648  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3649  if test x$coin_tmp = xset; then
3650    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3651  fi
3652fi
3653
3654if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3655
3656  coin_add_fflags=
3657  coin_opt_fflags=
3658  coin_dbg_fflags=
3659  coin_warn_fflags=
3660
3661  if test "$G77" = "yes"; then
3662    coin_opt_fflags="-O3"
3663    coin_add_fflags="-pipe"
3664    coin_dbg_fflags="-g -O0"
3665    case $enable_doscompile in
3666      mingw)
3667        FFLAGS="-mno-cygwin"
3668        cat >conftest.$ac_ext <<_ACEOF
3669      program main
3670      write(*,*) 'Hello world'
3671      end
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675  (eval $ac_link) 2>conftest.er1
3676  ac_status=$?
3677  grep -v '^ *+' conftest.er1 >conftest.err
3678  rm -f conftest.er1
3679  cat conftest.err >&5
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); } &&
3682         { ac_try='test -z "$ac_f77_werror_flag"
3683                         || test ! -s conftest.err'
3684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685  (eval $ac_try) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; } &&
3689         { ac_try='test -s conftest$ac_exeext'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; }; then
3695  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700fi
3701rm -f conftest.err conftest.$ac_objext \
3702      conftest$ac_exeext conftest.$ac_ext
3703        FFLAGS=
3704      ;;
3705    esac
3706  else
3707    case $build in
3708      *-cygwin* | *-mingw*)
3709        case $F77 in
3710          ifort* | */ifort* | IFORT* | */IFORT* )
3711            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3712              coin_opt_fflags='-MD -O3'
3713              coin_dbg_fflags='-MDd -debug'
3714            else
3715              coin_opt_fflags='-MT -O3'
3716              coin_dbg_fflags='-MTd -debug'
3717            fi
3718            coin_add_fflags='-fpp -nologo'
3719          ;;
3720          compile_f2c*)
3721            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3722              coin_opt_fflags='-MD -O2'
3723              coin_dbg_fflags='-MDd'
3724            else
3725              coin_opt_fflags='-MT -O2'
3726              coin_dbg_fflags='-MTd'
3727            fi
3728            coin_add_fflags='-nologo -wd4996'
3729          ;;
3730        esac
3731        ;;
3732      *-linux-*)
3733        case $F77 in
3734          ifc* | */ifc* | ifort* | */ifort*)
3735            coin_opt_fflags="-O3 -ip"
3736            coin_add_fflags="-cm -w90 -w95"
3737            coin_dbg_fflags="-g -CA -CB -CS"
3738            # Check if -i_dynamic is necessary (for new glibc library)
3739            FFLAGS=
3740            cat >conftest.$ac_ext <<_ACEOF
3741      program main
3742      write(*,*) 'Hello world'
3743      end
3744_ACEOF
3745rm -f conftest.$ac_objext conftest$ac_exeext
3746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3747  (eval $ac_link) 2>conftest.er1
3748  ac_status=$?
3749  grep -v '^ *+' conftest.er1 >conftest.err
3750  rm -f conftest.er1
3751  cat conftest.err >&5
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); } &&
3754         { ac_try='test -z "$ac_f77_werror_flag"
3755                         || test ! -s conftest.err'
3756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757  (eval $ac_try) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }; } &&
3761         { ac_try='test -s conftest$ac_exeext'
3762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763  (eval $ac_try) 2>&5
3764  ac_status=$?
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); }; }; then
3767  :
3768else
3769  echo "$as_me: failed program was:" >&5
3770sed 's/^/| /' conftest.$ac_ext >&5
3771
3772coin_add_fflags="-i_dynamic $coin_add_fflags"
3773fi
3774rm -f conftest.err conftest.$ac_objext \
3775      conftest$ac_exeext conftest.$ac_ext
3776            ;;
3777          pgf77* | */pgf77* | pgf90* | */pgf90*)
3778            coin_opt_fflags="-fast"
3779            coin_add_fflags="-Kieee -pc 64"
3780            coin_dbg_fflags="-g"
3781          ;;
3782        esac
3783        ;;
3784      *-ibm-*)
3785        case "$F77" in
3786          xlf* | */xlf* | mpxlf* | */mpxlf* )
3787            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3788            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3789            coin_dbg_fflags="-g -C"
3790            ;;
3791        esac
3792        ;;
3793      *-hp-*)
3794        coin_opt_fflags="+O3"
3795        coin_add_fflags="+U77"
3796        coin_dbg_fflags="-C -g"
3797        ;;
3798      *-*-solaris*)
3799        coin_opt_fflags="-O4"
3800        coin_dbg_fflags="-g"
3801        ;;
3802      *-sgi-*)
3803        coin_opt_fflags="-O5 -OPT:Olimit=0"
3804        coin_dbg_fflags="-g"
3805        ;;
3806    esac
3807  fi
3808
3809  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3810    coin_dbg_fflags="-g"
3811  fi
3812
3813  if test -z "$coin_opt_fflags"; then
3814    # Try if -O option works if nothing else is set
3815    FFLAGS=-O
3816    cat >conftest.$ac_ext <<_ACEOF
3817      program main
3818      integer i
3819      end
3820_ACEOF
3821rm -f conftest.$ac_objext conftest$ac_exeext
3822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3823  (eval $ac_link) 2>conftest.er1
3824  ac_status=$?
3825  grep -v '^ *+' conftest.er1 >conftest.err
3826  rm -f conftest.er1
3827  cat conftest.err >&5
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); } &&
3830         { ac_try='test -z "$ac_f77_werror_flag"
3831                         || test ! -s conftest.err'
3832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833  (eval $ac_try) 2>&5
3834  ac_status=$?
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); }; } &&
3837         { ac_try='test -s conftest$ac_exeext'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; }; then
3843  coin_opt_fflags="-O"
3844else
3845  echo "$as_me: failed program was:" >&5
3846sed 's/^/| /' conftest.$ac_ext >&5
3847
3848fi
3849rm -f conftest.err conftest.$ac_objext \
3850      conftest$ac_exeext conftest.$ac_ext
3851  fi
3852
3853  # if PM doesn't want the warning messages, take them out
3854  if test x"$coin_skip_warn_fflags" = xyes; then
3855    coin_warn_fflags=
3856  fi
3857
3858  if test x${DBG_FFLAGS+set} != xset; then
3859    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3860  fi
3861  if test x${OPT_FFLAGS+set} != xset; then
3862    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3863  fi
3864
3865  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3866  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3867
3868  if test "$coin_debug_compile" = "true"; then
3869    FFLAGS="$DBG_FFLAGS"
3870  else
3871    FFLAGS="$OPT_FFLAGS"
3872  fi
3873else
3874  FFLAGS="$FFLAGS $ADD_FFLAGS"
3875  if test x${DBG_FFLAGS+set} != xset; then
3876    DBG_FFLAGS="$FFLAGS"
3877  fi
3878  if test x${OPT_FFLAGS+set} != xset; then
3879    OPT_FFLAGS="$FFLAGS"
3880  fi
3881fi
3882
3883# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3884case "$FFLAGS" in
3885  *-mno-cygwin*)
3886    if test x${CPPFLAGS+set} != xset ; then
3887      CPPFLAGS="-mno-cygwin"
3888    else
3889      case "$CPPFLAGS" in
3890        *-mno-cygwin*)
3891          ;;
3892        *)
3893          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3894          ;;
3895      esac
3896    fi ;;
3897esac
3898
3899# Try if FFLAGS works
3900if test "$F77" != "unavailable" ; then
3901  cat >conftest.$ac_ext <<_ACEOF
3902      program main
3903      integer i
3904      end
3905_ACEOF
3906rm -f conftest.$ac_objext conftest$ac_exeext
3907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908  (eval $ac_link) 2>conftest.er1
3909  ac_status=$?
3910  grep -v '^ *+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); } &&
3915         { ac_try='test -z "$ac_f77_werror_flag"
3916                         || test ! -s conftest.err'
3917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918  (eval $ac_try) 2>&5
3919  ac_status=$?
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); }; } &&
3922         { ac_try='test -s conftest$ac_exeext'
3923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924  (eval $ac_try) 2>&5
3925  ac_status=$?
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); }; }; then
3928  :
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933FFLAGS=
3934fi
3935rm -f conftest.err conftest.$ac_objext \
3936      conftest$ac_exeext conftest.$ac_ext
3937  if test -z "$FFLAGS"; then
3938    { 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
3939echo "$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;}
3940    FFLAGS='-O'
3941    cat >conftest.$ac_ext <<_ACEOF
3942      program main
3943      integer i
3944      end
3945_ACEOF
3946rm -f conftest.$ac_objext conftest$ac_exeext
3947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948  (eval $ac_link) 2>conftest.er1
3949  ac_status=$?
3950  grep -v '^ *+' conftest.er1 >conftest.err
3951  rm -f conftest.er1
3952  cat conftest.err >&5
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); } &&
3955         { ac_try='test -z "$ac_f77_werror_flag"
3956                         || test ! -s conftest.err'
3957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958  (eval $ac_try) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; } &&
3962         { ac_try='test -s conftest$ac_exeext'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; }; then
3968  :
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973FFLAGS=
3974fi
3975rm -f conftest.err conftest.$ac_objext \
3976      conftest$ac_exeext conftest.$ac_ext
3977    if test -z "$FFLAGS"; then
3978      { 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
3979echo "$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;}
3980    fi
3981  fi
3982fi
3983
3984{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3985echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3986
3987
3988if test x"$MPIF77" = x; then :; else
3989  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3990echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3991  F77="$MPIF77"
3992fi
3993
3994# correct the LD variable if we use the intel fortran compiler in windows
3995case "$F77" in
3996  ifort* | */ifort* | IFORT* | */IFORT*)
3997    case $build in
3998  *-mingw*)
3999    if test "${LD+set}" = set; then :; else
4000      LD=link
4001    fi
4002    ;;
4003 esac
4004 case $enable_doscompile in
4005   msvc)
4006     if test "x${LD+set}" = xset; then :; else
4007       LD=link
4008     fi
4009     ;;
4010 esac
4011
4012    ;;
4013esac
4014
4015ac_ext=c
4016ac_cpp='$CPP $CPPFLAGS'
4017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020
4021
4022
4023# Check if pkg-config is available (to setup addlibs file)
4024
4025
4026# Check whether --enable-pkg-config or --disable-pkg-config was given.
4027if test "${enable_pkg_config+set}" = set; then
4028  enableval="$enable_pkg_config"
4029  use_pkgconfig="$enableval"
4030else
4031  if test x$coin_cc_is_cl = xtrue; then
4032     use_pkgconfig=no
4033   else
4034     use_pkgconfig=yes
4035   fi
4036fi;
4037
4038if test $use_pkgconfig = yes ; then
4039  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4040    if test -n "$ac_tool_prefix"; then
4041  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4042set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4043echo "$as_me:$LINENO: checking for $ac_word" >&5
4044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4046  echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048  if test -n "$PKG_CONFIG"; then
4049  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4050else
4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052for as_dir in $PATH
4053do
4054  IFS=$as_save_IFS
4055  test -z "$as_dir" && as_dir=.
4056  for ac_exec_ext in '' $ac_executable_extensions; do
4057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060    break 2
4061  fi
4062done
4063done
4064
4065fi
4066fi
4067PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4068if test -n "$PKG_CONFIG"; then
4069  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4070echo "${ECHO_T}$PKG_CONFIG" >&6
4071else
4072  echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6
4074fi
4075
4076fi
4077if test -z "$ac_cv_prog_PKG_CONFIG"; then
4078  ac_ct_PKG_CONFIG=$PKG_CONFIG
4079  # Extract the first word of "pkg-config", so it can be a program name with args.
4080set dummy pkg-config; ac_word=$2
4081echo "$as_me:$LINENO: checking for $ac_word" >&5
4082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  if test -n "$ac_ct_PKG_CONFIG"; then
4087  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094  for ac_exec_ext in '' $ac_executable_extensions; do
4095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101done
4102
4103fi
4104fi
4105ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4106if test -n "$ac_ct_PKG_CONFIG"; then
4107  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4108echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4109else
4110  echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112fi
4113
4114  PKG_CONFIG=$ac_ct_PKG_CONFIG
4115else
4116  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4117fi
4118
4119  fi
4120  if test -n "$PKG_CONFIG"; then
4121    _pkg_min_version=0.16.0
4122    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4123echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4124    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4125      echo "$as_me:$LINENO: result: yes" >&5
4126echo "${ECHO_T}yes" >&6
4127    else
4128      echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
4130      PKG_CONFIG=""
4131    fi
4132  fi
4133
4134  # check if pkg-config supports the short-errors flag
4135  if test -n "$PKG_CONFIG" && \
4136    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4137    pkg_short_errors=" --short-errors "
4138  else
4139    pkg_short_errors=""
4140  fi
4141fi
4142
4143
4144
4145if test -n "$PKG_CONFIG"; then
4146  COIN_HAS_PKGCONFIG_TRUE=
4147  COIN_HAS_PKGCONFIG_FALSE='#'
4148else
4149  COIN_HAS_PKGCONFIG_TRUE='#'
4150  COIN_HAS_PKGCONFIG_FALSE=
4151fi
4152
4153
4154
4155# assemble pkg-config search path for installed projects
4156COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4157
4158# 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
4159# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4160# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4161if test "x${prefix}" = xNONE ; then
4162  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4163else
4164  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4165fi
4166
4167
4168# Check whether --with-coin-instdir or --without-coin-instdir was given.
4169if test "${with_coin_instdir+set}" = set; then
4170  withval="$with_coin_instdir"
4171  if test -d "$withval"; then : ; else
4172     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4173echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4174   { (exit 1); exit 1; }; }
4175   fi
4176   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4177
4178fi;
4179
4180
4181
4182# assemble additional pkg-config search paths for uninstalled projects
4183if test x$coin_projectdir = xyes ; then
4184  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4185  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4186  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4187  # 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)
4188  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4189  if test -e ../coin_subdirs.txt ; then
4190    for i in `cat ../coin_subdirs.txt` ; do
4191      if test -d ../$i ; then
4192        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4193      fi
4194      if test -d ../$i/pkgconfig ; then
4195        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4196      fi
4197    done
4198  fi
4199
4200  if test -e ../../coin_subdirs.txt ; then
4201    for i in `cat ../../coin_subdirs.txt` ; do
4202      if test -d ../../$i ; then
4203        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4204      fi
4205      if test -d ../../$i/pkgconfig ; then
4206        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4207      fi
4208    done
4209  fi
4210
4211
4212fi
4213
4214if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4215  { 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
4216echo "$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;}
4217fi
4218
4219
4220
4221# Get the linker flags (FLIBS) that are required for linking against this blas library
4222
4223# get FLIBS
4224ac_ext=f
4225ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4226ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4228echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4229echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4230if test "${ac_cv_prog_f77_v+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  cat >conftest.$ac_ext <<_ACEOF
4234      program main
4235
4236      end
4237_ACEOF
4238rm -f conftest.$ac_objext
4239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4240  (eval $ac_compile) 2>conftest.er1
4241  ac_status=$?
4242  grep -v '^ *+' conftest.er1 >conftest.err
4243  rm -f conftest.er1
4244  cat conftest.err >&5
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); } &&
4247         { ac_try='test -z "$ac_f77_werror_flag"
4248                         || test ! -s conftest.err'
4249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250  (eval $ac_try) 2>&5
4251  ac_status=$?
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); }; } &&
4254         { ac_try='test -s conftest.$ac_objext'
4255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256  (eval $ac_try) 2>&5
4257  ac_status=$?
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); }; }; then
4260  ac_cv_prog_f77_v=
4261# Try some options frequently used verbose output
4262for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4263  cat >conftest.$ac_ext <<_ACEOF
4264      program main
4265
4266      end
4267_ACEOF
4268
4269# Compile and link our simple test program by passing a flag (argument
4270# 1 to this macro) to the Fortran compiler in order to get
4271# "verbose" output that we can then parse for the Fortran linker
4272# flags.
4273ac_save_FFLAGS=$FFLAGS
4274FFLAGS="$FFLAGS $ac_verb"
4275(eval echo $as_me:4275: \"$ac_link\") >&5
4276ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4277echo "$ac_f77_v_output" >&5
4278FFLAGS=$ac_save_FFLAGS
4279
4280rm -f conftest*
4281
4282# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4283# /foo, /bar, and /baz are search directories for the Fortran linker.
4284# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4285ac_f77_v_output="`echo $ac_f77_v_output |
4286        grep 'LPATH is:' |
4287        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4288
4289case $ac_f77_v_output in
4290  # If we are using xlf then replace all the commas with spaces.
4291  *xlfentry*)
4292    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4293
4294  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4295  # $LIBS confuse us, and the libraries appear later in the output anyway).
4296  *mGLOB_options_string*)
4297    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4298
4299  # If we are using Cray Fortran then delete quotes.
4300  # Use "\"" instead of '"' for font-lock-mode.
4301  # FIXME: a more general fix for quoted arguments with spaces?
4302  *cft90*)
4303    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4304esac
4305
4306
4307  # look for -l* and *.a constructs in the output
4308  for ac_arg in $ac_f77_v_output; do
4309     case $ac_arg in
4310        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4311          ac_cv_prog_f77_v=$ac_verb
4312          break 2 ;;
4313     esac
4314  done
4315done
4316if test -z "$ac_cv_prog_f77_v"; then
4317   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4318echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4319fi
4320else
4321  echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4325echo "$as_me: WARNING: compilation failed" >&2;}
4326fi
4327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4328
4329fi
4330echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4331echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4332echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4333echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4334if test "${ac_cv_f77_libs+set}" = set; then
4335  echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337  if test "x$FLIBS" != "x"; then
4338  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4339else
4340
4341cat >conftest.$ac_ext <<_ACEOF
4342      program main
4343
4344      end
4345_ACEOF
4346
4347# Compile and link our simple test program by passing a flag (argument
4348# 1 to this macro) to the Fortran compiler in order to get
4349# "verbose" output that we can then parse for the Fortran linker
4350# flags.
4351ac_save_FFLAGS=$FFLAGS
4352FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4353(eval echo $as_me:4353: \"$ac_link\") >&5
4354ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4355echo "$ac_f77_v_output" >&5
4356FFLAGS=$ac_save_FFLAGS
4357
4358rm -f conftest*
4359
4360# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4361# /foo, /bar, and /baz are search directories for the Fortran linker.
4362# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4363ac_f77_v_output="`echo $ac_f77_v_output |
4364        grep 'LPATH is:' |
4365        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4366
4367case $ac_f77_v_output in
4368  # If we are using xlf then replace all the commas with spaces.
4369  *xlfentry*)
4370    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4371
4372  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4373  # $LIBS confuse us, and the libraries appear later in the output anyway).
4374  *mGLOB_options_string*)
4375    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4376
4377  # If we are using Cray Fortran then delete quotes.
4378  # Use "\"" instead of '"' for font-lock-mode.
4379  # FIXME: a more general fix for quoted arguments with spaces?
4380  *cft90*)
4381    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4382esac
4383
4384
4385
4386ac_cv_f77_libs=
4387
4388# Save positional arguments (if any)
4389ac_save_positional="$@"
4390
4391set X $ac_f77_v_output
4392while test $# != 1; do
4393  shift
4394  ac_arg=$1
4395  case $ac_arg in
4396        [\\/]*.a | ?:[\\/]*.a)
4397            ac_exists=false
4398  for ac_i in $ac_cv_f77_libs; do
4399    if test x"$ac_arg" = x"$ac_i"; then
4400      ac_exists=true
4401      break
4402    fi
4403  done
4404
4405  if test x"$ac_exists" = xtrue; then
4406  :
4407else
4408  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4409fi
4410
4411          ;;
4412        -bI:*)
4413            ac_exists=false
4414  for ac_i in $ac_cv_f77_libs; do
4415    if test x"$ac_arg" = x"$ac_i"; then
4416      ac_exists=true
4417      break
4418    fi
4419  done
4420
4421  if test x"$ac_exists" = xtrue; then
4422  :
4423else
4424  if test "$ac_compiler_gnu" = yes; then
4425  for ac_link_opt in $ac_arg; do
4426    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4427  done
4428else
4429  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4430fi
4431fi
4432
4433          ;;
4434          # Ignore these flags.
4435        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4436          ;;
4437        -lkernel32)
4438          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4439          ;;
4440        -[LRuY])
4441          # These flags, when seen by themselves, take an argument.
4442          # We remove the space between option and argument and re-iterate
4443          # unless we find an empty arg or a new option (starting with -)
4444          case $2 in
4445             "" | -*);;
4446             *)
4447                ac_arg="$ac_arg$2"
4448                shift; shift
4449                set X $ac_arg "$@"
4450                ;;
4451          esac
4452          ;;
4453        -YP,*)
4454          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4455              ac_exists=false
4456  for ac_i in $ac_cv_f77_libs; do
4457    if test x"$ac_j" = x"$ac_i"; then
4458      ac_exists=true
4459      break
4460    fi
4461  done
4462
4463  if test x"$ac_exists" = xtrue; then
4464  :
4465else
4466  ac_arg="$ac_arg $ac_j"
4467                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4468fi
4469
4470          done
4471          ;;
4472        -[lLR]*)
4473            ac_exists=false
4474  for ac_i in $ac_cv_f77_libs; do
4475    if test x"$ac_arg" = x"$ac_i"; then
4476      ac_exists=true
4477      break
4478    fi
4479  done
4480
4481  if test x"$ac_exists" = xtrue; then
4482  :
4483else
4484  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4485fi
4486
4487          ;;
4488          # Ignore everything else.
4489  esac
4490done
4491# restore positional arguments
4492set X $ac_save_positional; shift
4493
4494# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4495# then we insist that the "run path" must be an absolute path (i.e. it
4496# must begin with a "/").
4497case `(uname -sr) 2>/dev/null` in
4498   "SunOS 5"*)
4499      ac_ld_run_path=`echo $ac_f77_v_output |
4500                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4501      test "x$ac_ld_run_path" != x &&
4502        if test "$ac_compiler_gnu" = yes; then
4503  for ac_link_opt in $ac_ld_run_path; do
4504    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4505  done
4506else
4507  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4508fi
4509      ;;
4510esac
4511fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4512
4513fi
4514echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4515echo "${ECHO_T}$ac_cv_f77_libs" >&6
4516FLIBS="$ac_cv_f77_libs"
4517
4518
4519ac_ext=c
4520ac_cpp='$CPP $CPPFLAGS'
4521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525orig_FLIBS="$FLIBS"
4526
4527# If FLIBS has been set by the user, we just restore its value here
4528if test x"$save_FLIBS" != x; then
4529  FLIBS="$save_FLIBS"
4530else
4531  # This is to correct a missing exclusion in autoconf 2.59
4532  if test x"$FLIBS" != x; then
4533    my_flibs=
4534    for flag in $FLIBS; do
4535      case $flag in
4536        -lcrt*.o) ;;
4537        -lcygwin) ;;
4538               *) my_flibs="$my_flibs $flag" ;;
4539      esac
4540    done
4541    FLIBS="$my_flibs"
4542  fi
4543
4544  case $build in
4545  # The following is a fix to define FLIBS for ifort on Windows
4546  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4547  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4548  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4549  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4550  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4551     *-cygwin* | *-mingw*)
4552       case "$F77" in
4553#         ifort* | */ifort* | IFORT* | */IFORT*)
4554#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4555#           if "$coin_debug_compile" = true ; then
4556#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4557#           else
4558#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4559#           fi
4560#           ;;
4561         compile_f2c*)
4562           FLIBS=`$F77 -FLIBS` ;;
4563       esac;;
4564     *-hp-*)
4565         FLIBS="$FLIBS -lm";;
4566     *-ibm-*)
4567         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4568     *-linux-*)
4569       case "$F77" in
4570         pgf77* | */pgf77* | pgf90* | */pgf90*)
4571# ask linker to go through the archives multiple times
4572# (the Fortran compiler seems to do that automatically...)
4573           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4574       esac
4575  esac
4576  ac_cv_f77_libs="$FLIBS"
4577fi
4578
4579if test "x$orig_FLIBS" != "x$FLIBS" ; then
4580  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4581echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4582fi
4583
4584ac_ext=f
4585ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4586ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4588
4589echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4590echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4591if test "${ac_cv_f77_dummy_main+set}" = set; then
4592  echo $ECHO_N "(cached) $ECHO_C" >&6
4593else
4594  ac_f77_dm_save_LIBS=$LIBS
4595 LIBS="$LIBS $FLIBS"
4596 ac_fortran_dm_var=F77_DUMMY_MAIN
4597 ac_ext=c
4598ac_cpp='$CPP $CPPFLAGS'
4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603 # First, try linking without a dummy main:
4604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h.  */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h.  */
4610
4611#ifdef F77_DUMMY_MAIN
4612
4613#  ifdef __cplusplus
4614     extern "C"
4615#  endif
4616   int F77_DUMMY_MAIN() { return 1; }
4617
4618#endif
4619int
4620main ()
4621{
4622
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext conftest$ac_exeext
4628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629  (eval $ac_link) 2>conftest.er1
4630  ac_status=$?
4631  grep -v '^ *+' conftest.er1 >conftest.err
4632  rm -f conftest.er1
4633  cat conftest.err >&5
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); } &&
4636         { ac_try='test -z "$ac_c_werror_flag"
4637                         || test ! -s conftest.err'
4638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639  (eval $ac_try) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }; } &&
4643         { ac_try='test -s conftest$ac_exeext'
4644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645  (eval $ac_try) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; }; then
4649  ac_cv_fortran_dummy_main=none
4650else
4651  echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654ac_cv_fortran_dummy_main=unknown
4655fi
4656rm -f conftest.err conftest.$ac_objext \
4657      conftest$ac_exeext conftest.$ac_ext
4658
4659 if test $ac_cv_fortran_dummy_main = unknown; then
4660   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4661     cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h.  */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h.  */
4667#define $ac_fortran_dm_var $ac_func
4668#ifdef F77_DUMMY_MAIN
4669
4670#  ifdef __cplusplus
4671     extern "C"
4672#  endif
4673   int F77_DUMMY_MAIN() { return 1; }
4674
4675#endif
4676int
4677main ()
4678{
4679
4680  ;
4681  return 0;
4682}
4683_ACEOF
4684rm -f conftest.$ac_objext conftest$ac_exeext
4685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686  (eval $ac_link) 2>conftest.er1
4687  ac_status=$?
4688  grep -v '^ *+' conftest.er1 >conftest.err
4689  rm -f conftest.er1
4690  cat conftest.err >&5
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); } &&
4693         { ac_try='test -z "$ac_c_werror_flag"
4694                         || test ! -s conftest.err'
4695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696  (eval $ac_try) 2>&5
4697  ac_status=$?
4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699  (exit $ac_status); }; } &&
4700         { ac_try='test -s conftest$ac_exeext'
4701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702  (eval $ac_try) 2>&5
4703  ac_status=$?
4704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705  (exit $ac_status); }; }; then
4706  ac_cv_fortran_dummy_main=$ac_func; break
4707else
4708  echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711fi
4712rm -f conftest.err conftest.$ac_objext \
4713      conftest$ac_exeext conftest.$ac_ext
4714   done
4715 fi
4716 ac_ext=f
4717ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4718ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4720 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4721 rm -f conftest*
4722 LIBS=$ac_f77_dm_save_LIBS
4723
4724fi
4725echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4726echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4727F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4728if test "$F77_DUMMY_MAIN" != unknown; then
4729  if test $F77_DUMMY_MAIN != none; then
4730
4731cat >>confdefs.h <<_ACEOF
4732#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4733_ACEOF
4734
4735  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4736
4737cat >>confdefs.h <<\_ACEOF
4738#define FC_DUMMY_MAIN_EQ_F77 1
4739_ACEOF
4740
4741  fi
4742fi
4743else
4744  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4745See \`config.log' for more details." >&5
4746echo "$as_me: error: linking to Fortran libraries from C fails
4747See \`config.log' for more details." >&2;}
4748   { (exit 1); exit 1; }; }
4749fi
4750
4751
4752ac_ext=f
4753ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4754ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4756
4757ac_ext=f
4758ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4759ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4761echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4762echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4763if test "${ac_cv_f77_mangling+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  cat >conftest.$ac_ext <<_ACEOF
4767      subroutine foobar()
4768      return
4769      end
4770      subroutine foo_bar()
4771      return
4772      end
4773_ACEOF
4774rm -f conftest.$ac_objext
4775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776  (eval $ac_compile) 2>conftest.er1
4777  ac_status=$?
4778  grep -v '^ *+' conftest.er1 >conftest.err
4779  rm -f conftest.er1
4780  cat conftest.err >&5
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); } &&
4783         { ac_try='test -z "$ac_f77_werror_flag"
4784                         || test ! -s conftest.err'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; } &&
4790         { ac_try='test -s conftest.$ac_objext'
4791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792  (eval $ac_try) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }; }; then
4796  mv conftest.$ac_objext cfortran_test.$ac_objext
4797
4798  ac_save_LIBS=$LIBS
4799  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4800
4801  ac_ext=c
4802ac_cpp='$CPP $CPPFLAGS'
4803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806  ac_success=no
4807  for ac_foobar in foobar FOOBAR; do
4808    for ac_underscore in "" "_"; do
4809      ac_func="$ac_foobar$ac_underscore"
4810      cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h.  */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h.  */
4816
4817/* Override any gcc2 internal prototype to avoid an error.  */
4818#ifdef __cplusplus
4819extern "C"
4820#endif
4821/* We use char because int might match the return type of a gcc2
4822   builtin and then its argument prototype would still apply.  */
4823char $ac_func ();
4824#ifdef F77_DUMMY_MAIN
4825
4826#  ifdef __cplusplus
4827     extern "C"
4828#  endif
4829   int F77_DUMMY_MAIN() { return 1; }
4830
4831#endif
4832int
4833main ()
4834{
4835$ac_func ();
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext conftest$ac_exeext
4841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4842  (eval $ac_link) 2>conftest.er1
4843  ac_status=$?
4844  grep -v '^ *+' conftest.er1 >conftest.err
4845  rm -f conftest.er1
4846  cat conftest.err >&5
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); } &&
4849         { ac_try='test -z "$ac_c_werror_flag"
4850                         || test ! -s conftest.err'
4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852  (eval $ac_try) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; } &&
4856         { ac_try='test -s conftest$ac_exeext'
4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858  (eval $ac_try) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); }; }; then
4862  ac_success=yes; break 2
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867fi
4868rm -f conftest.err conftest.$ac_objext \
4869      conftest$ac_exeext conftest.$ac_ext
4870    done
4871  done
4872  ac_ext=f
4873ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4874ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4876
4877  if test "$ac_success" = "yes"; then
4878     case $ac_foobar in
4879        foobar)
4880           ac_case=lower
4881           ac_foo_bar=foo_bar
4882           ;;
4883        FOOBAR)
4884           ac_case=upper
4885           ac_foo_bar=FOO_BAR
4886           ;;
4887     esac
4888
4889     ac_ext=c
4890ac_cpp='$CPP $CPPFLAGS'
4891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894     ac_success_extra=no
4895     for ac_extra in "" "_"; do
4896        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4897        cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h.  */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h.  */
4903
4904/* Override any gcc2 internal prototype to avoid an error.  */
4905#ifdef __cplusplus
4906extern "C"
4907#endif
4908/* We use char because int might match the return type of a gcc2
4909   builtin and then its argument prototype would still apply.  */
4910char $ac_func ();
4911#ifdef F77_DUMMY_MAIN
4912
4913#  ifdef __cplusplus
4914     extern "C"
4915#  endif
4916   int F77_DUMMY_MAIN() { return 1; }
4917
4918#endif
4919int
4920main ()
4921{
4922$ac_func ();
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext conftest$ac_exeext
4928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929  (eval $ac_link) 2>conftest.er1
4930  ac_status=$?
4931  grep -v '^ *+' conftest.er1 >conftest.err
4932  rm -f conftest.er1
4933  cat conftest.err >&5
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); } &&
4936         { ac_try='test -z "$ac_c_werror_flag"
4937                         || test ! -s conftest.err'
4938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939  (eval $ac_try) 2>&5
4940  ac_status=$?
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); }; } &&
4943         { ac_try='test -s conftest$ac_exeext'
4944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945  (eval $ac_try) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; }; then
4949  ac_success_extra=yes; break
4950else
4951  echo "$as_me: failed program was:" >&5
4952sed 's/^/| /' conftest.$ac_ext >&5
4953
4954fi
4955rm -f conftest.err conftest.$ac_objext \
4956      conftest$ac_exeext conftest.$ac_ext
4957     done
4958     ac_ext=f
4959ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4960ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4962
4963     if test "$ac_success_extra" = "yes"; then
4964        ac_cv_f77_mangling="$ac_case case"
4965        if test -z "$ac_underscore"; then
4966           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4967        else
4968           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4969        fi
4970        if test -z "$ac_extra"; then
4971           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4972        else
4973           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4974        fi
4975      else
4976        ac_cv_f77_mangling="unknown"
4977      fi
4978  else
4979     ac_cv_f77_mangling="unknown"
4980  fi
4981
4982  LIBS=$ac_save_LIBS
4983  rm -f cfortran_test* conftest*
4984else
4985  echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4989See \`config.log' for more details." >&5
4990echo "$as_me: error: cannot compile a simple Fortran program
4991See \`config.log' for more details." >&2;}
4992   { (exit 1); exit 1; }; }
4993fi
4994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995
4996fi
4997echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4998echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4999
5000ac_ext=f
5001ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5002ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5004
5005
5006ac_ext=f
5007ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5008ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5010
5011ac_ext=f
5012ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5013ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5015
5016
5017case $ac_cv_f77_mangling in
5018  "lower case, no underscore, no extra underscore")
5019          cat >>confdefs.h <<\_ACEOF
5020#define F77_FUNC(name,NAME) name
5021_ACEOF
5022
5023          cat >>confdefs.h <<\_ACEOF
5024#define F77_FUNC_(name,NAME) name
5025_ACEOF
5026 ;;
5027  "lower case, no underscore, extra underscore")
5028          cat >>confdefs.h <<\_ACEOF
5029#define F77_FUNC(name,NAME) name
5030_ACEOF
5031
5032          cat >>confdefs.h <<\_ACEOF
5033#define F77_FUNC_(name,NAME) name ## _
5034_ACEOF
5035 ;;
5036  "lower case, underscore, no extra underscore")
5037          cat >>confdefs.h <<\_ACEOF
5038#define F77_FUNC(name,NAME) name ## _
5039_ACEOF
5040
5041          cat >>confdefs.h <<\_ACEOF
5042#define F77_FUNC_(name,NAME) name ## _
5043_ACEOF
5044 ;;
5045  "lower case, underscore, extra underscore")
5046          cat >>confdefs.h <<\_ACEOF
5047#define F77_FUNC(name,NAME) name ## _
5048_ACEOF
5049
5050          cat >>confdefs.h <<\_ACEOF
5051#define F77_FUNC_(name,NAME) name ## __
5052_ACEOF
5053 ;;
5054  "upper case, no underscore, no extra underscore")
5055          cat >>confdefs.h <<\_ACEOF
5056#define F77_FUNC(name,NAME) NAME
5057_ACEOF
5058
5059          cat >>confdefs.h <<\_ACEOF
5060#define F77_FUNC_(name,NAME) NAME
5061_ACEOF
5062 ;;
5063  "upper case, no underscore, extra underscore")
5064          cat >>confdefs.h <<\_ACEOF
5065#define F77_FUNC(name,NAME) NAME
5066_ACEOF
5067
5068          cat >>confdefs.h <<\_ACEOF
5069#define F77_FUNC_(name,NAME) NAME ## _
5070_ACEOF
5071 ;;
5072  "upper case, underscore, no extra underscore")
5073          cat >>confdefs.h <<\_ACEOF
5074#define F77_FUNC(name,NAME) NAME ## _
5075_ACEOF
5076
5077          cat >>confdefs.h <<\_ACEOF
5078#define F77_FUNC_(name,NAME) NAME ## _
5079_ACEOF
5080 ;;
5081  "upper case, underscore, extra underscore")
5082          cat >>confdefs.h <<\_ACEOF
5083#define F77_FUNC(name,NAME) NAME ## _
5084_ACEOF
5085
5086          cat >>confdefs.h <<\_ACEOF
5087#define F77_FUNC_(name,NAME) NAME ## __
5088_ACEOF
5089 ;;
5090  *)
5091          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5092echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5093          ;;
5094esac
5095
5096ac_ext=f
5097ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5098ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5100
5101ac_ext=c
5102ac_cpp='$CPP $CPPFLAGS'
5103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107
5108
5109
5110# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
5111HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
5112
5113# Need egrep later on
5114echo "$as_me:$LINENO: checking for egrep" >&5
5115echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5116if test "${ac_cv_prog_egrep+set}" = set; then
5117  echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5120    then ac_cv_prog_egrep='grep -E'
5121    else ac_cv_prog_egrep='egrep'
5122    fi
5123fi
5124echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5125echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5126 EGREP=$ac_cv_prog_egrep
5127
5128
5129
5130# Also set up the FC compiler variable, required to compile .f90
5131# files.  We use the same compile and flags as F77 and FFLAGS, unless
5132# the user has set FC and FCFLAGS explicitly.
5133if test "$FC" = ""; then
5134  FC="$F77"
5135fi
5136if test "$FCFLAGS" = ""; then
5137  FCFLAGS="$FFLAGS"
5138fi
5139ac_ext=${FC_SRCEXT-f}
5140ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5141ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5143if test -n "$ac_tool_prefix"; then
5144  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5145  do
5146    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5148echo "$as_me:$LINENO: checking for $ac_word" >&5
5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150if test "${ac_cv_prog_FC+set}" = set; then
5151  echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153  if test -n "$FC"; then
5154  ac_cv_prog_FC="$FC" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159  IFS=$as_save_IFS
5160  test -z "$as_dir" && as_dir=.
5161  for ac_exec_ext in '' $ac_executable_extensions; do
5162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165    break 2
5166  fi
5167done
5168done
5169
5170fi
5171fi
5172FC=$ac_cv_prog_FC
5173if test -n "$FC"; then
5174  echo "$as_me:$LINENO: result: $FC" >&5
5175echo "${ECHO_T}$FC" >&6
5176else
5177  echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179fi
5180
5181    test -n "$FC" && break
5182  done
5183fi
5184if test -z "$FC"; then
5185  ac_ct_FC=$FC
5186  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5187do
5188  # Extract the first word of "$ac_prog", so it can be a program name with args.
5189set dummy $ac_prog; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  if test -n "$ac_ct_FC"; then
5196  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203  for ac_exec_ext in '' $ac_executable_extensions; do
5204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205    ac_cv_prog_ac_ct_FC="$ac_prog"
5206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210done
5211
5212fi
5213fi
5214ac_ct_FC=$ac_cv_prog_ac_ct_FC
5215if test -n "$ac_ct_FC"; then
5216  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5217echo "${ECHO_T}$ac_ct_FC" >&6
5218else
5219  echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223  test -n "$ac_ct_FC" && break
5224done
5225
5226  FC=$ac_ct_FC
5227fi
5228
5229
5230# Provide some information about the compiler.
5231echo "$as_me:5231:" \
5232     "checking for Fortran compiler version" >&5
5233ac_compiler=`set X $ac_compile; echo $2`
5234{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5235  (eval $ac_compiler --version </dev/null >&5) 2>&5
5236  ac_status=$?
5237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); }
5239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5240  (eval $ac_compiler -v </dev/null >&5) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }
5244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5245  (eval $ac_compiler -V </dev/null >&5) 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }
5249rm -f a.out
5250
5251# If we don't use `.F' as extension, the preprocessor is not run on the
5252# input file.  (Note that this only needs to work for GNU compilers.)
5253ac_save_ext=$ac_ext
5254ac_ext=F
5255echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5256echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5257if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5258  echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260  cat >conftest.$ac_ext <<_ACEOF
5261      program main
5262#ifndef __GNUC__
5263       choke me
5264#endif
5265
5266      end
5267_ACEOF
5268rm -f conftest.$ac_objext
5269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270  (eval $ac_compile) 2>conftest.er1
5271  ac_status=$?
5272  grep -v '^ *+' conftest.er1 >conftest.err
5273  rm -f conftest.er1
5274  cat conftest.err >&5
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); } &&
5277         { ac_try='test -z "$ac_fc_werror_flag"
5278                         || test ! -s conftest.err'
5279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280  (eval $ac_try) 2>&5
5281  ac_status=$?
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); }; } &&
5284         { ac_try='test -s conftest.$ac_objext'
5285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286  (eval $ac_try) 2>&5
5287  ac_status=$?
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }; }; then
5290  ac_compiler_gnu=yes
5291else
5292  echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295ac_compiler_gnu=no
5296fi
5297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5299
5300fi
5301echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5302echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5303ac_ext=$ac_save_ext
5304ac_test_FFLAGS=${FCFLAGS+set}
5305ac_save_FFLAGS=$FCFLAGS
5306FCFLAGS=
5307echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5308echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5309if test "${ac_cv_prog_fc_g+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  FCFLAGS=-g
5313cat >conftest.$ac_ext <<_ACEOF
5314      program main
5315
5316      end
5317_ACEOF
5318rm -f conftest.$ac_objext
5319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5320  (eval $ac_compile) 2>conftest.er1
5321  ac_status=$?
5322  grep -v '^ *+' conftest.er1 >conftest.err
5323  rm -f conftest.er1
5324  cat conftest.err >&5
5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326  (exit $ac_status); } &&
5327         { ac_try='test -z "$ac_fc_werror_flag"
5328                         || test ! -s conftest.err'
5329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330  (eval $ac_try) 2>&5
5331  ac_status=$?
5332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333  (exit $ac_status); }; } &&
5334         { ac_try='test -s conftest.$ac_objext'
5335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336  (eval $ac_try) 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }; }; then
5340  ac_cv_prog_fc_g=yes
5341else
5342  echo "$as_me: failed program was:" >&5
5343sed 's/^/| /' conftest.$ac_ext >&5
5344
5345ac_cv_prog_fc_g=no
5346fi
5347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348
5349fi
5350echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5351echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5352if test "$ac_test_FFLAGS" = set; then
5353  FCFLAGS=$ac_save_FFLAGS
5354elif test $ac_cv_prog_fc_g = yes; then
5355  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5356    FCFLAGS="-g -O2"
5357  else
5358    FCFLAGS="-g"
5359  fi
5360else
5361  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5362    FCFLAGS="-O2"
5363  else
5364    FCFLAGS=
5365  fi
5366fi
5367
5368ac_ext=c
5369ac_cpp='$CPP $CPPFLAGS'
5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373
5374
5375# recent autotools versions can recognize OpenMP with the following macro
5376# this would be useful when using MA86 and MA97
5377# AC_OPENMP
5378
5379# Initialize autotools
5380
5381if test x$enable_loadable_library = xyes; then
5382  flag=force_shared
5383fi
5384{
5385
5386
5387
5388# START
5389
5390coin_disable_shared=no
5391# Test if force_shared has been set
5392if test "x$flag" = xforce_shared; then
5393  if test x$enable_shared = xno; then
5394    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5395echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5396   { (exit 1); exit 1; }; }
5397  fi
5398  enable_shared=yes;
5399else
5400  # On Cygwin and AIX, building DLLs doesn't work
5401  case $build in
5402    *-cygwin* | *-mingw*)
5403      coin_disable_shared=yes
5404      if test x"$enable_shared" = xyes; then
5405        case "$CXX" in
5406          clang* )
5407            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5408echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5409            ;;
5410          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5411            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
5412echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
5413            ;;
5414          *)
5415            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5416echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5417            ;;
5418        esac
5419      fi
5420    ;;
5421    *-aix*)
5422      coin_disable_shared=yes
5423      platform=AIX
5424      if test x"$enable_shared" = xyes; then
5425        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5426echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5427      fi
5428    ;;
5429  esac
5430fi
5431if test x"$coin_disable_shared" = xyes; then
5432  if test x"$enable_shared" = xyes; then
5433    :
5434  else
5435    # we don't disable shared, because it was not selected anyway
5436    coin_disable_shared=no
5437  fi
5438  enable_shared=no
5439fi
5440# By default, we only want the shared objects to be compiled
5441# Check whether --enable-static or --disable-static was given.
5442if test "${enable_static+set}" = set; then
5443  enableval="$enable_static"
5444  p=${PACKAGE-default}
5445    case $enableval in
5446    yes) enable_static=yes ;;
5447    no) enable_static=no ;;
5448    *)
5449     enable_static=no
5450      # Look at the argument we got.  We use all the common list separators.
5451      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5452      for pkg in $enableval; do
5453        IFS="$lt_save_ifs"
5454        if test "X$pkg" = "X$p"; then
5455          enable_static=yes
5456        fi
5457      done
5458      IFS="$lt_save_ifs"
5459      ;;
5460    esac
5461else
5462  enable_static=no
5463fi;
5464
5465
5466
5467
5468# Initialize automake
5469echo "$as_me:$LINENO: checking whether ln -s works" >&5
5470echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5471LN_S=$as_ln_s
5472if test "$LN_S" = "ln -s"; then
5473  echo "$as_me:$LINENO: result: yes" >&5
5474echo "${ECHO_T}yes" >&6
5475else
5476  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5477echo "${ECHO_T}no, using $LN_S" >&6
5478fi
5479
5480am__api_version="1.9"
5481# Find a good install program.  We prefer a C program (faster),
5482# so one script is as good as another.  But avoid the broken or
5483# incompatible versions:
5484# SysV /etc/install, /usr/sbin/install
5485# SunOS /usr/etc/install
5486# IRIX /sbin/install
5487# AIX /bin/install
5488# AmigaOS /C/install, which installs bootblocks on floppy discs
5489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5490# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5492# OS/2's system install, which has a completely different semantic
5493# ./install, which can be erroneously created by make from ./install.sh.
5494echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5495echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5496if test -z "$INSTALL"; then
5497if test "${ac_cv_path_install+set}" = set; then
5498  echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503  IFS=$as_save_IFS
5504  test -z "$as_dir" && as_dir=.
5505  # Account for people who put trailing slashes in PATH elements.
5506case $as_dir/ in
5507  ./ | .// | /cC/* | \
5508  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5509  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5510  /usr/ucb/* ) ;;
5511  *)
5512    # OSF1 and SCO ODT 3.0 have their own names for install.
5513    # Don't use installbsd from OSF since it installs stuff as root
5514    # by default.
5515    for ac_prog in ginstall scoinst install; do
5516      for ac_exec_ext in '' $ac_executable_extensions; do
5517        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5518          if test $ac_prog = install &&
5519            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5520            # AIX install.  It has an incompatible calling convention.
5521            :
5522          elif test $ac_prog = install &&
5523            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5524            # program-specific install script used by HP pwplus--don't use.
5525            :
5526          else
5527            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5528            break 3
5529          fi
5530        fi
5531      done
5532    done
5533    ;;
5534esac
5535done
5536
5537
5538fi
5539  if test "${ac_cv_path_install+set}" = set; then
5540    INSTALL=$ac_cv_path_install
5541  else
5542    # As a last resort, use the slow shell script.  We don't cache a
5543    # path for INSTALL within a source directory, because that will
5544    # break other packages using the cache if that directory is
5545    # removed, or if the path is relative.
5546    INSTALL=$ac_install_sh
5547  fi
5548fi
5549echo "$as_me:$LINENO: result: $INSTALL" >&5
5550echo "${ECHO_T}$INSTALL" >&6
5551
5552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5553# It thinks the first close brace ends the variable substitution.
5554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5555
5556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5557
5558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5559
5560echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5561echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5562# Just in case
5563sleep 1
5564echo timestamp > conftest.file
5565# Do `set' in a subshell so we don't clobber the current shell's
5566# arguments.  Must try -L first in case configure is actually a
5567# symlink; some systems play weird games with the mod time of symlinks
5568# (eg FreeBSD returns the mod time of the symlink's containing
5569# directory).
5570if (
5571   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5572   if test "$*" = "X"; then
5573      # -L didn't work.
5574      set X `ls -t $srcdir/configure conftest.file`
5575   fi
5576   rm -f conftest.file
5577   if test "$*" != "X $srcdir/configure conftest.file" \
5578      && test "$*" != "X conftest.file $srcdir/configure"; then
5579
5580      # If neither matched, then we have a broken ls.  This can happen
5581      # if, for instance, CONFIG_SHELL is bash and it inherits a
5582      # broken ls alias from the environment.  This has actually
5583      # happened.  Such a system could not be considered "sane".
5584      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5585alias in your environment" >&5
5586echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5587alias in your environment" >&2;}
5588   { (exit 1); exit 1; }; }
5589   fi
5590
5591   test "$2" = conftest.file
5592   )
5593then
5594   # Ok.
5595   :
5596else
5597   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5598Check your system clock" >&5
5599echo "$as_me: error: newly created file is older than distributed files!
5600Check your system clock" >&2;}
5601   { (exit 1); exit 1; }; }
5602fi
5603echo "$as_me:$LINENO: result: yes" >&5
5604echo "${ECHO_T}yes" >&6
5605test "$program_prefix" != NONE &&
5606  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5607# Use a double $ so make ignores it.
5608test "$program_suffix" != NONE &&
5609  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5610# Double any \ or $.  echo might interpret backslashes.
5611# By default was `s,x,x', remove it if useless.
5612cat <<\_ACEOF >conftest.sed
5613s/[\\$]/&&/g;s/;s,x,x,$//
5614_ACEOF
5615program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5616rm conftest.sed
5617
5618# expand $ac_aux_dir to an absolute path
5619am_aux_dir=`cd $ac_aux_dir && pwd`
5620
5621test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5622# Use eval to expand $SHELL
5623if eval "$MISSING --run true"; then
5624  am_missing_run="$MISSING --run "
5625else
5626  am_missing_run=
5627  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5628echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5629fi
5630
5631if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5632  # We used to keeping the `.' as first argument, in order to
5633  # allow $(mkdir_p) to be used without argument.  As in
5634  #   $(mkdir_p) $(somedir)
5635  # where $(somedir) is conditionally defined.  However this is wrong
5636  # for two reasons:
5637  #  1. if the package is installed by a user who cannot write `.'
5638  #     make install will fail,
5639  #  2. the above comment should most certainly read
5640  #     $(mkdir_p) $(DESTDIR)$(somedir)
5641  #     so it does not work when $(somedir) is undefined and
5642  #     $(DESTDIR) is not.
5643  #  To support the latter case, we have to write
5644  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5645  #  so the `.' trick is pointless.
5646  mkdir_p='mkdir -p --'
5647else
5648  # On NextStep and OpenStep, the `mkdir' command does not
5649  # recognize any option.  It will interpret all options as
5650  # directories to create, and then abort because `.' already
5651  # exists.
5652  for d in ./-p ./--version;
5653  do
5654    test -d $d && rmdir $d
5655  done
5656  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5657  if test -f "$ac_aux_dir/mkinstalldirs"; then
5658    mkdir_p='$(mkinstalldirs)'
5659  else
5660    mkdir_p='$(install_sh) -d'
5661  fi
5662fi
5663
5664for ac_prog in gawk mawk nawk awk
5665do
5666  # Extract the first word of "$ac_prog", so it can be a program name with args.
5667set dummy $ac_prog; ac_word=$2
5668echo "$as_me:$LINENO: checking for $ac_word" >&5
5669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670if test "${ac_cv_prog_AWK+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673  if test -n "$AWK"; then
5674  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681  for ac_exec_ext in '' $ac_executable_extensions; do
5682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683    ac_cv_prog_AWK="$ac_prog"
5684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688done
5689
5690fi
5691fi
5692AWK=$ac_cv_prog_AWK
5693if test -n "$AWK"; then
5694  echo "$as_me:$LINENO: result: $AWK" >&5
5695echo "${ECHO_T}$AWK" >&6
5696else
5697  echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699fi
5700
5701  test -n "$AWK" && break
5702done
5703
5704echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5705echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5707if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5708  echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710  cat >conftest.make <<\_ACEOF
5711all:
5712        @echo 'ac_maketemp="$(MAKE)"'
5713_ACEOF
5714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5715eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5716if test -n "$ac_maketemp"; then
5717  eval ac_cv_prog_make_${ac_make}_set=yes
5718else
5719  eval ac_cv_prog_make_${ac_make}_set=no
5720fi
5721rm -f conftest.make
5722fi
5723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5724  echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726  SET_MAKE=
5727else
5728  echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6
5730  SET_MAKE="MAKE=${MAKE-make}"
5731fi
5732
5733rm -rf .tst 2>/dev/null
5734mkdir .tst 2>/dev/null
5735if test -d .tst; then
5736  am__leading_dot=.
5737else
5738  am__leading_dot=_
5739fi
5740rmdir .tst 2>/dev/null
5741
5742DEPDIR="${am__leading_dot}deps"
5743
5744          ac_config_commands="$ac_config_commands depfiles"
5745
5746
5747am_make=${MAKE-make}
5748cat > confinc << 'END'
5749am__doit:
5750        @echo done
5751.PHONY: am__doit
5752END
5753# If we don't find an include directive, just comment out the code.
5754echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5755echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5756am__include="#"
5757am__quote=
5758_am_result=none
5759# First try GNU make style include.
5760echo "include confinc" > confmf
5761# We grep out `Entering directory' and `Leaving directory'
5762# messages which can occur if `w' ends up in MAKEFLAGS.
5763# In particular we don't look at `^make:' because GNU make might
5764# be invoked under some other name (usually "gmake"), in which
5765# case it prints its new name instead of `make'.
5766if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5767   am__include=include
5768   am__quote=
5769   _am_result=GNU
5770fi
5771# Now try BSD make style include.
5772if test "$am__include" = "#"; then
5773   echo '.include "confinc"' > confmf
5774   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5775      am__include=.include
5776      am__quote="\""
5777      _am_result=BSD
5778   fi
5779fi
5780
5781
5782echo "$as_me:$LINENO: result: $_am_result" >&5
5783echo "${ECHO_T}$_am_result" >&6
5784rm -f confinc confmf
5785
5786# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5787if test "${enable_dependency_tracking+set}" = set; then
5788  enableval="$enable_dependency_tracking"
5789
5790fi;
5791if test "x$enable_dependency_tracking" != xno; then
5792  am_depcomp="$ac_aux_dir/depcomp"
5793  AMDEPBACKSLASH='\'
5794fi
5795
5796
5797if test "x$enable_dependency_tracking" != xno; then
5798  AMDEP_TRUE=
5799  AMDEP_FALSE='#'
5800else
5801  AMDEP_TRUE='#'
5802  AMDEP_FALSE=
5803fi
5804
5805
5806
5807
5808
5809
5810# AC_MSG_NOTICE([Beginning automake initialisation.])
5811# Stuff for automake
5812# test to see if srcdir already configured
5813if test "`cd $srcdir && pwd`" != "`pwd`" &&
5814   test -f $srcdir/config.status; then
5815  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5816echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5817   { (exit 1); exit 1; }; }
5818fi
5819
5820# test whether we have cygpath
5821if test -z "$CYGPATH_W"; then
5822  if (cygpath --version) >/dev/null 2>/dev/null; then
5823    CYGPATH_W='cygpath -w'
5824  else
5825    CYGPATH_W=echo
5826  fi
5827fi
5828
5829
5830# Define the identity of the package.
5831 PACKAGE='thirdpartyhsl'
5832 VERSION='1.4'
5833
5834
5835cat >>confdefs.h <<_ACEOF
5836#define PACKAGE "$PACKAGE"
5837_ACEOF
5838
5839
5840cat >>confdefs.h <<_ACEOF
5841#define VERSION "$VERSION"
5842_ACEOF
5843
5844# Some tools Automake needs.
5845
5846ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5847
5848
5849AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5850
5851
5852AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5853
5854
5855AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5856
5857
5858MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5859
5860install_sh=${install_sh-"$am_aux_dir/install-sh"}
5861
5862# Installed binaries are usually stripped using `strip' when the user
5863# run `make install-strip'.  However `strip' might not be the right
5864# tool to use in cross-compilation environments, therefore Automake
5865# will honor the `STRIP' environment variable to overrule this program.
5866if test "$cross_compiling" != no; then
5867  if test -n "$ac_tool_prefix"; then
5868  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5869set dummy ${ac_tool_prefix}strip; ac_word=$2
5870echo "$as_me:$LINENO: checking for $ac_word" >&5
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5872if test "${ac_cv_prog_STRIP+set}" = set; then
5873  echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875  if test -n "$STRIP"; then
5876  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881  IFS=$as_save_IFS
5882  test -z "$as_dir" && as_dir=.
5883  for ac_exec_ext in '' $ac_executable_extensions; do
5884  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887    break 2
5888  fi
5889done
5890done
5891
5892fi
5893fi
5894STRIP=$ac_cv_prog_STRIP
5895if test -n "$STRIP"; then
5896  echo "$as_me:$LINENO: result: $STRIP" >&5
5897echo "${ECHO_T}$STRIP" >&6
5898else
5899  echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901fi
5902
5903fi
5904if test -z "$ac_cv_prog_STRIP"; then
5905  ac_ct_STRIP=$STRIP
5906  # Extract the first word of "strip", so it can be a program name with args.
5907set dummy strip; ac_word=$2
5908echo "$as_me:$LINENO: checking for $ac_word" >&5
5909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5911  echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913  if test -n "$ac_ct_STRIP"; then
5914  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919  IFS=$as_save_IFS
5920  test -z "$as_dir" && as_dir=.
5921  for ac_exec_ext in '' $ac_executable_extensions; do
5922  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923    ac_cv_prog_ac_ct_STRIP="strip"
5924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925    break 2
5926  fi
5927done
5928done
5929
5930  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5931fi
5932fi
5933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5934if test -n "$ac_ct_STRIP"; then
5935  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5936echo "${ECHO_T}$ac_ct_STRIP" >&6
5937else
5938  echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940fi
5941
5942  STRIP=$ac_ct_STRIP
5943else
5944  STRIP="$ac_cv_prog_STRIP"
5945fi
5946
5947fi
5948INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5949
5950# We need awk for the "check" target.  The system "awk" is bad on
5951# some platforms.
5952# Always define AMTAR for backward compatibility.
5953
5954AMTAR=${AMTAR-"${am_missing_run}tar"}
5955
5956am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5957
5958
5959
5960
5961depcc="$CC"   am_compiler_list=
5962
5963echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5964echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5965if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5966  echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5969  # We make a subdir and do the tests there.  Otherwise we can end up
5970  # making bogus files that we don't know about and never remove.  For
5971  # instance it was reported that on HP-UX the gcc test will end up
5972  # making a dummy file named `D' -- because `-MD' means `put the output
5973  # in D'.
5974  mkdir conftest.dir
5975  # Copy depcomp to subdir because otherwise we won't find it if we're
5976  # using a relative directory.
5977  cp "$am_depcomp" conftest.dir
5978  cd conftest.dir
5979  # We will build objects and dependencies in a subdirectory because
5980  # it helps to detect inapplicable dependency modes.  For instance
5981  # both Tru64's cc and ICC support -MD to output dependencies as a
5982  # side effect of compilation, but ICC will put the dependencies in
5983  # the current directory while Tru64 will put them in the object
5984  # directory.
5985  mkdir sub
5986
5987  am_cv_CC_dependencies_compiler_type=none
5988  if test "$am_compiler_list" = ""; then
5989     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5990  fi
5991  for depmode in $am_compiler_list; do
5992    # Setup a source with many dependencies, because some compilers
5993    # like to wrap large dependency lists on column 80 (with \), and
5994    # we should not choose a depcomp mode which is confused by this.
5995    #
5996    # We need to recreate these files for each test, as the compiler may
5997    # overwrite some of them when testing with obscure command lines.
5998    # This happens at least with the AIX C compiler.
5999    : > sub/conftest.c
6000    for i in 1 2 3 4 5 6; do
6001      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6002      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6003      # Solaris 8's {/usr,}/bin/sh.
6004      touch sub/conftst$i.h
6005    done
6006    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6007
6008    case $depmode in
6009    nosideeffect)
6010      # after this tag, mechanisms are not by side-effect, so they'll
6011      # only be used when explicitly requested
6012      if test "x$enable_dependency_tracking" = xyes; then
6013        continue
6014      else
6015        break
6016      fi
6017      ;;
6018    none) break ;;
6019    esac
6020    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6021    # mode.  It turns out that the SunPro C++ compiler does not properly
6022    # handle `-M -o', and we need to detect this.
6023    if depmode=$depmode \
6024       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6025       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6026       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6027         >/dev/null 2>conftest.err &&
6028       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6029       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6030       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6031      # icc doesn't choke on unknown options, it will just issue warnings
6032      # or remarks (even with -Werror).  So we grep stderr for any message
6033      # that says an option was ignored or not supported.
6034      # When given -MP, icc 7.0 and 7.1 complain thusly:
6035      #   icc: Command line warning: ignoring option '-M'; no argument required
6036      # The diagnosis changed in icc 8.0:
6037      #   icc: Command line remark: option '-MP' not supported
6038      if (grep 'ignoring option' conftest.err ||
6039          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6040        am_cv_CC_dependencies_compiler_type=$depmode
6041        break
6042      fi
6043    fi
6044  done
6045
6046  cd ..
6047  rm -rf conftest.dir
6048else
6049  am_cv_CC_dependencies_compiler_type=none
6050fi
6051
6052fi
6053echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6054echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6055CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6056
6057
6058
6059if
6060  test "x$enable_dependency_tracking" != xno \
6061  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6062  am__fastdepCC_TRUE=
6063  am__fastdepCC_FALSE='#'
6064else
6065  am__fastdepCC_TRUE='#'
6066  am__fastdepCC_FALSE=
6067fi
6068
6069
6070
6071echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6072echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6073    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6074if test "${enable_maintainer_mode+set}" = set; then
6075  enableval="$enable_maintainer_mode"
6076  USE_MAINTAINER_MODE=$enableval
6077else
6078  USE_MAINTAINER_MODE=no
6079fi;
6080  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6081echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6082
6083
6084if test $USE_MAINTAINER_MODE = yes; then
6085  MAINTAINER_MODE_TRUE=
6086  MAINTAINER_MODE_FALSE='#'
6087else
6088  MAINTAINER_MODE_TRUE='#'
6089  MAINTAINER_MODE_FALSE=
6090fi
6091
6092  MAINT=$MAINTAINER_MODE_TRUE
6093
6094
6095
6096coin_have_externals=no
6097if test "$enable_maintainer_mode" = yes; then
6098
6099  # If maintainer mode is chosen, we make sure that the correct versions
6100  # of the tools are used, and that we know where libtool.m4 is (to
6101  # recreate acinclude.m4)
6102
6103
6104  LIBTOOLM4=
6105  # Normally, $HOME
6106  AUTOTOOLS_DFLT=$HOME
6107
6108  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6109echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6110if test "${ac_cv_use_correct_autotools+set}" = set; then
6111  echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113  ac_cv_use_correct_autotools=check
6114fi
6115echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6116echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6117
6118  if test $ac_cv_use_correct_autotools = check; then
6119    ac_cv_use_correct_autotools=yes
6120    # Check if we have autoconf
6121    # Extract the first word of "autoconf", so it can be a program name with args.
6122set dummy autoconf; ac_word=$2
6123echo "$as_me:$LINENO: checking for $ac_word" >&5
6124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6125if test "${ac_cv_prog_have_autoconf+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128  if test -n "$have_autoconf"; then
6129  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6130else
6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132for as_dir in $PATH
6133do
6134  IFS=$as_save_IFS
6135  test -z "$as_dir" && as_dir=.
6136  for ac_exec_ext in '' $ac_executable_extensions; do
6137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138    ac_cv_prog_have_autoconf="yes"
6139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140    break 2
6141  fi
6142done
6143done
6144
6145  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6146fi
6147fi
6148have_autoconf=$ac_cv_prog_have_autoconf
6149if test -n "$have_autoconf"; then
6150  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6151echo "${ECHO_T}$have_autoconf" >&6
6152else
6153  echo "$as_me:$LINENO: result: no" >&5
6154echo "${ECHO_T}no" >&6
6155fi
6156
6157    if test $have_autoconf = no; then
6158      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6159echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6160   { (exit 1); exit 1; }; }
6161    fi
6162
6163    # Check whether autoconf is the correct version
6164    correct_version='2.59'
6165    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6166    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6167echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6168    autoconf --version > confauto.out 2>&1
6169    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6170      echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172    else
6173      rm -f confauto.out
6174      echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6
6176      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6177echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6178   { (exit 1); exit 1; }; }
6179    fi
6180    rm -f confauto.out
6181
6182    # Check if the executable autoconf is picked up from the correct location
6183    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6184echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6185    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6186    autoconf_dir=`cd $autoconf_dir; pwd`
6187    if test x$AUTOTOOLS_DIR = x; then
6188      want_dir=$AUTOTOOLS_DFLT/bin
6189    else
6190      want_dir=$AUTOTOOLS_DIR/bin
6191    fi
6192    if test $autoconf_dir = `cd $want_dir; pwd`; then
6193      echo "$as_me:$LINENO: result: yes" >&5
6194echo "${ECHO_T}yes" >&6
6195    else
6196      rm -f confauto.out
6197      echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6
6199      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6200echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6201   { (exit 1); exit 1; }; }
6202    fi
6203
6204    # Check if we have automake
6205    # Extract the first word of "automake", so it can be a program name with args.
6206set dummy automake; ac_word=$2
6207echo "$as_me:$LINENO: checking for $ac_word" >&5
6208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6209if test "${ac_cv_prog_have_automake+set}" = set; then
6210  echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212  if test -n "$have_automake"; then
6213  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  test -z "$as_dir" && as_dir=.
6220  for ac_exec_ext in '' $ac_executable_extensions; do
6221  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222    ac_cv_prog_have_automake="yes"
6223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224    break 2
6225  fi
6226done
6227done
6228
6229  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6230fi
6231fi
6232have_automake=$ac_cv_prog_have_automake
6233if test -n "$have_automake"; then
6234  echo "$as_me:$LINENO: result: $have_automake" >&5
6235echo "${ECHO_T}$have_automake" >&6
6236else
6237  echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
6239fi
6240
6241    if test $have_automake = no; then
6242      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6243echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6244   { (exit 1); exit 1; }; }
6245    fi
6246
6247    # Check whether automake is the correct version
6248    correct_version='1.9.6'
6249    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6250    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6251echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6252    automake --version > confauto.out 2>&1
6253    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6254      echo "$as_me:$LINENO: result: yes" >&5
6255echo "${ECHO_T}yes" >&6
6256    else
6257      rm -f confauto.out
6258      echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6
6260      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6261echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6262   { (exit 1); exit 1; }; }
6263    fi
6264    rm -f confauto.out
6265
6266    # Check if the executable automake is picked up from the correct location
6267    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6268echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6269    automake_dir=`which automake | sed -e 's=/automake=='`
6270    automake_dir=`cd $automake_dir; pwd`
6271    if test x$AUTOTOOLS_DIR = x; then
6272      want_dir=$AUTOTOOLS_DFLT/bin
6273    else
6274      want_dir=$AUTOTOOLS_DIR/bin
6275    fi
6276    if test $automake_dir = `cd $want_dir; pwd`; then
6277      echo "$as_me:$LINENO: result: yes" >&5
6278echo "${ECHO_T}yes" >&6
6279    else
6280      rm -f confauto.out
6281      echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
6283      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6284echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6285   { (exit 1); exit 1; }; }
6286    fi
6287
6288    # Check if this is the correct version of libtool (with escaped dots)
6289    if test x$AUTOTOOLS_DIR = x; then
6290      want_dir=$AUTOTOOLS_DFLT/share
6291    else
6292      want_dir=$AUTOTOOLS_DIR/share
6293    fi
6294    correct_version='1.5.22'
6295    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6296    if test -r $want_dir/libtool/ltmain.sh; then
6297  have_ltmain=yes
6298  :
6299else
6300  have_ltmain=no
6301  :
6302fi
6303
6304    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6305echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6306    if test $have_ltmain = yes; then
6307    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6308        echo "$as_me:$LINENO: result: yes" >&5
6309echo "${ECHO_T}yes" >&6
6310      else
6311        echo "$as_me:$LINENO: result: no" >&5
6312echo "${ECHO_T}no" >&6
6313        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6314echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6315   { (exit 1); exit 1; }; }
6316      fi
6317    else
6318      echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
6320      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6321echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6322   { (exit 1); exit 1; }; }
6323    fi
6324  fi
6325
6326  # Check if we can find the libtool file
6327  if test x$AUTOTOOLS_DIR = x; then
6328    want_dir=$AUTOTOOLS_DFLT/share
6329  else
6330    want_dir=$AUTOTOOLS_DIR/share
6331  fi
6332  if test -r $want_dir/aclocal/libtool.m4; then
6333  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6334  :
6335else
6336  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6337echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6338   { (exit 1); exit 1; }; }
6339  :
6340fi
6341
6342
6343  # Check if we have an Dependencies file
6344  if test -r $srcdir/Dependencies; then
6345    coin_have_externals=yes
6346  fi
6347  # Check if subversion is installed and understands https
6348  # Extract the first word of "svn", so it can be a program name with args.
6349set dummy svn; ac_word=$2
6350echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352if test "${ac_cv_prog_have_svn+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  if test -n "$have_svn"; then
6356  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361  IFS=$as_save_IFS
6362  test -z "$as_dir" && as_dir=.
6363  for ac_exec_ext in '' $ac_executable_extensions; do
6364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365    ac_cv_prog_have_svn="yes"
6366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367    break 2
6368  fi
6369done
6370done
6371
6372  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6373fi
6374fi
6375have_svn=$ac_cv_prog_have_svn
6376if test -n "$have_svn"; then
6377  echo "$as_me:$LINENO: result: $have_svn" >&5
6378echo "${ECHO_T}$have_svn" >&6
6379else
6380  echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382fi
6383
6384  if test x$have_svn = xyes; then
6385    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6386echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6387if test "${ac_cv_svn_understands_https+set}" = set; then
6388  echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390  svn --version > confauto.out 2>&1
6391                    if $EGREP https confauto.out >/dev/null 2>&1; then
6392                      ac_cv_svn_understands_https=yes
6393                    else
6394                      ac_cv_svn_understands_https=no
6395                      have_svn=no
6396                      ac_cv_prog_have_svn=no
6397                    fi
6398                    rm -f confauto.out
6399fi
6400echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6401echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6402  fi
6403
6404  # Find the location of the BuildTools directory
6405  BUILDTOOLSDIR=
6406  if test -r $srcdir/BuildTools/coin.m4; then
6407    BUILDTOOLSDIR=$srcdir/BuildTools
6408  else
6409    if test -r $srcdir/../BuildTools/coin.m4; then
6410      BUILDTOOLSDIR=$srcdir/../BuildTools
6411    else
6412      if test -r $srcdir/../../BuildTools/coin.m4; then
6413        BUILDTOOLSDIR=$srcdir/../../BuildTools
6414      else
6415        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6416echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6417   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6418      fi
6419    fi
6420  fi
6421
6422
6423  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6424  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6425    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6426  fi
6427
6428  # The following variable is set to the name of the directory where
6429  # the autotool scripts are located
6430
6431  AUX_DIR=$ac_aux_dir
6432fi
6433
6434# helpful variable for the base directory of this package
6435abs_source_dir=`cd $srcdir; pwd`
6436
6437
6438# Stuff for example Makefiles
6439if test x$prefix = xNONE; then
6440  full_prefix=$ac_default_prefix
6441else
6442  full_prefix=$prefix
6443fi
6444full_prefix=`cd $full_prefix ; pwd`
6445
6446abs_lib_dir=$full_prefix/lib
6447
6448abs_include_dir=$full_prefix/include
6449
6450abs_bin_dir=$full_prefix/bin
6451
6452
6453
6454if test $coin_have_externals = yes && test x$have_svn = xyes; then
6455  HAVE_EXTERNALS_TRUE=
6456  HAVE_EXTERNALS_FALSE='#'
6457else
6458  HAVE_EXTERNALS_TRUE='#'
6459  HAVE_EXTERNALS_FALSE=
6460fi
6461
6462
6463# AC_MSG_NOTICE([End automake initialisation.])
6464
6465
6466
6467LIBTOOL=
6468if test -r ../libtool; then
6469  coin_config_dir=..
6470  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6471fi
6472if test "x$LIBTOOL" = x; then
6473  if test -r ../../libtool; then
6474    coin_config_dir=../..
6475    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6476  fi
6477fi
6478
6479if test "x$LIBTOOL" = x; then
6480# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6481  # Stuff for libtool
6482  # Check whether --enable-shared or --disable-shared was given.
6483if test "${enable_shared+set}" = set; then
6484  enableval="$enable_shared"
6485  p=${PACKAGE-default}
6486    case $enableval in
6487    yes) enable_shared=yes ;;
6488    no) enable_shared=no ;;
6489    *)
6490      enable_shared=no
6491      # Look at the argument we got.  We use all the common list separators.
6492      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6493      for pkg in $enableval; do
6494        IFS="$lt_save_ifs"
6495        if test "X$pkg" = "X$p"; then
6496          enable_shared=yes
6497        fi
6498      done
6499      IFS="$lt_save_ifs"
6500      ;;
6501    esac
6502else
6503  enable_shared=yes
6504fi;
6505
6506# Check whether --enable-fast-install or --disable-fast-install was given.
6507if test "${enable_fast_install+set}" = set; then
6508  enableval="$enable_fast_install"
6509  p=${PACKAGE-default}
6510    case $enableval in
6511    yes) enable_fast_install=yes ;;
6512    no) enable_fast_install=no ;;
6513    *)
6514      enable_fast_install=no
6515      # Look at the argument we got.  We use all the common list separators.
6516      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6517      for pkg in $enableval; do
6518        IFS="$lt_save_ifs"
6519        if test "X$pkg" = "X$p"; then
6520          enable_fast_install=yes
6521        fi
6522      done
6523      IFS="$lt_save_ifs"
6524      ;;
6525    esac
6526else
6527  enable_fast_install=yes
6528fi;
6529
6530echo "$as_me:$LINENO: checking host system type" >&5
6531echo $ECHO_N "checking host system type... $ECHO_C" >&6
6532if test "${ac_cv_host+set}" = set; then
6533  echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535  ac_cv_host_alias=$host_alias
6536test -z "$ac_cv_host_alias" &&
6537  ac_cv_host_alias=$ac_cv_build_alias
6538ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6539  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6540echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6541   { (exit 1); exit 1; }; }
6542
6543fi
6544echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6545echo "${ECHO_T}$ac_cv_host" >&6
6546host=$ac_cv_host
6547host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6548host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6549host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6550
6551
6552echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6553echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6554if test "${lt_cv_path_SED+set}" = set; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557  # Loop through the user's path and test for sed and gsed.
6558# Then use that list of sed's as ones to test for truncation.
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562  IFS=$as_save_IFS
6563  test -z "$as_dir" && as_dir=.
6564  for lt_ac_prog in sed gsed; do
6565    for ac_exec_ext in '' $ac_executable_extensions; do
6566      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6567        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6568      fi
6569    done
6570  done
6571done
6572lt_ac_max=0
6573lt_ac_count=0
6574# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6575# along with /bin/sed that truncates output.
6576for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6577  test ! -f $lt_ac_sed && continue
6578  cat /dev/null > conftest.in
6579  lt_ac_count=0
6580  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6581  # Check for GNU sed and select it if it is found.
6582  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6583    lt_cv_path_SED=$lt_ac_sed
6584    break
6585  fi
6586  while true; do
6587    cat conftest.in conftest.in >conftest.tmp
6588    mv conftest.tmp conftest.in
6589    cp conftest.in conftest.nl
6590    echo >>conftest.nl
6591    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6592    cmp -s conftest.out conftest.nl || break
6593    # 10000 chars as input seems more than enough
6594    test $lt_ac_count -gt 10 && break
6595    lt_ac_count=`expr $lt_ac_count + 1`
6596    if test $lt_ac_count -gt $lt_ac_max; then
6597      lt_ac_max=$lt_ac_count
6598      lt_cv_path_SED=$lt_ac_sed
6599    fi
6600  done
6601done
6602
6603fi
6604
6605SED=$lt_cv_path_SED
6606echo "$as_me:$LINENO: result: $SED" >&5
6607echo "${ECHO_T}$SED" >&6
6608
6609
6610# Check whether --with-gnu-ld or --without-gnu-ld was given.
6611if test "${with_gnu_ld+set}" = set; then
6612  withval="$with_gnu_ld"
6613  test "$withval" = no || with_gnu_ld=yes
6614else
6615  with_gnu_ld=no
6616fi;
6617ac_prog=ld
6618if test "$GCC" = yes; then
6619  # Check if gcc -print-prog-name=ld gives a path.
6620  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6621echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6622  case $host in
6623  *-*-mingw*)
6624    # gcc leaves a trailing carriage return which upsets mingw
6625    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6626  *)
6627    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6628  esac
6629  case $ac_prog in
6630    # Accept absolute paths.
6631    [\\/]* | ?:[\\/]*)
6632      re_direlt='/[^/][^/]*/\.\./'
6633      # Canonicalize the pathname of ld
6634      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6635      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6636        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6637      done
6638      test -z "$LD" && LD="$ac_prog"
6639      ;;
6640  "")
6641    # If it fails, then pretend we aren't using GCC.
6642    ac_prog=ld
6643    ;;
6644  *)
6645    # If it is relative, then search for the first ld in PATH.
6646    with_gnu_ld=unknown
6647    ;;
6648  esac
6649elif test "$with_gnu_ld" = yes; then
6650  echo "$as_me:$LINENO: checking for GNU ld" >&5
6651echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6652else
6653  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6654echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6655fi
6656if test "${lt_cv_path_LD+set}" = set; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659  if test -z "$LD"; then
6660  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6661  for ac_dir in $PATH; do
6662    IFS="$lt_save_ifs"
6663    test -z "$ac_dir" && ac_dir=.
6664    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6665      lt_cv_path_LD="$ac_dir/$ac_prog"
6666      # Check to see if the program is GNU ld.  I'd rather use --version,
6667      # but apparently some variants of GNU ld only accept -v.
6668      # Break only if it was the GNU/non-GNU ld that we prefer.
6669      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6670      *GNU* | *'with BFD'*)
6671        test "$with_gnu_ld" != no && break
6672        ;;
6673      *)
6674        test "$with_gnu_ld" != yes && break
6675        ;;
6676      esac
6677    fi
6678  done
6679  IFS="$lt_save_ifs"
6680else
6681  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6682fi
6683fi
6684
6685LD="$lt_cv_path_LD"
6686if test -n "$LD"; then
6687  echo "$as_me:$LINENO: result: $LD" >&5
6688echo "${ECHO_T}$LD" >&6
6689else
6690  echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6
6692fi
6693test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6694echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6695   { (exit 1); exit 1; }; }
6696echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6697echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6698if test "${lt_cv_prog_gnu_ld+set}" = set; then
6699  echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6702case `$LD -v 2>&1 </dev/null` in
6703*GNU* | *'with BFD'*)
6704  lt_cv_prog_gnu_ld=yes
6705  ;;
6706*)
6707  lt_cv_prog_gnu_ld=no
6708  ;;
6709esac
6710fi
6711echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6712echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6713with_gnu_ld=$lt_cv_prog_gnu_ld
6714
6715
6716echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6717echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6718if test "${lt_cv_ld_reload_flag+set}" = set; then
6719  echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721  lt_cv_ld_reload_flag='-r'
6722fi
6723echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6724echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6725reload_flag=$lt_cv_ld_reload_flag
6726case $reload_flag in
6727"" | " "*) ;;
6728*) reload_flag=" $reload_flag" ;;
6729esac
6730reload_cmds='$LD$reload_flag -o $output$reload_objs'
6731case $host_os in
6732  darwin*)
6733    if test "$GCC" = yes; then
6734      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6735    else
6736      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6737    fi
6738    ;;
6739esac
6740
6741echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6742echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6743if test "${lt_cv_path_NM+set}" = set; then
6744  echo $ECHO_N "(cached) $ECHO_C" >&6
6745else
6746  if test -n "$NM"; then
6747  # Let the user override the test.
6748  lt_cv_path_NM="$NM"
6749else
6750  lt_nm_to_check="${ac_tool_prefix}nm"
6751  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6752    lt_nm_to_check="$lt_nm_to_check nm"
6753  fi
6754  for lt_tmp_nm in $lt_nm_to_check; do
6755    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6756    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6757      IFS="$lt_save_ifs"
6758      test -z "$ac_dir" && ac_dir=.
6759      tmp_nm="$ac_dir/$lt_tmp_nm"
6760      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6761        # Check to see if the nm accepts a BSD-compat flag.
6762        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6763        #   nm: unknown option "B" ignored
6764        # Tru64's nm complains that /dev/null is an invalid object file
6765        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6766        */dev/null* | *'Invalid file or object type'*)
6767          lt_cv_path_NM="$tmp_nm -B"
6768          break
6769          ;;
6770        *)
6771          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6772          */dev/null*)
6773            lt_cv_path_NM="$tmp_nm -p"
6774            break
6775            ;;
6776          *)
6777            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6778            continue # so that we can try to find one that supports BSD flags
6779            ;;
6780          esac
6781          ;;
6782        esac
6783      fi
6784    done
6785    IFS="$lt_save_ifs"
6786  done
6787  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6788fi
6789fi
6790echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6791echo "${ECHO_T}$lt_cv_path_NM" >&6
6792NM="$lt_cv_path_NM"
6793
6794echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6795echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6796if test "${lt_cv_deplibs_check_method+set}" = set; then
6797  echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799  lt_cv_file_magic_cmd='$MAGIC_CMD'
6800lt_cv_file_magic_test_file=
6801lt_cv_deplibs_check_method='unknown'
6802# Need to set the preceding variable on all platforms that support
6803# interlibrary dependencies.
6804# 'none' -- dependencies not supported.
6805# `unknown' -- same as none, but documents that we really don't know.
6806# 'pass_all' -- all dependencies passed with no checks.
6807# 'test_compile' -- check by making test program.
6808# 'file_magic [[regex]]' -- check by looking for files in library path
6809# which responds to the $file_magic_cmd with a given extended regex.
6810# If you have `file' or equivalent on your system and you're not sure
6811# whether `pass_all' will *always* work, you probably want this one.
6812
6813case $host_os in
6814aix4* | aix5*)
6815  lt_cv_deplibs_check_method=pass_all
6816  ;;
6817
6818beos*)
6819  lt_cv_deplibs_check_method=pass_all
6820  ;;
6821
6822bsdi[45]*)
6823  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6824  lt_cv_file_magic_cmd='/usr/bin/file -L'
6825  lt_cv_file_magic_test_file=/shlib/libc.so
6826  ;;
6827
6828cygwin*)
6829  # func_win32_libid is a shell function defined in ltmain.sh
6830  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6831  lt_cv_file_magic_cmd='func_win32_libid'
6832  ;;
6833
6834mingw* | pw32*)
6835  # Base MSYS/MinGW do not provide the 'file' command needed by
6836  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6837  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6838  lt_cv_file_magic_cmd='$OBJDUMP -f'
6839  ;;
6840
6841darwin* | rhapsody*)
6842  lt_cv_deplibs_check_method=pass_all
6843  ;;
6844
6845freebsd* | kfreebsd*-gnu | dragonfly*)
6846  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6847    case $host_cpu in
6848    i*86 )
6849      # Not sure whether the presence of OpenBSD here was a mistake.
6850      # Let's accept both of them until this is cleared up.
6851      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6852      lt_cv_file_magic_cmd=/usr/bin/file
6853      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6854      ;;
6855    esac
6856  else
6857    lt_cv_deplibs_check_method=pass_all
6858  fi
6859  ;;
6860
6861gnu*)
6862  lt_cv_deplibs_check_method=pass_all
6863  ;;
6864
6865hpux10.20* | hpux11*)
6866  lt_cv_file_magic_cmd=/usr/bin/file
6867  case $host_cpu in
6868  ia64*)
6869    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6870    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6871    ;;
6872  hppa*64*)
6873    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]'
6874    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6875    ;;
6876  *)
6877    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6878    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6879    ;;
6880  esac
6881  ;;
6882
6883interix3*)
6884  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6885  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6886  ;;
6887
6888irix5* | irix6* | nonstopux*)
6889  case $LD in
6890  *-32|*"-32 ") libmagic=32-bit;;
6891  *-n32|*"-n32 ") libmagic=N32;;
6892  *-64|*"-64 ") libmagic=64-bit;;
6893  *) libmagic=never-match;;
6894  esac
6895  lt_cv_deplibs_check_method=pass_all
6896  ;;
6897
6898# This must be Linux ELF.
6899linux*)
6900  lt_cv_deplibs_check_method=pass_all
6901  ;;
6902
6903netbsd*)
6904  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6905    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6906  else
6907    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6908  fi
6909  ;;
6910
6911newos6*)
6912  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6913  lt_cv_file_magic_cmd=/usr/bin/file
6914  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6915  ;;
6916
6917nto-qnx*)
6918  lt_cv_deplibs_check_method=unknown
6919  ;;
6920
6921openbsd*)
6922  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6923    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6924  else
6925    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6926  fi
6927  ;;
6928
6929osf3* | osf4* | osf5*)
6930  lt_cv_deplibs_check_method=pass_all
6931  ;;
6932
6933solaris*)
6934  lt_cv_deplibs_check_method=pass_all
6935  ;;
6936
6937sysv4 | sysv4.3*)
6938  case $host_vendor in
6939  motorola)
6940    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]'
6941    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6942    ;;
6943  ncr)
6944    lt_cv_deplibs_check_method=pass_all
6945    ;;
6946  sequent)
6947    lt_cv_file_magic_cmd='/bin/file'
6948    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6949    ;;
6950  sni)
6951    lt_cv_file_magic_cmd='/bin/file'
6952    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6953    lt_cv_file_magic_test_file=/lib/libc.so
6954    ;;
6955  siemens)
6956    lt_cv_deplibs_check_method=pass_all
6957    ;;
6958  pc)
6959    lt_cv_deplibs_check_method=pass_all
6960    ;;
6961  esac
6962  ;;
6963
6964sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6965  lt_cv_deplibs_check_method=pass_all
6966  ;;
6967esac
6968
6969fi
6970echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6971echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6972file_magic_cmd=$lt_cv_file_magic_cmd
6973deplibs_check_method=$lt_cv_deplibs_check_method
6974test -z "$deplibs_check_method" && deplibs_check_method=unknown
6975
6976
6977
6978
6979# If no C compiler was specified, use CC.
6980LTCC=${LTCC-"$CC"}
6981
6982# If no C compiler flags were specified, use CFLAGS.
6983LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6984
6985# Allow CC to be a program name with arguments.
6986compiler=$CC
6987
6988# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6989if test "${enable_libtool_lock+set}" = set; then
6990  enableval="$enable_libtool_lock"
6991
6992fi;
6993test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6994
6995# Some flags need to be propagated to the compiler or linker for good
6996# libtool support.
6997case $host in
6998ia64-*-hpux*)
6999  # Find out which ABI we are using.
7000  echo 'int i;' > conftest.$ac_ext
7001  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002  (eval $ac_compile) 2>&5
7003  ac_status=$?
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); }; then
7006    case `/usr/bin/file conftest.$ac_objext` in
7007    *ELF-32*)
7008      HPUX_IA64_MODE="32"
7009      ;;
7010    *ELF-64*)
7011      HPUX_IA64_MODE="64"
7012      ;;
7013    esac
7014  fi
7015  rm -rf conftest*
7016  ;;
7017*-*-irix6*)
7018  # Find out which ABI we are using.
7019  echo '#line 7019 "configure"' > conftest.$ac_ext
7020  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021  (eval $ac_compile) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; then
7025   if test "$lt_cv_prog_gnu_ld" = yes; then
7026    case `/usr/bin/file conftest.$ac_objext` in
7027    *32-bit*)
7028      LD="${LD-ld} -melf32bsmip"
7029      ;;
7030    *N32*)
7031      LD="${LD-ld} -melf32bmipn32"
7032      ;;
7033    *64-bit*)
7034      LD="${LD-ld} -melf64bmip"
7035      ;;
7036    esac
7037   else
7038    case `/usr/bin/file conftest.$ac_objext` in
7039    *32-bit*)
7040      LD="${LD-ld} -32"
7041      ;;
7042    *N32*)
7043      LD="${LD-ld} -n32"
7044      ;;
7045    *64-bit*)
7046      LD="${LD-ld} -64"
7047      ;;
7048    esac
7049   fi
7050  fi
7051  rm -rf conftest*
7052  ;;
7053
7054x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7055  # Find out which ABI we are using.
7056  echo 'int i;' > conftest.$ac_ext
7057  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058  (eval $ac_compile) 2>&5
7059  ac_status=$?
7060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061  (exit $ac_status); }; then
7062    case `/usr/bin/file conftest.o` in
7063    *32-bit*)
7064      case $host in
7065        x86_64-*linux*)
7066          LD="${LD-ld} -m elf_i386"
7067          ;;
7068        ppc64-*linux*|powerpc64-*linux*)
7069          LD="${LD-ld} -m elf32ppclinux"
7070          ;;
7071        s390x-*linux*)
7072          LD="${LD-ld} -m elf_s390"
7073          ;;
7074        sparc64-*linux*)
7075          LD="${LD-ld} -m elf32_sparc"
7076          ;;
7077      esac
7078      ;;
7079    *64-bit*)
7080      case $host in
7081        x86_64-*linux*)
7082          LD="${LD-ld} -m elf_x86_64"
7083          ;;
7084        ppc*-*linux*|powerpc*-*linux*)
7085          LD="${LD-ld} -m elf64ppc"
7086          ;;
7087        s390*-*linux*)
7088          LD="${LD-ld} -m elf64_s390"
7089          ;;
7090        sparc*-*linux*)
7091          LD="${LD-ld} -m elf64_sparc"
7092          ;;
7093      esac
7094      ;;
7095    esac
7096  fi
7097  rm -rf conftest*
7098  ;;
7099
7100*-*-sco3.2v5*)
7101  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7102  SAVE_CFLAGS="$CFLAGS"
7103  CFLAGS="$CFLAGS -belf"
7104  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7105echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7106if test "${lt_cv_cc_needs_belf+set}" = set; then
7107  echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109  ac_ext=c
7110ac_cpp='$CPP $CPPFLAGS'
7111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114
7115     cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121
7122#ifdef F77_DUMMY_MAIN
7123
7124#  ifdef __cplusplus
7125     extern "C"
7126#  endif
7127   int F77_DUMMY_MAIN() { return 1; }
7128
7129#endif
7130int
7131main ()
7132{
7133
7134  ;
7135  return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext conftest$ac_exeext
7139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7140  (eval $ac_link) 2>conftest.er1
7141  ac_status=$?
7142  grep -v '^ *+' conftest.er1 >conftest.err
7143  rm -f conftest.er1
7144  cat conftest.err >&5
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); } &&
7147         { ac_try='test -z "$ac_c_werror_flag"
7148                         || test ! -s conftest.err'
7149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150  (eval $ac_try) 2>&5
7151  ac_status=$?
7152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); }; } &&
7154         { ac_try='test -s conftest$ac_exeext'
7155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156  (eval $ac_try) 2>&5
7157  ac_status=$?
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); }; }; then
7160  lt_cv_cc_needs_belf=yes
7161else
7162  echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
7165lt_cv_cc_needs_belf=no
7166fi
7167rm -f conftest.err conftest.$ac_objext \
7168      conftest$ac_exeext conftest.$ac_ext
7169     ac_ext=c
7170ac_cpp='$CPP $CPPFLAGS'
7171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174
7175fi
7176echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7177echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7178  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7179    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7180    CFLAGS="$SAVE_CFLAGS"
7181  fi
7182  ;;
7183sparc*-*solaris*)
7184  # Find out which ABI we are using.
7185  echo 'int i;' > conftest.$ac_ext
7186  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187  (eval $ac_compile) 2>&5
7188  ac_status=$?
7189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190  (exit $ac_status); }; then
7191    case `/usr/bin/file conftest.o` in
7192    *64-bit*)
7193      case $lt_cv_prog_gnu_ld in
7194      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7195      *)    LD="${LD-ld} -64" ;;
7196      esac
7197      ;;
7198    esac
7199  fi
7200  rm -rf conftest*
7201  ;;
7202
7203
7204esac
7205
7206need_locks="$enable_libtool_lock"
7207
7208
7209ac_ext=c
7210ac_cpp='$CPP $CPPFLAGS'
7211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7215echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7216# On Suns, sometimes $CPP names a directory.
7217if test -n "$CPP" && test -d "$CPP"; then
7218  CPP=
7219fi
7220if test -z "$CPP"; then
7221  if test "${ac_cv_prog_CPP+set}" = set; then
7222  echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224      # Double quotes because CPP needs to be expanded
7225    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7226    do
7227      ac_preproc_ok=false
7228for ac_c_preproc_warn_flag in '' yes
7229do
7230  # Use a header file that comes with gcc, so configuring glibc
7231  # with a fresh cross-compiler works.
7232  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233  # <limits.h> exists even on freestanding compilers.
7234  # On the NeXT, cc -E runs the code through the compiler's parser,
7235  # not just through cpp. "Syntax error" is here to catch this case.
7236  cat >conftest.$ac_ext <<_ACEOF
7237/* confdefs.h.  */
7238_ACEOF
7239cat confdefs.h >>conftest.$ac_ext
7240cat >>conftest.$ac_ext <<_ACEOF
7241/* end confdefs.h.  */
7242#ifdef __STDC__
7243# include <limits.h>
7244#else
7245# include <assert.h>
7246#endif
7247                     Syntax error
7248_ACEOF
7249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251  ac_status=$?
7252  grep -v '^ *+' conftest.er1 >conftest.err
7253  rm -f conftest.er1
7254  cat conftest.err >&5
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); } >/dev/null; then
7257  if test -s conftest.err; then
7258    ac_cpp_err=$ac_c_preproc_warn_flag
7259    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7260  else
7261    ac_cpp_err=
7262  fi
7263else
7264  ac_cpp_err=yes
7265fi
7266if test -z "$ac_cpp_err"; then
7267  :
7268else
7269  echo "$as_me: failed program was:" >&5
7270sed 's/^/| /' conftest.$ac_ext >&5
7271
7272  # Broken: fails on valid input.
7273continue
7274fi
7275rm -f conftest.err conftest.$ac_ext
7276
7277  # OK, works on sane cases.  Now check whether non-existent headers
7278  # can be detected and how.
7279  cat >conftest.$ac_ext <<_ACEOF
7280/* confdefs.h.  */
7281_ACEOF
7282cat confdefs.h >>conftest.$ac_ext
7283cat >>conftest.$ac_ext <<_ACEOF
7284/* end confdefs.h.  */
7285#include <ac_nonexistent.h>
7286_ACEOF
7287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7288  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7289  ac_status=$?
7290  grep -v '^ *+' conftest.er1 >conftest.err
7291  rm -f conftest.er1
7292  cat conftest.err >&5
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); } >/dev/null; then
7295  if test -s conftest.err; then
7296    ac_cpp_err=$ac_c_preproc_warn_flag
7297    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7298  else
7299    ac_cpp_err=
7300  fi
7301else
7302  ac_cpp_err=yes
7303fi
7304if test -z "$ac_cpp_err"; then
7305  # Broken: success on invalid input.
7306continue
7307else
7308  echo "$as_me: failed program was:" >&5
7309sed 's/^/| /' conftest.$ac_ext >&5
7310
7311  # Passes both tests.
7312ac_preproc_ok=:
7313break
7314fi
7315rm -f conftest.err conftest.$ac_ext
7316
7317done
7318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319rm -f conftest.err conftest.$ac_ext
7320if $ac_preproc_ok; then
7321  break
7322fi
7323
7324    done
7325    ac_cv_prog_CPP=$CPP
7326
7327fi
7328  CPP=$ac_cv_prog_CPP
7329else
7330  ac_cv_prog_CPP=$CPP
7331fi
7332echo "$as_me:$LINENO: result: $CPP" >&5
7333echo "${ECHO_T}$CPP" >&6
7334ac_preproc_ok=false
7335for ac_c_preproc_warn_flag in '' yes
7336do
7337  # Use a header file that comes with gcc, so configuring glibc
7338  # with a fresh cross-compiler works.
7339  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340  # <limits.h> exists even on freestanding compilers.
7341  # On the NeXT, cc -E runs the code through the compiler's parser,
7342  # not just through cpp. "Syntax error" is here to catch this case.
7343  cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h.  */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h.  */
7349#ifdef __STDC__
7350# include <limits.h>
7351#else
7352# include <assert.h>
7353#endif
7354                     Syntax error
7355_ACEOF
7356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } >/dev/null; then
7364  if test -s conftest.err; then
7365    ac_cpp_err=$ac_c_preproc_warn_flag
7366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7367  else
7368    ac_cpp_err=
7369  fi
7370else
7371  ac_cpp_err=yes
7372fi
7373if test -z "$ac_cpp_err"; then
7374  :
7375else
7376  echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379  # Broken: fails on valid input.
7380continue
7381fi
7382rm -f conftest.err conftest.$ac_ext
7383
7384  # OK, works on sane cases.  Now check whether non-existent headers
7385  # can be detected and how.
7386  cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h.  */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h.  */
7392#include <ac_nonexistent.h>
7393_ACEOF
7394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7395  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7396  ac_status=$?
7397  grep -v '^ *+' conftest.er1 >conftest.err
7398  rm -f conftest.er1
7399  cat conftest.err >&5
7400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401  (exit $ac_status); } >/dev/null; then
7402  if test -s conftest.err; then
7403    ac_cpp_err=$ac_c_preproc_warn_flag
7404    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7405  else
7406    ac_cpp_err=
7407  fi
7408else
7409  ac_cpp_err=yes
7410fi
7411if test -z "$ac_cpp_err"; then
7412  # Broken: success on invalid input.
7413continue
7414else
7415  echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418  # Passes both tests.
7419ac_preproc_ok=:
7420break
7421fi
7422rm -f conftest.err conftest.$ac_ext
7423
7424done
7425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7426rm -f conftest.err conftest.$ac_ext
7427if $ac_preproc_ok; then
7428  :
7429else
7430  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7431See \`config.log' for more details." >&5
7432echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7433See \`config.log' for more details." >&2;}
7434   { (exit 1); exit 1; }; }
7435fi
7436
7437ac_ext=c
7438ac_cpp='$CPP $CPPFLAGS'
7439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442
7443
7444echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7445echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7446if test "${ac_cv_header_stdc+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449  cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h.  */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h.  */
7455#include <stdlib.h>
7456#include <stdarg.h>
7457#include <string.h>
7458#include <float.h>
7459
7460#ifdef F77_DUMMY_MAIN
7461
7462#  ifdef __cplusplus
7463     extern "C"
7464#  endif
7465   int F77_DUMMY_MAIN() { return 1; }
7466
7467#endif
7468int
7469main ()
7470{
7471
7472  ;
7473  return 0;
7474}
7475_ACEOF
7476rm -f conftest.$ac_objext
7477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478  (eval $ac_compile) 2>conftest.er1
7479  ac_status=$?
7480  grep -v '^ *+' conftest.er1 >conftest.err
7481  rm -f conftest.er1
7482  cat conftest.err >&5
7483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484  (exit $ac_status); } &&
7485         { ac_try='test -z "$ac_c_werror_flag"
7486                         || test ! -s conftest.err'
7487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488  (eval $ac_try) 2>&5
7489  ac_status=$?
7490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491  (exit $ac_status); }; } &&
7492         { ac_try='test -s conftest.$ac_objext'
7493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494  (eval $ac_try) 2>&5
7495  ac_status=$?
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); }; }; then
7498  ac_cv_header_stdc=yes
7499else
7500  echo "$as_me: failed program was:" >&5
7501sed 's/^/| /' conftest.$ac_ext >&5
7502
7503ac_cv_header_stdc=no
7504fi
7505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7506
7507if test $ac_cv_header_stdc = yes; then
7508  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7509  cat >conftest.$ac_ext <<_ACEOF
7510/* confdefs.h.  */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h.  */
7515#include <string.h>
7516
7517_ACEOF
7518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7519  $EGREP "memchr" >/dev/null 2>&1; then
7520  :
7521else
7522  ac_cv_header_stdc=no
7523fi
7524rm -f conftest*
7525
7526fi
7527
7528if test $ac_cv_header_stdc = yes; then
7529  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7530  cat >conftest.$ac_ext <<_ACEOF
7531/* confdefs.h.  */
7532_ACEOF
7533cat confdefs.h >>conftest.$ac_ext
7534cat >>conftest.$ac_ext <<_ACEOF
7535/* end confdefs.h.  */
7536#include <stdlib.h>
7537
7538_ACEOF
7539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540  $EGREP "free" >/dev/null 2>&1; then
7541  :
7542else
7543  ac_cv_header_stdc=no
7544fi
7545rm -f conftest*
7546
7547fi
7548
7549if test $ac_cv_header_stdc = yes; then
7550  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551  if test "$cross_compiling" = yes; then
7552  :
7553else
7554  cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h.  */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h.  */
7560#include <ctype.h>
7561#if ((' ' & 0x0FF) == 0x020)
7562# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7563# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7564#else
7565# define ISLOWER(c) \
7566                   (('a' <= (c) && (c) <= 'i') \
7567                     || ('j' <= (c) && (c) <= 'r') \
7568                     || ('s' <= (c) && (c) <= 'z'))
7569# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7570#endif
7571
7572#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7573int
7574main ()
7575{
7576  int i;
7577  for (i = 0; i < 256; i++)
7578    if (XOR (islower (i), ISLOWER (i))
7579        || toupper (i) != TOUPPER (i))
7580      exit(2);
7581  exit (0);
7582}
7583_ACEOF
7584rm -f conftest$ac_exeext
7585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586  (eval $ac_link) 2>&5
7587  ac_status=$?
7588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591  (eval $ac_try) 2>&5
7592  ac_status=$?
7593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594  (exit $ac_status); }; }; then
7595  :
7596else
7597  echo "$as_me: program exited with status $ac_status" >&5
7598echo "$as_me: failed program was:" >&5
7599sed 's/^/| /' conftest.$ac_ext >&5
7600
7601( exit $ac_status )
7602ac_cv_header_stdc=no
7603fi
7604rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7605fi
7606fi
7607fi
7608echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7609echo "${ECHO_T}$ac_cv_header_stdc" >&6
7610if test $ac_cv_header_stdc = yes; then
7611
7612cat >>confdefs.h <<\_ACEOF
7613#define STDC_HEADERS 1
7614_ACEOF
7615
7616fi
7617
7618# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7629                  inttypes.h stdint.h unistd.h
7630do
7631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632echo "$as_me:$LINENO: checking for $ac_header" >&5
7633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7634if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635  echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637  cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h.  */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h.  */
7643$ac_includes_default
7644
7645#include <$ac_header>
7646_ACEOF
7647rm -f conftest.$ac_objext
7648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649  (eval $ac_compile) 2>conftest.er1
7650  ac_status=$?
7651  grep -v '^ *+' conftest.er1 >conftest.err
7652  rm -f conftest.er1
7653  cat conftest.err >&5
7654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655  (exit $ac_status); } &&
7656         { ac_try='test -z "$ac_c_werror_flag"
7657                         || test ! -s conftest.err'
7658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659  (eval $ac_try) 2>&5
7660  ac_status=$?
7661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662  (exit $ac_status); }; } &&
7663         { ac_try='test -s conftest.$ac_objext'
7664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665  (eval $ac_try) 2>&5
7666  ac_status=$?
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); }; }; then
7669  eval "$as_ac_Header=yes"
7670else
7671  echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674eval "$as_ac_Header=no"
7675fi
7676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677fi
7678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680if test `eval echo '${'$as_ac_Header'}'` = yes; then
7681  cat >>confdefs.h <<_ACEOF
7682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7683_ACEOF
7684
7685fi
7686
7687done
7688
7689
7690
7691for ac_header in dlfcn.h
7692do
7693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694if eval "test \"\${$as_ac_Header+set}\" = set"; then
7695  echo "$as_me:$LINENO: checking for $ac_header" >&5
7696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7697if eval "test \"\${$as_ac_Header+set}\" = set"; then
7698  echo $ECHO_N "(cached) $ECHO_C" >&6
7699fi
7700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7702else
7703  # Is the header compilable?
7704echo "$as_me:$LINENO: checking $ac_header usability" >&5
7705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7706cat >conftest.$ac_ext <<_ACEOF
7707/* confdefs.h.  */
7708_ACEOF
7709cat confdefs.h >>conftest.$ac_ext
7710cat >>conftest.$ac_ext <<_ACEOF
7711/* end confdefs.h.  */
7712$ac_includes_default
7713#include <$ac_header>
7714_ACEOF
7715rm -f conftest.$ac_objext
7716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717  (eval $ac_compile) 2>conftest.er1
7718  ac_status=$?
7719  grep -v '^ *+' conftest.er1 >conftest.err
7720  rm -f conftest.er1
7721  cat conftest.err >&5
7722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723  (exit $ac_status); } &&
7724         { ac_try='test -z "$ac_c_werror_flag"
7725                         || test ! -s conftest.err'
7726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727  (eval $ac_try) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }; } &&
7731         { ac_try='test -s conftest.$ac_objext'
7732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733  (eval $ac_try) 2>&5
7734  ac_status=$?
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); }; }; then
7737  ac_header_compiler=yes
7738else
7739  echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742ac_header_compiler=no
7743fi
7744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7746echo "${ECHO_T}$ac_header_compiler" >&6
7747
7748# Is the header present?
7749echo "$as_me:$LINENO: checking $ac_header presence" >&5
7750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7751cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h.  */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h.  */
7757#include <$ac_header>
7758_ACEOF
7759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7761  ac_status=$?
7762  grep -v '^ *+' conftest.er1 >conftest.err
7763  rm -f conftest.er1
7764  cat conftest.err >&5
7765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766  (exit $ac_status); } >/dev/null; then
7767  if test -s conftest.err; then
7768    ac_cpp_err=$ac_c_preproc_warn_flag
7769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7770  else
7771    ac_cpp_err=
7772  fi
7773else
7774  ac_cpp_err=yes
7775fi
7776if test -z "$ac_cpp_err"; then
7777  ac_header_preproc=yes
7778else
7779  echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782  ac_header_preproc=no
7783fi
7784rm -f conftest.err conftest.$ac_ext
7785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7786echo "${ECHO_T}$ac_header_preproc" >&6
7787
7788# So?  What about this header?
7789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7790  yes:no: )
7791    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7795    ac_header_preproc=yes
7796    ;;
7797  no:yes:* )
7798    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7800    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7801echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7802    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7804    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7805echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7808    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7810    (
7811      cat <<\_ASBOX
7812## --------------------------------------------------------------- ##
7813## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7814## --------------------------------------------------------------- ##
7815_ASBOX
7816    ) |
7817      sed "s/^/$as_me: WARNING:     /" >&2
7818    ;;
7819esac
7820echo "$as_me:$LINENO: checking for $ac_header" >&5
7821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7822if eval "test \"\${$as_ac_Header+set}\" = set"; then
7823  echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825  eval "$as_ac_Header=\$ac_header_preproc"
7826fi
7827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7829
7830fi
7831if test `eval echo '${'$as_ac_Header'}'` = yes; then
7832  cat >>confdefs.h <<_ACEOF
7833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7834_ACEOF
7835
7836fi
7837
7838done
7839
7840ac_ext=cc
7841ac_cpp='$CXXCPP $CPPFLAGS'
7842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7845if test -n "$ac_tool_prefix"; then
7846  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7847  do
7848    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7850echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7852if test "${ac_cv_prog_CXX+set}" = set; then
7853  echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855  if test -n "$CXX"; then
7856  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7857else
7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861  IFS=$as_save_IFS
7862  test -z "$as_dir" && as_dir=.
7863  for ac_exec_ext in '' $ac_executable_extensions; do
7864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867    break 2
7868  fi
7869done
7870done
7871
7872fi
7873fi
7874CXX=$ac_cv_prog_CXX
7875if test -n "$CXX"; then
7876  echo "$as_me:$LINENO: result: $CXX" >&5
7877echo "${ECHO_T}$CXX" >&6
7878else
7879  echo "$as_me:$LINENO: result: no" >&5
7880echo "${ECHO_T}no" >&6
7881fi
7882
7883    test -n "$CXX" && break
7884  done
7885fi
7886if test -z "$CXX"; then
7887  ac_ct_CXX=$CXX
7888  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7889do
7890  # Extract the first word of "$ac_prog", so it can be a program name with args.
7891set dummy $ac_prog; ac_word=$2
7892echo "$as_me:$LINENO: checking for $ac_word" >&5
7893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7894if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7895  echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897  if test -n "$ac_ct_CXX"; then
7898  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7899else
7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903  IFS=$as_save_IFS
7904  test -z "$as_dir" && as_dir=.
7905  for ac_exec_ext in '' $ac_executable_extensions; do
7906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907    ac_cv_prog_ac_ct_CXX="$ac_prog"
7908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912done
7913
7914fi
7915fi
7916ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7917if test -n "$ac_ct_CXX"; then
7918  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7919echo "${ECHO_T}$ac_ct_CXX" >&6
7920else
7921  echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6
7923fi
7924
7925  test -n "$ac_ct_CXX" && break
7926done
7927test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7928
7929  CXX=$ac_ct_CXX
7930fi
7931
7932
7933# Provide some information about the compiler.
7934echo "$as_me:$LINENO:" \
7935     "checking for C++ compiler version" >&5
7936ac_compiler=`set X $ac_compile; echo $2`
7937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7938  (eval $ac_compiler --version </dev/null >&5) 2>&5
7939  ac_status=$?
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); }
7942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7943  (eval $ac_compiler -v </dev/null >&5) 2>&5
7944  ac_status=$?
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); }
7947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7948  (eval $ac_compiler -V </dev/null >&5) 2>&5
7949  ac_status=$?
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); }
7952
7953echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7954echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7955if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7956  echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958  cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964
7965#ifdef F77_DUMMY_MAIN
7966
7967#  ifdef __cplusplus
7968     extern "C"
7969#  endif
7970   int F77_DUMMY_MAIN() { return 1; }
7971
7972#endif
7973int
7974main ()
7975{
7976#ifndef __GNUC__
7977       choke me
7978#endif
7979
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984rm -f conftest.$ac_objext
7985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7986  (eval $ac_compile) 2>conftest.er1
7987  ac_status=$?
7988  grep -v '^ *+' conftest.er1 >conftest.err
7989  rm -f conftest.er1
7990  cat conftest.err >&5
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); } &&
7993         { ac_try='test -z "$ac_cxx_werror_flag"
7994                         || test ! -s conftest.err'
7995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996  (eval $ac_try) 2>&5
7997  ac_status=$?
7998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999  (exit $ac_status); }; } &&
8000         { ac_try='test -s conftest.$ac_objext'
8001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002  (eval $ac_try) 2>&5
8003  ac_status=$?
8004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005  (exit $ac_status); }; }; then
8006  ac_compiler_gnu=yes
8007else
8008  echo "$as_me: failed program was:" >&5
8009sed 's/^/| /' conftest.$ac_ext >&5
8010
8011ac_compiler_gnu=no
8012fi
8013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8014ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8015
8016fi
8017echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8018echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8019GXX=`test $ac_compiler_gnu = yes && echo yes`
8020ac_test_CXXFLAGS=${CXXFLAGS+set}
8021ac_save_CXXFLAGS=$CXXFLAGS
8022CXXFLAGS="-g"
8023echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8024echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8025if test "${ac_cv_prog_cxx_g+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  cat >conftest.$ac_ext <<_ACEOF
8029/* confdefs.h.  */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h.  */
8034
8035#ifdef F77_DUMMY_MAIN
8036
8037#  ifdef __cplusplus
8038     extern "C"
8039#  endif
8040   int F77_DUMMY_MAIN() { return 1; }
8041
8042#endif
8043int
8044main ()
8045{
8046
8047  ;
8048  return 0;
8049}
8050_ACEOF
8051rm -f conftest.$ac_objext
8052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053  (eval $ac_compile) 2>conftest.er1
8054  ac_status=$?
8055  grep -v '^ *+' conftest.er1 >conftest.err
8056  rm -f conftest.er1
8057  cat conftest.err >&5
8058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059  (exit $ac_status); } &&
8060         { ac_try='test -z "$ac_cxx_werror_flag"
8061                         || test ! -s conftest.err'
8062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063  (eval $ac_try) 2>&5
8064  ac_status=$?
8065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066  (exit $ac_status); }; } &&
8067         { ac_try='test -s conftest.$ac_objext'
8068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069  (eval $ac_try) 2>&5
8070  ac_status=$?
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); }; }; then
8073  ac_cv_prog_cxx_g=yes
8074else
8075  echo "$as_me: failed program was:" >&5
8076sed 's/^/| /' conftest.$ac_ext >&5
8077
8078ac_cv_prog_cxx_g=no
8079fi
8080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8081fi
8082echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8083echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8084if test "$ac_test_CXXFLAGS" = set; then
8085  CXXFLAGS=$ac_save_CXXFLAGS
8086elif test $ac_cv_prog_cxx_g = yes; then
8087  if test "$GXX" = yes; then
8088    CXXFLAGS="-g -O2"
8089  else
8090    CXXFLAGS="-g"
8091  fi
8092else
8093  if test "$GXX" = yes; then
8094    CXXFLAGS="-O2"
8095  else
8096    CXXFLAGS=
8097  fi
8098fi
8099for ac_declaration in \
8100   '' \
8101   'extern "C" void std::exit (int) throw (); using std::exit;' \
8102   'extern "C" void std::exit (int); using std::exit;' \
8103   'extern "C" void exit (int) throw ();' \
8104   'extern "C" void exit (int);' \
8105   'void exit (int);'
8106do
8107  cat >conftest.$ac_ext <<_ACEOF
8108/* confdefs.h.  */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
8112/* end confdefs.h.  */
8113$ac_declaration
8114#include <stdlib.h>
8115#ifdef F77_DUMMY_MAIN
8116
8117#  ifdef __cplusplus
8118     extern "C"
8119#  endif
8120   int F77_DUMMY_MAIN() { return 1; }
8121
8122#endif
8123int
8124main ()
8125{
8126exit (42);
8127  ;
8128  return 0;
8129}
8130_ACEOF
8131rm -f conftest.$ac_objext
8132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8133  (eval $ac_compile) 2>conftest.er1
8134  ac_status=$?
8135  grep -v '^ *+' conftest.er1 >conftest.err
8136  rm -f conftest.er1
8137  cat conftest.err >&5
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); } &&
8140         { ac_try='test -z "$ac_cxx_werror_flag"
8141                         || test ! -s conftest.err'
8142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143  (eval $ac_try) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); }; } &&
8147         { ac_try='test -s conftest.$ac_objext'
8148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149  (eval $ac_try) 2>&5
8150  ac_status=$?
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); }; }; then
8153  :
8154else
8155  echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158continue
8159fi
8160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8161  cat >conftest.$ac_ext <<_ACEOF
8162/* confdefs.h.  */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h.  */
8167$ac_declaration
8168#ifdef F77_DUMMY_MAIN
8169
8170#  ifdef __cplusplus
8171     extern "C"
8172#  endif
8173   int F77_DUMMY_MAIN() { return 1; }
8174
8175#endif
8176int
8177main ()
8178{
8179exit (42);
8180  ;
8181  return 0;
8182}
8183_ACEOF
8184rm -f conftest.$ac_objext
8185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186  (eval $ac_compile) 2>conftest.er1
8187  ac_status=$?
8188  grep -v '^ *+' conftest.er1 >conftest.err
8189  rm -f conftest.er1
8190  cat conftest.err >&5
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); } &&
8193         { ac_try='test -z "$ac_cxx_werror_flag"
8194                         || test ! -s conftest.err'
8195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196  (eval $ac_try) 2>&5
8197  ac_status=$?
8198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199  (exit $ac_status); }; } &&
8200         { ac_try='test -s conftest.$ac_objext'
8201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202  (eval $ac_try) 2>&5
8203  ac_status=$?
8204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205  (exit $ac_status); }; }; then
8206  break
8207else
8208  echo "$as_me: failed program was:" >&5
8209sed 's/^/| /' conftest.$ac_ext >&5
8210
8211fi
8212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8213done
8214rm -f conftest*
8215if test -n "$ac_declaration"; then
8216  echo '#ifdef __cplusplus' >>confdefs.h
8217  echo $ac_declaration      >>confdefs.h
8218  echo '#endif'             >>confdefs.h
8219fi
8220
8221ac_ext=cc
8222ac_cpp='$CXXCPP $CPPFLAGS'
8223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8226
8227depcc="$CXX"  am_compiler_list=
8228
8229echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8230echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8231if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8235  # We make a subdir and do the tests there.  Otherwise we can end up
8236  # making bogus files that we don't know about and never remove.  For
8237  # instance it was reported that on HP-UX the gcc test will end up
8238  # making a dummy file named `D' -- because `-MD' means `put the output
8239  # in D'.
8240  mkdir conftest.dir
8241  # Copy depcomp to subdir because otherwise we won't find it if we're
8242  # using a relative directory.
8243  cp "$am_depcomp" conftest.dir
8244  cd conftest.dir
8245  # We will build objects and dependencies in a subdirectory because
8246  # it helps to detect inapplicable dependency modes.  For instance
8247  # both Tru64's cc and ICC support -MD to output dependencies as a
8248  # side effect of compilation, but ICC will put the dependencies in
8249  # the current directory while Tru64 will put them in the object
8250  # directory.
8251  mkdir sub
8252
8253  am_cv_CXX_dependencies_compiler_type=none
8254  if test "$am_compiler_list" = ""; then
8255     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8256  fi
8257  for depmode in $am_compiler_list; do
8258    # Setup a source with many dependencies, because some compilers
8259    # like to wrap large dependency lists on column 80 (with \), and
8260    # we should not choose a depcomp mode which is confused by this.
8261    #
8262    # We need to recreate these files for each test, as the compiler may
8263    # overwrite some of them when testing with obscure command lines.
8264    # This happens at least with the AIX C compiler.
8265    : > sub/conftest.c
8266    for i in 1 2 3 4 5 6; do
8267      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8268      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8269      # Solaris 8's {/usr,}/bin/sh.
8270      touch sub/conftst$i.h
8271    done
8272    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8273
8274    case $depmode in
8275    nosideeffect)
8276      # after this tag, mechanisms are not by side-effect, so they'll
8277      # only be used when explicitly requested
8278      if test "x$enable_dependency_tracking" = xyes; then
8279        continue
8280      else
8281        break
8282      fi
8283      ;;
8284    none) break ;;
8285    esac
8286    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8287    # mode.  It turns out that the SunPro C++ compiler does not properly
8288    # handle `-M -o', and we need to detect this.
8289    if depmode=$depmode \
8290       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8291       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8292       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8293         >/dev/null 2>conftest.err &&
8294       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8295       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8296       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8297      # icc doesn't choke on unknown options, it will just issue warnings
8298      # or remarks (even with -Werror).  So we grep stderr for any message
8299      # that says an option was ignored or not supported.
8300      # When given -MP, icc 7.0 and 7.1 complain thusly:
8301      #   icc: Command line warning: ignoring option '-M'; no argument required
8302      # The diagnosis changed in icc 8.0:
8303      #   icc: Command line remark: option '-MP' not supported
8304      if (grep 'ignoring option' conftest.err ||
8305          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8306        am_cv_CXX_dependencies_compiler_type=$depmode
8307        break
8308      fi
8309    fi
8310  done
8311
8312  cd ..
8313  rm -rf conftest.dir
8314else
8315  am_cv_CXX_dependencies_compiler_type=none
8316fi
8317
8318fi
8319echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8320echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8321CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8322
8323
8324
8325if
8326  test "x$enable_dependency_tracking" != xno \
8327  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8328  am__fastdepCXX_TRUE=
8329  am__fastdepCXX_FALSE='#'
8330else
8331  am__fastdepCXX_TRUE='#'
8332  am__fastdepCXX_FALSE=
8333fi
8334
8335
8336
8337
8338if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8339    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8340    (test "X$CXX" != "Xg++"))) ; then
8341  ac_ext=cc
8342ac_cpp='$CXXCPP $CPPFLAGS'
8343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8346echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8347echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8348if test -z "$CXXCPP"; then
8349  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8350  echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352      # Double quotes because CXXCPP needs to be expanded
8353    for CXXCPP in "$CXX -E" "/lib/cpp"
8354    do
8355      ac_preproc_ok=false
8356for ac_cxx_preproc_warn_flag in '' yes
8357do
8358  # Use a header file that comes with gcc, so configuring glibc
8359  # with a fresh cross-compiler works.
8360  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8361  # <limits.h> exists even on freestanding compilers.
8362  # On the NeXT, cc -E runs the code through the compiler's parser,
8363  # not just through cpp. "Syntax error" is here to catch this case.
8364  cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h.  */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h.  */
8370#ifdef __STDC__
8371# include <limits.h>
8372#else
8373# include <assert.h>
8374#endif
8375                     Syntax error
8376_ACEOF
8377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8378  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8379  ac_status=$?
8380  grep -v '^ *+' conftest.er1 >conftest.err
8381  rm -f conftest.er1
8382  cat conftest.err >&5
8383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384  (exit $ac_status); } >/dev/null; then
8385  if test -s conftest.err; then
8386    ac_cpp_err=$ac_cxx_preproc_warn_flag
8387    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8388  else
8389    ac_cpp_err=
8390  fi
8391else
8392  ac_cpp_err=yes
8393fi
8394if test -z "$ac_cpp_err"; then
8395  :
8396else
8397  echo "$as_me: failed program was:" >&5
8398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400  # Broken: fails on valid input.
8401continue
8402fi
8403rm -f conftest.err conftest.$ac_ext
8404
8405  # OK, works on sane cases.  Now check whether non-existent headers
8406  # can be detected and how.
8407  cat >conftest.$ac_ext <<_ACEOF
8408/* confdefs.h.  */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
8412/* end confdefs.h.  */
8413#include <ac_nonexistent.h>
8414_ACEOF
8415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8416  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8417  ac_status=$?
8418  grep -v '^ *+' conftest.er1 >conftest.err
8419  rm -f conftest.er1
8420  cat conftest.err >&5
8421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422  (exit $ac_status); } >/dev/null; then
8423  if test -s conftest.err; then
8424    ac_cpp_err=$ac_cxx_preproc_warn_flag
8425    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8426  else
8427    ac_cpp_err=
8428  fi
8429else
8430  ac_cpp_err=yes
8431fi
8432if test -z "$ac_cpp_err"; then
8433  # Broken: success on invalid input.
8434continue
8435else
8436  echo "$as_me: failed program was:" >&5
8437sed 's/^/| /' conftest.$ac_ext >&5
8438
8439  # Passes both tests.
8440ac_preproc_ok=:
8441break
8442fi
8443rm -f conftest.err conftest.$ac_ext
8444
8445done
8446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8447rm -f conftest.err conftest.$ac_ext
8448if $ac_preproc_ok; then
8449  break
8450fi
8451
8452    done
8453    ac_cv_prog_CXXCPP=$CXXCPP
8454
8455fi
8456  CXXCPP=$ac_cv_prog_CXXCPP
8457else
8458  ac_cv_prog_CXXCPP=$CXXCPP
8459fi
8460echo "$as_me:$LINENO: result: $CXXCPP" >&5
8461echo "${ECHO_T}$CXXCPP" >&6
8462ac_preproc_ok=false
8463for ac_cxx_preproc_warn_flag in '' yes
8464do
8465  # Use a header file that comes with gcc, so configuring glibc
8466  # with a fresh cross-compiler works.
8467  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8468  # <limits.h> exists even on freestanding compilers.
8469  # On the NeXT, cc -E runs the code through the compiler's parser,
8470  # not just through cpp. "Syntax error" is here to catch this case.
8471  cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h.  */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h.  */
8477#ifdef __STDC__
8478# include <limits.h>
8479#else
8480# include <assert.h>
8481#endif
8482                     Syntax error
8483_ACEOF
8484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8485  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8486  ac_status=$?
8487  grep -v '^ *+' conftest.er1 >conftest.err
8488  rm -f conftest.er1
8489  cat conftest.err >&5
8490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491  (exit $ac_status); } >/dev/null; then
8492  if test -s conftest.err; then
8493    ac_cpp_err=$ac_cxx_preproc_warn_flag
8494    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8495  else
8496    ac_cpp_err=
8497  fi
8498else
8499  ac_cpp_err=yes
8500fi
8501if test -z "$ac_cpp_err"; then
8502  :
8503else
8504  echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507  # Broken: fails on valid input.
8508continue
8509fi
8510rm -f conftest.err conftest.$ac_ext
8511
8512  # OK, works on sane cases.  Now check whether non-existent headers
8513  # can be detected and how.
8514  cat >conftest.$ac_ext <<_ACEOF
8515/* confdefs.h.  */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h.  */
8520#include <ac_nonexistent.h>
8521_ACEOF
8522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8523  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8524  ac_status=$?
8525  grep -v '^ *+' conftest.er1 >conftest.err
8526  rm -f conftest.er1
8527  cat conftest.err >&5
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } >/dev/null; then
8530  if test -s conftest.err; then
8531    ac_cpp_err=$ac_cxx_preproc_warn_flag
8532    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8533  else
8534    ac_cpp_err=
8535  fi
8536else
8537  ac_cpp_err=yes
8538fi
8539if test -z "$ac_cpp_err"; then
8540  # Broken: success on invalid input.
8541continue
8542else
8543  echo "$as_me: failed program was:" >&5
8544sed 's/^/| /' conftest.$ac_ext >&5
8545
8546  # Passes both tests.
8547ac_preproc_ok=:
8548break
8549fi
8550rm -f conftest.err conftest.$ac_ext
8551
8552done
8553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8554rm -f conftest.err conftest.$ac_ext
8555if $ac_preproc_ok; then
8556  :
8557else
8558  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8559See \`config.log' for more details." >&5
8560echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8561See \`config.log' for more details." >&2;}
8562   { (exit 1); exit 1; }; }
8563fi
8564
8565ac_ext=cc
8566ac_cpp='$CXXCPP $CPPFLAGS'
8567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8570
8571fi
8572
8573
8574
8575# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8576
8577# find the maximum length of command line arguments
8578echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8579echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8580if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8581  echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583    i=0
8584  teststring="ABCD"
8585
8586  case $build_os in
8587  msdosdjgpp*)
8588    # On DJGPP, this test can blow up pretty badly due to problems in libc
8589    # (any single argument exceeding 2000 bytes causes a buffer overrun
8590    # during glob expansion).  Even if it were fixed, the result of this
8591    # check would be larger than it should be.
8592    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8593    ;;
8594
8595  gnu*)
8596    # Under GNU Hurd, this test is not required because there is
8597    # no limit to the length of command line arguments.
8598    # Libtool will interpret -1 as no limit whatsoever
8599    lt_cv_sys_max_cmd_len=-1;
8600    ;;
8601
8602  cygwin* | mingw*)
8603    # On Win9x/ME, this test blows up -- it succeeds, but takes
8604    # about 5 minutes as the teststring grows exponentially.
8605    # Worse, since 9x/ME are not pre-emptively multitasking,
8606    # you end up with a "frozen" computer, even though with patience
8607    # the test eventually succeeds (with a max line length of 256k).
8608    # Instead, let's just punt: use the minimum linelength reported by
8609    # all of the supported platforms: 8192 (on NT/2K/XP).
8610    lt_cv_sys_max_cmd_len=8192;
8611    ;;
8612
8613  amigaos*)
8614    # On AmigaOS with pdksh, this test takes hours, literally.
8615    # So we just punt and use a minimum line length of 8192.
8616    lt_cv_sys_max_cmd_len=8192;
8617    ;;
8618
8619  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8620    # This has been around since 386BSD, at least.  Likely further.
8621    if test -x /sbin/sysctl; then
8622      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8623    elif test -x /usr/sbin/sysctl; then
8624      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8625    else
8626      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8627    fi
8628    # And add a safety zone
8629    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8630    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8631    ;;
8632
8633  interix*)
8634    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8635    lt_cv_sys_max_cmd_len=196608
8636    ;;
8637
8638  osf*)
8639    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8640    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8641    # nice to cause kernel panics so lets avoid the loop below.
8642    # First set a reasonable default.
8643    lt_cv_sys_max_cmd_len=16384
8644    #
8645    if test -x /sbin/sysconfig; then
8646      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8647        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8648      esac
8649    fi
8650    ;;
8651  sco3.2v5*)
8652    lt_cv_sys_max_cmd_len=102400
8653    ;;
8654  sysv5* | sco5v6* | sysv4.2uw2*)
8655    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8656    if test -n "$kargmax"; then
8657      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8658    else
8659      lt_cv_sys_max_cmd_len=32768
8660    fi
8661    ;;
8662  *)
8663    # If test is not a shell built-in, we'll probably end up computing a
8664    # maximum length that is only half of the actual maximum length, but
8665    # we can't tell.
8666    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8667    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8668               = "XX$teststring") >/dev/null 2>&1 &&
8669            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8670            lt_cv_sys_max_cmd_len=$new_result &&
8671            test $i != 17 # 1/2 MB should be enough
8672    do
8673      i=`expr $i + 1`
8674      teststring=$teststring$teststring
8675    done
8676    teststring=
8677    # Add a significant safety factor because C++ compilers can tack on massive
8678    # amounts of additional arguments before passing them to the linker.
8679    # It appears as though 1/2 is a usable value.
8680    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8681    ;;
8682  esac
8683
8684fi
8685
8686if test -n $lt_cv_sys_max_cmd_len ; then
8687  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8688echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8689else
8690  echo "$as_me:$LINENO: result: none" >&5
8691echo "${ECHO_T}none" >&6
8692fi
8693
8694
8695
8696
8697# Check for command to grab the raw symbol name followed by C symbol from nm.
8698echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8699echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8700if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8701  echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703
8704# These are sane defaults that work on at least a few old systems.
8705# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8706
8707# Character class describing NM global symbol codes.
8708symcode='[BCDEGRST]'
8709
8710# Regexp to match symbols that can be accessed directly from C.
8711sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8712
8713# Transform an extracted symbol line into a proper C declaration
8714lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8715
8716# Transform an extracted symbol line into symbol name and symbol address
8717lt_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'"
8718
8719# Define system-specific variables.
8720case $host_os in
8721aix*)
8722  symcode='[BCDT]'
8723  ;;
8724cygwin* | mingw* | pw32*)
8725  symcode='[ABCDGISTW]'
8726  ;;
8727hpux*) # Its linker distinguishes data from code symbols
8728  if test "$host_cpu" = ia64; then
8729    symcode='[ABCDEGRST]'
8730  fi
8731  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8732  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'"
8733  ;;
8734linux*)
8735  if test "$host_cpu" = ia64; then
8736    symcode='[ABCDGIRSTW]'
8737    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8738    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'"
8739  fi
8740  ;;
8741irix* | nonstopux*)
8742  symcode='[BCDEGRST]'
8743  ;;
8744osf*)
8745  symcode='[BCDEGQRST]'
8746  ;;
8747solaris*)
8748  symcode='[BDRT]'
8749  ;;
8750sco3.2v5*)
8751  symcode='[DT]'
8752  ;;
8753sysv4.2uw2*)
8754  symcode='[DT]'
8755  ;;
8756sysv5* | sco5v6* | unixware* | OpenUNIX*)
8757  symcode='[ABDT]'
8758  ;;
8759sysv4)
8760  symcode='[DFNSTU]'
8761  ;;
8762esac
8763
8764# Handle CRLF in mingw tool chain
8765opt_cr=
8766case $build_os in
8767mingw*)
8768  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8769  ;;
8770esac
8771
8772# If we're using GNU nm, then use its standard symbol codes.
8773case `$NM -V 2>&1` in
8774*GNU* | *'with BFD'*)
8775  symcode='[ABCDGIRSTW]' ;;
8776esac
8777
8778# Try without a prefix undercore, then with it.
8779for ac_symprfx in "" "_"; do
8780
8781  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8782  symxfrm="\\1 $ac_symprfx\\2 \\2"
8783
8784  # Write the raw and C identifiers.
8785  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8786
8787  # Check to see that the pipe works correctly.
8788  pipe_works=no
8789
8790  rm -f conftest*
8791  cat > conftest.$ac_ext <<EOF
8792#ifdef __cplusplus
8793extern "C" {
8794#endif
8795char nm_test_var;
8796void nm_test_func(){}
8797#ifdef __cplusplus
8798}
8799#endif
8800int main(){nm_test_var='a';nm_test_func();return(0);}
8801EOF
8802
8803  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8804  (eval $ac_compile) 2>&5
8805  ac_status=$?
8806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807  (exit $ac_status); }; then
8808    # Now try to grab the symbols.
8809    nlist=conftest.nm
8810    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8811  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8812  ac_status=$?
8813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814  (exit $ac_status); } && test -s "$nlist"; then
8815      # Try sorting and uniquifying the output.
8816      if sort "$nlist" | uniq > "$nlist"T; then
8817        mv -f "$nlist"T "$nlist"
8818      else
8819        rm -f "$nlist"T
8820      fi
8821
8822      # Make sure that we snagged all the symbols we need.
8823      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8824        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8825          cat <<EOF > conftest.$ac_ext
8826#ifdef __cplusplus
8827extern "C" {
8828#endif
8829
8830EOF
8831          # Now generate the symbol file.
8832          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8833
8834          cat <<EOF >> conftest.$ac_ext
8835#if defined (__STDC__) && __STDC__
8836# define lt_ptr_t void *
8837#else
8838# define lt_ptr_t char *
8839# define const
8840#endif
8841
8842/* The mapping between symbol names and symbols. */
8843const struct {
8844  const char *name;
8845  lt_ptr_t address;
8846}
8847lt_preloaded_symbols[] =
8848{
8849EOF
8850          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8851          cat <<\EOF >> conftest.$ac_ext
8852  {0, (lt_ptr_t) 0}
8853};
8854
8855#ifdef __cplusplus
8856}
8857#endif
8858EOF
8859          # Now try linking the two files.
8860          mv conftest.$ac_objext conftstm.$ac_objext
8861          lt_save_LIBS="$LIBS"
8862          lt_save_CFLAGS="$CFLAGS"
8863          LIBS="conftstm.$ac_objext"
8864          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8865          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866  (eval $ac_link) 2>&5
8867  ac_status=$?
8868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8870            pipe_works=yes
8871          fi
8872          LIBS="$lt_save_LIBS"
8873          CFLAGS="$lt_save_CFLAGS"
8874        else
8875          echo "cannot find nm_test_func in $nlist" >&5
8876        fi
8877      else
8878        echo "cannot find nm_test_var in $nlist" >&5
8879      fi
8880    else
8881      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8882    fi
8883  else
8884    echo "$progname: failed program was:" >&5
8885    cat conftest.$ac_ext >&5
8886  fi
8887  rm -f conftest* conftst*
8888
8889  # Do not use the global_symbol_pipe unless it works.
8890  if test "$pipe_works" = yes; then
8891    break
8892  else
8893    lt_cv_sys_global_symbol_pipe=
8894  fi
8895done
8896
8897fi
8898
8899if test -z "$lt_cv_sys_global_symbol_pipe"; then
8900  lt_cv_sys_global_symbol_to_cdecl=
8901fi
8902if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8903  echo "$as_me:$LINENO: result: failed" >&5
8904echo "${ECHO_T}failed" >&6
8905else
8906  echo "$as_me:$LINENO: result: ok" >&5
8907echo "${ECHO_T}ok" >&6
8908fi
8909
8910echo "$as_me:$LINENO: checking for objdir" >&5
8911echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8912if test "${lt_cv_objdir+set}" = set; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915  rm -f .libs 2>/dev/null
8916mkdir .libs 2>/dev/null
8917if test -d .libs; then
8918  lt_cv_objdir=.libs
8919else
8920  # MS-DOS does not allow filenames that begin with a dot.
8921  lt_cv_objdir=_libs
8922fi
8923rmdir .libs 2>/dev/null
8924fi
8925echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8926echo "${ECHO_T}$lt_cv_objdir" >&6
8927objdir=$lt_cv_objdir
8928
8929
8930
8931
8932
8933case $host_os in
8934aix3*)
8935  # AIX sometimes has problems with the GCC collect2 program.  For some
8936  # reason, if we set the COLLECT_NAMES environment variable, the problems
8937  # vanish in a puff of smoke.
8938  if test "X${COLLECT_NAMES+set}" != Xset; then
8939    COLLECT_NAMES=
8940    export COLLECT_NAMES
8941  fi
8942  ;;
8943esac
8944
8945# Sed substitution that helps us do robust quoting.  It backslashifies
8946# metacharacters that are still active within double-quoted strings.
8947Xsed='sed -e 1s/^X//'
8948sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8949
8950# Same as above, but do not quote variable references.
8951double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8952
8953# Sed substitution to delay expansion of an escaped shell variable in a
8954# double_quote_subst'ed string.
8955delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8956
8957# Sed substitution to avoid accidental globbing in evaled expressions
8958no_glob_subst='s/\*/\\\*/g'
8959
8960# Constants:
8961rm="rm -f"
8962
8963# Global variables:
8964default_ofile=libtool
8965can_build_shared=yes
8966
8967# All known linkers require a `.a' archive for static linking (except MSVC,
8968# which needs '.lib').
8969libext=a
8970ltmain="$ac_aux_dir/ltmain.sh"
8971ofile="$default_ofile"
8972with_gnu_ld="$lt_cv_prog_gnu_ld"
8973
8974if test -n "$ac_tool_prefix"; then
8975  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8976set dummy ${ac_tool_prefix}ar; ac_word=$2
8977echo "$as_me:$LINENO: checking for $ac_word" >&5
8978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979if test "${ac_cv_prog_AR+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  if test -n "$AR"; then
8983  ac_cv_prog_AR="$AR" # Let the user override the test.
8984else
8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988  IFS=$as_save_IFS
8989  test -z "$as_dir" && as_dir=.
8990  for ac_exec_ext in '' $ac_executable_extensions; do
8991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992    ac_cv_prog_AR="${ac_tool_prefix}ar"
8993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994    break 2
8995  fi
8996done
8997done
8998
8999fi
9000fi
9001AR=$ac_cv_prog_AR
9002if test -n "$AR"; then
9003  echo "$as_me:$LINENO: result: $AR" >&5
9004echo "${ECHO_T}$AR" >&6
9005else
9006  echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
9008fi
9009
9010fi
9011if test -z "$ac_cv_prog_AR"; then
9012  ac_ct_AR=$AR
9013  # Extract the first word of "ar", so it can be a program name with args.
9014set dummy ar; ac_word=$2
9015echo "$as_me:$LINENO: checking for $ac_word" >&5
9016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9018  echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020  if test -n "$ac_ct_AR"; then
9021  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9022else
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026  IFS=$as_save_IFS
9027  test -z "$as_dir" && as_dir=.
9028  for ac_exec_ext in '' $ac_executable_extensions; do
9029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030    ac_cv_prog_ac_ct_AR="ar"
9031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032    break 2
9033  fi
9034done
9035done
9036
9037  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9038fi
9039fi
9040ac_ct_AR=$ac_cv_prog_ac_ct_AR
9041if test -n "$ac_ct_AR"; then
9042  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9043echo "${ECHO_T}$ac_ct_AR" >&6
9044else
9045  echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
9047fi
9048
9049  AR=$ac_ct_AR
9050else
9051  AR="$ac_cv_prog_AR"
9052fi
9053
9054if test -n "$ac_tool_prefix"; then
9055  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9056set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9057echo "$as_me:$LINENO: checking for $ac_word" >&5
9058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9059if test "${ac_cv_prog_RANLIB+set}" = set; then
9060  echo $ECHO_N "(cached) $ECHO_C" >&6
9061else
9062  if test -n "$RANLIB"; then
9063  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068  IFS=$as_save_IFS
9069  test -z "$as_dir" && as_dir=.
9070  for ac_exec_ext in '' $ac_executable_extensions; do
9071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9074    break 2
9075  fi
9076done
9077done
9078
9079fi
9080fi
9081RANLIB=$ac_cv_prog_RANLIB
9082if test -n "$RANLIB"; then
9083  echo "$as_me:$LINENO: result: $RANLIB" >&5
9084echo "${ECHO_T}$RANLIB" >&6
9085else
9086  echo "$as_me:$LINENO: result: no" >&5
9087echo "${ECHO_T}no" >&6
9088fi
9089
9090fi
9091if test -z "$ac_cv_prog_RANLIB"; then
9092  ac_ct_RANLIB=$RANLIB
9093  # Extract the first word of "ranlib", so it can be a program name with args.
9094set dummy ranlib; ac_word=$2
9095echo "$as_me:$LINENO: checking for $ac_word" >&5
9096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9097if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9098  echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100  if test -n "$ac_ct_RANLIB"; then
9101  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9102else
9103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104for as_dir in $PATH
9105do
9106  IFS=$as_save_IFS
9107  test -z "$as_dir" && as_dir=.
9108  for ac_exec_ext in '' $ac_executable_extensions; do
9109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9110    ac_cv_prog_ac_ct_RANLIB="ranlib"
9111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9112    break 2
9113  fi
9114done
9115done
9116
9117  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9118fi
9119fi
9120ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9121if test -n "$ac_ct_RANLIB"; then
9122  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9123echo "${ECHO_T}$ac_ct_RANLIB" >&6
9124else
9125  echo "$as_me:$LINENO: result: no" >&5
9126echo "${ECHO_T}no" >&6
9127fi
9128
9129  RANLIB=$ac_ct_RANLIB
9130else
9131  RANLIB="$ac_cv_prog_RANLIB"
9132fi
9133
9134if test -n "$ac_tool_prefix"; then
9135  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9136set dummy ${ac_tool_prefix}strip; ac_word=$2
9137echo "$as_me:$LINENO: checking for $ac_word" >&5
9138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9139if test "${ac_cv_prog_STRIP+set}" = set; then
9140  echo $ECHO_N "(cached) $ECHO_C" >&6
9141else
9142  if test -n "$STRIP"; then
9143  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9144else
9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146for as_dir in $PATH
9147do
9148  IFS=$as_save_IFS
9149  test -z "$as_dir" && as_dir=.
9150  for ac_exec_ext in '' $ac_executable_extensions; do
9151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9152    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154    break 2
9155  fi
9156done
9157done
9158
9159fi
9160fi
9161STRIP=$ac_cv_prog_STRIP
9162if test -n "$STRIP"; then
9163  echo "$as_me:$LINENO: result: $STRIP" >&5
9164echo "${ECHO_T}$STRIP" >&6
9165else
9166  echo "$as_me:$LINENO: result: no" >&5
9167echo "${ECHO_T}no" >&6
9168fi
9169
9170fi
9171if test -z "$ac_cv_prog_STRIP"; then
9172  ac_ct_STRIP=$STRIP
9173  # Extract the first word of "strip", so it can be a program name with args.
9174set dummy strip; ac_word=$2
9175echo "$as_me:$LINENO: checking for $ac_word" >&5
9176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9177if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9178  echo $ECHO_N "(cached) $ECHO_C" >&6
9179else
9180  if test -n "$ac_ct_STRIP"; then
9181  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9182else
9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184for as_dir in $PATH
9185do
9186  IFS=$as_save_IFS
9187  test -z "$as_dir" && as_dir=.
9188  for ac_exec_ext in '' $ac_executable_extensions; do
9189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9190    ac_cv_prog_ac_ct_STRIP="strip"
9191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9192    break 2
9193  fi
9194done
9195done
9196
9197  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9198fi
9199fi
9200ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9201if test -n "$ac_ct_STRIP"; then
9202  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9203echo "${ECHO_T}$ac_ct_STRIP" >&6
9204else
9205  echo "$as_me:$LINENO: result: no" >&5
9206echo "${ECHO_T}no" >&6
9207fi
9208
9209  STRIP=$ac_ct_STRIP
9210else
9211  STRIP="$ac_cv_prog_STRIP"
9212fi
9213
9214
9215old_CC="$CC"
9216old_CFLAGS="$CFLAGS"
9217
9218# Set sane defaults for various variables
9219test -z "$AR" && AR=ar
9220test -z "$AR_FLAGS" && AR_FLAGS=cru
9221test -z "$AS" && AS=as
9222test -z "$CC" && CC=cc
9223test -z "$LTCC" && LTCC=$CC
9224test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9225test -z "$DLLTOOL" && DLLTOOL=dlltool
9226test -z "$LD" && LD=ld
9227test -z "$LN_S" && LN_S="ln -s"
9228test -z "$MAGIC_CMD" && MAGIC_CMD=file
9229test -z "$NM" && NM=nm
9230test -z "$SED" && SED=sed
9231test -z "$OBJDUMP" && OBJDUMP=objdump
9232test -z "$RANLIB" && RANLIB=:
9233test -z "$STRIP" && STRIP=:
9234test -z "$ac_objext" && ac_objext=o
9235
9236# Determine commands to create old-style static archives.
9237old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9238old_postinstall_cmds='chmod 644 $oldlib'
9239old_postuninstall_cmds=
9240
9241if test -n "$RANLIB"; then
9242  case $host_os in
9243  openbsd*)
9244    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9245    ;;
9246  *)
9247    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9248    ;;
9249  esac
9250  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9251fi
9252
9253for cc_temp in $compiler""; do
9254  case $cc_temp in
9255    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9256    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9257    \-*) ;;
9258    *) break;;
9259  esac
9260done
9261cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9262
9263
9264# Only perform the check for file, if the check method requires it
9265case $deplibs_check_method in
9266file_magic*)
9267  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9268    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9269echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9270if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9271  echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273  case $MAGIC_CMD in
9274[\\/*] |  ?:[\\/]*)
9275  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9276  ;;
9277*)
9278  lt_save_MAGIC_CMD="$MAGIC_CMD"
9279  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9280  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9281  for ac_dir in $ac_dummy; do
9282    IFS="$lt_save_ifs"
9283    test -z "$ac_dir" && ac_dir=.
9284    if test -f $ac_dir/${ac_tool_prefix}file; then
9285      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9286      if test -n "$file_magic_test_file"; then
9287        case $deplibs_check_method in
9288        "file_magic "*)
9289          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9290          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9291          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9292            $EGREP "$file_magic_regex" > /dev/null; then
9293            :
9294          else
9295            cat <<EOF 1>&2
9296
9297*** Warning: the command libtool uses to detect shared libraries,
9298*** $file_magic_cmd, produces output that libtool cannot recognize.
9299*** The result is that libtool may fail to recognize shared libraries
9300*** as such.  This will affect the creation of libtool libraries that
9301*** depend on shared libraries, but programs linked with such libtool
9302*** libraries will work regardless of this problem.  Nevertheless, you
9303*** may want to report the problem to your system manager and/or to
9304*** bug-libtool@gnu.org
9305
9306EOF
9307          fi ;;
9308        esac
9309      fi
9310      break
9311    fi
9312  done
9313  IFS="$lt_save_ifs"
9314  MAGIC_CMD="$lt_save_MAGIC_CMD"
9315  ;;
9316esac
9317fi
9318
9319MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9320if test -n "$MAGIC_CMD"; then
9321  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9322echo "${ECHO_T}$MAGIC_CMD" >&6
9323else
9324  echo "$as_me:$LINENO: result: no" >&5
9325echo "${ECHO_T}no" >&6
9326fi
9327
9328if test -z "$lt_cv_path_MAGIC_CMD"; then
9329  if test -n "$ac_tool_prefix"; then
9330    echo "$as_me:$LINENO: checking for file" >&5
9331echo $ECHO_N "checking for file... $ECHO_C" >&6
9332if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9333  echo $ECHO_N "(cached) $ECHO_C" >&6
9334else
9335  case $MAGIC_CMD in
9336[\\/*] |  ?:[\\/]*)
9337  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9338  ;;
9339*)
9340  lt_save_MAGIC_CMD="$MAGIC_CMD"
9341  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9342  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9343  for ac_dir in $ac_dummy; do
9344    IFS="$lt_save_ifs"
9345    test -z "$ac_dir" && ac_dir=.
9346    if test -f $ac_dir/file; then
9347      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9348      if test -n "$file_magic_test_file"; then
9349        case $deplibs_check_method in
9350        "file_magic "*)
9351          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9352          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9353          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9354            $EGREP "$file_magic_regex" > /dev/null; then
9355            :
9356          else
9357            cat <<EOF 1>&2
9358
9359*** Warning: the command libtool uses to detect shared libraries,
9360*** $file_magic_cmd, produces output that libtool cannot recognize.
9361*** The result is that libtool may fail to recognize shared libraries
9362*** as such.  This will affect the creation of libtool libraries that
9363*** depend on shared libraries, but programs linked with such libtool
9364*** libraries will work regardless of this problem.  Nevertheless, you
9365*** may want to report the problem to your system manager and/or to
9366*** bug-libtool@gnu.org
9367
9368EOF
9369          fi ;;
9370        esac
9371      fi
9372      break
9373    fi
9374  done
9375  IFS="$lt_save_ifs"
9376  MAGIC_CMD="$lt_save_MAGIC_CMD"
9377  ;;
9378esac
9379fi
9380
9381MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382if test -n "$MAGIC_CMD"; then
9383  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9384echo "${ECHO_T}$MAGIC_CMD" >&6
9385else
9386  echo "$as_me:$LINENO: result: no" >&5
9387echo "${ECHO_T}no" >&6
9388fi
9389
9390  else
9391    MAGIC_CMD=:
9392  fi
9393fi
9394
9395  fi
9396  ;;
9397esac
9398
9399enable_dlopen=no
9400enable_win32_dll=no
9401
9402# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9403if test "${enable_libtool_lock+set}" = set; then
9404  enableval="$enable_libtool_lock"
9405
9406fi;
9407test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9408
9409
9410# Check whether --with-pic or --without-pic was given.
9411if test "${with_pic+set}" = set; then
9412  withval="$with_pic"
9413  pic_mode="$withval"
9414else
9415  pic_mode=default
9416fi;
9417test -z "$pic_mode" && pic_mode=default
9418
9419# Use C for the default configuration in the libtool script
9420tagname=
9421lt_save_CC="$CC"
9422ac_ext=c
9423ac_cpp='$CPP $CPPFLAGS'
9424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9426ac_compiler_gnu=$ac_cv_c_compiler_gnu
9427
9428
9429# Source file extension for C test sources.
9430ac_ext=c
9431
9432# Object file extension for compiled C test sources.
9433objext=o
9434objext=$objext
9435
9436# Code to be used in simple compile tests
9437lt_simple_compile_test_code="int some_variable = 0;\n"
9438
9439# Code to be used in simple link tests
9440lt_simple_link_test_code='int main(){return(0);}\n'
9441
9442
9443# If no C compiler was specified, use CC.
9444LTCC=${LTCC-"$CC"}
9445
9446# If no C compiler flags were specified, use CFLAGS.
9447LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9448
9449# Allow CC to be a program name with arguments.
9450compiler=$CC
9451
9452
9453# save warnings/boilerplate of simple test code
9454ac_outfile=conftest.$ac_objext
9455printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9456eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9457_lt_compiler_boilerplate=`cat conftest.err`
9458$rm conftest*
9459
9460ac_outfile=conftest.$ac_objext
9461printf "$lt_simple_link_test_code" >conftest.$ac_ext
9462eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9463_lt_linker_boilerplate=`cat conftest.err`
9464$rm conftest*
9465
9466
9467## CAVEAT EMPTOR:
9468## There is no encapsulation within the following macros, do not change
9469## the running order or otherwise move them around unless you know exactly
9470## what you are doing...
9471
9472lt_prog_compiler_no_builtin_flag=
9473
9474if test "$GCC" = yes; then
9475  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9476
9477
9478echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9479echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9480if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9481  echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483  lt_cv_prog_compiler_rtti_exceptions=no
9484  ac_outfile=conftest.$ac_objext
9485   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9486   lt_compiler_flag="-fno-rtti -fno-exceptions"
9487   # Insert the option either (1) after the last *FLAGS variable, or
9488   # (2) before a word containing "conftest.", or (3) at the end.
9489   # Note that $ac_compile itself does not contain backslashes and begins
9490   # with a dollar sign (not a hyphen), so the echo should work correctly.
9491   # The option is referenced via a variable to avoid confusing sed.
9492   lt_compile=`echo "$ac_compile" | $SED \
9493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495   -e 's:$: $lt_compiler_flag:'`
9496   (eval echo "\"\$as_me:9496: $lt_compile\"" >&5)
9497   (eval "$lt_compile" 2>conftest.err)
9498   ac_status=$?
9499   cat conftest.err >&5
9500   echo "$as_me:9500: \$? = $ac_status" >&5
9501   if (exit $ac_status) && test -s "$ac_outfile"; then
9502     # The compiler can only warn and ignore the option if not recognized
9503     # So say no if there are warnings other than the usual output.
9504     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9505     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9507       lt_cv_prog_compiler_rtti_exceptions=yes
9508     fi
9509   fi
9510   $rm conftest*
9511
9512fi
9513echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9514echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9515
9516if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9517    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9518else
9519    :
9520fi
9521
9522fi
9523
9524lt_prog_compiler_wl=
9525lt_prog_compiler_pic=
9526lt_prog_compiler_static=
9527
9528echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9530
9531  if test "$GCC" = yes; then
9532    lt_prog_compiler_wl='-Wl,'
9533    lt_prog_compiler_static='-static'
9534
9535    case $host_os in
9536      aix*)
9537      # All AIX code is PIC.
9538      if test "$host_cpu" = ia64; then
9539        # AIX 5 now supports IA64 processor
9540        lt_prog_compiler_static='-Bstatic'
9541      fi
9542      ;;
9543
9544    amigaos*)
9545      # FIXME: we need at least 68020 code to build shared libraries, but
9546      # adding the `-m68020' flag to GCC prevents building anything better,
9547      # like `-m68040'.
9548      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9549      ;;
9550
9551    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9552      # PIC is the default for these OSes.
9553      ;;
9554
9555    mingw* | pw32* | os2*)
9556      # This hack is so that the source file can tell whether it is being
9557      # built for inclusion in a dll (and should export symbols for example).
9558      lt_prog_compiler_pic='-DDLL_EXPORT'
9559      ;;
9560
9561    darwin* | rhapsody*)
9562      # PIC is the default on this platform
9563      # Common symbols not allowed in MH_DYLIB files
9564      lt_prog_compiler_pic='-fno-common'
9565      ;;
9566
9567    interix3*)
9568      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9569      # Instead, we relocate shared libraries at runtime.
9570      ;;
9571
9572    msdosdjgpp*)
9573      # Just because we use GCC doesn't mean we suddenly get shared libraries
9574      # on systems that don't support them.
9575      lt_prog_compiler_can_build_shared=no
9576      enable_shared=no
9577      ;;
9578
9579    sysv4*MP*)
9580      if test -d /usr/nec; then
9581        lt_prog_compiler_pic=-Kconform_pic
9582      fi
9583      ;;
9584
9585    hpux*)
9586      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9587      # not for PA HP-UX.
9588      case $host_cpu in
9589      hppa*64*|ia64*)
9590        # +Z the default
9591        ;;
9592      *)
9593        lt_prog_compiler_pic='-fPIC'
9594        ;;
9595      esac
9596      ;;
9597
9598    *)
9599      lt_prog_compiler_pic='-fPIC'
9600      ;;
9601    esac
9602  else
9603    # PORTME Check for flag to pass linker flags through the system compiler.
9604    case $host_os in
9605    aix*)
9606      lt_prog_compiler_wl='-Wl,'
9607      if test "$host_cpu" = ia64; then
9608        # AIX 5 now supports IA64 processor
9609        lt_prog_compiler_static='-Bstatic'
9610      else
9611        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9612      fi
9613      ;;
9614      darwin*)
9615        # PIC is the default on this platform
9616        # Common symbols not allowed in MH_DYLIB files
9617       case $cc_basename in
9618         xlc*)
9619         lt_prog_compiler_pic='-qnocommon'
9620         lt_prog_compiler_wl='-Wl,'
9621         ;;
9622       esac
9623       ;;
9624
9625    mingw* | pw32* | os2*)
9626      # This hack is so that the source file can tell whether it is being
9627      # built for inclusion in a dll (and should export symbols for example).
9628      lt_prog_compiler_pic='-DDLL_EXPORT'
9629      ;;
9630
9631    hpux9* | hpux10* | hpux11*)
9632      lt_prog_compiler_wl='-Wl,'
9633      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9634      # not for PA HP-UX.
9635      case $host_cpu in
9636      hppa*64*|ia64*)
9637        # +Z the default
9638        ;;
9639      *)
9640        lt_prog_compiler_pic='+Z'
9641        ;;
9642      esac
9643      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9644      lt_prog_compiler_static='${wl}-a ${wl}archive'
9645      ;;
9646
9647    irix5* | irix6* | nonstopux*)
9648      lt_prog_compiler_wl='-Wl,'
9649      # PIC (with -KPIC) is the default.
9650      lt_prog_compiler_static='-non_shared'
9651      ;;
9652
9653    newsos6)
9654      lt_prog_compiler_pic='-KPIC'
9655      lt_prog_compiler_static='-Bstatic'
9656      ;;
9657
9658    linux*)
9659      case $cc_basename in
9660      icc* | ecc*)
9661        lt_prog_compiler_wl='-Wl,'
9662        lt_prog_compiler_pic='-KPIC'
9663        lt_prog_compiler_static='-static'
9664        ;;
9665      pgcc* | pgf77* | pgf90* | pgf95*)
9666        # Portland Group compilers (*not* the Pentium gcc compiler,
9667        # which looks to be a dead project)
9668        lt_prog_compiler_wl='-Wl,'
9669        lt_prog_compiler_pic='-fpic'
9670        lt_prog_compiler_static='-Bstatic'
9671        ;;
9672      ccc*)
9673        lt_prog_compiler_wl='-Wl,'
9674        # All Alpha code is PIC.
9675        lt_prog_compiler_static='-non_shared'
9676        ;;
9677      esac
9678      ;;
9679
9680    osf3* | osf4* | osf5*)
9681      lt_prog_compiler_wl='-Wl,'
9682      # All OSF/1 code is PIC.
9683      lt_prog_compiler_static='-non_shared'
9684      ;;
9685
9686    solaris*)
9687      lt_prog_compiler_pic='-KPIC'
9688      lt_prog_compiler_static='-Bstatic'
9689      case $cc_basename in
9690      f77* | f90* | f95*)
9691        lt_prog_compiler_wl='-Qoption ld ';;
9692      *)
9693        lt_prog_compiler_wl='-Wl,';;
9694      esac
9695      ;;
9696
9697    sunos4*)
9698      lt_prog_compiler_wl='-Qoption ld '
9699      lt_prog_compiler_pic='-PIC'
9700      lt_prog_compiler_static='-Bstatic'
9701      ;;
9702
9703    sysv4 | sysv4.2uw2* | sysv4.3*)
9704      lt_prog_compiler_wl='-Wl,'
9705      lt_prog_compiler_pic='-KPIC'
9706      lt_prog_compiler_static='-Bstatic'
9707      ;;
9708
9709    sysv4*MP*)
9710      if test -d /usr/nec ;then
9711        lt_prog_compiler_pic='-Kconform_pic'
9712        lt_prog_compiler_static='-Bstatic'
9713      fi
9714      ;;
9715
9716    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9717      lt_prog_compiler_wl='-Wl,'
9718      lt_prog_compiler_pic='-KPIC'
9719      lt_prog_compiler_static='-Bstatic'
9720      ;;
9721
9722    unicos*)
9723      lt_prog_compiler_wl='-Wl,'
9724      lt_prog_compiler_can_build_shared=no
9725      ;;
9726
9727    uts4*)
9728      lt_prog_compiler_pic='-pic'
9729      lt_prog_compiler_static='-Bstatic'
9730      ;;
9731
9732    *)
9733      lt_prog_compiler_can_build_shared=no
9734      ;;
9735    esac
9736  fi
9737
9738echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9739echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9740
9741#
9742# Check to make sure the PIC flag actually works.
9743#
9744if test -n "$lt_prog_compiler_pic"; then
9745
9746echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9748if test "${lt_prog_compiler_pic_works+set}" = set; then
9749  echo $ECHO_N "(cached) $ECHO_C" >&6
9750else
9751  lt_prog_compiler_pic_works=no
9752  ac_outfile=conftest.$ac_objext
9753   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9754   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9755   # Insert the option either (1) after the last *FLAGS variable, or
9756   # (2) before a word containing "conftest.", or (3) at the end.
9757   # Note that $ac_compile itself does not contain backslashes and begins
9758   # with a dollar sign (not a hyphen), so the echo should work correctly.
9759   # The option is referenced via a variable to avoid confusing sed.
9760   lt_compile=`echo "$ac_compile" | $SED \
9761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763   -e 's:$: $lt_compiler_flag:'`
9764   (eval echo "\"\$as_me:9764: $lt_compile\"" >&5)
9765   (eval "$lt_compile" 2>conftest.err)
9766   ac_status=$?
9767   cat conftest.err >&5
9768   echo "$as_me:9768: \$? = $ac_status" >&5
9769   if (exit $ac_status) && test -s "$ac_outfile"; then
9770     # The compiler can only warn and ignore the option if not recognized
9771     # So say no if there are warnings other than the usual output.
9772     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9773     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9774     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9775       lt_prog_compiler_pic_works=yes
9776     fi
9777   fi
9778   $rm conftest*
9779
9780fi
9781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9782echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9783
9784if test x"$lt_prog_compiler_pic_works" = xyes; then
9785    case $lt_prog_compiler_pic in
9786     "" | " "*) ;;
9787     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9788     esac
9789else
9790    lt_prog_compiler_pic=
9791     lt_prog_compiler_can_build_shared=no
9792fi
9793
9794fi
9795case $host_os in
9796  # For platforms which do not support PIC, -DPIC is meaningless:
9797  *djgpp*)
9798    lt_prog_compiler_pic=
9799    ;;
9800  *)
9801    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9802    ;;
9803esac
9804
9805#
9806# Check to make sure the static flag actually works.
9807#
9808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9809echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9810echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9811if test "${lt_prog_compiler_static_works+set}" = set; then
9812  echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814  lt_prog_compiler_static_works=no
9815   save_LDFLAGS="$LDFLAGS"
9816   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9817   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9818   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9819     # The linker can only warn and ignore the option if not recognized
9820     # So say no if there are warnings
9821     if test -s conftest.err; then
9822       # Append any errors to the config.log.
9823       cat conftest.err 1>&5
9824       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9825       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826       if diff conftest.exp conftest.er2 >/dev/null; then
9827         lt_prog_compiler_static_works=yes
9828       fi
9829     else
9830       lt_prog_compiler_static_works=yes
9831     fi
9832   fi
9833   $rm conftest*
9834   LDFLAGS="$save_LDFLAGS"
9835
9836fi
9837echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9838echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9839
9840if test x"$lt_prog_compiler_static_works" = xyes; then
9841    :
9842else
9843    lt_prog_compiler_static=
9844fi
9845
9846
9847echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9849if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9850  echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
9852  lt_cv_prog_compiler_c_o=no
9853   $rm -r conftest 2>/dev/null
9854   mkdir conftest
9855   cd conftest
9856   mkdir out
9857   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9858
9859   lt_compiler_flag="-o out/conftest2.$ac_objext"
9860   # Insert the option either (1) after the last *FLAGS variable, or
9861   # (2) before a word containing "conftest.", or (3) at the end.
9862   # Note that $ac_compile itself does not contain backslashes and begins
9863   # with a dollar sign (not a hyphen), so the echo should work correctly.
9864   lt_compile=`echo "$ac_compile" | $SED \
9865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9867   -e 's:$: $lt_compiler_flag:'`
9868   (eval echo "\"\$as_me:9868: $lt_compile\"" >&5)
9869   (eval "$lt_compile" 2>out/conftest.err)
9870   ac_status=$?
9871   cat out/conftest.err >&5
9872   echo "$as_me:9872: \$? = $ac_status" >&5
9873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9874   then
9875     # The compiler can only warn and ignore the option if not recognized
9876     # So say no if there are warnings
9877     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9880       lt_cv_prog_compiler_c_o=yes
9881     fi
9882   fi
9883   chmod u+w . 2>&5
9884   $rm conftest*
9885   # SGI C++ compiler will create directory out/ii_files/ for
9886   # template instantiation
9887   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9888   $rm out/* && rmdir out
9889   cd ..
9890   rmdir conftest
9891   $rm conftest*
9892
9893fi
9894echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9895echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9896
9897
9898hard_links="nottested"
9899if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9900  # do not overwrite the value of need_locks provided by the user
9901  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9903  hard_links=yes
9904  $rm conftest*
9905  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9906  touch conftest.a
9907  ln conftest.a conftest.b 2>&5 || hard_links=no
9908  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9909  echo "$as_me:$LINENO: result: $hard_links" >&5
9910echo "${ECHO_T}$hard_links" >&6
9911  if test "$hard_links" = no; then
9912    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9914    need_locks=warn
9915  fi
9916else
9917  need_locks=no
9918fi
9919
9920echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9922
9923  runpath_var=
9924  allow_undefined_flag=
9925  enable_shared_with_static_runtimes=no
9926  archive_cmds=
9927  archive_expsym_cmds=
9928  old_archive_From_new_cmds=
9929  old_archive_from_expsyms_cmds=
9930  export_dynamic_flag_spec=
9931  whole_archive_flag_spec=
9932  thread_safe_flag_spec=
9933  hardcode_libdir_flag_spec=
9934  hardcode_libdir_flag_spec_ld=
9935  hardcode_libdir_separator=
9936  hardcode_direct=no
9937  hardcode_minus_L=no
9938  hardcode_shlibpath_var=unsupported
9939  link_all_deplibs=unknown
9940  hardcode_automatic=no
9941  module_cmds=
9942  module_expsym_cmds=
9943  always_export_symbols=no
9944  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9945  # include_expsyms should be a list of space-separated symbols to be *always*
9946  # included in the symbol list
9947  include_expsyms=
9948  # exclude_expsyms can be an extended regexp of symbols to exclude
9949  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9950  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9951  # as well as any symbol that contains `d'.
9952  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9953  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9954  # platforms (ab)use it in PIC code, but their linkers get confused if
9955  # the symbol is explicitly referenced.  Since portable code cannot
9956  # rely on this symbol name, it's probably fine to never include it in
9957  # preloaded symbol tables.
9958  extract_expsyms_cmds=
9959  # Just being paranoid about ensuring that cc_basename is set.
9960  for cc_temp in $compiler""; do
9961  case $cc_temp in
9962    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9963    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9964    \-*) ;;
9965    *) break;;
9966  esac
9967done
9968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9969
9970  case $host_os in
9971  cygwin* | mingw* | pw32*)
9972    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9973    # When not using gcc, we currently assume that we are using
9974    # Microsoft Visual C++.
9975    if test "$GCC" != yes; then
9976      with_gnu_ld=no
9977    fi
9978    ;;
9979  interix*)
9980    # we just hope/assume this is gcc and not c89 (= MSVC++)
9981    with_gnu_ld=yes
9982    ;;
9983  openbsd*)
9984    with_gnu_ld=no
9985    ;;
9986  esac
9987
9988  ld_shlibs=yes
9989  if test "$with_gnu_ld" = yes; then
9990    # If archive_cmds runs LD, not CC, wlarc should be empty
9991    wlarc='${wl}'
9992
9993    # Set some defaults for GNU ld with shared library support. These
9994    # are reset later if shared libraries are not supported. Putting them
9995    # here allows them to be overridden if necessary.
9996    runpath_var=LD_RUN_PATH
9997    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9998    export_dynamic_flag_spec='${wl}--export-dynamic'
9999    # ancient GNU ld didn't support --whole-archive et. al.
10000    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10001        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10002      else
10003        whole_archive_flag_spec=
10004    fi
10005    supports_anon_versioning=no
10006    case `$LD -v 2>/dev/null` in
10007      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10008      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10009      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10010      *\ 2.11.*) ;; # other 2.11 versions
10011      *) supports_anon_versioning=yes ;;
10012    esac
10013
10014    # See if GNU ld supports shared libraries.
10015    case $host_os in
10016    aix3* | aix4* | aix5*)
10017      # On AIX/PPC, the GNU linker is very broken
10018      if test "$host_cpu" != ia64; then
10019        ld_shlibs=no
10020        cat <<EOF 1>&2
10021
10022*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10023*** to be unable to reliably create shared libraries on AIX.
10024*** Therefore, libtool is disabling shared libraries support.  If you
10025*** really care for shared libraries, you may want to modify your PATH
10026*** so that a non-GNU linker is found, and then restart.
10027
10028EOF
10029      fi
10030      ;;
10031
10032    amigaos*)
10033      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)'
10034      hardcode_libdir_flag_spec='-L$libdir'
10035      hardcode_minus_L=yes
10036
10037      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10038      # that the semantics of dynamic libraries on AmigaOS, at least up
10039      # to version 4, is to share data among multiple programs linked
10040      # with the same dynamic library.  Since this doesn't match the
10041      # behavior of shared libraries on other platforms, we can't use
10042      # them.
10043      ld_shlibs=no
10044      ;;
10045
10046    beos*)
10047      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10048        allow_undefined_flag=unsupported
10049        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10050        # support --undefined.  This deserves some investigation.  FIXME
10051        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052      else
10053        ld_shlibs=no
10054      fi
10055      ;;
10056
10057    cygwin* | mingw* | pw32*)
10058      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10059      # as there is no search path for DLLs.
10060      hardcode_libdir_flag_spec='-L$libdir'
10061      allow_undefined_flag=unsupported
10062      always_export_symbols=no
10063      enable_shared_with_static_runtimes=yes
10064      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10065
10066      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10067        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10068        # If the export-symbols file already is a .def file (1st line
10069        # is EXPORTS), use it as is; otherwise, prepend...
10070        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10071          cp $export_symbols $output_objdir/$soname.def;
10072        else
10073          echo EXPORTS > $output_objdir/$soname.def;
10074          cat $export_symbols >> $output_objdir/$soname.def;
10075        fi~
10076        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077      else
10078        ld_shlibs=no
10079      fi
10080      ;;
10081
10082    interix3*)
10083      hardcode_direct=no
10084      hardcode_shlibpath_var=no
10085      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086      export_dynamic_flag_spec='${wl}-E'
10087      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10088      # Instead, shared libraries are loaded at an image base (0x10000000 by
10089      # default) and relocated if they conflict, which is a slow very memory
10090      # consuming and fragmenting process.  To avoid this, we pick a random,
10091      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10092      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10093      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10094      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'
10095      ;;
10096
10097    linux*)
10098      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10099        tmp_addflag=
10100        case $cc_basename,$host_cpu in
10101        pgcc*)                          # Portland Group C compiler
10102          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'
10103          tmp_addflag=' $pic_flag'
10104          ;;
10105        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10106          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'
10107          tmp_addflag=' $pic_flag -Mnomain' ;;
10108        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10109          tmp_addflag=' -i_dynamic' ;;
10110        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10111          tmp_addflag=' -i_dynamic -nofor_main' ;;
10112        ifc* | ifort*)                  # Intel Fortran compiler
10113          tmp_addflag=' -nofor_main' ;;
10114        esac
10115        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10116
10117        if test $supports_anon_versioning = yes; then
10118          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10119  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10120  $echo "local: *; };" >> $output_objdir/$libname.ver~
10121          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10122        fi
10123      else
10124        ld_shlibs=no
10125      fi
10126      ;;
10127
10128    netbsd*)
10129      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10130        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10131        wlarc=
10132      else
10133        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10135      fi
10136      ;;
10137
10138    solaris*)
10139      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10140        ld_shlibs=no
10141        cat <<EOF 1>&2
10142
10143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10144*** create shared libraries on Solaris systems.  Therefore, libtool
10145*** is disabling shared libraries support.  We urge you to upgrade GNU
10146*** binutils to release 2.9.1 or newer.  Another option is to modify
10147*** your PATH or compiler configuration so that the native linker is
10148*** used, and then restart.
10149
10150EOF
10151      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10152        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10154      else
10155        ld_shlibs=no
10156      fi
10157      ;;
10158
10159    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10160      case `$LD -v 2>&1` in
10161        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10162        ld_shlibs=no
10163        cat <<_LT_EOF 1>&2
10164
10165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10166*** reliably create shared libraries on SCO systems.  Therefore, libtool
10167*** is disabling shared libraries support.  We urge you to upgrade GNU
10168*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10169*** your PATH or compiler configuration so that the native linker is
10170*** used, and then restart.
10171
10172_LT_EOF
10173        ;;
10174        *)
10175          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10176            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10177            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10178            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10179          else
10180            ld_shlibs=no
10181          fi
10182        ;;
10183      esac
10184      ;;
10185
10186    sunos4*)
10187      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10188      wlarc=
10189      hardcode_direct=yes
10190      hardcode_shlibpath_var=no
10191      ;;
10192
10193    *)
10194      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10195        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10196        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10197      else
10198        ld_shlibs=no
10199      fi
10200      ;;
10201    esac
10202
10203    if test "$ld_shlibs" = no; then
10204      runpath_var=
10205      hardcode_libdir_flag_spec=
10206      export_dynamic_flag_spec=
10207      whole_archive_flag_spec=
10208    fi
10209  else
10210    # PORTME fill in a description of your system's linker (not GNU ld)
10211    case $host_os in
10212    aix3*)
10213      allow_undefined_flag=unsupported
10214      always_export_symbols=yes
10215      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'
10216      # Note: this linker hardcodes the directories in LIBPATH if there
10217      # are no directories specified by -L.
10218      hardcode_minus_L=yes
10219      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10220        # Neither direct hardcoding nor static linking is supported with a
10221        # broken collect2.
10222        hardcode_direct=unsupported
10223      fi
10224      ;;
10225
10226    aix4* | aix5*)
10227      if test "$host_cpu" = ia64; then
10228        # On IA64, the linker does run time linking by default, so we don't
10229        # have to do anything special.
10230        aix_use_runtimelinking=no
10231        exp_sym_flag='-Bexport'
10232        no_entry_flag=""
10233      else
10234        # If we're using GNU nm, then we don't want the "-C" option.
10235        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10236        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10237          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'
10238        else
10239          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'
10240        fi
10241        aix_use_runtimelinking=no
10242
10243        # Test if we are trying to use run time linking or normal
10244        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245        # need to do runtime linking.
10246        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10247          for ld_flag in $LDFLAGS; do
10248          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10249            aix_use_runtimelinking=yes
10250            break
10251          fi
10252          done
10253          ;;
10254        esac
10255
10256        exp_sym_flag='-bexport'
10257        no_entry_flag='-bnoentry'
10258      fi
10259
10260      # When large executables or shared objects are built, AIX ld can
10261      # have problems creating the table of contents.  If linking a library
10262      # or program results in "error TOC overflow" add -mminimal-toc to
10263      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10264      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10265
10266      archive_cmds=''
10267      hardcode_direct=yes
10268      hardcode_libdir_separator=':'
10269      link_all_deplibs=yes
10270
10271      if test "$GCC" = yes; then
10272        case $host_os in aix4.[012]|aix4.[012].*)
10273        # We only want to do this on AIX 4.2 and lower, the check
10274        # below for broken collect2 doesn't work under 4.3+
10275          collect2name=`${CC} -print-prog-name=collect2`
10276          if test -f "$collect2name" && \
10277           strings "$collect2name" | grep resolve_lib_name >/dev/null
10278          then
10279          # We have reworked collect2
10280          hardcode_direct=yes
10281          else
10282          # We have old collect2
10283          hardcode_direct=unsupported
10284          # It fails to find uninstalled libraries when the uninstalled
10285          # path is not listed in the libpath.  Setting hardcode_minus_L
10286          # to unsupported forces relinking
10287          hardcode_minus_L=yes
10288          hardcode_libdir_flag_spec='-L$libdir'
10289          hardcode_libdir_separator=
10290          fi
10291          ;;
10292        esac
10293        shared_flag='-shared'
10294        if test "$aix_use_runtimelinking" = yes; then
10295          shared_flag="$shared_flag "'${wl}-G'
10296        fi
10297      else
10298        # not using gcc
10299        if test "$host_cpu" = ia64; then
10300        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10301        # chokes on -Wl,-G. The following line is correct:
10302          shared_flag='-G'
10303        else
10304          if test "$aix_use_runtimelinking" = yes; then
10305            shared_flag='${wl}-G'
10306          else
10307            shared_flag='${wl}-bM:SRE'
10308          fi
10309        fi
10310      fi
10311
10312      # It seems that -bexpall does not export symbols beginning with
10313      # underscore (_), so it is better to generate a list of symbols to export.
10314      always_export_symbols=yes
10315      if test "$aix_use_runtimelinking" = yes; then
10316        # Warning - without using the other runtime loading flags (-brtl),
10317        # -berok will link without error, but may produce a broken library.
10318        allow_undefined_flag='-berok'
10319       # Determine the default libpath from the value encoded in an empty executable.
10320       cat >conftest.$ac_ext <<_ACEOF
10321/* confdefs.h.  */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h.  */
10326
10327#ifdef F77_DUMMY_MAIN
10328
10329#  ifdef __cplusplus
10330     extern "C"
10331#  endif
10332   int F77_DUMMY_MAIN() { return 1; }
10333
10334#endif
10335int
10336main ()
10337{
10338
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345  (eval $ac_link) 2>conftest.er1
10346  ac_status=$?
10347  grep -v '^ *+' conftest.er1 >conftest.err
10348  rm -f conftest.er1
10349  cat conftest.err >&5
10350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); } &&
10352         { ac_try='test -z "$ac_c_werror_flag"
10353                         || test ! -s conftest.err'
10354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355  (eval $ac_try) 2>&5
10356  ac_status=$?
10357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358  (exit $ac_status); }; } &&
10359         { ac_try='test -s conftest$ac_exeext'
10360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361  (eval $ac_try) 2>&5
10362  ac_status=$?
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); }; }; then
10365
10366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10367}'`
10368# Check for a 64-bit object if we didn't find anything.
10369if 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; }
10370}'`; fi
10371else
10372  echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375fi
10376rm -f conftest.err conftest.$ac_objext \
10377      conftest$ac_exeext conftest.$ac_ext
10378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10379
10380       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10381        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"
10382       else
10383        if test "$host_cpu" = ia64; then
10384          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10385          allow_undefined_flag="-z nodefs"
10386          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"
10387        else
10388         # Determine the default libpath from the value encoded in an empty executable.
10389         cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h.  */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h.  */
10395
10396#ifdef F77_DUMMY_MAIN
10397
10398#  ifdef __cplusplus
10399     extern "C"
10400#  endif
10401   int F77_DUMMY_MAIN() { return 1; }
10402
10403#endif
10404int
10405main ()
10406{
10407
10408  ;
10409  return 0;
10410}
10411_ACEOF
10412rm -f conftest.$ac_objext conftest$ac_exeext
10413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414  (eval $ac_link) 2>conftest.er1
10415  ac_status=$?
10416  grep -v '^ *+' conftest.er1 >conftest.err
10417  rm -f conftest.er1
10418  cat conftest.err >&5
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); } &&
10421         { ac_try='test -z "$ac_c_werror_flag"
10422                         || test ! -s conftest.err'
10423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424  (eval $ac_try) 2>&5
10425  ac_status=$?
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); }; } &&
10428         { ac_try='test -s conftest$ac_exeext'
10429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430  (eval $ac_try) 2>&5
10431  ac_status=$?
10432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433  (exit $ac_status); }; }; then
10434
10435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10436}'`
10437# Check for a 64-bit object if we didn't find anything.
10438if 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; }
10439}'`; fi
10440else
10441  echo "$as_me: failed program was:" >&5
10442sed 's/^/| /' conftest.$ac_ext >&5
10443
10444fi
10445rm -f conftest.err conftest.$ac_objext \
10446      conftest$ac_exeext conftest.$ac_ext
10447if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10448
10449         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10450          # Warning - without using the other run time loading flags,
10451          # -berok will link without error, but may produce a broken library.
10452          no_undefined_flag=' ${wl}-bernotok'
10453          allow_undefined_flag=' ${wl}-berok'
10454          # Exported symbols can be pulled into shared objects from archives
10455          whole_archive_flag_spec='$convenience'
10456          archive_cmds_need_lc=yes
10457          # This is similar to how AIX traditionally builds its shared libraries.
10458          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'
10459        fi
10460      fi
10461      ;;
10462
10463    amigaos*)
10464      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)'
10465      hardcode_libdir_flag_spec='-L$libdir'
10466      hardcode_minus_L=yes
10467      # see comment about different semantics on the GNU ld section
10468      ld_shlibs=no
10469      ;;
10470
10471    bsdi[45]*)
10472      export_dynamic_flag_spec=-rdynamic
10473      ;;
10474
10475    cygwin* | mingw* | pw32*)
10476      # When not using gcc, we currently assume that we are using
10477      # Microsoft Visual C++.
10478      # hardcode_libdir_flag_spec is actually meaningless, as there is
10479      # no search path for DLLs.
10480      hardcode_libdir_flag_spec=' '
10481      allow_undefined_flag=unsupported
10482      # Tell ltmain to make .lib files, not .a files.
10483      libext=lib
10484      # Tell ltmain to make .dll files, not .so files.
10485      shrext_cmds=".dll"
10486      # FIXME: Setting linknames here is a bad hack.
10487      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10488      # The linker will automatically build a .lib file if we build a DLL.
10489      old_archive_From_new_cmds='true'
10490      # FIXME: Should let the user specify the lib program.
10491      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10492      fix_srcfile_path='`cygpath -w "$srcfile"`'
10493      enable_shared_with_static_runtimes=yes
10494      ;;
10495
10496    darwin* | rhapsody*)
10497      case $host_os in
10498        rhapsody* | darwin1.[012])
10499         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10500         ;;
10501       *) # Darwin 1.3 on
10502         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10503           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10504         else
10505           case ${MACOSX_DEPLOYMENT_TARGET} in
10506             10.[012])
10507               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10508               ;;
10509             10.*)
10510               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10511               ;;
10512           esac
10513         fi
10514         ;;
10515      esac
10516      archive_cmds_need_lc=no
10517      hardcode_direct=no
10518      hardcode_automatic=yes
10519      hardcode_shlibpath_var=unsupported
10520      whole_archive_flag_spec=''
10521      link_all_deplibs=yes
10522    if test "$GCC" = yes ; then
10523        output_verbose_link_cmd='echo'
10524        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10525      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10526      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10527      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}'
10528      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}'
10529    else
10530      case $cc_basename in
10531        xlc*)
10532         output_verbose_link_cmd='echo'
10533         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10534         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10535          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10536         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}'
10537          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}'
10538          ;;
10539       *)
10540         ld_shlibs=no
10541          ;;
10542      esac
10543    fi
10544      ;;
10545
10546    dgux*)
10547      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548      hardcode_libdir_flag_spec='-L$libdir'
10549      hardcode_shlibpath_var=no
10550      ;;
10551
10552    freebsd1*)
10553      ld_shlibs=no
10554      ;;
10555
10556    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10557    # support.  Future versions do this automatically, but an explicit c++rt0.o
10558    # does not break anything, and helps significantly (at the cost of a little
10559    # extra space).
10560    freebsd2.2*)
10561      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10562      hardcode_libdir_flag_spec='-R$libdir'
10563      hardcode_direct=yes
10564      hardcode_shlibpath_var=no
10565      ;;
10566
10567    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10568    freebsd2*)
10569      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10570      hardcode_direct=yes
10571      hardcode_minus_L=yes
10572      hardcode_shlibpath_var=no
10573      ;;
10574
10575    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10576    freebsd* | kfreebsd*-gnu | dragonfly*)
10577      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10578      hardcode_libdir_flag_spec='-R$libdir'
10579      hardcode_direct=yes
10580      hardcode_shlibpath_var=no
10581      ;;
10582
10583    hpux9*)
10584      if test "$GCC" = yes; then
10585        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'
10586      else
10587        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'
10588      fi
10589      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10590      hardcode_libdir_separator=:
10591      hardcode_direct=yes
10592
10593      # hardcode_minus_L: Not really in the search PATH,
10594      # but as the default location of the library.
10595      hardcode_minus_L=yes
10596      export_dynamic_flag_spec='${wl}-E'
10597      ;;
10598
10599    hpux10*)
10600      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10601        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10602      else
10603        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10604      fi
10605      if test "$with_gnu_ld" = no; then
10606        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10607        hardcode_libdir_separator=:
10608
10609        hardcode_direct=yes
10610        export_dynamic_flag_spec='${wl}-E'
10611
10612        # hardcode_minus_L: Not really in the search PATH,
10613        # but as the default location of the library.
10614        hardcode_minus_L=yes
10615      fi
10616      ;;
10617
10618    hpux11*)
10619      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10620        case $host_cpu in
10621        hppa*64*)
10622          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10623          ;;
10624        ia64*)
10625          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10626          ;;
10627        *)
10628          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629          ;;
10630        esac
10631      else
10632        case $host_cpu in
10633        hppa*64*)
10634          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10635          ;;
10636        ia64*)
10637          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638          ;;
10639        *)
10640          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10641          ;;
10642        esac
10643      fi
10644      if test "$with_gnu_ld" = no; then
10645        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646        hardcode_libdir_separator=:
10647
10648        case $host_cpu in
10649        hppa*64*|ia64*)
10650          hardcode_libdir_flag_spec_ld='+b $libdir'
10651          hardcode_direct=no
10652          hardcode_shlibpath_var=no
10653          ;;
10654        *)
10655          hardcode_direct=yes
10656          export_dynamic_flag_spec='${wl}-E'
10657
10658          # hardcode_minus_L: Not really in the search PATH,
10659          # but as the default location of the library.
10660          hardcode_minus_L=yes
10661          ;;
10662        esac
10663      fi
10664      ;;
10665
10666    irix5* | irix6* | nonstopux*)
10667      if test "$GCC" = yes; then
10668        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'
10669      else
10670        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'
10671        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10672      fi
10673      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674      hardcode_libdir_separator=:
10675      link_all_deplibs=yes
10676      ;;
10677
10678    netbsd*)
10679      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10680        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10681      else
10682        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10683      fi
10684      hardcode_libdir_flag_spec='-R$libdir'
10685      hardcode_direct=yes
10686      hardcode_shlibpath_var=no
10687      ;;
10688
10689    newsos6)
10690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691      hardcode_direct=yes
10692      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10693      hardcode_libdir_separator=:
10694      hardcode_shlibpath_var=no
10695      ;;
10696
10697    openbsd*)
10698      hardcode_direct=yes
10699      hardcode_shlibpath_var=no
10700      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10701        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10702        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10703        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10704        export_dynamic_flag_spec='${wl}-E'
10705      else
10706       case $host_os in
10707         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10708           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10709           hardcode_libdir_flag_spec='-R$libdir'
10710           ;;
10711         *)
10712           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10713           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10714           ;;
10715       esac
10716      fi
10717      ;;
10718
10719    os2*)
10720      hardcode_libdir_flag_spec='-L$libdir'
10721      hardcode_minus_L=yes
10722      allow_undefined_flag=unsupported
10723      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'
10724      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10725      ;;
10726
10727    osf3*)
10728      if test "$GCC" = yes; then
10729        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10730        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'
10731      else
10732        allow_undefined_flag=' -expect_unresolved \*'
10733        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'
10734      fi
10735      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10736      hardcode_libdir_separator=:
10737      ;;
10738
10739    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10740      if test "$GCC" = yes; then
10741        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10742        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'
10743        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10744      else
10745        allow_undefined_flag=' -expect_unresolved \*'
10746        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'
10747        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10748        $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'
10749
10750        # Both c and cxx compiler support -rpath directly
10751        hardcode_libdir_flag_spec='-rpath $libdir'
10752      fi
10753      hardcode_libdir_separator=:
10754      ;;
10755
10756    solaris*)
10757      no_undefined_flag=' -z text'
10758      if test "$GCC" = yes; then
10759        wlarc='${wl}'
10760        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10761        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10762          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10763      else
10764        wlarc=''
10765        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10767        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10768      fi
10769      hardcode_libdir_flag_spec='-R$libdir'
10770      hardcode_shlibpath_var=no
10771      case $host_os in
10772      solaris2.[0-5] | solaris2.[0-5].*) ;;
10773      *)
10774        # The compiler driver will combine linker options so we
10775        # cannot just pass the convience library names through
10776        # without $wl, iff we do not link with $LD.
10777        # Luckily, gcc supports the same syntax we need for Sun Studio.
10778        # Supported since Solaris 2.6 (maybe 2.5.1?)
10779        case $wlarc in
10780        '')
10781          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10782        *)
10783          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' ;;
10784        esac ;;
10785      esac
10786      link_all_deplibs=yes
10787      ;;
10788
10789    sunos4*)
10790      if test "x$host_vendor" = xsequent; then
10791        # Use $CC to link under sequent, because it throws in some extra .o
10792        # files that make .init and .fini sections work.
10793        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10794      else
10795        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10796      fi
10797      hardcode_libdir_flag_spec='-L$libdir'
10798      hardcode_direct=yes
10799      hardcode_minus_L=yes
10800      hardcode_shlibpath_var=no
10801      ;;
10802
10803    sysv4)
10804      case $host_vendor in