source: ThirdParty/HSL/stable/1.4/configure @ 2779

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

temporarily committing release candidate

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