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

Last change on this file since 2927 was 2927, checked in by stefan, 6 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 887.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL 1.3.6.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='1.3.6'
433PACKAGE_STRING='ThirdPartyHSL 1.3.6'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINHSL_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA77_TRUE COIN_HAS_MA77_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL 1.3.6 to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL 1.3.6:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089                          (implies --disable-shared)
1090  --enable-debug-hsl compile project HSL with debug compiler flags
1091  --enable-doscompile     Under Cygwin, compile so that executables run under
1092                          DOS. Set to mingw to use gcc/g++/ld with
1093                          -mno-cygwin. Set to msvc to use cl/link (or
1094                          icl/link). Default when mentioned: mingw. Default
1095                          when not mentioned: disabled.
1096  --disable-pkg-config    disable use of pkg-config (if available)
1097  --enable-static[=PKGS]
1098                          build static libraries [default=no]
1099  --disable-dependency-tracking  speeds up one-time build
1100  --enable-dependency-tracking   do not reject slow dependency extractors
1101  --enable-maintainer-mode  enable make rules and dependencies not useful
1102                          (and sometimes confusing) to the casual installer
1103  --enable-shared[=PKGS]
1104                          build shared libraries [default=yes]
1105  --enable-fast-install[=PKGS]
1106                          optimize for fast installation [default=yes]
1107  --disable-libtool-lock  avoid locking (might break parallel builds)
1108  --disable-interpackage-dependencies
1109                          disables deduction of Makefile dependencies from
1110                          package linker flags
1111
1112Optional Packages:
1113  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1114  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1115  --with-hsl-verbosity specify the debug verbosity level for project HSL
1116  --with-hsl-checklevel specify the sanity check level for project HSL
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124
1125  --with-metis-lib linker flags for using package Metis
1126  --with-metis-incdir directory with header files for using package Metis
1127  --with-metis-datadir directory with data files for using package Metis
1128  --with-blas             specify BLAS library (or BUILD to enforce use of
1129                          ThirdParty/Blas)
1130  --with-blas-lib linker flags for using package Blas
1131  --with-blas-incdir directory with header files for using package Blas
1132  --with-blas-datadir directory with data files for using package Blas
1133
1134Some influential environment variables:
1135  CDEFS       Additional -D flags to be used when compiling C code.
1136  ADD_CFLAGS  Additional C compiler options
1137  DBG_CFLAGS  Debug C compiler options
1138  OPT_CFLAGS  Optimize C compiler options
1139  CC          C compiler command
1140  CFLAGS      C compiler flags
1141  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1142              nonstandard directory <lib dir>
1143  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1144              headers in a nonstandard directory <include dir>
1145  MPICC       C MPI Compiler
1146  ADD_FFLAGS  Additional Fortran compiler options
1147  DBG_FFLAGS  Debug Fortran compiler options
1148  OPT_FFLAGS  Optimize Fortran compiler options
1149  F77         Fortran 77 compiler command
1150  FFLAGS      Fortran 77 compiler flags
1151  MPIF77      Fortran MPI Compiler
1152  PKG_CONFIG  path to pkg-config utility
1153  FC          Fortran compiler command
1154  FCFLAGS     Fortran compiler flags
1155  CPP         C preprocessor
1156  CXX         C++ compiler command
1157  CXXFLAGS    C++ compiler flags
1158  CXXCPP      C++ preprocessor
1159
1160Use these variables to override the choices made by `configure' or to help
1161it to find libraries and programs with nonstandard names/locations.
1162
1163Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1164_ACEOF
1165fi
1166
1167if test "$ac_init_help" = "recursive"; then
1168  # If there are subdirs, report their specific --help.
1169  ac_popdir=`pwd`
1170  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171    test -d $ac_dir || continue
1172    ac_builddir=.
1173
1174if test "$ac_dir" != .; then
1175  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1176  # A "../" for each directory in $ac_dir_suffix.
1177  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1178else
1179  ac_dir_suffix= ac_top_builddir=
1180fi
1181
1182case $srcdir in
1183  .)  # No --srcdir option.  We are building in place.
1184    ac_srcdir=.
1185    if test -z "$ac_top_builddir"; then
1186       ac_top_srcdir=.
1187    else
1188       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1189    fi ;;
1190  [\\/]* | ?:[\\/]* )  # Absolute path.
1191    ac_srcdir=$srcdir$ac_dir_suffix;
1192    ac_top_srcdir=$srcdir ;;
1193  *) # Relative path.
1194    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1196esac
1197
1198# Do not use `cd foo && pwd` to compute absolute paths, because
1199# the directories may not exist.
1200case `pwd` in
1201.) ac_abs_builddir="$ac_dir";;
1202*)
1203  case "$ac_dir" in
1204  .) ac_abs_builddir=`pwd`;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_top_builddir=${ac_top_builddir}.;;
1211*)
1212  case ${ac_top_builddir}. in
1213  .) ac_abs_top_builddir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_srcdir=$ac_srcdir;;
1220*)
1221  case $ac_srcdir in
1222  .) ac_abs_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1225  esac;;
1226esac
1227case $ac_abs_builddir in
1228.) ac_abs_top_srcdir=$ac_top_srcdir;;
1229*)
1230  case $ac_top_srcdir in
1231  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1234  esac;;
1235esac
1236
1237    cd $ac_dir
1238    # Check for guested configure; otherwise get Cygnus style configure.
1239    if test -f $ac_srcdir/configure.gnu; then
1240      echo
1241      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1242    elif test -f $ac_srcdir/configure; then
1243      echo
1244      $SHELL $ac_srcdir/configure  --help=recursive
1245    elif test -f $ac_srcdir/configure.ac ||
1246           test -f $ac_srcdir/configure.in; then
1247      echo
1248      $ac_configure --help
1249    else
1250      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1251    fi
1252    cd $ac_popdir
1253  done
1254fi
1255
1256test -n "$ac_init_help" && exit 0
1257if $ac_init_version; then
1258  cat <<\_ACEOF
1259ThirdPartyHSL configure 1.3.6
1260generated by GNU Autoconf 2.59
1261
1262Copyright (C) 2003 Free Software Foundation, Inc.
1263This configure script is free software; the Free Software Foundation
1264gives unlimited permission to copy, distribute and modify it.
1265
1266
1267Copyright 2006, 2009 International Business Machines and others.
1268All Rights Reserved.
1269This file is part of the open source package Coin which is distributed
1270under the Eclipse Public License.
1271_ACEOF
1272  exit 0
1273fi
1274exec 5>config.log
1275cat >&5 <<_ACEOF
1276This file contains any messages produced by compilers while
1277running configure, to aid debugging if configure makes a mistake.
1278
1279It was created by ThirdPartyHSL $as_me 1.3.6, which was
1280generated by GNU Autoconf 2.59.  Invocation command line was
1281
1282  $ $0 $@
1283
1284_ACEOF
1285{
1286cat <<_ASUNAME
1287## --------- ##
1288## Platform. ##
1289## --------- ##
1290
1291hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1292uname -m = `(uname -m) 2>/dev/null || echo unknown`
1293uname -r = `(uname -r) 2>/dev/null || echo unknown`
1294uname -s = `(uname -s) 2>/dev/null || echo unknown`
1295uname -v = `(uname -v) 2>/dev/null || echo unknown`
1296
1297/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1298/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1299
1300/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1301/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1302/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1303hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1304/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1305/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1306/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1307
1308_ASUNAME
1309
1310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1311for as_dir in $PATH
1312do
1313  IFS=$as_save_IFS
1314  test -z "$as_dir" && as_dir=.
1315  echo "PATH: $as_dir"
1316done
1317
1318} >&5
1319
1320cat >&5 <<_ACEOF
1321
1322
1323## ----------- ##
1324## Core tests. ##
1325## ----------- ##
1326
1327_ACEOF
1328
1329
1330# Keep a trace of the command line.
1331# Strip out --no-create and --no-recursion so they do not pile up.
1332# Strip out --silent because we don't want to record it for future runs.
1333# Also quote any args containing shell meta-characters.
1334# Make two passes to allow for proper duplicate-argument suppression.
1335ac_configure_args=
1336ac_configure_args0=
1337ac_configure_args1=
1338ac_sep=
1339ac_must_keep_next=false
1340for ac_pass in 1 2
1341do
1342  for ac_arg
1343  do
1344    case $ac_arg in
1345    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1346    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347    | -silent | --silent | --silen | --sile | --sil)
1348      continue ;;
1349    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1350      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1351    esac
1352    case $ac_pass in
1353    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1354    2)
1355      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1356      if test $ac_must_keep_next = true; then
1357        ac_must_keep_next=false # Got value, back to normal.
1358      else
1359        case $ac_arg in
1360          *=* | --config-cache | -C | -disable-* | --disable-* \
1361          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1362          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1363          | -with-* | --with-* | -without-* | --without-* | --x)
1364            case "$ac_configure_args0 " in
1365              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1366            esac
1367            ;;
1368          -* ) ac_must_keep_next=true ;;
1369        esac
1370      fi
1371      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1372      # Get rid of the leading space.
1373      ac_sep=" "
1374      ;;
1375    esac
1376  done
1377done
1378$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1379$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1380
1381# When interrupted or exit'd, cleanup temporary files, and complete
1382# config.log.  We remove comments because anyway the quotes in there
1383# would cause problems or look ugly.
1384# WARNING: Be sure not to use single quotes in there, as some shells,
1385# such as our DU 5.0 friend, will then `close' the trap.
1386trap 'exit_status=$?
1387  # Save into config.log some information that might help in debugging.
1388  {
1389    echo
1390
1391    cat <<\_ASBOX
1392## ---------------- ##
1393## Cache variables. ##
1394## ---------------- ##
1395_ASBOX
1396    echo
1397    # The following way of writing the cache mishandles newlines in values,
1398{
1399  (set) 2>&1 |
1400    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1401    *ac_space=\ *)
1402      sed -n \
1403        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1404          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1405      ;;
1406    *)
1407      sed -n \
1408        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1409      ;;
1410    esac;
1411}
1412    echo
1413
1414    cat <<\_ASBOX
1415## ----------------- ##
1416## Output variables. ##
1417## ----------------- ##
1418_ASBOX
1419    echo
1420    for ac_var in $ac_subst_vars
1421    do
1422      eval ac_val=$`echo $ac_var`
1423      echo "$ac_var='"'"'$ac_val'"'"'"
1424    done | sort
1425    echo
1426
1427    if test -n "$ac_subst_files"; then
1428      cat <<\_ASBOX
1429## ------------- ##
1430## Output files. ##
1431## ------------- ##
1432_ASBOX
1433      echo
1434      for ac_var in $ac_subst_files
1435      do
1436        eval ac_val=$`echo $ac_var`
1437        echo "$ac_var='"'"'$ac_val'"'"'"
1438      done | sort
1439      echo
1440    fi
1441
1442    if test -s confdefs.h; then
1443      cat <<\_ASBOX
1444## ----------- ##
1445## confdefs.h. ##
1446## ----------- ##
1447_ASBOX
1448      echo
1449      sed "/^$/d" confdefs.h | sort
1450      echo
1451    fi
1452    test "$ac_signal" != 0 &&
1453      echo "$as_me: caught signal $ac_signal"
1454    echo "$as_me: exit $exit_status"
1455  } >&5
1456  rm -f core *.core &&
1457  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1458    exit $exit_status
1459     ' 0
1460for ac_signal in 1 2 13 15; do
1461  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1462done
1463ac_signal=0
1464
1465# confdefs.h avoids OS command line length limits that DEFS can exceed.
1466rm -rf conftest* confdefs.h
1467# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1468echo >confdefs.h
1469
1470# Predefined preprocessor variables.
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_NAME "$PACKAGE_NAME"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_VERSION "$PACKAGE_VERSION"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_STRING "$PACKAGE_STRING"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1494_ACEOF
1495
1496
1497# Let the site file select an alternate cache file if it wants to.
1498# Prefer explicitly selected file to automatically selected ones.
1499if test -z "$CONFIG_SITE"; then
1500  if test "x$prefix" != xNONE; then
1501    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1502  else
1503    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1504  fi
1505fi
1506for ac_site_file in $CONFIG_SITE; do
1507  if test -r "$ac_site_file"; then
1508    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1509echo "$as_me: loading site script $ac_site_file" >&6;}
1510    sed 's/^/| /' "$ac_site_file" >&5
1511    . "$ac_site_file"
1512  fi
1513done
1514
1515if test -r "$cache_file"; then
1516  # Some versions of bash will fail to source /dev/null (special
1517  # files actually), so we avoid doing that.
1518  if test -f "$cache_file"; then
1519    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1520echo "$as_me: loading cache $cache_file" >&6;}
1521    case $cache_file in
1522      [\\/]* | ?:[\\/]* ) . $cache_file;;
1523      *)                      . ./$cache_file;;
1524    esac
1525  fi
1526else
1527  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1528echo "$as_me: creating cache $cache_file" >&6;}
1529  >$cache_file
1530fi
1531
1532# Check that the precious variables saved in the cache have kept the same
1533# value.
1534ac_cache_corrupted=false
1535for ac_var in `(set) 2>&1 |
1536               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1537  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1538  eval ac_new_set=\$ac_env_${ac_var}_set
1539  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1540  eval ac_new_val="\$ac_env_${ac_var}_value"
1541  case $ac_old_set,$ac_new_set in
1542    set,)
1543      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1544echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1545      ac_cache_corrupted=: ;;
1546    ,set)
1547      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1548echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1549      ac_cache_corrupted=: ;;
1550    ,);;
1551    *)
1552      if test "x$ac_old_val" != "x$ac_new_val"; then
1553        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1554echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1555        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1556echo "$as_me:   former value:  $ac_old_val" >&2;}
1557        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1558echo "$as_me:   current value: $ac_new_val" >&2;}
1559        ac_cache_corrupted=:
1560      fi;;
1561  esac
1562  # Pass precious variables to config.status.
1563  if test "$ac_new_set" = set; then
1564    case $ac_new_val in
1565    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1566      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1567    *) ac_arg=$ac_var=$ac_new_val ;;
1568    esac
1569    case " $ac_configure_args " in
1570      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1571      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1572    esac
1573  fi
1574done
1575if $ac_cache_corrupted; then
1576  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1577echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1578  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1579echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1580   { (exit 1); exit 1; }; }
1581fi
1582
1583ac_ext=c
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618# List one file in the package so that the configure script can test
1619# whether the package is actually there
1620# Here we don't know yet which files are actually provided...
1621
1622
1623# Where should everything be installed by default?  Here, we want it
1624# to be installed directly in 'bin', 'lib', 'include' subdirectories
1625# of the directory where configure is run.  The default would be
1626# /usr/local.
1627
1628
1629
1630# As backup, we make sure we don't loose an FLIBS if it has been set
1631# by the user
1632save_FLIBS="$FLIBS"
1633
1634# A useful makefile conditional that is always false
1635
1636
1637if false; then
1638  ALWAYS_FALSE_TRUE=
1639  ALWAYS_FALSE_FALSE='#'
1640else
1641  ALWAYS_FALSE_TRUE='#'
1642  ALWAYS_FALSE_FALSE=
1643fi
1644
1645
1646# We set the following variable so that we know later in AC_COIN_FINALIZE
1647# that we are in a project main directory
1648coin_projectdir=yes
1649
1650# Set the project's version numbers
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define COINHSL_VERSION "$PACKAGE_VERSION"
1655_ACEOF
1656
1657
1658  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1659  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1660  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1661  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1662  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1663  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1664
1665cat >>confdefs.h <<_ACEOF
1666#define COINHSL_VERSION_MAJOR $coin_majorver
1667_ACEOF
1668
1669
1670cat >>confdefs.h <<_ACEOF
1671#define COINHSL_VERSION_MINOR $coin_minorver
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define COINHSL_VERSION_RELEASE $coin_releasever
1677_ACEOF
1678
1679
1680  # We use the following variable to have a string with the upper case
1681  # version of the project name
1682  COIN_PRJCT=COINHSL
1683
1684  # Set the project's SVN revision number. The complicated sed expression
1685  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1686  # as a single number.
1687  # Extract the first word of "svnversion", so it can be a program name with args.
1688set dummy svnversion; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_have_svnversion+set}" = set; then
1692  echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694  if test -n "$have_svnversion"; then
1695  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1696else
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700  IFS=$as_save_IFS
1701  test -z "$as_dir" && as_dir=.
1702  for ac_exec_ext in '' $ac_executable_extensions; do
1703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704    ac_cv_prog_have_svnversion="yes"
1705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706    break 2
1707  fi
1708done
1709done
1710
1711  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1712fi
1713fi
1714have_svnversion=$ac_cv_prog_have_svnversion
1715if test -n "$have_svnversion"; then
1716  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1717echo "${ECHO_T}$have_svnversion" >&6
1718else
1719  echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723  if test "x$have_svnversion" = xyes; then
1724
1725    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1726    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1727      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1728
1729cat >>confdefs.h <<_ACEOF
1730#define COINHSL_SVN_REV $COINHSL_SVN_REV
1731_ACEOF
1732
1733    fi
1734  fi
1735
1736
1737
1738# Capture libtool library version, if given.
1739 coin_libversion=4:6:3
1740
1741
1742
1743
1744#############################################################################
1745#                         Standard build tool stuff                         #
1746#############################################################################
1747
1748# Get the system type
1749ac_aux_dir=
1750for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1751  if test -f $ac_dir/install-sh; then
1752    ac_aux_dir=$ac_dir
1753    ac_install_sh="$ac_aux_dir/install-sh -c"
1754    break
1755  elif test -f $ac_dir/install.sh; then
1756    ac_aux_dir=$ac_dir
1757    ac_install_sh="$ac_aux_dir/install.sh -c"
1758    break
1759  elif test -f $ac_dir/shtool; then
1760    ac_aux_dir=$ac_dir
1761    ac_install_sh="$ac_aux_dir/shtool install -c"
1762    break
1763  fi
1764done
1765if test -z "$ac_aux_dir"; then
1766  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1767echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1768   { (exit 1); exit 1; }; }
1769fi
1770ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1771ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1772ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1773
1774# Make sure we can run config.sub.
1775$ac_config_sub sun4 >/dev/null 2>&1 ||
1776  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1777echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1778   { (exit 1); exit 1; }; }
1779
1780echo "$as_me:$LINENO: checking build system type" >&5
1781echo $ECHO_N "checking build system type... $ECHO_C" >&6
1782if test "${ac_cv_build+set}" = set; then
1783  echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785  ac_cv_build_alias=$build_alias
1786test -z "$ac_cv_build_alias" &&
1787  ac_cv_build_alias=`$ac_config_guess`
1788test -z "$ac_cv_build_alias" &&
1789  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1790echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1791   { (exit 1); exit 1; }; }
1792ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1793  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1794echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1795   { (exit 1); exit 1; }; }
1796
1797fi
1798echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1799echo "${ECHO_T}$ac_cv_build" >&6
1800build=$ac_cv_build
1801build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1802build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1803build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1804
1805
1806
1807# turn off warnings and pedantic mode since they could make trouble on some platforms,
1808# and we couldn't fix them anyway
1809coin_skip_warn_fflags=yes
1810
1811# provide flag to allow compilation of a stand-alone shared library
1812# Check whether --enable-loadable-library or --disable-loadable-library was given.
1813if test "${enable_loadable_library+set}" = set; then
1814  enableval="$enable_loadable_library"
1815
1816fi;
1817
1818# Check if user wants to produce debugging code
1819
1820echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1821echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1822
1823# Check whether --enable-debug or --disable-debug was given.
1824if test "${enable_debug+set}" = set; then
1825  enableval="$enable_debug"
1826  case "${enableval}" in
1827   yes) coin_debug_compile=true
1828        if test "${enable_shared+set}" = set; then :; else
1829          enable_shared=no
1830        fi
1831        ;;
1832   no)  coin_debug_compile=false
1833        ;;
1834   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1835echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1836   { (exit 1); exit 1; }; }
1837        ;;
1838esac
1839else
1840  coin_debug_compile=false
1841fi;
1842
1843# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1844if test "${enable_debug_hsl+set}" = set; then
1845  enableval="$enable_debug_hsl"
1846  case "${enableval}" in
1847    yes) coin_debug_compile=true
1848         ;;
1849    no)  coin_debug_compile=false
1850         ;;
1851    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1852echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1853   { (exit 1); exit 1; }; }
1854         ;;
1855 esac
1856else
1857  :
1858fi;
1859
1860 # m4_ifvaln([HSL],
1861
1862if test $coin_debug_compile = true; then
1863  echo "$as_me:$LINENO: result: yes" >&5
1864echo "${ECHO_T}yes" >&6
1865else
1866  echo "$as_me:$LINENO: result: no" >&5
1867echo "${ECHO_T}no" >&6
1868fi
1869
1870
1871# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1872if test "${with_hsl_verbosity+set}" = set; then
1873  withval="$with_hsl_verbosity"
1874  if test "$withval" = yes; then
1875                withval=1
1876              fi
1877              coin_hsl_verbosity=$withval
1878else
1879  coin_hsl_verbosity=0
1880fi;
1881
1882cat >>confdefs.h <<_ACEOF
1883#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1884_ACEOF
1885
1886
1887
1888# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1889if test "${with_hsl_checklevel+set}" = set; then
1890  withval="$with_hsl_checklevel"
1891  if test "$withval" = yes; then
1892                withval=1
1893              fi
1894              coin_hsl_checklevel=$withval
1895else
1896  coin_hsl_checklevel=0
1897fi;
1898
1899cat >>confdefs.h <<_ACEOF
1900#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1901_ACEOF
1902
1903
1904 # m4_ifvaln([HSL],
1905
1906
1907
1908# Get the name of the C compiler (for a dummy program)
1909case $build in
1910  *-mingw*)
1911    if test "${LD+set}" = set; then :; else
1912      LD=link
1913    fi
1914    ;;
1915 esac
1916 case $enable_doscompile in
1917   msvc)
1918     if test "x${LD+set}" = xset; then :; else
1919       LD=link
1920     fi
1921     ;;
1922 esac
1923
1924
1925 # Check whether --enable-doscompile or --disable-doscompile was given.
1926if test "${enable_doscompile+set}" = set; then
1927  enableval="$enable_doscompile"
1928  if test "$enable_doscompile" != no; then
1929     case $build in
1930       *-cygwin* | *-mingw*) ;;
1931       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1932echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1933   { (exit 1); exit 1; }; } ;;
1934     esac
1935   fi
1936else
1937  enable_doscompile=no
1938fi;
1939 case "$enable_doscompile" in
1940   mingw)
1941     case $build in
1942       *-mingw*) enable_doscompile=no ;;
1943     esac
1944     ;;
1945   msvc|no) ;;
1946   yes) enable_doscompile=mingw ;;
1947   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1948                    Try configure --help=recursive." >&5
1949echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1950                    Try configure --help=recursive." >&2;}
1951   { (exit 1); exit 1; }; }
1952      ;;
1953  esac
1954  if test "$enable_doscompile" != no ; then
1955    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1956echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1957  fi
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969# For consistency, we set the C compiler to the same value of the C++
1970# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1971if test x"$CXX" != x; then
1972  case "$CXX" in
1973    clang* ) ;;
1974    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1975      if test x"$CC" = x; then
1976        CC="$CXX"
1977        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1978echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1979      fi
1980      ;;
1981  esac
1982fi
1983
1984
1985
1986
1987
1988
1989coin_has_cc=yes
1990
1991save_cflags="$CFLAGS"
1992
1993# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1994# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1995# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1996# compiler. In this case, put cc after gcc.
1997
1998case $build in
1999  *-cygwin* | *-mingw*)
2000             if test "$enable_doscompile" = msvc ; then
2001               comps="icl cl"
2002             else
2003               comps="gcc cl"
2004             fi ;;
2005  *-*-solaris*)
2006             # Extract the first word of "cc", so it can be a program name with args.
2007set dummy cc; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$sol_cc_compiler"; then
2014  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2015else
2016  ac_prog_rejected=no
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  test -z "$as_dir" && as_dir=.
2022  for ac_exec_ext in '' $ac_executable_extensions; do
2023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2025       ac_prog_rejected=yes
2026       continue
2027     fi
2028    ac_cv_prog_sol_cc_compiler="cc"
2029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030    break 2
2031  fi
2032done
2033done
2034
2035if test $ac_prog_rejected = yes; then
2036  # We found a bogon in the path, so make sure we never use it.
2037  set dummy $ac_cv_prog_sol_cc_compiler
2038  shift
2039  if test $# != 0; then
2040    # We chose a different compiler from the bogus one.
2041    # However, it has the same basename, so the bogon will be chosen
2042    # first if we set sol_cc_compiler to just the basename; use the full file name.
2043    shift
2044    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2045  fi
2046fi
2047fi
2048fi
2049sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2050if test -n "$sol_cc_compiler"; then
2051  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2052echo "${ECHO_T}$sol_cc_compiler" >&6
2053else
2054  echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
2058             if test "$sol_cc_compiler" = "cc" ; then
2059               comps="cc xlc gcc pgcc icc"
2060             else
2061               comps="xlc gcc pgcc icc cc"
2062             fi
2063             ;;
2064  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2065  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2066  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2067esac
2068
2069# We delete the cached value, since the test might not have been
2070# performed with our choice of compilers earlier
2071$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2072# AC_MSG_NOTICE([C compiler candidates: $comps])
2073ac_ext=c
2074ac_cpp='$CPP $CPPFLAGS'
2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078if test -n "$ac_tool_prefix"; then
2079  for ac_prog in $comps
2080  do
2081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$CC"; then
2089  ac_cv_prog_CC="$CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107CC=$ac_cv_prog_CC
2108if test -n "$CC"; then
2109  echo "$as_me:$LINENO: result: $CC" >&5
2110echo "${ECHO_T}$CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116    test -n "$CC" && break
2117  done
2118fi
2119if test -z "$CC"; then
2120  ac_ct_CC=$CC
2121  for ac_prog in $comps
2122do
2123  # Extract the first word of "$ac_prog", so it can be a program name with args.
2124set dummy $ac_prog; ac_word=$2
2125echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  if test -n "$ac_ct_CC"; then
2131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  for ac_exec_ext in '' $ac_executable_extensions; do
2139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140    ac_cv_prog_ac_ct_CC="$ac_prog"
2141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142    break 2
2143  fi
2144done
2145done
2146
2147fi
2148fi
2149ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150if test -n "$ac_ct_CC"; then
2151  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152echo "${ECHO_T}$ac_ct_CC" >&6
2153else
2154  echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6
2156fi
2157
2158  test -n "$ac_ct_CC" && break
2159done
2160
2161  CC=$ac_ct_CC
2162fi
2163
2164
2165test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166See \`config.log' for more details." >&5
2167echo "$as_me: error: no acceptable C compiler found in \$PATH
2168See \`config.log' for more details." >&2;}
2169   { (exit 1); exit 1; }; }
2170
2171# Provide some information about the compiler.
2172echo "$as_me:$LINENO:" \
2173     "checking for C compiler version" >&5
2174ac_compiler=`set X $ac_compile; echo $2`
2175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176  (eval $ac_compiler --version </dev/null >&5) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }
2180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181  (eval $ac_compiler -v </dev/null >&5) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }
2185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186  (eval $ac_compiler -V </dev/null >&5) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }
2190
2191cat >conftest.$ac_ext <<_ACEOF
2192/* confdefs.h.  */
2193_ACEOF
2194cat confdefs.h >>conftest.$ac_ext
2195cat >>conftest.$ac_ext <<_ACEOF
2196/* end confdefs.h.  */
2197
2198int
2199main ()
2200{
2201
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206ac_clean_files_save=$ac_clean_files
2207ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208# Try to create an executable without -o first, disregard a.out.
2209# It will help us diagnose broken compilers, and finding out an intuition
2210# of exeext.
2211echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215  (eval $ac_link_default) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; then
2219  # Find the output, starting from the most likely.  This scheme is
2220# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221# resort.
2222
2223# Be careful to initialize this variable, since it used to be cached.
2224# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225ac_cv_exeext=
2226# b.out is created by i960 compilers.
2227for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2228do
2229  test -f "$ac_file" || continue
2230  case $ac_file in
2231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232        ;;
2233    conftest.$ac_ext )
2234        # This is the source file.
2235        ;;
2236    [ab].out )
2237        # We found the default executable, but exeext='' is most
2238        # certainly right.
2239        break;;
2240    *.* )
2241        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242        # FIXME: I believe we export ac_cv_exeext for Libtool,
2243        # but it would be cool to find out if it's true.  Does anybody
2244        # maintain Libtool? --akim.
2245        export ac_cv_exeext
2246        break;;
2247    * )
2248        break;;
2249  esac
2250done
2251else
2252  echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259   { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263echo "$as_me:$LINENO: result: $ac_file" >&5
2264echo "${ECHO_T}$ac_file" >&6
2265
2266# Check the compiler produces executables we can run.  If not, either
2267# the compiler is broken, or we cross compile.
2268echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271# If not cross compiling, check that we can run a simple program.
2272if test "$cross_compiling" != yes; then
2273  if { ac_try='./$ac_file'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279    cross_compiling=no
2280  else
2281    if test "$cross_compiling" = maybe; then
2282        cross_compiling=yes
2283    else
2284        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285If you meant to cross compile, use \`--host'.
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot run C compiled programs.
2288If you meant to cross compile, use \`--host'.
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291    fi
2292  fi
2293fi
2294echo "$as_me:$LINENO: result: yes" >&5
2295echo "${ECHO_T}yes" >&6
2296
2297rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298ac_clean_files=$ac_clean_files_save
2299# Check the compiler produces executables we can run.  If not, either
2300# the compiler is broken, or we cross compile.
2301echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304echo "${ECHO_T}$cross_compiling" >&6
2305
2306echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309  (eval $ac_link) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; then
2313  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2315# work properly (i.e., refer to `conftest.exe'), while it won't with
2316# `rm'.
2317for ac_file in conftest.exe conftest conftest.*; do
2318  test -f "$ac_file" || continue
2319  case $ac_file in
2320    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322          export ac_cv_exeext
2323          break;;
2324    * ) break;;
2325  esac
2326done
2327else
2328  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest$ac_cv_exeext
2336echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337echo "${ECHO_T}$ac_cv_exeext" >&6
2338
2339rm -f conftest.$ac_ext
2340EXEEXT=$ac_cv_exeext
2341ac_exeext=$EXEEXT
2342echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344if test "${ac_cv_objext+set}" = set; then
2345  echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347  cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.o conftest.obj
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; then
2368  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2369  case $ac_file in
2370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2371    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372       break;;
2373  esac
2374done
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380See \`config.log' for more details." >&5
2381echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382See \`config.log' for more details." >&2;}
2383   { (exit 1); exit 1; }; }
2384fi
2385
2386rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389echo "${ECHO_T}$ac_cv_objext" >&6
2390OBJEXT=$ac_cv_objext
2391ac_objext=$OBJEXT
2392echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395  echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397  cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403
2404int
2405main ()
2406{
2407#ifndef __GNUC__
2408       choke me
2409#endif
2410
2411  ;
2412  return 0;
2413}
2414_ACEOF
2415rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_compiler_gnu=yes
2438else
2439  echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442ac_compiler_gnu=no
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450GCC=`test $ac_compiler_gnu = yes && echo yes`
2451ac_test_CFLAGS=${CFLAGS+set}
2452ac_save_CFLAGS=$CFLAGS
2453CFLAGS="-g"
2454echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456if test "${ac_cv_prog_cc_g+set}" = set; then
2457  echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459  cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h.  */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h.  */
2465
2466int
2467main ()
2468{
2469
2470  ;
2471  return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476  (eval $ac_compile) 2>conftest.er1
2477  ac_status=$?
2478  grep -v '^ *+' conftest.er1 >conftest.err
2479  rm -f conftest.er1
2480  cat conftest.err >&5
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); } &&
2483         { ac_try='test -z "$ac_c_werror_flag"
2484                         || test ! -s conftest.err'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; } &&
2490         { ac_try='test -s conftest.$ac_objext'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; }; then
2496  ac_cv_prog_cc_g=yes
2497else
2498  echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501ac_cv_prog_cc_g=no
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504fi
2505echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507if test "$ac_test_CFLAGS" = set; then
2508  CFLAGS=$ac_save_CFLAGS
2509elif test $ac_cv_prog_cc_g = yes; then
2510  if test "$GCC" = yes; then
2511    CFLAGS="-g -O2"
2512  else
2513    CFLAGS="-g"
2514  fi
2515else
2516  if test "$GCC" = yes; then
2517    CFLAGS="-O2"
2518  else
2519    CFLAGS=
2520  fi
2521fi
2522echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525  echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527  ac_cv_prog_cc_stdc=no
2528ac_save_CC=$CC
2529cat >conftest.$ac_ext <<_ACEOF
2530/* confdefs.h.  */
2531_ACEOF
2532cat confdefs.h >>conftest.$ac_ext
2533cat >>conftest.$ac_ext <<_ACEOF
2534/* end confdefs.h.  */
2535#include <stdarg.h>
2536#include <stdio.h>
2537#include <sys/types.h>
2538#include <sys/stat.h>
2539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2540struct buf { int x; };
2541FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542static char *e (p, i)
2543     char **p;
2544     int i;
2545{
2546  return p[i];
2547}
2548static char *f (char * (*g) (char **, int), char **p, ...)
2549{
2550  char *s;
2551  va_list v;
2552  va_start (v,p);
2553  s = g (p, va_arg (v,int));
2554  va_end (v);
2555  return s;
2556}
2557
2558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2559   function prototypes and stuff, but not '\xHH' hex character constants.
2560   These don't provoke an error unfortunately, instead are silently treated
2561   as 'x'.  The following induces an error, until -std1 is added to get
2562   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2563   array size at least.  It's necessary to write '\x00'==0 to get something
2564   that's true only with -std1.  */
2565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2566
2567int test (int i, double x);
2568struct s1 {int (*f) (int a);};
2569struct s2 {int (*f) (double a);};
2570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2571int argc;
2572char **argv;
2573int
2574main ()
2575{
2576return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581# Don't try gcc -ansi; that turns off useful extensions and
2582# breaks some systems' header files.
2583# AIX                   -qlanglvl=ansi
2584# Ultrix and OSF/1      -std1
2585# HP-UX 10.20 and later -Ae
2586# HP-UX older versions  -Aa -D_HPUX_SOURCE
2587# SVR4                  -Xc -D__EXTENSIONS__
2588for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2589do
2590  CC="$ac_save_CC $ac_arg"
2591  rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593  (eval $ac_compile) 2>conftest.er1
2594  ac_status=$?
2595  grep -v '^ *+' conftest.er1 >conftest.err
2596  rm -f conftest.er1
2597  cat conftest.err >&5
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); } &&
2600         { ac_try='test -z "$ac_c_werror_flag"
2601                         || test ! -s conftest.err'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; } &&
2607         { ac_try='test -s conftest.$ac_objext'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; }; then
2613  ac_cv_prog_cc_stdc=$ac_arg
2614break
2615else
2616  echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619fi
2620rm -f conftest.err conftest.$ac_objext
2621done
2622rm -f conftest.$ac_ext conftest.$ac_objext
2623CC=$ac_save_CC
2624
2625fi
2626
2627case "x$ac_cv_prog_cc_stdc" in
2628  x|xno)
2629    echo "$as_me:$LINENO: result: none needed" >&5
2630echo "${ECHO_T}none needed" >&6 ;;
2631  *)
2632    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634    CC="$CC $ac_cv_prog_cc_stdc" ;;
2635esac
2636
2637# Some people use a C++ compiler to compile C.  Since we use `exit',
2638# in C++ we need to declare it.  In case someone uses the same compiler
2639# for both compiling C and C++ we need to have the C++ compiler decide
2640# the declaration of exit, since it's the most demanding environment.
2641cat >conftest.$ac_ext <<_ACEOF
2642#ifndef __cplusplus
2643  choke me
2644#endif
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>conftest.er1
2649  ac_status=$?
2650  grep -v '^ *+' conftest.er1 >conftest.err
2651  rm -f conftest.er1
2652  cat conftest.err >&5
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655         { ac_try='test -z "$ac_c_werror_flag"
2656                         || test ! -s conftest.err'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; } &&
2662         { ac_try='test -s conftest.$ac_objext'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  for ac_declaration in \
2669   '' \
2670   'extern "C" void std::exit (int) throw (); using std::exit;' \
2671   'extern "C" void std::exit (int); using std::exit;' \
2672   'extern "C" void exit (int) throw ();' \
2673   'extern "C" void exit (int);' \
2674   'void exit (int);'
2675do
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682$ac_declaration
2683#include <stdlib.h>
2684int
2685main ()
2686{
2687exit (42);
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701         { ac_try='test -z "$ac_c_werror_flag"
2702                         || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708         { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  :
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719continue
2720fi
2721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722  cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728$ac_declaration
2729int
2730main ()
2731{
2732exit (42);
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739  (eval $ac_compile) 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746         { ac_try='test -z "$ac_c_werror_flag"
2747                         || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753         { ac_try='test -s conftest.$ac_objext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  break
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766done
2767rm -f conftest*
2768if test -n "$ac_declaration"; then
2769  echo '#ifdef __cplusplus' >>confdefs.h
2770  echo $ac_declaration      >>confdefs.h
2771  echo '#endif'             >>confdefs.h
2772fi
2773
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778fi
2779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786if test -z "$CC" ; then
2787  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2788echo "$as_me: error: Failed to find a C compiler!" >&2;}
2789   { (exit 1); exit 1; }; }
2790fi
2791# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2792case "$CC" in
2793  clang* ) ;;
2794  cl* | */cl* | CL* | */CL* )
2795    if test "$ac_cv_prog_cc_g" = yes ; then
2796      ac_cv_prog_cc_g=no
2797      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2798echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2799    fi ;;
2800  * )
2801    CYGPATH_W=echo
2802    ;;
2803esac
2804CFLAGS="$save_cflags"
2805
2806# add automake conditional so we can recognize cl compiler in makefile
2807coin_cc_is_cl=false
2808case "$CC" in
2809  clang* ) ;;
2810  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2811    coin_cc_is_cl=true
2812    ;;
2813esac
2814
2815
2816if test $coin_cc_is_cl = true; then
2817  COIN_CC_IS_CL_TRUE=
2818  COIN_CC_IS_CL_FALSE='#'
2819else
2820  COIN_CC_IS_CL_TRUE='#'
2821  COIN_CC_IS_CL_FALSE=
2822fi
2823
2824
2825# Check if a project specific CFLAGS variable has been set
2826if test x$COIN_PRJCT != x; then
2827  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2828  if test x$coin_tmp = xset; then
2829    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2830  fi
2831fi
2832
2833if test x"$CFLAGS" = x; then
2834
2835  coin_add_cflags=
2836  coin_opt_cflags=
2837  coin_dbg_cflags=
2838  coin_warn_cflags=
2839
2840  if test "$GCC" = "yes"; then
2841    case "$CC" in
2842      icc* | */icc*)
2843        ;;
2844      *)
2845        coin_opt_cflags="-O3"
2846        coin_add_cflags="-pipe"
2847        coin_dbg_cflags="-g -O0"
2848        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2849        case $build in
2850          *-darwin*)
2851            ;;
2852          *)
2853            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2854            ;;
2855        esac
2856        case $enable_doscompile in
2857          mingw)
2858            CFLAGS="-mno-cygwin"
2859            cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h.  */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h.  */
2865
2866int
2867main ()
2868{
2869int i=0; i++;
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext conftest$ac_exeext
2875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2876  (eval $ac_link) 2>conftest.er1
2877  ac_status=$?
2878  grep -v '^ *+' conftest.er1 >conftest.err
2879  rm -f conftest.er1
2880  cat conftest.err >&5
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); } &&
2883         { ac_try='test -z "$ac_c_werror_flag"
2884                         || test ! -s conftest.err'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; } &&
2890         { ac_try='test -s conftest$ac_exeext'
2891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892  (eval $ac_try) 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }; }; then
2896  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2897else
2898  echo "$as_me: failed program was:" >&5
2899sed 's/^/| /' conftest.$ac_ext >&5
2900
2901fi
2902rm -f conftest.err conftest.$ac_objext \
2903      conftest$ac_exeext conftest.$ac_ext
2904            CFLAGS=
2905          ;;
2906        esac
2907    esac
2908  fi
2909  if test -z "$coin_opt_cflags"; then
2910    case $build in
2911      *-cygwin* | *-mingw*)
2912        case "$CC" in
2913          clang* ) ;;
2914          cl* | */cl* | CL* | */CL*)
2915            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2916              coin_opt_cflags='-MD -O2'
2917              coin_dbg_cflags='-MDd'
2918            else
2919              coin_opt_cflags='-MT -O2'
2920              coin_dbg_cflags='-MTd'
2921            fi
2922            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2923            ;;
2924          icl* | */icl* | ICL* | */ICL*)
2925            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2926              coin_opt_cflags='-MD -Ox'
2927              coin_dbg_cflags='-MDd -debug'
2928            else
2929              coin_opt_cflags='-MT -Ox'
2930              coin_dbg_cflags='-MTd -debug'
2931            fi
2932            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2933            ;;
2934        esac
2935        ;;
2936      *-linux-*)
2937        case "$CC" in
2938          icc* | */icc*)
2939            coin_opt_cflags="-O3 -ip -mp1"
2940            coin_add_cflags=""
2941            coin_dbg_cflags="-g"
2942            # Check if -i_dynamic is necessary (for new glibc library)
2943            CFLAGS=
2944            cat >conftest.$ac_ext <<_ACEOF
2945/* confdefs.h.  */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h.  */
2950
2951int
2952main ()
2953{
2954int i=0; i++;
2955  ;
2956  return 0;
2957}
2958_ACEOF
2959rm -f conftest.$ac_objext conftest$ac_exeext
2960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961  (eval $ac_link) 2>conftest.er1
2962  ac_status=$?
2963  grep -v '^ *+' conftest.er1 >conftest.err
2964  rm -f conftest.er1
2965  cat conftest.err >&5
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); } &&
2968         { ac_try='test -z "$ac_c_werror_flag"
2969                         || test ! -s conftest.err'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; } &&
2975         { ac_try='test -s conftest$ac_exeext'
2976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977  (eval $ac_try) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; }; then
2981  :
2982else
2983  echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986coin_add_cflags="-i_dynamic $coin_add_cflags"
2987fi
2988rm -f conftest.err conftest.$ac_objext \
2989      conftest$ac_exeext conftest.$ac_ext
2990            ;;
2991          pgcc* | */pgcc*)
2992            coin_opt_cflags="-fast"
2993            coin_add_cflags="-Kieee -pc 64"
2994            coin_dbg_cflags="-g"
2995            ;;
2996        esac
2997        ;;
2998      *-ibm-*)
2999        case "$CC" in
3000          xlc* | */xlc* | mpxlc* | */mpxlc*)
3001            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3002            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3003            coin_dbg_cflags="-g"
3004          ;;
3005        esac
3006        ;;
3007      *-hp-*)
3008        coin_opt_cflags="-O"
3009        coin_add_cflags="-Ae"
3010        coin_dbg_cflags="-g"
3011        ;;
3012      *-*-solaris*)
3013        coin_opt_cflags="-xO4"
3014        coin_dbg_cflags="-g"
3015        ;;
3016      *-sgi-*)
3017        coin_opt_cflags="-O -OPT:Olimit=0"
3018        coin_dbg_cflags="-g"
3019        ;;
3020    esac
3021  fi
3022
3023  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3024    coin_dbg_cflags="-g"
3025  fi
3026
3027  if test -z "$coin_opt_cflags"; then
3028    # Try if -O option works if nothing else is set
3029    CFLAGS="-O"
3030    cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h.  */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h.  */
3036
3037int
3038main ()
3039{
3040int i=0; i++;
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext conftest$ac_exeext
3046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047  (eval $ac_link) 2>conftest.er1
3048  ac_status=$?
3049  grep -v '^ *+' conftest.er1 >conftest.err
3050  rm -f conftest.er1
3051  cat conftest.err >&5
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); } &&
3054         { ac_try='test -z "$ac_c_werror_flag"
3055                         || test ! -s conftest.err'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; } &&
3061         { ac_try='test -s conftest$ac_exeext'
3062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063  (eval $ac_try) 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; }; then
3067  coin_opt_cflags="-O"
3068else
3069  echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072fi
3073rm -f conftest.err conftest.$ac_objext \
3074      conftest$ac_exeext conftest.$ac_ext
3075  fi
3076
3077  # if PM doesn't want the warning messages, take them out
3078  if test x"$coin_skip_warn_cflags" = xyes; then
3079    coin_warn_cflags=
3080  fi
3081
3082  if test x${DBG_CFLAGS+set} != xset; then
3083    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3084  fi
3085  if test x${OPT_CFLAGS+set} != xset; then
3086    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3087  fi
3088
3089  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3090  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3091
3092  if test "$coin_debug_compile" = "true"; then
3093    CFLAGS="$DBG_CFLAGS"
3094  else
3095    CFLAGS="$OPT_CFLAGS"
3096  fi
3097else
3098  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3099  if test x${DBG_CFLAGS+set} != xset; then
3100    DBG_CFLAGS="$CFLAGS"
3101  fi
3102  if test x${OPT_CFLAGS+set} != xset; then
3103    OPT_CFLAGS="$CFLAGS"
3104  fi
3105fi
3106
3107# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3108
3109case "$CFLAGS" in
3110  *-mno-cygwin*)
3111    if test x${CPPFLAGS+set} != xset ; then
3112      CPPFLAGS="-mno-cygwin"
3113    else
3114      case "$CPPFLAGS" in
3115        *-mno-cygwin*)
3116          ;;
3117        *)
3118          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3119          ;;
3120      esac
3121    fi ;;
3122esac
3123
3124# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3125if test x$COIN_PRJCT != x; then
3126  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3127fi
3128
3129# Try if CFLAGS works
3130save_CFLAGS="$CFLAGS"
3131cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h.  */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h.  */
3137
3138int
3139main ()
3140{
3141int i=0; i++;
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148  (eval $ac_link) 2>conftest.er1
3149  ac_status=$?
3150  grep -v '^ *+' conftest.er1 >conftest.err
3151  rm -f conftest.er1
3152  cat conftest.err >&5
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } &&
3155         { ac_try='test -z "$ac_c_werror_flag"
3156                         || test ! -s conftest.err'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; } &&
3162         { ac_try='test -s conftest$ac_exeext'
3163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164  (eval $ac_try) 2>&5
3165  ac_status=$?
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }; }; then
3168  :
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173CFLAGS=
3174fi
3175rm -f conftest.err conftest.$ac_objext \
3176      conftest$ac_exeext conftest.$ac_ext
3177if test -z "$CFLAGS"; then
3178  { 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
3179echo "$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;}
3180  CFLAGS='-O'
3181  cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h.  */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h.  */
3187
3188int
3189main ()
3190{
3191int i=0; i++;
3192  ;
3193  return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext conftest$ac_exeext
3197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3198  (eval $ac_link) 2>conftest.er1
3199  ac_status=$?
3200  grep -v '^ *+' conftest.er1 >conftest.err
3201  rm -f conftest.er1
3202  cat conftest.err >&5
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); } &&
3205         { ac_try='test -z "$ac_c_werror_flag"
3206                         || test ! -s conftest.err'
3207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208  (eval $ac_try) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; } &&
3212         { ac_try='test -s conftest$ac_exeext'
3213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214  (eval $ac_try) 2>&5
3215  ac_status=$?
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); }; }; then
3218  :
3219else
3220  echo "$as_me: failed program was:" >&5
3221sed 's/^/| /' conftest.$ac_ext >&5
3222
3223CFLAGS=
3224fi
3225rm -f conftest.err conftest.$ac_objext \
3226      conftest$ac_exeext conftest.$ac_ext
3227  if test -z "$CFLAGS"; then
3228    { 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
3229echo "$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;}
3230  fi
3231fi
3232
3233{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3234echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3235
3236
3237if test x"$MPICC" = x; then :; else
3238  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3239echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3240  CC="$MPICC"
3241fi
3242
3243# Correct the LD variable if we are using the MS or Intel-windows compiler
3244case "$CC" in
3245  clang* ) ;;
3246  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3247    case $build in
3248  *-mingw*)
3249    if test "${LD+set}" = set; then :; else
3250      LD=link
3251    fi
3252    ;;
3253 esac
3254 case $enable_doscompile in
3255   msvc)
3256     if test "x${LD+set}" = xset; then :; else
3257       LD=link
3258     fi
3259     ;;
3260 esac
3261
3262    ;;
3263esac
3264
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272
3273# Get the name of the Fortran compiler and appropriate compiler options
3274case $build in
3275  *-cygwin* | *-mingw*)
3276     if test "$enable_doscompile" = msvc ; then
3277       coin_f77_comps="ifort fl32 compile_f2c"
3278     else
3279       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3280     fi ;;
3281  *-*-solaris*)
3282     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3283  *-linux-gnu*)
3284     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3285  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3286 esac
3287
3288
3289
3290
3291
3292
3293ac_ext=f
3294ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3295ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3297
3298
3299
3300
3301
3302
3303coin_has_f77=yes
3304
3305save_fflags="$FFLAGS"
3306
3307# We delete the cached value, since the test might not have been
3308# performed with our choice of compilers earlier
3309$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3310
3311# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3312# coin_f77_comps to see if there's a program that matches one of the names.
3313# If there's no such program, F77 = unavailable. If we match the name,
3314# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3315# compiler.
3316# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3317
3318
3319{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3320echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3321if test -n "$ac_tool_prefix"; then
3322  for ac_prog in $coin_f77_comps
3323  do
3324    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3326echo "$as_me:$LINENO: checking for $ac_word" >&5
3327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328if test "${ac_cv_prog_F77+set}" = set; then
3329  echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331  if test -n "$F77"; then
3332  ac_cv_prog_F77="$F77" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337  IFS=$as_save_IFS
3338  test -z "$as_dir" && as_dir=.
3339  for ac_exec_ext in '' $ac_executable_extensions; do
3340  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343    break 2
3344  fi
3345done
3346done
3347
3348fi
3349fi
3350F77=$ac_cv_prog_F77
3351if test -n "$F77"; then
3352  echo "$as_me:$LINENO: result: $F77" >&5
3353echo "${ECHO_T}$F77" >&6
3354else
3355  echo "$as_me:$LINENO: result: no" >&5
3356echo "${ECHO_T}no" >&6
3357fi
3358
3359    test -n "$F77" && break
3360  done
3361fi
3362if test -z "$F77"; then
3363  ac_ct_F77=$F77
3364  for ac_prog in $coin_f77_comps
3365do
3366  # Extract the first word of "$ac_prog", so it can be a program name with args.
3367set dummy $ac_prog; ac_word=$2
3368echo "$as_me:$LINENO: checking for $ac_word" >&5
3369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3371  echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373  if test -n "$ac_ct_F77"; then
3374  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3375else
3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379  IFS=$as_save_IFS
3380  test -z "$as_dir" && as_dir=.
3381  for ac_exec_ext in '' $ac_executable_extensions; do
3382  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383    ac_cv_prog_ac_ct_F77="$ac_prog"
3384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385    break 2
3386  fi
3387done
3388done
3389
3390fi
3391fi
3392ac_ct_F77=$ac_cv_prog_ac_ct_F77
3393if test -n "$ac_ct_F77"; then
3394  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3395echo "${ECHO_T}$ac_ct_F77" >&6
3396else
3397  echo "$as_me:$LINENO: result: no" >&5
3398echo "${ECHO_T}no" >&6
3399fi
3400
3401  test -n "$ac_ct_F77" && break
3402done
3403test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3404
3405  F77=$ac_ct_F77
3406fi
3407
3408
3409if test "$F77" != "unavailable" ; then
3410  ac_ext=f
3411ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3412ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3414if test -n "$ac_tool_prefix"; then
3415  for ac_prog in $coin_f77_comps
3416  do
3417    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3419echo "$as_me:$LINENO: checking for $ac_word" >&5
3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421if test "${ac_cv_prog_F77+set}" = set; then
3422  echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424  if test -n "$F77"; then
3425  ac_cv_prog_F77="$F77" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430  IFS=$as_save_IFS
3431  test -z "$as_dir" && as_dir=.
3432  for ac_exec_ext in '' $ac_executable_extensions; do
3433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436    break 2
3437  fi
3438done
3439done
3440
3441fi
3442fi
3443F77=$ac_cv_prog_F77
3444if test -n "$F77"; then
3445  echo "$as_me:$LINENO: result: $F77" >&5
3446echo "${ECHO_T}$F77" >&6
3447else
3448  echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450fi
3451
3452    test -n "$F77" && break
3453  done
3454fi
3455if test -z "$F77"; then
3456  ac_ct_F77=$F77
3457  for ac_prog in $coin_f77_comps
3458do
3459  # Extract the first word of "$ac_prog", so it can be a program name with args.
3460set dummy $ac_prog; ac_word=$2
3461echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3464  echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466  if test -n "$ac_ct_F77"; then
3467  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472  IFS=$as_save_IFS
3473  test -z "$as_dir" && as_dir=.
3474  for ac_exec_ext in '' $ac_executable_extensions; do
3475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476    ac_cv_prog_ac_ct_F77="$ac_prog"
3477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478    break 2
3479  fi
3480done
3481done
3482
3483fi
3484fi
3485ac_ct_F77=$ac_cv_prog_ac_ct_F77
3486if test -n "$ac_ct_F77"; then
3487  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3488echo "${ECHO_T}$ac_ct_F77" >&6
3489else
3490  echo "$as_me:$LINENO: result: no" >&5
3491echo "${ECHO_T}no" >&6
3492fi
3493
3494  test -n "$ac_ct_F77" && break
3495done
3496
3497  F77=$ac_ct_F77
3498fi
3499
3500
3501# Provide some information about the compiler.
3502echo "$as_me:3502:" \
3503     "checking for Fortran 77 compiler version" >&5
3504ac_compiler=`set X $ac_compile; echo $2`
3505{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3506  (eval $ac_compiler --version </dev/null >&5) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }
3510{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3511  (eval $ac_compiler -v </dev/null >&5) 2>&5
3512  ac_status=$?
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); }
3515{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3516  (eval $ac_compiler -V </dev/null >&5) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }
3520rm -f a.out
3521
3522# If we don't use `.F' as extension, the preprocessor is not run on the
3523# input file.  (Note that this only needs to work for GNU compilers.)
3524ac_save_ext=$ac_ext
3525ac_ext=F
3526echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3527echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3528if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531  cat >conftest.$ac_ext <<_ACEOF
3532      program main
3533#ifndef __GNUC__
3534       choke me
3535#endif
3536
3537      end
3538_ACEOF
3539rm -f conftest.$ac_objext
3540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541  (eval $ac_compile) 2>conftest.er1
3542  ac_status=$?
3543  grep -v '^ *+' conftest.er1 >conftest.err
3544  rm -f conftest.er1
3545  cat conftest.err >&5
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); } &&
3548         { ac_try='test -z "$ac_f77_werror_flag"
3549                         || test ! -s conftest.err'
3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551  (eval $ac_try) 2>&5
3552  ac_status=$?
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); }; } &&
3555         { ac_try='test -s conftest.$ac_objext'
3556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557  (eval $ac_try) 2>&5
3558  ac_status=$?
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); }; }; then
3561  ac_compiler_gnu=yes
3562else
3563  echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566ac_compiler_gnu=no
3567fi
3568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3570
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3573echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3574ac_ext=$ac_save_ext
3575ac_test_FFLAGS=${FFLAGS+set}
3576ac_save_FFLAGS=$FFLAGS
3577FFLAGS=
3578echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3579echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3580if test "${ac_cv_prog_f77_g+set}" = set; then
3581  echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583  FFLAGS=-g
3584cat >conftest.$ac_ext <<_ACEOF
3585      program main
3586
3587      end
3588_ACEOF
3589rm -f conftest.$ac_objext
3590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591  (eval $ac_compile) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } &&
3598         { ac_try='test -z "$ac_f77_werror_flag"
3599                         || test ! -s conftest.err'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; } &&
3605         { ac_try='test -s conftest.$ac_objext'
3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607  (eval $ac_try) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); }; }; then
3611  ac_cv_prog_f77_g=yes
3612else
3613  echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616ac_cv_prog_f77_g=no
3617fi
3618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619
3620fi
3621echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3622echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3623if test "$ac_test_FFLAGS" = set; then
3624  FFLAGS=$ac_save_FFLAGS
3625elif test $ac_cv_prog_f77_g = yes; then
3626  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3627    FFLAGS="-g -O2"
3628  else
3629    FFLAGS="-g"
3630  fi
3631else
3632  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3633    FFLAGS="-O2"
3634  else
3635    FFLAGS=
3636  fi
3637fi
3638
3639G77=`test $ac_compiler_gnu = yes && echo yes`
3640ac_ext=f
3641ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3642ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3644
3645else
3646  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3647echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3648fi
3649
3650FFLAGS="$save_fflags"
3651
3652# Check if a project specific FFLAGS variable has been set
3653if test x$COIN_PRJCT != x; then
3654  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3655  if test x$coin_tmp = xset; then
3656    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3657  fi
3658fi
3659
3660if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3661
3662  coin_add_fflags=
3663  coin_opt_fflags=
3664  coin_dbg_fflags=
3665  coin_warn_fflags=
3666
3667  if test "$G77" = "yes"; then
3668    coin_opt_fflags="-O3"
3669    coin_add_fflags="-pipe"
3670    coin_dbg_fflags="-g -O0"
3671    case $enable_doscompile in
3672      mingw)
3673        FFLAGS="-mno-cygwin"
3674        cat >conftest.$ac_ext <<_ACEOF
3675      program main
3676      write(*,*) 'Hello world'
3677      end
3678_ACEOF
3679rm -f conftest.$ac_objext conftest$ac_exeext
3680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681  (eval $ac_link) 2>conftest.er1
3682  ac_status=$?
3683  grep -v '^ *+' conftest.er1 >conftest.err
3684  rm -f conftest.er1
3685  cat conftest.err >&5
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); } &&
3688         { ac_try='test -z "$ac_f77_werror_flag"
3689                         || test ! -s conftest.err'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; } &&
3695         { ac_try='test -s conftest$ac_exeext'
3696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697  (eval $ac_try) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }; }; then
3701  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3702else
3703  echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706fi
3707rm -f conftest.err conftest.$ac_objext \
3708      conftest$ac_exeext conftest.$ac_ext
3709        FFLAGS=
3710      ;;
3711    esac
3712  else
3713    case $build in
3714      *-cygwin* | *-mingw*)
3715        case $F77 in
3716          ifort* | */ifort* | IFORT* | */IFORT* )
3717            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3718              coin_opt_fflags='-MD -O3'
3719              coin_dbg_fflags='-MDd -debug'
3720            else
3721              coin_opt_fflags='-MT -O3'
3722              coin_dbg_fflags='-MTd -debug'
3723            fi
3724            coin_add_fflags='-fpp -nologo'
3725          ;;
3726          compile_f2c*)
3727            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3728              coin_opt_fflags='-MD -O2'
3729              coin_dbg_fflags='-MDd'
3730            else
3731              coin_opt_fflags='-MT -O2'
3732              coin_dbg_fflags='-MTd'
3733            fi
3734            coin_add_fflags='-nologo -wd4996'
3735          ;;
3736        esac
3737        ;;
3738      *-linux-*)
3739        case $F77 in
3740          ifc* | */ifc* | ifort* | */ifort*)
3741            coin_opt_fflags="-O3 -ip"
3742            coin_add_fflags="-cm -w90 -w95"
3743            coin_dbg_fflags="-g -CA -CB -CS"
3744            # Check if -i_dynamic is necessary (for new glibc library)
3745            FFLAGS=
3746            cat >conftest.$ac_ext <<_ACEOF
3747      program main
3748      write(*,*) 'Hello world'
3749      end
3750_ACEOF
3751rm -f conftest.$ac_objext conftest$ac_exeext
3752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3753  (eval $ac_link) 2>conftest.er1
3754  ac_status=$?
3755  grep -v '^ *+' conftest.er1 >conftest.err
3756  rm -f conftest.er1
3757  cat conftest.err >&5
3758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759  (exit $ac_status); } &&
3760         { ac_try='test -z "$ac_f77_werror_flag"
3761                         || test ! -s conftest.err'
3762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763  (eval $ac_try) 2>&5
3764  ac_status=$?
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); }; } &&
3767         { ac_try='test -s conftest$ac_exeext'
3768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769  (eval $ac_try) 2>&5
3770  ac_status=$?
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); }; }; then
3773  :
3774else
3775  echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778coin_add_fflags="-i_dynamic $coin_add_fflags"
3779fi
3780rm -f conftest.err conftest.$ac_objext \
3781      conftest$ac_exeext conftest.$ac_ext
3782            ;;
3783          pgf77* | */pgf77* | pgf90* | */pgf90*)
3784            coin_opt_fflags="-fast"
3785            coin_add_fflags="-Kieee -pc 64"
3786            coin_dbg_fflags="-g"
3787          ;;
3788        esac
3789        ;;
3790      *-ibm-*)
3791        case "$F77" in
3792          xlf* | */xlf* | mpxlf* | */mpxlf* )
3793            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3794            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3795            coin_dbg_fflags="-g -C"
3796            ;;
3797        esac
3798        ;;
3799      *-hp-*)
3800        coin_opt_fflags="+O3"
3801        coin_add_fflags="+U77"
3802        coin_dbg_fflags="-C -g"
3803        ;;
3804      *-*-solaris*)
3805        coin_opt_fflags="-O4"
3806        coin_dbg_fflags="-g"
3807        ;;
3808      *-sgi-*)
3809        coin_opt_fflags="-O5 -OPT:Olimit=0"
3810        coin_dbg_fflags="-g"
3811        ;;
3812    esac
3813  fi
3814
3815  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3816    coin_dbg_fflags="-g"
3817  fi
3818
3819  if test -z "$coin_opt_fflags"; then
3820    # Try if -O option works if nothing else is set
3821    FFLAGS=-O
3822    cat >conftest.$ac_ext <<_ACEOF
3823      program main
3824      integer i
3825      end
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829  (eval $ac_link) 2>conftest.er1
3830  ac_status=$?
3831  grep -v '^ *+' conftest.er1 >conftest.err
3832  rm -f conftest.er1
3833  cat conftest.err >&5
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836         { ac_try='test -z "$ac_f77_werror_flag"
3837                         || test ! -s conftest.err'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; } &&
3843         { ac_try='test -s conftest$ac_exeext'
3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845  (eval $ac_try) 2>&5
3846  ac_status=$?
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); }; }; then
3849  coin_opt_fflags="-O"
3850else
3851  echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854fi
3855rm -f conftest.err conftest.$ac_objext \
3856      conftest$ac_exeext conftest.$ac_ext
3857  fi
3858
3859  # if PM doesn't want the warning messages, take them out
3860  if test x"$coin_skip_warn_fflags" = xyes; then
3861    coin_warn_fflags=
3862  fi
3863
3864  if test x${DBG_FFLAGS+set} != xset; then
3865    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3866  fi
3867  if test x${OPT_FFLAGS+set} != xset; then
3868    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3869  fi
3870
3871  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3872  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3873
3874  if test "$coin_debug_compile" = "true"; then
3875    FFLAGS="$DBG_FFLAGS"
3876  else
3877    FFLAGS="$OPT_FFLAGS"
3878  fi
3879else
3880  FFLAGS="$FFLAGS $ADD_FFLAGS"
3881  if test x${DBG_FFLAGS+set} != xset; then
3882    DBG_FFLAGS="$FFLAGS"
3883  fi
3884  if test x${OPT_FFLAGS+set} != xset; then
3885    OPT_FFLAGS="$FFLAGS"
3886  fi
3887fi
3888
3889# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3890case "$FFLAGS" in
3891  *-mno-cygwin*)
3892    if test x${CPPFLAGS+set} != xset ; then
3893      CPPFLAGS="-mno-cygwin"
3894    else
3895      case "$CPPFLAGS" in
3896        *-mno-cygwin*)
3897          ;;
3898        *)
3899          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3900          ;;
3901      esac
3902    fi ;;
3903esac
3904
3905# Try if FFLAGS works
3906if test "$F77" != "unavailable" ; then
3907  cat >conftest.$ac_ext <<_ACEOF
3908      program main
3909      integer i
3910      end
3911_ACEOF
3912rm -f conftest.$ac_objext conftest$ac_exeext
3913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914  (eval $ac_link) 2>conftest.er1
3915  ac_status=$?
3916  grep -v '^ *+' conftest.er1 >conftest.err
3917  rm -f conftest.er1
3918  cat conftest.err >&5
3919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920  (exit $ac_status); } &&
3921         { ac_try='test -z "$ac_f77_werror_flag"
3922                         || test ! -s conftest.err'
3923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924  (eval $ac_try) 2>&5
3925  ac_status=$?
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); }; } &&
3928         { ac_try='test -s conftest$ac_exeext'
3929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930  (eval $ac_try) 2>&5
3931  ac_status=$?
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); }; }; then
3934  :
3935else
3936  echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939FFLAGS=
3940fi
3941rm -f conftest.err conftest.$ac_objext \
3942      conftest$ac_exeext conftest.$ac_ext
3943  if test -z "$FFLAGS"; then
3944    { 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
3945echo "$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;}
3946    FFLAGS='-O'
3947    cat >conftest.$ac_ext <<_ACEOF
3948      program main
3949      integer i
3950      end
3951_ACEOF
3952rm -f conftest.$ac_objext conftest$ac_exeext
3953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954  (eval $ac_link) 2>conftest.er1
3955  ac_status=$?
3956  grep -v '^ *+' conftest.er1 >conftest.err
3957  rm -f conftest.er1
3958  cat conftest.err >&5
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); } &&
3961         { ac_try='test -z "$ac_f77_werror_flag"
3962                         || test ! -s conftest.err'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; } &&
3968         { ac_try='test -s conftest$ac_exeext'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; }; then
3974  :
3975else
3976  echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979FFLAGS=
3980fi
3981rm -f conftest.err conftest.$ac_objext \
3982      conftest$ac_exeext conftest.$ac_ext
3983    if test -z "$FFLAGS"; then
3984      { 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
3985echo "$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;}
3986    fi
3987  fi
3988fi
3989
3990{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3991echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3992
3993
3994if test x"$MPIF77" = x; then :; else
3995  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3996echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3997  F77="$MPIF77"
3998fi
3999
4000# correct the LD variable if we use the intel fortran compiler in windows
4001case "$F77" in
4002  ifort* | */ifort* | IFORT* | */IFORT*)
4003    case $build in
4004  *-mingw*)
4005    if test "${LD+set}" = set; then :; else
4006      LD=link
4007    fi
4008    ;;
4009 esac
4010 case $enable_doscompile in
4011   msvc)
4012     if test "x${LD+set}" = xset; then :; else
4013       LD=link
4014     fi
4015     ;;
4016 esac
4017
4018    ;;
4019esac
4020
4021ac_ext=c
4022ac_cpp='$CPP $CPPFLAGS'
4023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026
4027
4028
4029# Check if pkg-config is available (to setup addlibs file)
4030
4031
4032# Check whether --enable-pkg-config or --disable-pkg-config was given.
4033if test "${enable_pkg_config+set}" = set; then
4034  enableval="$enable_pkg_config"
4035  use_pkgconfig="$enableval"
4036else
4037  if test x$coin_cc_is_cl = xtrue; then
4038     use_pkgconfig=no
4039   else
4040     use_pkgconfig=yes
4041   fi
4042fi;
4043
4044if test $use_pkgconfig = yes ; then
4045  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4046    if test -n "$ac_tool_prefix"; then
4047  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4048set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4049echo "$as_me:$LINENO: checking for $ac_word" >&5
4050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4052  echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054  if test -n "$PKG_CONFIG"; then
4055  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060  IFS=$as_save_IFS
4061  test -z "$as_dir" && as_dir=.
4062  for ac_exec_ext in '' $ac_executable_extensions; do
4063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066    break 2
4067  fi
4068done
4069done
4070
4071fi
4072fi
4073PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4074if test -n "$PKG_CONFIG"; then
4075  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4076echo "${ECHO_T}$PKG_CONFIG" >&6
4077else
4078  echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6
4080fi
4081
4082fi
4083if test -z "$ac_cv_prog_PKG_CONFIG"; then
4084  ac_ct_PKG_CONFIG=$PKG_CONFIG
4085  # Extract the first word of "pkg-config", so it can be a program name with args.
4086set dummy pkg-config; ac_word=$2
4087echo "$as_me:$LINENO: checking for $ac_word" >&5
4088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4090  echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092  if test -n "$ac_ct_PKG_CONFIG"; then
4093  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100  for ac_exec_ext in '' $ac_executable_extensions; do
4101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107done
4108
4109fi
4110fi
4111ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4112if test -n "$ac_ct_PKG_CONFIG"; then
4113  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4114echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4115else
4116  echo "$as_me:$LINENO: result: no" >&5
4117echo "${ECHO_T}no" >&6
4118fi
4119
4120  PKG_CONFIG=$ac_ct_PKG_CONFIG
4121else
4122  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4123fi
4124
4125  fi
4126  if test -n "$PKG_CONFIG"; then
4127    _pkg_min_version=0.16.0
4128    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4129echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4130    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4131      echo "$as_me:$LINENO: result: yes" >&5
4132echo "${ECHO_T}yes" >&6
4133    else
4134      echo "$as_me:$LINENO: result: no" >&5
4135echo "${ECHO_T}no" >&6
4136      PKG_CONFIG=""
4137    fi
4138  fi
4139
4140  # check if pkg-config supports the short-errors flag
4141  if test -n "$PKG_CONFIG" && \
4142    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4143    pkg_short_errors=" --short-errors "
4144  else
4145    pkg_short_errors=""
4146  fi
4147fi
4148
4149
4150
4151if test -n "$PKG_CONFIG"; then
4152  COIN_HAS_PKGCONFIG_TRUE=
4153  COIN_HAS_PKGCONFIG_FALSE='#'
4154else
4155  COIN_HAS_PKGCONFIG_TRUE='#'
4156  COIN_HAS_PKGCONFIG_FALSE=
4157fi
4158
4159
4160
4161# assemble pkg-config search path for installed projects
4162COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4163
4164# 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
4165# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4166# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4167if test "x${prefix}" = xNONE ; then
4168  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4169else
4170  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4171fi
4172
4173
4174# Check whether --with-coin-instdir or --without-coin-instdir was given.
4175if test "${with_coin_instdir+set}" = set; then
4176  withval="$with_coin_instdir"
4177  if test -d "$withval"; then : ; else
4178     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4179echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4180   { (exit 1); exit 1; }; }
4181   fi
4182   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4183
4184fi;
4185
4186
4187
4188# assemble additional pkg-config search paths for uninstalled projects
4189if test x$coin_projectdir = xyes ; then
4190  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4191  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4192  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4193  # 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)
4194  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4195  if test -e ../coin_subdirs.txt ; then
4196    for i in `cat ../coin_subdirs.txt` ; do
4197      if test -d ../$i ; then
4198        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4199      fi
4200      if test -d ../$i/pkgconfig ; then
4201        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4202      fi
4203    done
4204  fi
4205
4206  if test -e ../../coin_subdirs.txt ; then
4207    for i in `cat ../../coin_subdirs.txt` ; do
4208      if test -d ../../$i ; then
4209        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4210      fi
4211      if test -d ../../$i/pkgconfig ; then
4212        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4213      fi
4214    done
4215  fi
4216
4217
4218fi
4219
4220if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4221  { 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
4222echo "$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;}
4223fi
4224
4225
4226
4227# Get the linker flags (FLIBS) that are required for linking against this blas library
4228
4229# get FLIBS
4230ac_ext=f
4231ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4232ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4234echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4235echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4236if test "${ac_cv_prog_f77_v+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239  cat >conftest.$ac_ext <<_ACEOF
4240      program main
4241
4242      end
4243_ACEOF
4244rm -f conftest.$ac_objext
4245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4246  (eval $ac_compile) 2>conftest.er1
4247  ac_status=$?
4248  grep -v '^ *+' conftest.er1 >conftest.err
4249  rm -f conftest.er1
4250  cat conftest.err >&5
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); } &&
4253         { ac_try='test -z "$ac_f77_werror_flag"
4254                         || test ! -s conftest.err'
4255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256  (eval $ac_try) 2>&5
4257  ac_status=$?
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); }; } &&
4260         { ac_try='test -s conftest.$ac_objext'
4261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262  (eval $ac_try) 2>&5
4263  ac_status=$?
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); }; }; then
4266  ac_cv_prog_f77_v=
4267# Try some options frequently used verbose output
4268for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4269  cat >conftest.$ac_ext <<_ACEOF
4270      program main
4271
4272      end
4273_ACEOF
4274
4275# Compile and link our simple test program by passing a flag (argument
4276# 1 to this macro) to the Fortran compiler in order to get
4277# "verbose" output that we can then parse for the Fortran linker
4278# flags.
4279ac_save_FFLAGS=$FFLAGS
4280FFLAGS="$FFLAGS $ac_verb"
4281(eval echo $as_me:4281: \"$ac_link\") >&5
4282ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4283echo "$ac_f77_v_output" >&5
4284FFLAGS=$ac_save_FFLAGS
4285
4286rm -f conftest*
4287
4288# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4289# /foo, /bar, and /baz are search directories for the Fortran linker.
4290# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4291ac_f77_v_output="`echo $ac_f77_v_output |
4292        grep 'LPATH is:' |
4293        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4294
4295case $ac_f77_v_output in
4296  # If we are using xlf then replace all the commas with spaces.
4297  *xlfentry*)
4298    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4299
4300  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4301  # $LIBS confuse us, and the libraries appear later in the output anyway).
4302  *mGLOB_options_string*)
4303    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4304
4305  # If we are using Cray Fortran then delete quotes.
4306  # Use "\"" instead of '"' for font-lock-mode.
4307  # FIXME: a more general fix for quoted arguments with spaces?
4308  *cft90*)
4309    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4310esac
4311
4312
4313  # look for -l* and *.a constructs in the output
4314  for ac_arg in $ac_f77_v_output; do
4315     case $ac_arg in
4316        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4317          ac_cv_prog_f77_v=$ac_verb
4318          break 2 ;;
4319     esac
4320  done
4321done
4322if test -z "$ac_cv_prog_f77_v"; then
4323   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4324echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4325fi
4326else
4327  echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4331echo "$as_me: WARNING: compilation failed" >&2;}
4332fi
4333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334
4335fi
4336echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4337echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4338echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4339echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4340if test "${ac_cv_f77_libs+set}" = set; then
4341  echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343  if test "x$FLIBS" != "x"; then
4344  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4345else
4346
4347cat >conftest.$ac_ext <<_ACEOF
4348      program main
4349
4350      end
4351_ACEOF
4352
4353# Compile and link our simple test program by passing a flag (argument
4354# 1 to this macro) to the Fortran compiler in order to get
4355# "verbose" output that we can then parse for the Fortran linker
4356# flags.
4357ac_save_FFLAGS=$FFLAGS
4358FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4359(eval echo $as_me:4359: \"$ac_link\") >&5
4360ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4361echo "$ac_f77_v_output" >&5
4362FFLAGS=$ac_save_FFLAGS
4363
4364rm -f conftest*
4365
4366# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4367# /foo, /bar, and /baz are search directories for the Fortran linker.
4368# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4369ac_f77_v_output="`echo $ac_f77_v_output |
4370        grep 'LPATH is:' |
4371        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4372
4373case $ac_f77_v_output in
4374  # If we are using xlf then replace all the commas with spaces.
4375  *xlfentry*)
4376    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4377
4378  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4379  # $LIBS confuse us, and the libraries appear later in the output anyway).
4380  *mGLOB_options_string*)
4381    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4382
4383  # If we are using Cray Fortran then delete quotes.
4384  # Use "\"" instead of '"' for font-lock-mode.
4385  # FIXME: a more general fix for quoted arguments with spaces?
4386  *cft90*)
4387    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4388esac
4389
4390
4391
4392ac_cv_f77_libs=
4393
4394# Save positional arguments (if any)
4395ac_save_positional="$@"
4396
4397set X $ac_f77_v_output
4398while test $# != 1; do
4399  shift
4400  ac_arg=$1
4401  case $ac_arg in
4402        [\\/]*.a | ?:[\\/]*.a)
4403            ac_exists=false
4404  for ac_i in $ac_cv_f77_libs; do
4405    if test x"$ac_arg" = x"$ac_i"; then
4406      ac_exists=true
4407      break
4408    fi
4409  done
4410
4411  if test x"$ac_exists" = xtrue; then
4412  :
4413else
4414  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4415fi
4416
4417          ;;
4418        -bI:*)
4419            ac_exists=false
4420  for ac_i in $ac_cv_f77_libs; do
4421    if test x"$ac_arg" = x"$ac_i"; then
4422      ac_exists=true
4423      break
4424    fi
4425  done
4426
4427  if test x"$ac_exists" = xtrue; then
4428  :
4429else
4430  if test "$ac_compiler_gnu" = yes; then
4431  for ac_link_opt in $ac_arg; do
4432    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4433  done
4434else
4435  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4436fi
4437fi
4438
4439          ;;
4440          # Ignore these flags.
4441        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4442          ;;
4443        -lkernel32)
4444          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4445          ;;
4446        -[LRuY])
4447          # These flags, when seen by themselves, take an argument.
4448          # We remove the space between option and argument and re-iterate
4449          # unless we find an empty arg or a new option (starting with -)
4450          case $2 in
4451             "" | -*);;
4452             *)
4453                ac_arg="$ac_arg$2"
4454                shift; shift
4455                set X $ac_arg "$@"
4456                ;;
4457          esac
4458          ;;
4459        -YP,*)
4460          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4461              ac_exists=false
4462  for ac_i in $ac_cv_f77_libs; do
4463    if test x"$ac_j" = x"$ac_i"; then
4464      ac_exists=true
4465      break
4466    fi
4467  done
4468
4469  if test x"$ac_exists" = xtrue; then
4470  :
4471else
4472  ac_arg="$ac_arg $ac_j"
4473                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4474fi
4475
4476          done
4477          ;;
4478        -[lLR]*)
4479            ac_exists=false
4480  for ac_i in $ac_cv_f77_libs; do
4481    if test x"$ac_arg" = x"$ac_i"; then
4482      ac_exists=true
4483      break
4484    fi
4485  done
4486
4487  if test x"$ac_exists" = xtrue; then
4488  :
4489else
4490  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4491fi
4492
4493          ;;
4494          # Ignore everything else.
4495  esac
4496done
4497# restore positional arguments
4498set X $ac_save_positional; shift
4499
4500# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4501# then we insist that the "run path" must be an absolute path (i.e. it
4502# must begin with a "/").
4503case `(uname -sr) 2>/dev/null` in
4504   "SunOS 5"*)
4505      ac_ld_run_path=`echo $ac_f77_v_output |
4506                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4507      test "x$ac_ld_run_path" != x &&
4508        if test "$ac_compiler_gnu" = yes; then
4509  for ac_link_opt in $ac_ld_run_path; do
4510    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4511  done
4512else
4513  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4514fi
4515      ;;
4516esac
4517fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4518
4519fi
4520echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4521echo "${ECHO_T}$ac_cv_f77_libs" >&6
4522FLIBS="$ac_cv_f77_libs"
4523
4524
4525ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531orig_FLIBS="$FLIBS"
4532
4533# If FLIBS has been set by the user, we just restore its value here
4534if test x"$save_FLIBS" != x; then
4535  FLIBS="$save_FLIBS"
4536else
4537  # This is to correct a missing exclusion in autoconf 2.59
4538  if test x"$FLIBS" != x; then
4539    my_flibs=
4540    for flag in $FLIBS; do
4541      case $flag in
4542        -lcrt*.o) ;;
4543        -lcygwin) ;;
4544               *) my_flibs="$my_flibs $flag" ;;
4545      esac
4546    done
4547    FLIBS="$my_flibs"
4548  fi
4549
4550  case $build in
4551  # The following is a fix to define FLIBS for ifort on Windows
4552  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4553  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4554  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4555  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4556  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4557     *-cygwin* | *-mingw*)
4558       case "$F77" in
4559#         ifort* | */ifort* | IFORT* | */IFORT*)
4560#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4561#           if "$coin_debug_compile" = true ; then
4562#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4563#           else
4564#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4565#           fi
4566#           ;;
4567         compile_f2c*)
4568           FLIBS=`$F77 -FLIBS` ;;
4569       esac;;
4570     *-hp-*)
4571         FLIBS="$FLIBS -lm";;
4572     *-ibm-*)
4573         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4574     *-linux-*)
4575       case "$F77" in
4576         pgf77* | */pgf77* | pgf90* | */pgf90*)
4577# ask linker to go through the archives multiple times
4578# (the Fortran compiler seems to do that automatically...)
4579           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4580       esac
4581  esac
4582  ac_cv_f77_libs="$FLIBS"
4583fi
4584
4585if test "x$orig_FLIBS" != "x$FLIBS" ; then
4586  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4587echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4588fi
4589
4590ac_ext=f
4591ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4592ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4594
4595echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4596echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4597if test "${ac_cv_f77_dummy_main+set}" = set; then
4598  echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600  ac_f77_dm_save_LIBS=$LIBS
4601 LIBS="$LIBS $FLIBS"
4602 ac_fortran_dm_var=F77_DUMMY_MAIN
4603 ac_ext=c
4604ac_cpp='$CPP $CPPFLAGS'
4605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608
4609 # First, try linking without a dummy main:
4610 cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h.  */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h.  */
4616
4617#ifdef F77_DUMMY_MAIN
4618
4619#  ifdef __cplusplus
4620     extern "C"
4621#  endif
4622   int F77_DUMMY_MAIN() { return 1; }
4623
4624#endif
4625int
4626main ()
4627{
4628
4629  ;
4630  return 0;
4631}
4632_ACEOF
4633rm -f conftest.$ac_objext conftest$ac_exeext
4634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4635  (eval $ac_link) 2>conftest.er1
4636  ac_status=$?
4637  grep -v '^ *+' conftest.er1 >conftest.err
4638  rm -f conftest.er1
4639  cat conftest.err >&5
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); } &&
4642         { ac_try='test -z "$ac_c_werror_flag"
4643                         || test ! -s conftest.err'
4644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645  (eval $ac_try) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; } &&
4649         { ac_try='test -s conftest$ac_exeext'
4650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651  (eval $ac_try) 2>&5
4652  ac_status=$?
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); }; }; then
4655  ac_cv_fortran_dummy_main=none
4656else
4657  echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660ac_cv_fortran_dummy_main=unknown
4661fi
4662rm -f conftest.err conftest.$ac_objext \
4663      conftest$ac_exeext conftest.$ac_ext
4664
4665 if test $ac_cv_fortran_dummy_main = unknown; then
4666   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4667     cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h.  */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h.  */
4673#define $ac_fortran_dm_var $ac_func
4674#ifdef F77_DUMMY_MAIN
4675
4676#  ifdef __cplusplus
4677     extern "C"
4678#  endif
4679   int F77_DUMMY_MAIN() { return 1; }
4680
4681#endif
4682int
4683main ()
4684{
4685
4686  ;
4687  return 0;
4688}
4689_ACEOF
4690rm -f conftest.$ac_objext conftest$ac_exeext
4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692  (eval $ac_link) 2>conftest.er1
4693  ac_status=$?
4694  grep -v '^ *+' conftest.er1 >conftest.err
4695  rm -f conftest.er1
4696  cat conftest.err >&5
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); } &&
4699         { ac_try='test -z "$ac_c_werror_flag"
4700                         || test ! -s conftest.err'
4701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702  (eval $ac_try) 2>&5
4703  ac_status=$?
4704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705  (exit $ac_status); }; } &&
4706         { ac_try='test -s conftest$ac_exeext'
4707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708  (eval $ac_try) 2>&5
4709  ac_status=$?
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); }; }; then
4712  ac_cv_fortran_dummy_main=$ac_func; break
4713else
4714  echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717fi
4718rm -f conftest.err conftest.$ac_objext \
4719      conftest$ac_exeext conftest.$ac_ext
4720   done
4721 fi
4722 ac_ext=f
4723ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4724ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4726 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4727 rm -f conftest*
4728 LIBS=$ac_f77_dm_save_LIBS
4729
4730fi
4731echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4732echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4733F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4734if test "$F77_DUMMY_MAIN" != unknown; then
4735  if test $F77_DUMMY_MAIN != none; then
4736
4737cat >>confdefs.h <<_ACEOF
4738#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4739_ACEOF
4740
4741  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4742
4743cat >>confdefs.h <<\_ACEOF
4744#define FC_DUMMY_MAIN_EQ_F77 1
4745_ACEOF
4746
4747  fi
4748fi
4749else
4750  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4751See \`config.log' for more details." >&5
4752echo "$as_me: error: linking to Fortran libraries from C fails
4753See \`config.log' for more details." >&2;}
4754   { (exit 1); exit 1; }; }
4755fi
4756
4757
4758ac_ext=f
4759ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4760ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4762
4763ac_ext=f
4764ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4765ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4767echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4768echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4769if test "${ac_cv_f77_mangling+set}" = set; then
4770  echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772  cat >conftest.$ac_ext <<_ACEOF
4773      subroutine foobar()
4774      return
4775      end
4776      subroutine foo_bar()
4777      return
4778      end
4779_ACEOF
4780rm -f conftest.$ac_objext
4781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782  (eval $ac_compile) 2>conftest.er1
4783  ac_status=$?
4784  grep -v '^ *+' conftest.er1 >conftest.err
4785  rm -f conftest.er1
4786  cat conftest.err >&5
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); } &&
4789         { ac_try='test -z "$ac_f77_werror_flag"
4790                         || test ! -s conftest.err'
4791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792  (eval $ac_try) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); }; } &&
4796         { ac_try='test -s conftest.$ac_objext'
4797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798  (eval $ac_try) 2>&5
4799  ac_status=$?
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); }; }; then
4802  mv conftest.$ac_objext cfortran_test.$ac_objext
4803
4804  ac_save_LIBS=$LIBS
4805  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4806
4807  ac_ext=c
4808ac_cpp='$CPP $CPPFLAGS'
4809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812  ac_success=no
4813  for ac_foobar in foobar FOOBAR; do
4814    for ac_underscore in "" "_"; do
4815      ac_func="$ac_foobar$ac_underscore"
4816      cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822
4823/* Override any gcc2 internal prototype to avoid an error.  */
4824#ifdef __cplusplus
4825extern "C"
4826#endif
4827/* We use char because int might match the return type of a gcc2
4828   builtin and then its argument prototype would still apply.  */
4829char $ac_func ();
4830#ifdef F77_DUMMY_MAIN
4831
4832#  ifdef __cplusplus
4833     extern "C"
4834#  endif
4835   int F77_DUMMY_MAIN() { return 1; }
4836
4837#endif
4838int
4839main ()
4840{
4841$ac_func ();
4842  ;
4843  return 0;
4844}
4845_ACEOF
4846rm -f conftest.$ac_objext conftest$ac_exeext
4847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848  (eval $ac_link) 2>conftest.er1
4849  ac_status=$?
4850  grep -v '^ *+' conftest.er1 >conftest.err
4851  rm -f conftest.er1
4852  cat conftest.err >&5
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); } &&
4855         { ac_try='test -z "$ac_c_werror_flag"
4856                         || test ! -s conftest.err'
4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858  (eval $ac_try) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); }; } &&
4862         { ac_try='test -s conftest$ac_exeext'
4863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864  (eval $ac_try) 2>&5
4865  ac_status=$?
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); }; }; then
4868  ac_success=yes; break 2
4869else
4870  echo "$as_me: failed program was:" >&5
4871sed 's/^/| /' conftest.$ac_ext >&5
4872
4873fi
4874rm -f conftest.err conftest.$ac_objext \
4875      conftest$ac_exeext conftest.$ac_ext
4876    done
4877  done
4878  ac_ext=f
4879ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4880ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4882
4883  if test "$ac_success" = "yes"; then
4884     case $ac_foobar in
4885        foobar)
4886           ac_case=lower
4887           ac_foo_bar=foo_bar
4888           ;;
4889        FOOBAR)
4890           ac_case=upper
4891           ac_foo_bar=FOO_BAR
4892           ;;
4893     esac
4894
4895     ac_ext=c
4896ac_cpp='$CPP $CPPFLAGS'
4897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900     ac_success_extra=no
4901     for ac_extra in "" "_"; do
4902        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4903        cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909
4910/* Override any gcc2 internal prototype to avoid an error.  */
4911#ifdef __cplusplus
4912extern "C"
4913#endif
4914/* We use char because int might match the return type of a gcc2
4915   builtin and then its argument prototype would still apply.  */
4916char $ac_func ();
4917#ifdef F77_DUMMY_MAIN
4918
4919#  ifdef __cplusplus
4920     extern "C"
4921#  endif
4922   int F77_DUMMY_MAIN() { return 1; }
4923
4924#endif
4925int
4926main ()
4927{
4928$ac_func ();
4929  ;
4930  return 0;
4931}
4932_ACEOF
4933rm -f conftest.$ac_objext conftest$ac_exeext
4934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935  (eval $ac_link) 2>conftest.er1
4936  ac_status=$?
4937  grep -v '^ *+' conftest.er1 >conftest.err
4938  rm -f conftest.er1
4939  cat conftest.err >&5
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); } &&
4942         { ac_try='test -z "$ac_c_werror_flag"
4943                         || test ! -s conftest.err'
4944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945  (eval $ac_try) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); }; } &&
4949         { ac_try='test -s conftest$ac_exeext'
4950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951  (eval $ac_try) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); }; }; then
4955  ac_success_extra=yes; break
4956else
4957  echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960fi
4961rm -f conftest.err conftest.$ac_objext \
4962      conftest$ac_exeext conftest.$ac_ext
4963     done
4964     ac_ext=f
4965ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4966ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4968
4969     if test "$ac_success_extra" = "yes"; then
4970        ac_cv_f77_mangling="$ac_case case"
4971        if test -z "$ac_underscore"; then
4972           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4973        else
4974           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4975        fi
4976        if test -z "$ac_extra"; then
4977           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4978        else
4979           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4980        fi
4981      else
4982        ac_cv_f77_mangling="unknown"
4983      fi
4984  else
4985     ac_cv_f77_mangling="unknown"
4986  fi
4987
4988  LIBS=$ac_save_LIBS
4989  rm -f cfortran_test* conftest*
4990else
4991  echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4995See \`config.log' for more details." >&5
4996echo "$as_me: error: cannot compile a simple Fortran program
4997See \`config.log' for more details." >&2;}
4998   { (exit 1); exit 1; }; }
4999fi
5000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001
5002fi
5003echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
5004echo "${ECHO_T}$ac_cv_f77_mangling" >&6
5005
5006ac_ext=f
5007ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5008ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5010
5011
5012ac_ext=f
5013ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5014ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5016
5017ac_ext=f
5018ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5019ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5021
5022
5023case $ac_cv_f77_mangling in
5024  "lower case, no underscore, no extra underscore")
5025          cat >>confdefs.h <<\_ACEOF
5026#define F77_FUNC(name,NAME) name
5027_ACEOF
5028
5029          cat >>confdefs.h <<\_ACEOF
5030#define F77_FUNC_(name,NAME) name
5031_ACEOF
5032 ;;
5033  "lower case, no underscore, extra underscore")
5034          cat >>confdefs.h <<\_ACEOF
5035#define F77_FUNC(name,NAME) name
5036_ACEOF
5037
5038          cat >>confdefs.h <<\_ACEOF
5039#define F77_FUNC_(name,NAME) name ## _
5040_ACEOF
5041 ;;
5042  "lower case, underscore, no extra underscore")
5043          cat >>confdefs.h <<\_ACEOF
5044#define F77_FUNC(name,NAME) name ## _
5045_ACEOF
5046
5047          cat >>confdefs.h <<\_ACEOF
5048#define F77_FUNC_(name,NAME) name ## _
5049_ACEOF
5050 ;;
5051  "lower case, underscore, extra underscore")
5052          cat >>confdefs.h <<\_ACEOF
5053#define F77_FUNC(name,NAME) name ## _
5054_ACEOF
5055
5056          cat >>confdefs.h <<\_ACEOF
5057#define F77_FUNC_(name,NAME) name ## __
5058_ACEOF
5059 ;;
5060  "upper case, no underscore, no extra underscore")
5061          cat >>confdefs.h <<\_ACEOF
5062#define F77_FUNC(name,NAME) NAME
5063_ACEOF
5064
5065          cat >>confdefs.h <<\_ACEOF
5066#define F77_FUNC_(name,NAME) NAME
5067_ACEOF
5068 ;;
5069  "upper case, no underscore, extra underscore")
5070          cat >>confdefs.h <<\_ACEOF
5071#define F77_FUNC(name,NAME) NAME
5072_ACEOF
5073
5074          cat >>confdefs.h <<\_ACEOF
5075#define F77_FUNC_(name,NAME) NAME ## _
5076_ACEOF
5077 ;;
5078  "upper case, underscore, no extra underscore")
5079          cat >>confdefs.h <<\_ACEOF
5080#define F77_FUNC(name,NAME) NAME ## _
5081_ACEOF
5082
5083          cat >>confdefs.h <<\_ACEOF
5084#define F77_FUNC_(name,NAME) NAME ## _
5085_ACEOF
5086 ;;
5087  "upper case, underscore, extra underscore")
5088          cat >>confdefs.h <<\_ACEOF
5089#define F77_FUNC(name,NAME) NAME ## _
5090_ACEOF
5091
5092          cat >>confdefs.h <<\_ACEOF
5093#define F77_FUNC_(name,NAME) NAME ## __
5094_ACEOF
5095 ;;
5096  *)
5097          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5098echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5099          ;;
5100esac
5101
5102ac_ext=f
5103ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5104ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5106
5107ac_ext=c
5108ac_cpp='$CPP $CPPFLAGS'
5109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113
5114
5115
5116# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
5117HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
5118
5119# Need egrep later on
5120echo "$as_me:$LINENO: checking for egrep" >&5
5121echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5122if test "${ac_cv_prog_egrep+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5126    then ac_cv_prog_egrep='grep -E'
5127    else ac_cv_prog_egrep='egrep'
5128    fi
5129fi
5130echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5131echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5132 EGREP=$ac_cv_prog_egrep
5133
5134
5135
5136# Also set up the FC compiler variable, required to compile .f90
5137# files.  We use the same compile and flags as F77 and FFLAGS, unless
5138# the user has set FC and FCFLAGS explicitly.
5139if test "$FC" = ""; then
5140  FC="$F77"
5141fi
5142if test "$FCFLAGS" = ""; then
5143  FCFLAGS="$FFLAGS"
5144fi
5145ac_ext=${FC_SRCEXT-f}
5146ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5147ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5149if test -n "$ac_tool_prefix"; then
5150  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5151  do
5152    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156if test "${ac_cv_prog_FC+set}" = set; then
5157  echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159  if test -n "$FC"; then
5160  ac_cv_prog_FC="$FC" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167  for ac_exec_ext in '' $ac_executable_extensions; do
5168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174done
5175
5176fi
5177fi
5178FC=$ac_cv_prog_FC
5179if test -n "$FC"; then
5180  echo "$as_me:$LINENO: result: $FC" >&5
5181echo "${ECHO_T}$FC" >&6
5182else
5183  echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185fi
5186
5187    test -n "$FC" && break
5188  done
5189fi
5190if test -z "$FC"; then
5191  ac_ct_FC=$FC
5192  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5193do
5194  # Extract the first word of "$ac_prog", so it can be a program name with args.
5195set dummy $ac_prog; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201  if test -n "$ac_ct_FC"; then
5202  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5203else
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207  IFS=$as_save_IFS
5208  test -z "$as_dir" && as_dir=.
5209  for ac_exec_ext in '' $ac_executable_extensions; do
5210  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211    ac_cv_prog_ac_ct_FC="$ac_prog"
5212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213    break 2
5214  fi
5215done
5216done
5217
5218fi
5219fi
5220ac_ct_FC=$ac_cv_prog_ac_ct_FC
5221if test -n "$ac_ct_FC"; then
5222  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5223echo "${ECHO_T}$ac_ct_FC" >&6
5224else
5225  echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228
5229  test -n "$ac_ct_FC" && break
5230done
5231
5232  FC=$ac_ct_FC
5233fi
5234
5235
5236# Provide some information about the compiler.
5237echo "$as_me:5237:" \
5238     "checking for Fortran compiler version" >&5
5239ac_compiler=`set X $ac_compile; echo $2`
5240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5241  (eval $ac_compiler --version </dev/null >&5) 2>&5
5242  ac_status=$?
5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244  (exit $ac_status); }
5245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5246  (eval $ac_compiler -v </dev/null >&5) 2>&5
5247  ac_status=$?
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); }
5250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5251  (eval $ac_compiler -V </dev/null >&5) 2>&5
5252  ac_status=$?
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); }
5255rm -f a.out
5256
5257# If we don't use `.F' as extension, the preprocessor is not run on the
5258# input file.  (Note that this only needs to work for GNU compilers.)
5259ac_save_ext=$ac_ext
5260ac_ext=F
5261echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5262echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5263if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5264  echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266  cat >conftest.$ac_ext <<_ACEOF
5267      program main
5268#ifndef __GNUC__
5269       choke me
5270#endif
5271
5272      end
5273_ACEOF
5274rm -f conftest.$ac_objext
5275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276  (eval $ac_compile) 2>conftest.er1
5277  ac_status=$?
5278  grep -v '^ *+' conftest.er1 >conftest.err
5279  rm -f conftest.er1
5280  cat conftest.err >&5
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); } &&
5283         { ac_try='test -z "$ac_fc_werror_flag"
5284                         || test ! -s conftest.err'
5285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286  (eval $ac_try) 2>&5
5287  ac_status=$?
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }; } &&
5290         { ac_try='test -s conftest.$ac_objext'
5291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292  (eval $ac_try) 2>&5
5293  ac_status=$?
5294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295  (exit $ac_status); }; }; then
5296  ac_compiler_gnu=yes
5297else
5298  echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301ac_compiler_gnu=no
5302fi
5303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5305
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5308echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5309ac_ext=$ac_save_ext
5310ac_test_FFLAGS=${FCFLAGS+set}
5311ac_save_FFLAGS=$FCFLAGS
5312FCFLAGS=
5313echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5314echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5315if test "${ac_cv_prog_fc_g+set}" = set; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318  FCFLAGS=-g
5319cat >conftest.$ac_ext <<_ACEOF
5320      program main
5321
5322      end
5323_ACEOF
5324rm -f conftest.$ac_objext
5325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326  (eval $ac_compile) 2>conftest.er1
5327  ac_status=$?
5328  grep -v '^ *+' conftest.er1 >conftest.err
5329  rm -f conftest.er1
5330  cat conftest.err >&5
5331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332  (exit $ac_status); } &&
5333         { ac_try='test -z "$ac_fc_werror_flag"
5334                         || test ! -s conftest.err'
5335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336  (eval $ac_try) 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }; } &&
5340         { ac_try='test -s conftest.$ac_objext'
5341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342  (eval $ac_try) 2>&5
5343  ac_status=$?
5344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345  (exit $ac_status); }; }; then
5346  ac_cv_prog_fc_g=yes
5347else
5348  echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351ac_cv_prog_fc_g=no
5352fi
5353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354
5355fi
5356echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5357echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5358if test "$ac_test_FFLAGS" = set; then
5359  FCFLAGS=$ac_save_FFLAGS
5360elif test $ac_cv_prog_fc_g = yes; then
5361  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5362    FCFLAGS="-g -O2"
5363  else
5364    FCFLAGS="-g"
5365  fi
5366else
5367  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5368    FCFLAGS="-O2"
5369  else
5370    FCFLAGS=
5371  fi
5372fi
5373
5374ac_ext=c
5375ac_cpp='$CPP $CPPFLAGS'
5376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380
5381# Initialize autotools
5382
5383if test x$enable_loadable_library = xyes; then
5384  flag=force_shared
5385fi
5386{
5387
5388
5389
5390# START
5391
5392coin_disable_shared=no
5393# Test if force_shared has been set
5394if test "x$flag" = xforce_shared; then
5395  if test x$enable_shared = xno; then
5396    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5397echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5398   { (exit 1); exit 1; }; }
5399  fi
5400  enable_shared=yes;
5401else
5402  # On Cygwin and AIX, building DLLs doesn't work
5403  case $build in
5404    *-cygwin* | *-mingw*)
5405      coin_disable_shared=yes
5406      if test x"$enable_shared" = xyes; then
5407        case "$CXX" in
5408          clang* )
5409            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5410echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5411            ;;
5412          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5413            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
5414echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
5415            ;;
5416          *)
5417            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5418echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5419            ;;
5420        esac
5421      fi
5422    ;;
5423    *-aix*)
5424      coin_disable_shared=yes
5425      platform=AIX
5426      if test x"$enable_shared" = xyes; then
5427        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5428echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5429      fi
5430    ;;
5431  esac
5432fi
5433if test x"$coin_disable_shared" = xyes; then
5434  if test x"$enable_shared" = xyes; then
5435    :
5436  else
5437    # we don't disable shared, because it was not selected anyway
5438    coin_disable_shared=no
5439  fi
5440  enable_shared=no
5441fi
5442# By default, we only want the shared objects to be compiled
5443# Check whether --enable-static or --disable-static was given.
5444if test "${enable_static+set}" = set; then
5445  enableval="$enable_static"
5446  p=${PACKAGE-default}
5447    case $enableval in
5448    yes) enable_static=yes ;;
5449    no) enable_static=no ;;
5450    *)
5451     enable_static=no
5452      # Look at the argument we got.  We use all the common list separators.
5453      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5454      for pkg in $enableval; do
5455        IFS="$lt_save_ifs"
5456        if test "X$pkg" = "X$p"; then
5457          enable_static=yes
5458        fi
5459      done
5460      IFS="$lt_save_ifs"
5461      ;;
5462    esac
5463else
5464  enable_static=no
5465fi;
5466
5467
5468
5469
5470# Initialize automake
5471echo "$as_me:$LINENO: checking whether ln -s works" >&5
5472echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5473LN_S=$as_ln_s
5474if test "$LN_S" = "ln -s"; then
5475  echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477else
5478  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5479echo "${ECHO_T}no, using $LN_S" >&6
5480fi
5481
5482am__api_version="1.9"
5483# Find a good install program.  We prefer a C program (faster),
5484# so one script is as good as another.  But avoid the broken or
5485# incompatible versions:
5486# SysV /etc/install, /usr/sbin/install
5487# SunOS /usr/etc/install
5488# IRIX /sbin/install
5489# AIX /bin/install
5490# AmigaOS /C/install, which installs bootblocks on floppy discs
5491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5494# OS/2's system install, which has a completely different semantic
5495# ./install, which can be erroneously created by make from ./install.sh.
5496echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5497echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5498if test -z "$INSTALL"; then
5499if test "${ac_cv_path_install+set}" = set; then
5500  echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503for as_dir in $PATH
5504do
5505  IFS=$as_save_IFS
5506  test -z "$as_dir" && as_dir=.
5507  # Account for people who put trailing slashes in PATH elements.
5508case $as_dir/ in
5509  ./ | .// | /cC/* | \
5510  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5511  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5512  /usr/ucb/* ) ;;
5513  *)
5514    # OSF1 and SCO ODT 3.0 have their own names for install.
5515    # Don't use installbsd from OSF since it installs stuff as root
5516    # by default.
5517    for ac_prog in ginstall scoinst install; do
5518      for ac_exec_ext in '' $ac_executable_extensions; do
5519        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5520          if test $ac_prog = install &&
5521            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5522            # AIX install.  It has an incompatible calling convention.
5523            :
5524          elif test $ac_prog = install &&
5525            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5526            # program-specific install script used by HP pwplus--don't use.
5527            :
5528          else
5529            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5530            break 3
5531          fi
5532        fi
5533      done
5534    done
5535    ;;
5536esac
5537done
5538
5539
5540fi
5541  if test "${ac_cv_path_install+set}" = set; then
5542    INSTALL=$ac_cv_path_install
5543  else
5544    # As a last resort, use the slow shell script.  We don't cache a
5545    # path for INSTALL within a source directory, because that will
5546    # break other packages using the cache if that directory is
5547    # removed, or if the path is relative.
5548    INSTALL=$ac_install_sh
5549  fi
5550fi
5551echo "$as_me:$LINENO: result: $INSTALL" >&5
5552echo "${ECHO_T}$INSTALL" >&6
5553
5554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5555# It thinks the first close brace ends the variable substitution.
5556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5557
5558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5559
5560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5561
5562echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5563echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5564# Just in case
5565sleep 1
5566echo timestamp > conftest.file
5567# Do `set' in a subshell so we don't clobber the current shell's
5568# arguments.  Must try -L first in case configure is actually a
5569# symlink; some systems play weird games with the mod time of symlinks
5570# (eg FreeBSD returns the mod time of the symlink's containing
5571# directory).
5572if (
5573   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5574   if test "$*" = "X"; then
5575      # -L didn't work.
5576      set X `ls -t $srcdir/configure conftest.file`
5577   fi
5578   rm -f conftest.file
5579   if test "$*" != "X $srcdir/configure conftest.file" \
5580      && test "$*" != "X conftest.file $srcdir/configure"; then
5581
5582      # If neither matched, then we have a broken ls.  This can happen
5583      # if, for instance, CONFIG_SHELL is bash and it inherits a
5584      # broken ls alias from the environment.  This has actually
5585      # happened.  Such a system could not be considered "sane".
5586      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5587alias in your environment" >&5
5588echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5589alias in your environment" >&2;}
5590   { (exit 1); exit 1; }; }
5591   fi
5592
5593   test "$2" = conftest.file
5594   )
5595then
5596   # Ok.
5597   :
5598else
5599   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5600Check your system clock" >&5
5601echo "$as_me: error: newly created file is older than distributed files!
5602Check your system clock" >&2;}
5603   { (exit 1); exit 1; }; }
5604fi
5605echo "$as_me:$LINENO: result: yes" >&5
5606echo "${ECHO_T}yes" >&6
5607test "$program_prefix" != NONE &&
5608  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5609# Use a double $ so make ignores it.
5610test "$program_suffix" != NONE &&
5611  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5612# Double any \ or $.  echo might interpret backslashes.
5613# By default was `s,x,x', remove it if useless.
5614cat <<\_ACEOF >conftest.sed
5615s/[\\$]/&&/g;s/;s,x,x,$//
5616_ACEOF
5617program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5618rm conftest.sed
5619
5620# expand $ac_aux_dir to an absolute path
5621am_aux_dir=`cd $ac_aux_dir && pwd`
5622
5623test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5624# Use eval to expand $SHELL
5625if eval "$MISSING --run true"; then
5626  am_missing_run="$MISSING --run "
5627else
5628  am_missing_run=
5629  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5630echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5631fi
5632
5633if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5634  # We used to keeping the `.' as first argument, in order to
5635  # allow $(mkdir_p) to be used without argument.  As in
5636  #   $(mkdir_p) $(somedir)
5637  # where $(somedir) is conditionally defined.  However this is wrong
5638  # for two reasons:
5639  #  1. if the package is installed by a user who cannot write `.'
5640  #     make install will fail,
5641  #  2. the above comment should most certainly read
5642  #     $(mkdir_p) $(DESTDIR)$(somedir)
5643  #     so it does not work when $(somedir) is undefined and
5644  #     $(DESTDIR) is not.
5645  #  To support the latter case, we have to write
5646  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5647  #  so the `.' trick is pointless.
5648  mkdir_p='mkdir -p --'
5649else
5650  # On NextStep and OpenStep, the `mkdir' command does not
5651  # recognize any option.  It will interpret all options as
5652  # directories to create, and then abort because `.' already
5653  # exists.
5654  for d in ./-p ./--version;
5655  do
5656    test -d $d && rmdir $d
5657  done
5658  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5659  if test -f "$ac_aux_dir/mkinstalldirs"; then
5660    mkdir_p='$(mkinstalldirs)'
5661  else
5662    mkdir_p='$(install_sh) -d'
5663  fi
5664fi
5665
5666for ac_prog in gawk mawk nawk awk
5667do
5668  # Extract the first word of "$ac_prog", so it can be a program name with args.
5669set dummy $ac_prog; ac_word=$2
5670echo "$as_me:$LINENO: checking for $ac_word" >&5
5671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5672if test "${ac_cv_prog_AWK+set}" = set; then
5673  echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675  if test -n "$AWK"; then
5676  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5677else
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681  IFS=$as_save_IFS
5682  test -z "$as_dir" && as_dir=.
5683  for ac_exec_ext in '' $ac_executable_extensions; do
5684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685    ac_cv_prog_AWK="$ac_prog"
5686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687    break 2
5688  fi
5689done
5690done
5691
5692fi
5693fi
5694AWK=$ac_cv_prog_AWK
5695if test -n "$AWK"; then
5696  echo "$as_me:$LINENO: result: $AWK" >&5
5697echo "${ECHO_T}$AWK" >&6
5698else
5699  echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6
5701fi
5702
5703  test -n "$AWK" && break
5704done
5705
5706echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5707echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5708set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5709if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5710  echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712  cat >conftest.make <<\_ACEOF
5713all:
5714        @echo 'ac_maketemp="$(MAKE)"'
5715_ACEOF
5716# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5717eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5718if test -n "$ac_maketemp"; then
5719  eval ac_cv_prog_make_${ac_make}_set=yes
5720else
5721  eval ac_cv_prog_make_${ac_make}_set=no
5722fi
5723rm -f conftest.make
5724fi
5725if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5726  echo "$as_me:$LINENO: result: yes" >&5
5727echo "${ECHO_T}yes" >&6
5728  SET_MAKE=
5729else
5730  echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732  SET_MAKE="MAKE=${MAKE-make}"
5733fi
5734
5735rm -rf .tst 2>/dev/null
5736mkdir .tst 2>/dev/null
5737if test -d .tst; then
5738  am__leading_dot=.
5739else
5740  am__leading_dot=_
5741fi
5742rmdir .tst 2>/dev/null
5743
5744DEPDIR="${am__leading_dot}deps"
5745
5746          ac_config_commands="$ac_config_commands depfiles"
5747
5748
5749am_make=${MAKE-make}
5750cat > confinc << 'END'
5751am__doit:
5752        @echo done
5753.PHONY: am__doit
5754END
5755# If we don't find an include directive, just comment out the code.
5756echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5757echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5758am__include="#"
5759am__quote=
5760_am_result=none
5761# First try GNU make style include.
5762echo "include confinc" > confmf
5763# We grep out `Entering directory' and `Leaving directory'
5764# messages which can occur if `w' ends up in MAKEFLAGS.
5765# In particular we don't look at `^make:' because GNU make might
5766# be invoked under some other name (usually "gmake"), in which
5767# case it prints its new name instead of `make'.
5768if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5769   am__include=include
5770   am__quote=
5771   _am_result=GNU
5772fi
5773# Now try BSD make style include.
5774if test "$am__include" = "#"; then
5775   echo '.include "confinc"' > confmf
5776   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5777      am__include=.include
5778      am__quote="\""
5779      _am_result=BSD
5780   fi
5781fi
5782
5783
5784echo "$as_me:$LINENO: result: $_am_result" >&5
5785echo "${ECHO_T}$_am_result" >&6
5786rm -f confinc confmf
5787
5788# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5789if test "${enable_dependency_tracking+set}" = set; then
5790  enableval="$enable_dependency_tracking"
5791
5792fi;
5793if test "x$enable_dependency_tracking" != xno; then
5794  am_depcomp="$ac_aux_dir/depcomp"
5795  AMDEPBACKSLASH='\'
5796fi
5797
5798
5799if test "x$enable_dependency_tracking" != xno; then
5800  AMDEP_TRUE=
5801  AMDEP_FALSE='#'
5802else
5803  AMDEP_TRUE='#'
5804  AMDEP_FALSE=
5805fi
5806
5807
5808
5809
5810
5811
5812# AC_MSG_NOTICE([Beginning automake initialisation.])
5813# Stuff for automake
5814# test to see if srcdir already configured
5815if test "`cd $srcdir && pwd`" != "`pwd`" &&
5816   test -f $srcdir/config.status; then
5817  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5818echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5819   { (exit 1); exit 1; }; }
5820fi
5821
5822# test whether we have cygpath
5823if test -z "$CYGPATH_W"; then
5824  if (cygpath --version) >/dev/null 2>/dev/null; then
5825    CYGPATH_W='cygpath -w'
5826  else
5827    CYGPATH_W=echo
5828  fi
5829fi
5830
5831
5832# Define the identity of the package.
5833 PACKAGE='thirdpartyhsl'
5834 VERSION='1.3.6'
5835
5836
5837cat >>confdefs.h <<_ACEOF
5838#define PACKAGE "$PACKAGE"
5839_ACEOF
5840
5841
5842cat >>confdefs.h <<_ACEOF
5843#define VERSION "$VERSION"
5844_ACEOF
5845
5846# Some tools Automake needs.
5847
5848ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5849
5850
5851AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5852
5853
5854AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5855
5856
5857AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5858
5859
5860MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5861
5862install_sh=${install_sh-"$am_aux_dir/install-sh"}
5863
5864# Installed binaries are usually stripped using `strip' when the user
5865# run `make install-strip'.  However `strip' might not be the right
5866# tool to use in cross-compilation environments, therefore Automake
5867# will honor the `STRIP' environment variable to overrule this program.
5868if test "$cross_compiling" != no; then
5869  if test -n "$ac_tool_prefix"; then
5870  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5871set dummy ${ac_tool_prefix}strip; ac_word=$2
5872echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874if test "${ac_cv_prog_STRIP+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  if test -n "$STRIP"; then
5878  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885  for ac_exec_ext in '' $ac_executable_extensions; do
5886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892done
5893
5894fi
5895fi
5896STRIP=$ac_cv_prog_STRIP
5897if test -n "$STRIP"; then
5898  echo "$as_me:$LINENO: result: $STRIP" >&5
5899echo "${ECHO_T}$STRIP" >&6
5900else
5901  echo "$as_me:$LINENO: result: no" >&5
5902echo "${ECHO_T}no" >&6
5903fi
5904
5905fi
5906if test -z "$ac_cv_prog_STRIP"; then
5907  ac_ct_STRIP=$STRIP
5908  # Extract the first word of "strip", so it can be a program name with args.
5909set dummy strip; ac_word=$2
5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5913  echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915  if test -n "$ac_ct_STRIP"; then
5916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923  for ac_exec_ext in '' $ac_executable_extensions; do
5924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925    ac_cv_prog_ac_ct_STRIP="strip"
5926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930done
5931
5932  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5933fi
5934fi
5935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5936if test -n "$ac_ct_STRIP"; then
5937  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5938echo "${ECHO_T}$ac_ct_STRIP" >&6
5939else
5940  echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942fi
5943
5944  STRIP=$ac_ct_STRIP
5945else
5946  STRIP="$ac_cv_prog_STRIP"
5947fi
5948
5949fi
5950INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5951
5952# We need awk for the "check" target.  The system "awk" is bad on
5953# some platforms.
5954# Always define AMTAR for backward compatibility.
5955
5956AMTAR=${AMTAR-"${am_missing_run}tar"}
5957
5958am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5959
5960
5961
5962
5963depcc="$CC"   am_compiler_list=
5964
5965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5967if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5971  # We make a subdir and do the tests there.  Otherwise we can end up
5972  # making bogus files that we don't know about and never remove.  For
5973  # instance it was reported that on HP-UX the gcc test will end up
5974  # making a dummy file named `D' -- because `-MD' means `put the output
5975  # in D'.
5976  mkdir conftest.dir
5977  # Copy depcomp to subdir because otherwise we won't find it if we're
5978  # using a relative directory.
5979  cp "$am_depcomp" conftest.dir
5980  cd conftest.dir
5981  # We will build objects and dependencies in a subdirectory because
5982  # it helps to detect inapplicable dependency modes.  For instance
5983  # both Tru64's cc and ICC support -MD to output dependencies as a
5984  # side effect of compilation, but ICC will put the dependencies in
5985  # the current directory while Tru64 will put them in the object
5986  # directory.
5987  mkdir sub
5988
5989  am_cv_CC_dependencies_compiler_type=none
5990  if test "$am_compiler_list" = ""; then
5991     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5992  fi
5993  for depmode in $am_compiler_list; do
5994    # Setup a source with many dependencies, because some compilers
5995    # like to wrap large dependency lists on column 80 (with \), and
5996    # we should not choose a depcomp mode which is confused by this.
5997    #
5998    # We need to recreate these files for each test, as the compiler may
5999    # overwrite some of them when testing with obscure command lines.
6000    # This happens at least with the AIX C compiler.
6001    : > sub/conftest.c
6002    for i in 1 2 3 4 5 6; do
6003      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6004      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6005      # Solaris 8's {/usr,}/bin/sh.
6006      touch sub/conftst$i.h
6007    done
6008    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009
6010    case $depmode in
6011    nosideeffect)
6012      # after this tag, mechanisms are not by side-effect, so they'll
6013      # only be used when explicitly requested
6014      if test "x$enable_dependency_tracking" = xyes; then
6015        continue
6016      else
6017        break
6018      fi
6019      ;;
6020    none) break ;;
6021    esac
6022    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6023    # mode.  It turns out that the SunPro C++ compiler does not properly
6024    # handle `-M -o', and we need to detect this.
6025    if depmode=$depmode \
6026       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6027       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6028       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6029         >/dev/null 2>conftest.err &&
6030       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6031       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6032       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6033      # icc doesn't choke on unknown options, it will just issue warnings
6034      # or remarks (even with -Werror).  So we grep stderr for any message
6035      # that says an option was ignored or not supported.
6036      # When given -MP, icc 7.0 and 7.1 complain thusly:
6037      #   icc: Command line warning: ignoring option '-M'; no argument required
6038      # The diagnosis changed in icc 8.0:
6039      #   icc: Command line remark: option '-MP' not supported
6040      if (grep 'ignoring option' conftest.err ||
6041          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6042        am_cv_CC_dependencies_compiler_type=$depmode
6043        break
6044      fi
6045    fi
6046  done
6047
6048  cd ..
6049  rm -rf conftest.dir
6050else
6051  am_cv_CC_dependencies_compiler_type=none
6052fi
6053
6054fi
6055echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6056echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6057CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6058
6059
6060
6061if
6062  test "x$enable_dependency_tracking" != xno \
6063  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6064  am__fastdepCC_TRUE=
6065  am__fastdepCC_FALSE='#'
6066else
6067  am__fastdepCC_TRUE='#'
6068  am__fastdepCC_FALSE=
6069fi
6070
6071
6072
6073echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6074echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6075    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6076if test "${enable_maintainer_mode+set}" = set; then
6077  enableval="$enable_maintainer_mode"
6078  USE_MAINTAINER_MODE=$enableval
6079else
6080  USE_MAINTAINER_MODE=no
6081fi;
6082  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6083echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6084
6085
6086if test $USE_MAINTAINER_MODE = yes; then
6087  MAINTAINER_MODE_TRUE=
6088  MAINTAINER_MODE_FALSE='#'
6089else
6090  MAINTAINER_MODE_TRUE='#'
6091  MAINTAINER_MODE_FALSE=
6092fi
6093
6094  MAINT=$MAINTAINER_MODE_TRUE
6095
6096
6097
6098coin_have_externals=no
6099if test "$enable_maintainer_mode" = yes; then
6100
6101  # If maintainer mode is chosen, we make sure that the correct versions
6102  # of the tools are used, and that we know where libtool.m4 is (to
6103  # recreate acinclude.m4)
6104
6105
6106  LIBTOOLM4=
6107  # Normally, $HOME
6108  AUTOTOOLS_DFLT=$HOME
6109
6110  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6111echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6112if test "${ac_cv_use_correct_autotools+set}" = set; then
6113  echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115  ac_cv_use_correct_autotools=check
6116fi
6117echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6118echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6119
6120  if test $ac_cv_use_correct_autotools = check; then
6121    ac_cv_use_correct_autotools=yes
6122    # Check if we have autoconf
6123    # Extract the first word of "autoconf", so it can be a program name with args.
6124set dummy autoconf; ac_word=$2
6125echo "$as_me:$LINENO: checking for $ac_word" >&5
6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6127if test "${ac_cv_prog_have_autoconf+set}" = set; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130  if test -n "$have_autoconf"; then
6131  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  test -z "$as_dir" && as_dir=.
6138  for ac_exec_ext in '' $ac_executable_extensions; do
6139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140    ac_cv_prog_have_autoconf="yes"
6141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142    break 2
6143  fi
6144done
6145done
6146
6147  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6148fi
6149fi
6150have_autoconf=$ac_cv_prog_have_autoconf
6151if test -n "$have_autoconf"; then
6152  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6153echo "${ECHO_T}$have_autoconf" >&6
6154else
6155  echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6
6157fi
6158
6159    if test $have_autoconf = no; then
6160      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6161echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6162   { (exit 1); exit 1; }; }
6163    fi
6164
6165    # Check whether autoconf is the correct version
6166    correct_version='2.59'
6167    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6168    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6169echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6170    autoconf --version > confauto.out 2>&1
6171    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6172      echo "$as_me:$LINENO: result: yes" >&5
6173echo "${ECHO_T}yes" >&6
6174    else
6175      rm -f confauto.out
6176      echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
6178      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6179echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6180   { (exit 1); exit 1; }; }
6181    fi
6182    rm -f confauto.out
6183
6184    # Check if the executable autoconf is picked up from the correct location
6185    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6186echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6187    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6188    autoconf_dir=`cd $autoconf_dir; pwd`
6189    if test x$AUTOTOOLS_DIR = x; then
6190      want_dir=$AUTOTOOLS_DFLT/bin
6191    else
6192      want_dir=$AUTOTOOLS_DIR/bin
6193    fi
6194    if test $autoconf_dir = `cd $want_dir; pwd`; then
6195      echo "$as_me:$LINENO: result: yes" >&5
6196echo "${ECHO_T}yes" >&6
6197    else
6198      rm -f confauto.out
6199      echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
6201      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6202echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6203   { (exit 1); exit 1; }; }
6204    fi
6205
6206    # Check if we have automake
6207    # Extract the first word of "automake", so it can be a program name with args.
6208set dummy automake; ac_word=$2
6209echo "$as_me:$LINENO: checking for $ac_word" >&5
6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211if test "${ac_cv_prog_have_automake+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  if test -n "$have_automake"; then
6215  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  test -z "$as_dir" && as_dir=.
6222  for ac_exec_ext in '' $ac_executable_extensions; do
6223  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224    ac_cv_prog_have_automake="yes"
6225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229done
6230
6231  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6232fi
6233fi
6234have_automake=$ac_cv_prog_have_automake
6235if test -n "$have_automake"; then
6236  echo "$as_me:$LINENO: result: $have_automake" >&5
6237echo "${ECHO_T}$have_automake" >&6
6238else
6239  echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
6241fi
6242
6243    if test $have_automake = no; then
6244      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6245echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6246   { (exit 1); exit 1; }; }
6247    fi
6248
6249    # Check whether automake is the correct version
6250    correct_version='1.9.6'
6251    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6252    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6253echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6254    automake --version > confauto.out 2>&1
6255    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6256      echo "$as_me:$LINENO: result: yes" >&5
6257echo "${ECHO_T}yes" >&6
6258    else
6259      rm -f confauto.out
6260      echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6
6262      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6263echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6264   { (exit 1); exit 1; }; }
6265    fi
6266    rm -f confauto.out
6267
6268    # Check if the executable automake is picked up from the correct location
6269    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6270echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6271    automake_dir=`which automake | sed -e 's=/automake=='`
6272    automake_dir=`cd $automake_dir; pwd`
6273    if test x$AUTOTOOLS_DIR = x; then
6274      want_dir=$AUTOTOOLS_DFLT/bin
6275    else
6276      want_dir=$AUTOTOOLS_DIR/bin
6277    fi
6278    if test $automake_dir = `cd $want_dir; pwd`; then
6279      echo "$as_me:$LINENO: result: yes" >&5
6280echo "${ECHO_T}yes" >&6
6281    else
6282      rm -f confauto.out
6283      echo "$as_me:$LINENO: result: no" >&5
6284echo "${ECHO_T}no" >&6
6285      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6286echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6287   { (exit 1); exit 1; }; }
6288    fi
6289
6290    # Check if this is the correct version of libtool (with escaped dots)
6291    if test x$AUTOTOOLS_DIR = x; then
6292      want_dir=$AUTOTOOLS_DFLT/share
6293    else
6294      want_dir=$AUTOTOOLS_DIR/share
6295    fi
6296    correct_version='1.5.22'
6297    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6298    if test -r $want_dir/libtool/ltmain.sh; then
6299  have_ltmain=yes
6300  :
6301else
6302  have_ltmain=no
6303  :
6304fi
6305
6306    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6307echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6308    if test $have_ltmain = yes; then
6309    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6310        echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312      else
6313        echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6316echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6317   { (exit 1); exit 1; }; }
6318      fi
6319    else
6320      echo "$as_me:$LINENO: result: no" >&5
6321echo "${ECHO_T}no" >&6
6322      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6323echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6324   { (exit 1); exit 1; }; }
6325    fi
6326  fi
6327
6328  # Check if we can find the libtool file
6329  if test x$AUTOTOOLS_DIR = x; then
6330    want_dir=$AUTOTOOLS_DFLT/share
6331  else
6332    want_dir=$AUTOTOOLS_DIR/share
6333  fi
6334  if test -r $want_dir/aclocal/libtool.m4; then
6335  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6336  :
6337else
6338  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6339echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6340   { (exit 1); exit 1; }; }
6341  :
6342fi
6343
6344
6345  # Check if we have an Dependencies file
6346  if test -r $srcdir/Dependencies; then
6347    coin_have_externals=yes
6348  fi
6349  # Check if subversion is installed and understands https
6350  # Extract the first word of "svn", so it can be a program name with args.
6351set dummy svn; ac_word=$2
6352echo "$as_me:$LINENO: checking for $ac_word" >&5
6353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6354if test "${ac_cv_prog_have_svn+set}" = set; then
6355  echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357  if test -n "$have_svn"; then
6358  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365  for ac_exec_ext in '' $ac_executable_extensions; do
6366  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367    ac_cv_prog_have_svn="yes"
6368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372done
6373
6374  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6375fi
6376fi
6377have_svn=$ac_cv_prog_have_svn
6378if test -n "$have_svn"; then
6379  echo "$as_me:$LINENO: result: $have_svn" >&5
6380echo "${ECHO_T}$have_svn" >&6
6381else
6382  echo "$as_me:$LINENO: result: no" >&5
6383echo "${ECHO_T}no" >&6
6384fi
6385
6386  if test x$have_svn = xyes; then
6387    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6388echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6389if test "${ac_cv_svn_understands_https+set}" = set; then
6390  echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392  svn --version > confauto.out 2>&1
6393                    if $EGREP https confauto.out >/dev/null 2>&1; then
6394                      ac_cv_svn_understands_https=yes
6395                    else
6396                      ac_cv_svn_understands_https=no
6397                      have_svn=no
6398                      ac_cv_prog_have_svn=no
6399                    fi
6400                    rm -f confauto.out
6401fi
6402echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6403echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6404  fi
6405
6406  # Find the location of the BuildTools directory
6407  BUILDTOOLSDIR=
6408  if test -r $srcdir/BuildTools/coin.m4; then
6409    BUILDTOOLSDIR=$srcdir/BuildTools
6410  else
6411    if test -r $srcdir/../BuildTools/coin.m4; then
6412      BUILDTOOLSDIR=$srcdir/../BuildTools
6413    else
6414      if test -r $srcdir/../../BuildTools/coin.m4; then
6415        BUILDTOOLSDIR=$srcdir/../../BuildTools
6416      else
6417        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6418echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6419   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6420      fi
6421    fi
6422  fi
6423
6424
6425  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6426  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6427    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6428  fi
6429
6430  # The following variable is set to the name of the directory where
6431  # the autotool scripts are located
6432
6433  AUX_DIR=$ac_aux_dir
6434fi
6435
6436# helpful variable for the base directory of this package
6437abs_source_dir=`cd $srcdir; pwd`
6438
6439
6440# Stuff for example Makefiles
6441if test x$prefix = xNONE; then
6442  full_prefix=$ac_default_prefix
6443else
6444  full_prefix=$prefix
6445fi
6446full_prefix=`cd $full_prefix ; pwd`
6447
6448abs_lib_dir=$full_prefix/lib
6449
6450abs_include_dir=$full_prefix/include
6451
6452abs_bin_dir=$full_prefix/bin
6453
6454
6455
6456if test $coin_have_externals = yes && test x$have_svn = xyes; then
6457  HAVE_EXTERNALS_TRUE=
6458  HAVE_EXTERNALS_FALSE='#'
6459else
6460  HAVE_EXTERNALS_TRUE='#'
6461  HAVE_EXTERNALS_FALSE=
6462fi
6463
6464
6465# AC_MSG_NOTICE([End automake initialisation.])
6466
6467
6468
6469LIBTOOL=
6470if test -r ../libtool; then
6471  coin_config_dir=..
6472  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6473fi
6474if test "x$LIBTOOL" = x; then
6475  if test -r ../../libtool; then
6476    coin_config_dir=../..
6477    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6478  fi
6479fi
6480
6481if test "x$LIBTOOL" = x; then
6482# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6483  # Stuff for libtool
6484  # Check whether --enable-shared or --disable-shared was given.
6485if test "${enable_shared+set}" = set; then
6486  enableval="$enable_shared"
6487  p=${PACKAGE-default}
6488    case $enableval in
6489    yes) enable_shared=yes ;;
6490    no) enable_shared=no ;;
6491    *)
6492      enable_shared=no
6493      # Look at the argument we got.  We use all the common list separators.
6494      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6495      for pkg in $enableval; do
6496        IFS="$lt_save_ifs"
6497        if test "X$pkg" = "X$p"; then
6498          enable_shared=yes
6499        fi
6500      done
6501      IFS="$lt_save_ifs"
6502      ;;
6503    esac
6504else
6505  enable_shared=yes
6506fi;
6507
6508# Check whether --enable-fast-install or --disable-fast-install was given.
6509if test "${enable_fast_install+set}" = set; then
6510  enableval="$enable_fast_install"
6511  p=${PACKAGE-default}
6512    case $enableval in
6513    yes) enable_fast_install=yes ;;
6514    no) enable_fast_install=no ;;
6515    *)
6516      enable_fast_install=no
6517      # Look at the argument we got.  We use all the common list separators.
6518      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6519      for pkg in $enableval; do
6520        IFS="$lt_save_ifs"
6521        if test "X$pkg" = "X$p"; then
6522          enable_fast_install=yes
6523        fi
6524      done
6525      IFS="$lt_save_ifs"
6526      ;;
6527    esac
6528else
6529  enable_fast_install=yes
6530fi;
6531
6532echo "$as_me:$LINENO: checking host system type" >&5
6533echo $ECHO_N "checking host system type... $ECHO_C" >&6
6534if test "${ac_cv_host+set}" = set; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537  ac_cv_host_alias=$host_alias
6538test -z "$ac_cv_host_alias" &&
6539  ac_cv_host_alias=$ac_cv_build_alias
6540ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6541  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6542echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6543   { (exit 1); exit 1; }; }
6544
6545fi
6546echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6547echo "${ECHO_T}$ac_cv_host" >&6
6548host=$ac_cv_host
6549host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6550host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6551host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6552
6553
6554echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6555echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6556if test "${lt_cv_path_SED+set}" = set; then
6557  echo $ECHO_N "(cached) $ECHO_C" >&6
6558else
6559  # Loop through the user's path and test for sed and gsed.
6560# Then use that list of sed's as ones to test for truncation.
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566  for lt_ac_prog in sed gsed; do
6567    for ac_exec_ext in '' $ac_executable_extensions; do
6568      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6569        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6570      fi
6571    done
6572  done
6573done
6574lt_ac_max=0
6575lt_ac_count=0
6576# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6577# along with /bin/sed that truncates output.
6578for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6579  test ! -f $lt_ac_sed && continue
6580  cat /dev/null > conftest.in
6581  lt_ac_count=0
6582  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6583  # Check for GNU sed and select it if it is found.
6584  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6585    lt_cv_path_SED=$lt_ac_sed
6586    break
6587  fi
6588  while true; do
6589    cat conftest.in conftest.in >conftest.tmp
6590    mv conftest.tmp conftest.in
6591    cp conftest.in conftest.nl
6592    echo >>conftest.nl
6593    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6594    cmp -s conftest.out conftest.nl || break
6595    # 10000 chars as input seems more than enough
6596    test $lt_ac_count -gt 10 && break
6597    lt_ac_count=`expr $lt_ac_count + 1`
6598    if test $lt_ac_count -gt $lt_ac_max; then
6599      lt_ac_max=$lt_ac_count
6600      lt_cv_path_SED=$lt_ac_sed
6601    fi
6602  done
6603done
6604
6605fi
6606
6607SED=$lt_cv_path_SED
6608echo "$as_me:$LINENO: result: $SED" >&5
6609echo "${ECHO_T}$SED" >&6
6610
6611
6612# Check whether --with-gnu-ld or --without-gnu-ld was given.
6613if test "${with_gnu_ld+set}" = set; then
6614  withval="$with_gnu_ld"
6615  test "$withval" = no || with_gnu_ld=yes
6616else
6617  with_gnu_ld=no
6618fi;
6619ac_prog=ld
6620if test "$GCC" = yes; then
6621  # Check if gcc -print-prog-name=ld gives a path.
6622  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6623echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6624  case $host in
6625  *-*-mingw*)
6626    # gcc leaves a trailing carriage return which upsets mingw
6627    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6628  *)
6629    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6630  esac
6631  case $ac_prog in
6632    # Accept absolute paths.
6633    [\\/]* | ?:[\\/]*)
6634      re_direlt='/[^/][^/]*/\.\./'
6635      # Canonicalize the pathname of ld
6636      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6637      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6638        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6639      done
6640      test -z "$LD" && LD="$ac_prog"
6641      ;;
6642  "")
6643    # If it fails, then pretend we aren't using GCC.
6644    ac_prog=ld
6645    ;;
6646  *)
6647    # If it is relative, then search for the first ld in PATH.
6648    with_gnu_ld=unknown
6649    ;;
6650  esac
6651elif test "$with_gnu_ld" = yes; then
6652  echo "$as_me:$LINENO: checking for GNU ld" >&5
6653echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6654else
6655  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6656echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6657fi
6658if test "${lt_cv_path_LD+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  if test -z "$LD"; then
6662  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663  for ac_dir in $PATH; do
6664    IFS="$lt_save_ifs"
6665    test -z "$ac_dir" && ac_dir=.
6666    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6667      lt_cv_path_LD="$ac_dir/$ac_prog"
6668      # Check to see if the program is GNU ld.  I'd rather use --version,
6669      # but apparently some variants of GNU ld only accept -v.
6670      # Break only if it was the GNU/non-GNU ld that we prefer.
6671      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6672      *GNU* | *'with BFD'*)
6673        test "$with_gnu_ld" != no && break
6674        ;;
6675      *)
6676        test "$with_gnu_ld" != yes && break
6677        ;;
6678      esac
6679    fi
6680  done
6681  IFS="$lt_save_ifs"
6682else
6683  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6684fi
6685fi
6686
6687LD="$lt_cv_path_LD"
6688if test -n "$LD"; then
6689  echo "$as_me:$LINENO: result: $LD" >&5
6690echo "${ECHO_T}$LD" >&6
6691else
6692  echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6
6694fi
6695test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6696echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6697   { (exit 1); exit 1; }; }
6698echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6699echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6700if test "${lt_cv_prog_gnu_ld+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6704case `$LD -v 2>&1 </dev/null` in
6705*GNU* | *'with BFD'*)
6706  lt_cv_prog_gnu_ld=yes
6707  ;;
6708*)
6709  lt_cv_prog_gnu_ld=no
6710  ;;
6711esac
6712fi
6713echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6714echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6715with_gnu_ld=$lt_cv_prog_gnu_ld
6716
6717
6718echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6719echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6720if test "${lt_cv_ld_reload_flag+set}" = set; then
6721  echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723  lt_cv_ld_reload_flag='-r'
6724fi
6725echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6726echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6727reload_flag=$lt_cv_ld_reload_flag
6728case $reload_flag in
6729"" | " "*) ;;
6730*) reload_flag=" $reload_flag" ;;
6731esac
6732reload_cmds='$LD$reload_flag -o $output$reload_objs'
6733case $host_os in
6734  darwin*)
6735    if test "$GCC" = yes; then
6736      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6737    else
6738      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6739    fi
6740    ;;
6741esac
6742
6743echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6744echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6745if test "${lt_cv_path_NM+set}" = set; then
6746  echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748  if test -n "$NM"; then
6749  # Let the user override the test.
6750  lt_cv_path_NM="$NM"
6751else
6752  lt_nm_to_check="${ac_tool_prefix}nm"
6753  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6754    lt_nm_to_check="$lt_nm_to_check nm"
6755  fi
6756  for lt_tmp_nm in $lt_nm_to_check; do
6757    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6758    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6759      IFS="$lt_save_ifs"
6760      test -z "$ac_dir" && ac_dir=.
6761      tmp_nm="$ac_dir/$lt_tmp_nm"
6762      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6763        # Check to see if the nm accepts a BSD-compat flag.
6764        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6765        #   nm: unknown option "B" ignored
6766        # Tru64's nm complains that /dev/null is an invalid object file
6767        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6768        */dev/null* | *'Invalid file or object type'*)
6769          lt_cv_path_NM="$tmp_nm -B"
6770          break
6771          ;;
6772        *)
6773          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6774          */dev/null*)
6775            lt_cv_path_NM="$tmp_nm -p"
6776            break
6777            ;;
6778          *)
6779            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6780            continue # so that we can try to find one that supports BSD flags
6781            ;;
6782          esac
6783          ;;
6784        esac
6785      fi
6786    done
6787    IFS="$lt_save_ifs"
6788  done
6789  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6790fi
6791fi
6792echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6793echo "${ECHO_T}$lt_cv_path_NM" >&6
6794NM="$lt_cv_path_NM"
6795
6796echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6797echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6798if test "${lt_cv_deplibs_check_method+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801  lt_cv_file_magic_cmd='$MAGIC_CMD'
6802lt_cv_file_magic_test_file=
6803lt_cv_deplibs_check_method='unknown'
6804# Need to set the preceding variable on all platforms that support
6805# interlibrary dependencies.
6806# 'none' -- dependencies not supported.
6807# `unknown' -- same as none, but documents that we really don't know.
6808# 'pass_all' -- all dependencies passed with no checks.
6809# 'test_compile' -- check by making test program.
6810# 'file_magic [[regex]]' -- check by looking for files in library path
6811# which responds to the $file_magic_cmd with a given extended regex.
6812# If you have `file' or equivalent on your system and you're not sure
6813# whether `pass_all' will *always* work, you probably want this one.
6814
6815case $host_os in
6816aix4* | aix5*)
6817  lt_cv_deplibs_check_method=pass_all
6818  ;;
6819
6820beos*)
6821  lt_cv_deplibs_check_method=pass_all
6822  ;;
6823
6824bsdi[45]*)
6825  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6826  lt_cv_file_magic_cmd='/usr/bin/file -L'
6827  lt_cv_file_magic_test_file=/shlib/libc.so
6828  ;;
6829
6830cygwin*)
6831  # func_win32_libid is a shell function defined in ltmain.sh
6832  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6833  lt_cv_file_magic_cmd='func_win32_libid'
6834  ;;
6835
6836mingw* | pw32*)
6837  # Base MSYS/MinGW do not provide the 'file' command needed by
6838  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6839  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6840  lt_cv_file_magic_cmd='$OBJDUMP -f'
6841  ;;
6842
6843darwin* | rhapsody*)
6844  lt_cv_deplibs_check_method=pass_all
6845  ;;
6846
6847freebsd* | kfreebsd*-gnu | dragonfly*)
6848  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6849    case $host_cpu in
6850    i*86 )
6851      # Not sure whether the presence of OpenBSD here was a mistake.
6852      # Let's accept both of them until this is cleared up.
6853      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6854      lt_cv_file_magic_cmd=/usr/bin/file
6855      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6856      ;;
6857    esac
6858  else
6859    lt_cv_deplibs_check_method=pass_all
6860  fi
6861  ;;
6862
6863gnu*)
6864  lt_cv_deplibs_check_method=pass_all
6865  ;;
6866
6867hpux10.20* | hpux11*)
6868  lt_cv_file_magic_cmd=/usr/bin/file
6869  case $host_cpu in
6870  ia64*)
6871    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6872    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6873    ;;
6874  hppa*64*)
6875    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]'
6876    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6877    ;;
6878  *)
6879    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6880    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6881    ;;
6882  esac
6883  ;;
6884
6885interix3*)
6886  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6887  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6888  ;;
6889
6890irix5* | irix6* | nonstopux*)
6891  case $LD in
6892  *-32|*"-32 ") libmagic=32-bit;;
6893  *-n32|*"-n32 ") libmagic=N32;;
6894  *-64|*"-64 ") libmagic=64-bit;;
6895  *) libmagic=never-match;;
6896  esac
6897  lt_cv_deplibs_check_method=pass_all
6898  ;;
6899
6900# This must be Linux ELF.
6901linux*)
6902  lt_cv_deplibs_check_method=pass_all
6903  ;;
6904
6905netbsd*)
6906  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6907    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6908  else
6909    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6910  fi
6911  ;;
6912
6913newos6*)
6914  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6915  lt_cv_file_magic_cmd=/usr/bin/file
6916  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6917  ;;
6918
6919nto-qnx*)
6920  lt_cv_deplibs_check_method=unknown
6921  ;;
6922
6923openbsd*)
6924  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6925    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6926  else
6927    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6928  fi
6929  ;;
6930
6931osf3* | osf4* | osf5*)
6932  lt_cv_deplibs_check_method=pass_all
6933  ;;
6934
6935solaris*)
6936  lt_cv_deplibs_check_method=pass_all
6937  ;;
6938
6939sysv4 | sysv4.3*)
6940  case $host_vendor in
6941  motorola)
6942    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]'
6943    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6944    ;;
6945  ncr)
6946    lt_cv_deplibs_check_method=pass_all
6947    ;;
6948  sequent)
6949    lt_cv_file_magic_cmd='/bin/file'
6950    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6951    ;;
6952  sni)
6953    lt_cv_file_magic_cmd='/bin/file'
6954    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6955    lt_cv_file_magic_test_file=/lib/libc.so
6956    ;;
6957  siemens)
6958    lt_cv_deplibs_check_method=pass_all
6959    ;;
6960  pc)
6961    lt_cv_deplibs_check_method=pass_all
6962    ;;
6963  esac
6964  ;;
6965
6966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6967  lt_cv_deplibs_check_method=pass_all
6968  ;;
6969esac
6970
6971fi
6972echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6973echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6974file_magic_cmd=$lt_cv_file_magic_cmd
6975deplibs_check_method=$lt_cv_deplibs_check_method
6976test -z "$deplibs_check_method" && deplibs_check_method=unknown
6977
6978
6979
6980
6981# If no C compiler was specified, use CC.
6982LTCC=${LTCC-"$CC"}
6983
6984# If no C compiler flags were specified, use CFLAGS.
6985LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6986
6987# Allow CC to be a program name with arguments.
6988compiler=$CC
6989
6990# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6991if test "${enable_libtool_lock+set}" = set; then
6992  enableval="$enable_libtool_lock"
6993
6994fi;
6995test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6996
6997# Some flags need to be propagated to the compiler or linker for good
6998# libtool support.
6999case $host in
7000ia64-*-hpux*)
7001  # Find out which ABI we are using.
7002  echo 'int i;' > conftest.$ac_ext
7003  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004  (eval $ac_compile) 2>&5
7005  ac_status=$?
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); }; then
7008    case `/usr/bin/file conftest.$ac_objext` in
7009    *ELF-32*)
7010      HPUX_IA64_MODE="32"
7011      ;;
7012    *ELF-64*)
7013      HPUX_IA64_MODE="64"
7014      ;;
7015    esac
7016  fi
7017  rm -rf conftest*
7018  ;;
7019*-*-irix6*)
7020  # Find out which ABI we are using.
7021  echo '#line 7021 "configure"' > conftest.$ac_ext
7022  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023  (eval $ac_compile) 2>&5
7024  ac_status=$?
7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026  (exit $ac_status); }; then
7027   if test "$lt_cv_prog_gnu_ld" = yes; then
7028    case `/usr/bin/file conftest.$ac_objext` in
7029    *32-bit*)
7030      LD="${LD-ld} -melf32bsmip"
7031      ;;
7032    *N32*)
7033      LD="${LD-ld} -melf32bmipn32"
7034      ;;
7035    *64-bit*)
7036      LD="${LD-ld} -melf64bmip"
7037      ;;
7038    esac
7039   else
7040    case `/usr/bin/file conftest.$ac_objext` in
7041    *32-bit*)
7042      LD="${LD-ld} -32"
7043      ;;
7044    *N32*)
7045      LD="${LD-ld} -n32"
7046      ;;
7047    *64-bit*)
7048      LD="${LD-ld} -64"
7049      ;;
7050    esac
7051   fi
7052  fi
7053  rm -rf conftest*
7054  ;;
7055
7056x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7057  # Find out which ABI we are using.
7058  echo 'int i;' > conftest.$ac_ext
7059  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060  (eval $ac_compile) 2>&5
7061  ac_status=$?
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); }; then
7064    case `/usr/bin/file conftest.o` in
7065    *32-bit*)
7066      case $host in
7067        x86_64-*linux*)
7068          LD="${LD-ld} -m elf_i386"
7069          ;;
7070        ppc64-*linux*|powerpc64-*linux*)
7071          LD="${LD-ld} -m elf32ppclinux"
7072          ;;
7073        s390x-*linux*)
7074          LD="${LD-ld} -m elf_s390"
7075          ;;
7076        sparc64-*linux*)
7077          LD="${LD-ld} -m elf32_sparc"
7078          ;;
7079      esac
7080      ;;
7081    *64-bit*)
7082      case $host in
7083        x86_64-*linux*)
7084          LD="${LD-ld} -m elf_x86_64"
7085          ;;
7086        ppc*-*linux*|powerpc*-*linux*)
7087          LD="${LD-ld} -m elf64ppc"
7088          ;;
7089        s390*-*linux*)
7090          LD="${LD-ld} -m elf64_s390"
7091          ;;
7092        sparc*-*linux*)
7093          LD="${LD-ld} -m elf64_sparc"
7094          ;;
7095      esac
7096      ;;
7097    esac
7098  fi
7099  rm -rf conftest*
7100  ;;
7101
7102*-*-sco3.2v5*)
7103  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7104  SAVE_CFLAGS="$CFLAGS"
7105  CFLAGS="$CFLAGS -belf"
7106  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7107echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7108if test "${lt_cv_cc_needs_belf+set}" = set; then
7109  echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111  ac_ext=c
7112ac_cpp='$CPP $CPPFLAGS'
7113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116
7117     cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h.  */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h.  */
7123
7124#ifdef F77_DUMMY_MAIN
7125
7126#  ifdef __cplusplus
7127     extern "C"
7128#  endif
7129   int F77_DUMMY_MAIN() { return 1; }
7130
7131#endif
7132int
7133main ()
7134{
7135
7136  ;
7137  return 0;
7138}
7139_ACEOF
7140rm -f conftest.$ac_objext conftest$ac_exeext
7141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142  (eval $ac_link) 2>conftest.er1
7143  ac_status=$?
7144  grep -v '^ *+' conftest.er1 >conftest.err
7145  rm -f conftest.er1
7146  cat conftest.err >&5
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); } &&
7149         { ac_try='test -z "$ac_c_werror_flag"
7150                         || test ! -s conftest.err'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; } &&
7156         { ac_try='test -s conftest$ac_exeext'
7157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158  (eval $ac_try) 2>&5
7159  ac_status=$?
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); }; }; then
7162  lt_cv_cc_needs_belf=yes
7163else
7164  echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167lt_cv_cc_needs_belf=no
7168fi
7169rm -f conftest.err conftest.$ac_objext \
7170      conftest$ac_exeext conftest.$ac_ext
7171     ac_ext=c
7172ac_cpp='$CPP $CPPFLAGS'
7173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176
7177fi
7178echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7179echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7180  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7181    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7182    CFLAGS="$SAVE_CFLAGS"
7183  fi
7184  ;;
7185sparc*-*solaris*)
7186  # Find out which ABI we are using.
7187  echo 'int i;' > conftest.$ac_ext
7188  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189  (eval $ac_compile) 2>&5
7190  ac_status=$?
7191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192  (exit $ac_status); }; then
7193    case `/usr/bin/file conftest.o` in
7194    *64-bit*)
7195      case $lt_cv_prog_gnu_ld in
7196      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7197      *)    LD="${LD-ld} -64" ;;
7198      esac
7199      ;;
7200    esac
7201  fi
7202  rm -rf conftest*
7203  ;;
7204
7205
7206esac
7207
7208need_locks="$enable_libtool_lock"
7209
7210
7211ac_ext=c
7212ac_cpp='$CPP $CPPFLAGS'
7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7218# On Suns, sometimes $CPP names a directory.
7219if test -n "$CPP" && test -d "$CPP"; then
7220  CPP=
7221fi
7222if test -z "$CPP"; then
7223  if test "${ac_cv_prog_CPP+set}" = set; then
7224  echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226      # Double quotes because CPP needs to be expanded
7227    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7228    do
7229      ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232  # Use a header file that comes with gcc, so configuring glibc
7233  # with a fresh cross-compiler works.
7234  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235  # <limits.h> exists even on freestanding compilers.
7236  # On the NeXT, cc -E runs the code through the compiler's parser,
7237  # not just through cpp. "Syntax error" is here to catch this case.
7238  cat >conftest.$ac_ext <<_ACEOF
7239/* confdefs.h.  */
7240_ACEOF
7241cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF
7243/* end confdefs.h.  */
7244#ifdef __STDC__
7245# include <limits.h>
7246#else
7247# include <assert.h>
7248#endif
7249                     Syntax error
7250_ACEOF
7251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7252  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7253  ac_status=$?
7254  grep -v '^ *+' conftest.er1 >conftest.err
7255  rm -f conftest.er1
7256  cat conftest.err >&5
7257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258  (exit $ac_status); } >/dev/null; then
7259  if test -s conftest.err; then
7260    ac_cpp_err=$ac_c_preproc_warn_flag
7261    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7262  else
7263    ac_cpp_err=
7264  fi
7265else
7266  ac_cpp_err=yes
7267fi
7268if test -z "$ac_cpp_err"; then
7269  :
7270else
7271  echo "$as_me: failed program was:" >&5
7272sed 's/^/| /' conftest.$ac_ext >&5
7273
7274  # Broken: fails on valid input.
7275continue
7276fi
7277rm -f conftest.err conftest.$ac_ext
7278
7279  # OK, works on sane cases.  Now check whether non-existent headers
7280  # can be detected and how.
7281  cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h.  */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h.  */
7287#include <ac_nonexistent.h>
7288_ACEOF
7289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7290  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7291  ac_status=$?
7292  grep -v '^ *+' conftest.er1 >conftest.err
7293  rm -f conftest.er1
7294  cat conftest.err >&5
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); } >/dev/null; then
7297  if test -s conftest.err; then
7298    ac_cpp_err=$ac_c_preproc_warn_flag
7299    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7300  else
7301    ac_cpp_err=
7302  fi
7303else
7304  ac_cpp_err=yes
7305fi
7306if test -z "$ac_cpp_err"; then
7307  # Broken: success on invalid input.
7308continue
7309else
7310  echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313  # Passes both tests.
7314ac_preproc_ok=:
7315break
7316fi
7317rm -f conftest.err conftest.$ac_ext
7318
7319done
7320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7321rm -f conftest.err conftest.$ac_ext
7322if $ac_preproc_ok; then
7323  break
7324fi
7325
7326    done
7327    ac_cv_prog_CPP=$CPP
7328
7329fi
7330  CPP=$ac_cv_prog_CPP
7331else
7332  ac_cv_prog_CPP=$CPP
7333fi
7334echo "$as_me:$LINENO: result: $CPP" >&5
7335echo "${ECHO_T}$CPP" >&6
7336ac_preproc_ok=false
7337for ac_c_preproc_warn_flag in '' yes
7338do
7339  # Use a header file that comes with gcc, so configuring glibc
7340  # with a fresh cross-compiler works.
7341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342  # <limits.h> exists even on freestanding compilers.
7343  # On the NeXT, cc -E runs the code through the compiler's parser,
7344  # not just through cpp. "Syntax error" is here to catch this case.
7345  cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h.  */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h.  */
7351#ifdef __STDC__
7352# include <limits.h>
7353#else
7354# include <assert.h>
7355#endif
7356                     Syntax error
7357_ACEOF
7358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7360  ac_status=$?
7361  grep -v '^ *+' conftest.er1 >conftest.err
7362  rm -f conftest.er1
7363  cat conftest.err >&5
7364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365  (exit $ac_status); } >/dev/null; then
7366  if test -s conftest.err; then
7367    ac_cpp_err=$ac_c_preproc_warn_flag
7368    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7369  else
7370    ac_cpp_err=
7371  fi
7372else
7373  ac_cpp_err=yes
7374fi
7375if test -z "$ac_cpp_err"; then
7376  :
7377else
7378  echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381  # Broken: fails on valid input.
7382continue
7383fi
7384rm -f conftest.err conftest.$ac_ext
7385
7386  # OK, works on sane cases.  Now check whether non-existent headers
7387  # can be detected and how.
7388  cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h.  */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h.  */
7394#include <ac_nonexistent.h>
7395_ACEOF
7396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7398  ac_status=$?
7399  grep -v '^ *+' conftest.er1 >conftest.err
7400  rm -f conftest.er1
7401  cat conftest.err >&5
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); } >/dev/null; then
7404  if test -s conftest.err; then
7405    ac_cpp_err=$ac_c_preproc_warn_flag
7406    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7407  else
7408    ac_cpp_err=
7409  fi
7410else
7411  ac_cpp_err=yes
7412fi
7413if test -z "$ac_cpp_err"; then
7414  # Broken: success on invalid input.
7415continue
7416else
7417  echo "$as_me: failed program was:" >&5
7418sed 's/^/| /' conftest.$ac_ext >&5
7419
7420  # Passes both tests.
7421ac_preproc_ok=:
7422break
7423fi
7424rm -f conftest.err conftest.$ac_ext
7425
7426done
7427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7428rm -f conftest.err conftest.$ac_ext
7429if $ac_preproc_ok; then
7430  :
7431else
7432  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7433See \`config.log' for more details." >&5
7434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7435See \`config.log' for more details." >&2;}
7436   { (exit 1); exit 1; }; }
7437fi
7438
7439ac_ext=c
7440ac_cpp='$CPP $CPPFLAGS'
7441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443ac_compiler_gnu=$ac_cv_c_compiler_gnu
7444
7445
7446echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7447echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7448if test "${ac_cv_header_stdc+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h.  */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h.  */
7457#include <stdlib.h>
7458#include <stdarg.h>
7459#include <string.h>
7460#include <float.h>
7461
7462#ifdef F77_DUMMY_MAIN
7463
7464#  ifdef __cplusplus
7465     extern "C"
7466#  endif
7467   int F77_DUMMY_MAIN() { return 1; }
7468
7469#endif
7470int
7471main ()
7472{
7473
7474  ;
7475  return 0;
7476}
7477_ACEOF
7478rm -f conftest.$ac_objext
7479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480  (eval $ac_compile) 2>conftest.er1
7481  ac_status=$?
7482  grep -v '^ *+' conftest.er1 >conftest.err
7483  rm -f conftest.er1
7484  cat conftest.err >&5
7485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486  (exit $ac_status); } &&
7487         { ac_try='test -z "$ac_c_werror_flag"
7488                         || test ! -s conftest.err'
7489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490  (eval $ac_try) 2>&5
7491  ac_status=$?
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); }; } &&
7494         { ac_try='test -s conftest.$ac_objext'
7495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496  (eval $ac_try) 2>&5
7497  ac_status=$?
7498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499  (exit $ac_status); }; }; then
7500  ac_cv_header_stdc=yes
7501else
7502  echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505ac_cv_header_stdc=no
7506fi
7507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7508
7509if test $ac_cv_header_stdc = yes; then
7510  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7511  cat >conftest.$ac_ext <<_ACEOF
7512/* confdefs.h.  */
7513_ACEOF
7514cat confdefs.h >>conftest.$ac_ext
7515cat >>conftest.$ac_ext <<_ACEOF
7516/* end confdefs.h.  */
7517#include <string.h>
7518
7519_ACEOF
7520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7521  $EGREP "memchr" >/dev/null 2>&1; then
7522  :
7523else
7524  ac_cv_header_stdc=no
7525fi
7526rm -f conftest*
7527
7528fi
7529
7530if test $ac_cv_header_stdc = yes; then
7531  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7532  cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h.  */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h.  */
7538#include <stdlib.h>
7539
7540_ACEOF
7541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542  $EGREP "free" >/dev/null 2>&1; then
7543  :
7544else
7545  ac_cv_header_stdc=no
7546fi
7547rm -f conftest*
7548
7549fi
7550
7551if test $ac_cv_header_stdc = yes; then
7552  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7553  if test "$cross_compiling" = yes; then
7554  :
7555else
7556  cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h.  */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h.  */
7562#include <ctype.h>
7563#if ((' ' & 0x0FF) == 0x020)
7564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7566#else
7567# define ISLOWER(c) \
7568                   (('a' <= (c) && (c) <= 'i') \
7569                     || ('j' <= (c) && (c) <= 'r') \
7570                     || ('s' <= (c) && (c) <= 'z'))
7571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7572#endif
7573
7574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7575int
7576main ()
7577{
7578  int i;
7579  for (i = 0; i < 256; i++)
7580    if (XOR (islower (i), ISLOWER (i))
7581        || toupper (i) != TOUPPER (i))
7582      exit(2);
7583  exit (0);
7584}
7585_ACEOF
7586rm -f conftest$ac_exeext
7587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588  (eval $ac_link) 2>&5
7589  ac_status=$?
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593  (eval $ac_try) 2>&5
7594  ac_status=$?
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); }; }; then
7597  :
7598else
7599  echo "$as_me: program exited with status $ac_status" >&5
7600echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
7603( exit $ac_status )
7604ac_cv_header_stdc=no
7605fi
7606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7607fi
7608fi
7609fi
7610echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7611echo "${ECHO_T}$ac_cv_header_stdc" >&6
7612if test $ac_cv_header_stdc = yes; then
7613
7614cat >>confdefs.h <<\_ACEOF
7615#define STDC_HEADERS 1
7616_ACEOF
7617
7618fi
7619
7620# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7631                  inttypes.h stdint.h unistd.h
7632do
7633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634echo "$as_me:$LINENO: checking for $ac_header" >&5
7635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7636if eval "test \"\${$as_ac_Header+set}\" = set"; then
7637  echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639  cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h.  */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h.  */
7645$ac_includes_default
7646
7647#include <$ac_header>
7648_ACEOF
7649rm -f conftest.$ac_objext
7650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651  (eval $ac_compile) 2>conftest.er1
7652  ac_status=$?
7653  grep -v '^ *+' conftest.er1 >conftest.err
7654  rm -f conftest.er1
7655  cat conftest.err >&5
7656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657  (exit $ac_status); } &&
7658         { ac_try='test -z "$ac_c_werror_flag"
7659                         || test ! -s conftest.err'
7660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661  (eval $ac_try) 2>&5
7662  ac_status=$?
7663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664  (exit $ac_status); }; } &&
7665         { ac_try='test -s conftest.$ac_objext'
7666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667  (eval $ac_try) 2>&5
7668  ac_status=$?
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); }; }; then
7671  eval "$as_ac_Header=yes"
7672else
7673  echo "$as_me: failed program was:" >&5
7674sed 's/^/| /' conftest.$ac_ext >&5
7675
7676eval "$as_ac_Header=no"
7677fi
7678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679fi
7680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7682if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683  cat >>confdefs.h <<_ACEOF
7684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685_ACEOF
7686
7687fi
7688
7689done
7690
7691
7692
7693for ac_header in dlfcn.h
7694do
7695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7696if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697  echo "$as_me:$LINENO: checking for $ac_header" >&5
7698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7699if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700  echo $ECHO_N "(cached) $ECHO_C" >&6
7701fi
7702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7704else
7705  # Is the header compilable?
7706echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7708cat >conftest.$ac_ext <<_ACEOF
7709/* confdefs.h.  */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h.  */
7714$ac_includes_default
7715#include <$ac_header>
7716_ACEOF
7717rm -f conftest.$ac_objext
7718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719  (eval $ac_compile) 2>conftest.er1
7720  ac_status=$?
7721  grep -v '^ *+' conftest.er1 >conftest.err
7722  rm -f conftest.er1
7723  cat conftest.err >&5
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); } &&
7726         { ac_try='test -z "$ac_c_werror_flag"
7727                         || test ! -s conftest.err'
7728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729  (eval $ac_try) 2>&5
7730  ac_status=$?
7731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732  (exit $ac_status); }; } &&
7733         { ac_try='test -s conftest.$ac_objext'
7734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735  (eval $ac_try) 2>&5
7736  ac_status=$?
7737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738  (exit $ac_status); }; }; then
7739  ac_header_compiler=yes
7740else
7741  echo "$as_me: failed program was:" >&5
7742sed 's/^/| /' conftest.$ac_ext >&5
7743
7744ac_header_compiler=no
7745fi
7746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7748echo "${ECHO_T}$ac_header_compiler" >&6
7749
7750# Is the header present?
7751echo "$as_me:$LINENO: checking $ac_header presence" >&5
7752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7753cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h.  */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h.  */
7759#include <$ac_header>
7760_ACEOF
7761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7763  ac_status=$?
7764  grep -v '^ *+' conftest.er1 >conftest.err
7765  rm -f conftest.er1
7766  cat conftest.err >&5
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } >/dev/null; then
7769  if test -s conftest.err; then
7770    ac_cpp_err=$ac_c_preproc_warn_flag
7771    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7772  else
7773    ac_cpp_err=
7774  fi
7775else
7776  ac_cpp_err=yes
7777fi
7778if test -z "$ac_cpp_err"; then
7779  ac_header_preproc=yes
7780else
7781  echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
7783
7784  ac_header_preproc=no
7785fi
7786rm -f conftest.err conftest.$ac_ext
7787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7788echo "${ECHO_T}$ac_header_preproc" >&6
7789
7790# So?  What about this header?
7791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7792  yes:no: )
7793    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7797    ac_header_preproc=yes
7798    ;;
7799  no:yes:* )
7800    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7802    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7803echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7804    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7806    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7807echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7808    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7810    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7812    (
7813      cat <<\_ASBOX
7814## --------------------------------------------------------------- ##
7815## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7816## --------------------------------------------------------------- ##
7817_ASBOX
7818    ) |
7819      sed "s/^/$as_me: WARNING:     /" >&2
7820    ;;
7821esac
7822echo "$as_me:$LINENO: checking for $ac_header" >&5
7823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825  echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827  eval "$as_ac_Header=\$ac_header_preproc"
7828fi
7829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7831
7832fi
7833if test `eval echo '${'$as_ac_Header'}'` = yes; then
7834  cat >>confdefs.h <<_ACEOF
7835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7836_ACEOF
7837
7838fi
7839
7840done
7841
7842ac_ext=cc
7843ac_cpp='$CXXCPP $CPPFLAGS'
7844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7847if test -n "$ac_tool_prefix"; then
7848  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7849  do
7850    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7851set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7852echo "$as_me:$LINENO: checking for $ac_word" >&5
7853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7854if test "${ac_cv_prog_CXX+set}" = set; then
7855  echo $ECHO_N "(cached) $ECHO_C" >&6
7856else
7857  if test -n "$CXX"; then
7858  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7859else
7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863  IFS=$as_save_IFS
7864  test -z "$as_dir" && as_dir=.
7865  for ac_exec_ext in '' $ac_executable_extensions; do
7866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869    break 2
7870  fi
7871done
7872done
7873
7874fi
7875fi
7876CXX=$ac_cv_prog_CXX
7877if test -n "$CXX"; then
7878  echo "$as_me:$LINENO: result: $CXX" >&5
7879echo "${ECHO_T}$CXX" >&6
7880else
7881  echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6
7883fi
7884
7885    test -n "$CXX" && break
7886  done
7887fi
7888if test -z "$CXX"; then
7889  ac_ct_CXX=$CXX
7890  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7891do
7892  # Extract the first word of "$ac_prog", so it can be a program name with args.
7893set dummy $ac_prog; ac_word=$2
7894echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7897  echo $ECHO_N "(cached) $ECHO_C" >&6
7898else
7899  if test -n "$ac_ct_CXX"; then
7900  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905  IFS=$as_save_IFS
7906  test -z "$as_dir" && as_dir=.
7907  for ac_exec_ext in '' $ac_executable_extensions; do
7908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909    ac_cv_prog_ac_ct_CXX="$ac_prog"
7910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914done
7915
7916fi
7917fi
7918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7919if test -n "$ac_ct_CXX"; then
7920  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7921echo "${ECHO_T}$ac_ct_CXX" >&6
7922else
7923  echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925fi
7926
7927  test -n "$ac_ct_CXX" && break
7928done
7929test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7930
7931  CXX=$ac_ct_CXX
7932fi
7933
7934
7935# Provide some information about the compiler.
7936echo "$as_me:$LINENO:" \
7937     "checking for C++ compiler version" >&5
7938ac_compiler=`set X $ac_compile; echo $2`
7939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7940  (eval $ac_compiler --version </dev/null >&5) 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }
7944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7945  (eval $ac_compiler -v </dev/null >&5) 2>&5
7946  ac_status=$?
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); }
7949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7950  (eval $ac_compiler -V </dev/null >&5) 2>&5
7951  ac_status=$?
7952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953  (exit $ac_status); }
7954
7955echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7956echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7957if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7958  echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960  cat >conftest.$ac_ext <<_ACEOF
7961/* confdefs.h.  */
7962_ACEOF
7963cat confdefs.h >>conftest.$ac_ext
7964cat >>conftest.$ac_ext <<_ACEOF
7965/* end confdefs.h.  */
7966
7967#ifdef F77_DUMMY_MAIN
7968
7969#  ifdef __cplusplus
7970     extern "C"
7971#  endif
7972   int F77_DUMMY_MAIN() { return 1; }
7973
7974#endif
7975int
7976main ()
7977{
7978#ifndef __GNUC__
7979       choke me
7980#endif
7981
7982  ;
7983  return 0;
7984}
7985_ACEOF
7986rm -f conftest.$ac_objext
7987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988  (eval $ac_compile) 2>conftest.er1
7989  ac_status=$?
7990  grep -v '^ *+' conftest.er1 >conftest.err
7991  rm -f conftest.er1
7992  cat conftest.err >&5
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); } &&
7995         { ac_try='test -z "$ac_cxx_werror_flag"
7996                         || test ! -s conftest.err'
7997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998  (eval $ac_try) 2>&5
7999  ac_status=$?
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); }; } &&
8002         { ac_try='test -s conftest.$ac_objext'
8003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004  (eval $ac_try) 2>&5
8005  ac_status=$?
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); }; }; then
8008  ac_compiler_gnu=yes
8009else
8010  echo "$as_me: failed program was:" >&5
8011sed 's/^/| /' conftest.$ac_ext >&5
8012
8013ac_compiler_gnu=no
8014fi
8015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8017
8018fi
8019echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8020echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8021GXX=`test $ac_compiler_gnu = yes && echo yes`
8022ac_test_CXXFLAGS=${CXXFLAGS+set}
8023ac_save_CXXFLAGS=$CXXFLAGS
8024CXXFLAGS="-g"
8025echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8026echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8027if test "${ac_cv_prog_cxx_g+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  cat >conftest.$ac_ext <<_ACEOF
8031/* confdefs.h.  */
8032_ACEOF
8033cat confdefs.h >>conftest.$ac_ext
8034cat >>conftest.$ac_ext <<_ACEOF
8035/* end confdefs.h.  */
8036
8037#ifdef F77_DUMMY_MAIN
8038
8039#  ifdef __cplusplus
8040     extern "C"
8041#  endif
8042   int F77_DUMMY_MAIN() { return 1; }
8043
8044#endif
8045int
8046main ()
8047{
8048
8049  ;
8050  return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055  (eval $ac_compile) 2>conftest.er1
8056  ac_status=$?
8057  grep -v '^ *+' conftest.er1 >conftest.err
8058  rm -f conftest.er1
8059  cat conftest.err >&5
8060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); } &&
8062         { ac_try='test -z "$ac_cxx_werror_flag"
8063                         || test ! -s conftest.err'
8064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065  (eval $ac_try) 2>&5
8066  ac_status=$?
8067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); }; } &&
8069         { ac_try='test -s conftest.$ac_objext'
8070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071  (eval $ac_try) 2>&5
8072  ac_status=$?
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); }; }; then
8075  ac_cv_prog_cxx_g=yes
8076else
8077  echo "$as_me: failed program was:" >&5
8078sed 's/^/| /' conftest.$ac_ext >&5
8079
8080ac_cv_prog_cxx_g=no
8081fi
8082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8085echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8086if test "$ac_test_CXXFLAGS" = set; then
8087  CXXFLAGS=$ac_save_CXXFLAGS
8088elif test $ac_cv_prog_cxx_g = yes; then
8089  if test "$GXX" = yes; then
8090    CXXFLAGS="-g -O2"
8091  else
8092    CXXFLAGS="-g"
8093  fi
8094else
8095  if test "$GXX" = yes; then
8096    CXXFLAGS="-O2"
8097  else
8098    CXXFLAGS=
8099  fi
8100fi
8101for ac_declaration in \
8102   '' \
8103   'extern "C" void std::exit (int) throw (); using std::exit;' \
8104   'extern "C" void std::exit (int); using std::exit;' \
8105   'extern "C" void exit (int) throw ();' \
8106   'extern "C" void exit (int);' \
8107   'void exit (int);'
8108do
8109  cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h.  */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h.  */
8115$ac_declaration
8116#include <stdlib.h>
8117#ifdef F77_DUMMY_MAIN
8118
8119#  ifdef __cplusplus
8120     extern "C"
8121#  endif
8122   int F77_DUMMY_MAIN() { return 1; }
8123
8124#endif
8125int
8126main ()
8127{
8128exit (42);
8129  ;
8130  return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext
8134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135  (eval $ac_compile) 2>conftest.er1
8136  ac_status=$?
8137  grep -v '^ *+' conftest.er1 >conftest.err
8138  rm -f conftest.er1
8139  cat conftest.err >&5
8140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141  (exit $ac_status); } &&
8142         { ac_try='test -z "$ac_cxx_werror_flag"
8143                         || test ! -s conftest.err'
8144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145  (eval $ac_try) 2>&5
8146  ac_status=$?
8147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148  (exit $ac_status); }; } &&
8149         { ac_try='test -s conftest.$ac_objext'
8150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151  (eval $ac_try) 2>&5
8152  ac_status=$?
8153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154  (exit $ac_status); }; }; then
8155  :
8156else
8157  echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160continue
8161fi
8162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8163  cat >conftest.$ac_ext <<_ACEOF
8164/* confdefs.h.  */
8165_ACEOF
8166cat confdefs.h >>conftest.$ac_ext
8167cat >>conftest.$ac_ext <<_ACEOF
8168/* end confdefs.h.  */
8169$ac_declaration
8170#ifdef F77_DUMMY_MAIN
8171
8172#  ifdef __cplusplus
8173     extern "C"
8174#  endif
8175   int F77_DUMMY_MAIN() { return 1; }
8176
8177#endif
8178int
8179main ()
8180{
8181exit (42);
8182  ;
8183  return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext
8187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188  (eval $ac_compile) 2>conftest.er1
8189  ac_status=$?
8190  grep -v '^ *+' conftest.er1 >conftest.err
8191  rm -f conftest.er1
8192  cat conftest.err >&5
8193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194  (exit $ac_status); } &&
8195         { ac_try='test -z "$ac_cxx_werror_flag"
8196                         || test ! -s conftest.err'
8197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198  (eval $ac_try) 2>&5
8199  ac_status=$?
8200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201  (exit $ac_status); }; } &&
8202         { ac_try='test -s conftest.$ac_objext'
8203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204  (eval $ac_try) 2>&5
8205  ac_status=$?
8206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207  (exit $ac_status); }; }; then
8208  break
8209else
8210  echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
8213fi
8214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215done
8216rm -f conftest*
8217if test -n "$ac_declaration"; then
8218  echo '#ifdef __cplusplus' >>confdefs.h
8219  echo $ac_declaration      >>confdefs.h
8220  echo '#endif'             >>confdefs.h
8221fi
8222
8223ac_ext=cc
8224ac_cpp='$CXXCPP $CPPFLAGS'
8225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8228
8229depcc="$CXX"  am_compiler_list=
8230
8231echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8232echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8233if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8234  echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8237  # We make a subdir and do the tests there.  Otherwise we can end up
8238  # making bogus files that we don't know about and never remove.  For
8239  # instance it was reported that on HP-UX the gcc test will end up
8240  # making a dummy file named `D' -- because `-MD' means `put the output
8241  # in D'.
8242  mkdir conftest.dir
8243  # Copy depcomp to subdir because otherwise we won't find it if we're
8244  # using a relative directory.
8245  cp "$am_depcomp" conftest.dir
8246  cd conftest.dir
8247  # We will build objects and dependencies in a subdirectory because
8248  # it helps to detect inapplicable dependency modes.  For instance
8249  # both Tru64's cc and ICC support -MD to output dependencies as a
8250  # side effect of compilation, but ICC will put the dependencies in
8251  # the current directory while Tru64 will put them in the object
8252  # directory.
8253  mkdir sub
8254
8255  am_cv_CXX_dependencies_compiler_type=none
8256  if test "$am_compiler_list" = ""; then
8257     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8258  fi
8259  for depmode in $am_compiler_list; do
8260    # Setup a source with many dependencies, because some compilers
8261    # like to wrap large dependency lists on column 80 (with \), and
8262    # we should not choose a depcomp mode which is confused by this.
8263    #
8264    # We need to recreate these files for each test, as the compiler may
8265    # overwrite some of them when testing with obscure command lines.
8266    # This happens at least with the AIX C compiler.
8267    : > sub/conftest.c
8268    for i in 1 2 3 4 5 6; do
8269      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8270      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8271      # Solaris 8's {/usr,}/bin/sh.
8272      touch sub/conftst$i.h
8273    done
8274    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8275
8276    case $depmode in
8277    nosideeffect)
8278      # after this tag, mechanisms are not by side-effect, so they'll
8279      # only be used when explicitly requested
8280      if test "x$enable_dependency_tracking" = xyes; then
8281        continue
8282      else
8283        break
8284      fi
8285      ;;
8286    none) break ;;
8287    esac
8288    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8289    # mode.  It turns out that the SunPro C++ compiler does not properly
8290    # handle `-M -o', and we need to detect this.
8291    if depmode=$depmode \
8292       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8293       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8294       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8295         >/dev/null 2>conftest.err &&
8296       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8297       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8298       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8299      # icc doesn't choke on unknown options, it will just issue warnings
8300      # or remarks (even with -Werror).  So we grep stderr for any message
8301      # that says an option was ignored or not supported.
8302      # When given -MP, icc 7.0 and 7.1 complain thusly:
8303      #   icc: Command line warning: ignoring option '-M'; no argument required
8304      # The diagnosis changed in icc 8.0:
8305      #   icc: Command line remark: option '-MP' not supported
8306      if (grep 'ignoring option' conftest.err ||
8307          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8308        am_cv_CXX_dependencies_compiler_type=$depmode
8309        break
8310      fi
8311    fi
8312  done
8313
8314  cd ..
8315  rm -rf conftest.dir
8316else
8317  am_cv_CXX_dependencies_compiler_type=none
8318fi
8319
8320fi
8321echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8322echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8323CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8324
8325
8326
8327if
8328  test "x$enable_dependency_tracking" != xno \
8329  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8330  am__fastdepCXX_TRUE=
8331  am__fastdepCXX_FALSE='#'
8332else
8333  am__fastdepCXX_TRUE='#'
8334  am__fastdepCXX_FALSE=
8335fi
8336
8337
8338
8339
8340if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8341    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8342    (test "X$CXX" != "Xg++"))) ; then
8343  ac_ext=cc
8344ac_cpp='$CXXCPP $CPPFLAGS'
8345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8348echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8349echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8350if test -z "$CXXCPP"; then
8351  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8352  echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354      # Double quotes because CXXCPP needs to be expanded
8355    for CXXCPP in "$CXX -E" "/lib/cpp"
8356    do
8357      ac_preproc_ok=false
8358for ac_cxx_preproc_warn_flag in '' yes
8359do
8360  # Use a header file that comes with gcc, so configuring glibc
8361  # with a fresh cross-compiler works.
8362  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8363  # <limits.h> exists even on freestanding compilers.
8364  # On the NeXT, cc -E runs the code through the compiler's parser,
8365  # not just through cpp. "Syntax error" is here to catch this case.
8366  cat >conftest.$ac_ext <<_ACEOF
8367/* confdefs.h.  */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h.  */
8372#ifdef __STDC__
8373# include <limits.h>
8374#else
8375# include <assert.h>
8376#endif
8377                     Syntax error
8378_ACEOF
8379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8380  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8381  ac_status=$?
8382  grep -v '^ *+' conftest.er1 >conftest.err
8383  rm -f conftest.er1
8384  cat conftest.err >&5
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); } >/dev/null; then
8387  if test -s conftest.err; then
8388    ac_cpp_err=$ac_cxx_preproc_warn_flag
8389    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8390  else
8391    ac_cpp_err=
8392  fi
8393else
8394  ac_cpp_err=yes
8395fi
8396if test -z "$ac_cpp_err"; then
8397  :
8398else
8399  echo "$as_me: failed program was:" >&5
8400sed 's/^/| /' conftest.$ac_ext >&5
8401
8402  # Broken: fails on valid input.
8403continue
8404fi
8405rm -f conftest.err conftest.$ac_ext
8406
8407  # OK, works on sane cases.  Now check whether non-existent headers
8408  # can be detected and how.
8409  cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h.  */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h.  */
8415#include <ac_nonexistent.h>
8416_ACEOF
8417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8418  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8419  ac_status=$?
8420  grep -v '^ *+' conftest.er1 >conftest.err
8421  rm -f conftest.er1
8422  cat conftest.err >&5
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); } >/dev/null; then
8425  if test -s conftest.err; then
8426    ac_cpp_err=$ac_cxx_preproc_warn_flag
8427    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8428  else
8429    ac_cpp_err=
8430  fi
8431else
8432  ac_cpp_err=yes
8433fi
8434if test -z "$ac_cpp_err"; then
8435  # Broken: success on invalid input.
8436continue
8437else
8438  echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
8441  # Passes both tests.
8442ac_preproc_ok=:
8443break
8444fi
8445rm -f conftest.err conftest.$ac_ext
8446
8447done
8448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8449rm -f conftest.err conftest.$ac_ext
8450if $ac_preproc_ok; then
8451  break
8452fi
8453
8454    done
8455    ac_cv_prog_CXXCPP=$CXXCPP
8456
8457fi
8458  CXXCPP=$ac_cv_prog_CXXCPP
8459else
8460  ac_cv_prog_CXXCPP=$CXXCPP
8461fi
8462echo "$as_me:$LINENO: result: $CXXCPP" >&5
8463echo "${ECHO_T}$CXXCPP" >&6
8464ac_preproc_ok=false
8465for ac_cxx_preproc_warn_flag in '' yes
8466do
8467  # Use a header file that comes with gcc, so configuring glibc
8468  # with a fresh cross-compiler works.
8469  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8470  # <limits.h> exists even on freestanding compilers.
8471  # On the NeXT, cc -E runs the code through the compiler's parser,
8472  # not just through cpp. "Syntax error" is here to catch this case.
8473  cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h.  */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h.  */
8479#ifdef __STDC__
8480# include <limits.h>
8481#else
8482# include <assert.h>
8483#endif
8484                     Syntax error
8485_ACEOF
8486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8487  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8488  ac_status=$?
8489  grep -v '^ *+' conftest.er1 >conftest.err
8490  rm -f conftest.er1
8491  cat conftest.err >&5
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); } >/dev/null; then
8494  if test -s conftest.err; then
8495    ac_cpp_err=$ac_cxx_preproc_warn_flag
8496    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8497  else
8498    ac_cpp_err=
8499  fi
8500else
8501  ac_cpp_err=yes
8502fi
8503if test -z "$ac_cpp_err"; then
8504  :
8505else
8506  echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509  # Broken: fails on valid input.
8510continue
8511fi
8512rm -f conftest.err conftest.$ac_ext
8513
8514  # OK, works on sane cases.  Now check whether non-existent headers
8515  # can be detected and how.
8516  cat >conftest.$ac_ext <<_ACEOF
8517/* confdefs.h.  */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h.  */
8522#include <ac_nonexistent.h>
8523_ACEOF
8524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8525  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8526  ac_status=$?
8527  grep -v '^ *+' conftest.er1 >conftest.err
8528  rm -f conftest.er1
8529  cat conftest.err >&5
8530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531  (exit $ac_status); } >/dev/null; then
8532  if test -s conftest.err; then
8533    ac_cpp_err=$ac_cxx_preproc_warn_flag
8534    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8535  else
8536    ac_cpp_err=
8537  fi
8538else
8539  ac_cpp_err=yes
8540fi
8541if test -z "$ac_cpp_err"; then
8542  # Broken: success on invalid input.
8543continue
8544else
8545  echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548  # Passes both tests.
8549ac_preproc_ok=:
8550break
8551fi
8552rm -f conftest.err conftest.$ac_ext
8553
8554done
8555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8556rm -f conftest.err conftest.$ac_ext
8557if $ac_preproc_ok; then
8558  :
8559else
8560  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8561See \`config.log' for more details." >&5
8562echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8563See \`config.log' for more details." >&2;}
8564   { (exit 1); exit 1; }; }
8565fi
8566
8567ac_ext=cc
8568ac_cpp='$CXXCPP $CPPFLAGS'
8569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8572
8573fi
8574
8575
8576
8577# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8578
8579# find the maximum length of command line arguments
8580echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8581echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8582if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8583  echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585    i=0
8586  teststring="ABCD"
8587
8588  case $build_os in
8589  msdosdjgpp*)
8590    # On DJGPP, this test can blow up pretty badly due to problems in libc
8591    # (any single argument exceeding 2000 bytes causes a buffer overrun
8592    # during glob expansion).  Even if it were fixed, the result of this
8593    # check would be larger than it should be.
8594    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8595    ;;
8596
8597  gnu*)
8598    # Under GNU Hurd, this test is not required because there is
8599    # no limit to the length of command line arguments.
8600    # Libtool will interpret -1 as no limit whatsoever
8601    lt_cv_sys_max_cmd_len=-1;
8602    ;;
8603
8604  cygwin* | mingw*)
8605    # On Win9x/ME, this test blows up -- it succeeds, but takes
8606    # about 5 minutes as the teststring grows exponentially.
8607    # Worse, since 9x/ME are not pre-emptively multitasking,
8608    # you end up with a "frozen" computer, even though with patience
8609    # the test eventually succeeds (with a max line length of 256k).
8610    # Instead, let's just punt: use the minimum linelength reported by
8611    # all of the supported platforms: 8192 (on NT/2K/XP).
8612    lt_cv_sys_max_cmd_len=8192;
8613    ;;
8614
8615  amigaos*)
8616    # On AmigaOS with pdksh, this test takes hours, literally.
8617    # So we just punt and use a minimum line length of 8192.
8618    lt_cv_sys_max_cmd_len=8192;
8619    ;;
8620
8621  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8622    # This has been around since 386BSD, at least.  Likely further.
8623    if test -x /sbin/sysctl; then
8624      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8625    elif test -x /usr/sbin/sysctl; then
8626      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8627    else
8628      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8629    fi
8630    # And add a safety zone
8631    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8632    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8633    ;;
8634
8635  interix*)
8636    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8637    lt_cv_sys_max_cmd_len=196608
8638    ;;
8639
8640  osf*)
8641    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8642    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8643    # nice to cause kernel panics so lets avoid the loop below.
8644    # First set a reasonable default.
8645    lt_cv_sys_max_cmd_len=16384
8646    #
8647    if test -x /sbin/sysconfig; then
8648      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8649        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8650      esac
8651    fi
8652    ;;
8653  sco3.2v5*)
8654    lt_cv_sys_max_cmd_len=102400
8655    ;;
8656  sysv5* | sco5v6* | sysv4.2uw2*)
8657    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8658    if test -n "$kargmax"; then
8659      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8660    else
8661      lt_cv_sys_max_cmd_len=32768
8662    fi
8663    ;;
8664  *)
8665    # If test is not a shell built-in, we'll probably end up computing a
8666    # maximum length that is only half of the actual maximum length, but
8667    # we can't tell.
8668    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8669    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8670               = "XX$teststring") >/dev/null 2>&1 &&
8671            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8672            lt_cv_sys_max_cmd_len=$new_result &&
8673            test $i != 17 # 1/2 MB should be enough
8674    do
8675      i=`expr $i + 1`
8676      teststring=$teststring$teststring
8677    done
8678    teststring=
8679    # Add a significant safety factor because C++ compilers can tack on massive
8680    # amounts of additional arguments before passing them to the linker.
8681    # It appears as though 1/2 is a usable value.
8682    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8683    ;;
8684  esac
8685
8686fi
8687
8688if test -n $lt_cv_sys_max_cmd_len ; then
8689  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8690echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8691else
8692  echo "$as_me:$LINENO: result: none" >&5
8693echo "${ECHO_T}none" >&6
8694fi
8695
8696
8697
8698
8699# Check for command to grab the raw symbol name followed by C symbol from nm.
8700echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8701echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8702if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8703  echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705
8706# These are sane defaults that work on at least a few old systems.
8707# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8708
8709# Character class describing NM global symbol codes.
8710symcode='[BCDEGRST]'
8711
8712# Regexp to match symbols that can be accessed directly from C.
8713sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8714
8715# Transform an extracted symbol line into a proper C declaration
8716lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8717
8718# Transform an extracted symbol line into symbol name and symbol address
8719lt_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'"
8720
8721# Define system-specific variables.
8722case $host_os in
8723aix*)
8724  symcode='[BCDT]'
8725  ;;
8726cygwin* | mingw* | pw32*)
8727  symcode='[ABCDGISTW]'
8728  ;;
8729hpux*) # Its linker distinguishes data from code symbols
8730  if test "$host_cpu" = ia64; then
8731    symcode='[ABCDEGRST]'
8732  fi
8733  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8734  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'"
8735  ;;
8736linux*)
8737  if test "$host_cpu" = ia64; then
8738    symcode='[ABCDGIRSTW]'
8739    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8740    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'"
8741  fi
8742  ;;
8743irix* | nonstopux*)
8744  symcode='[BCDEGRST]'
8745  ;;
8746osf*)
8747  symcode='[BCDEGQRST]'
8748  ;;
8749solaris*)
8750  symcode='[BDRT]'
8751  ;;
8752sco3.2v5*)
8753  symcode='[DT]'
8754  ;;
8755sysv4.2uw2*)
8756  symcode='[DT]'
8757  ;;
8758sysv5* | sco5v6* | unixware* | OpenUNIX*)
8759  symcode='[ABDT]'
8760  ;;
8761sysv4)
8762  symcode='[DFNSTU]'
8763  ;;
8764esac
8765
8766# Handle CRLF in mingw tool chain
8767opt_cr=
8768case $build_os in
8769mingw*)
8770  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8771  ;;
8772esac
8773
8774# If we're using GNU nm, then use its standard symbol codes.
8775case `$NM -V 2>&1` in
8776*GNU* | *'with BFD'*)
8777  symcode='[ABCDGIRSTW]' ;;
8778esac
8779
8780# Try without a prefix undercore, then with it.
8781for ac_symprfx in "" "_"; do
8782
8783  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8784  symxfrm="\\1 $ac_symprfx\\2 \\2"
8785
8786  # Write the raw and C identifiers.
8787  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8788
8789  # Check to see that the pipe works correctly.
8790  pipe_works=no
8791
8792  rm -f conftest*
8793  cat > conftest.$ac_ext <<EOF
8794#ifdef __cplusplus
8795extern "C" {
8796#endif
8797char nm_test_var;
8798void nm_test_func(){}
8799#ifdef __cplusplus
8800}
8801#endif
8802int main(){nm_test_var='a';nm_test_func();return(0);}
8803EOF
8804
8805  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806  (eval $ac_compile) 2>&5
8807  ac_status=$?
8808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809  (exit $ac_status); }; then
8810    # Now try to grab the symbols.
8811    nlist=conftest.nm
8812    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8813  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); } && test -s "$nlist"; then
8817      # Try sorting and uniquifying the output.
8818      if sort "$nlist" | uniq > "$nlist"T; then
8819        mv -f "$nlist"T "$nlist"
8820      else
8821        rm -f "$nlist"T
8822      fi
8823
8824      # Make sure that we snagged all the symbols we need.
8825      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8826        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8827          cat <<EOF > conftest.$ac_ext
8828#ifdef __cplusplus
8829extern "C" {
8830#endif
8831
8832EOF
8833          # Now generate the symbol file.
8834          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8835
8836          cat <<EOF >> conftest.$ac_ext
8837#if defined (__STDC__) && __STDC__
8838# define lt_ptr_t void *
8839#else
8840# define lt_ptr_t char *
8841# define const
8842#endif
8843
8844/* The mapping between symbol names and symbols. */
8845const struct {
8846  const char *name;
8847  lt_ptr_t address;
8848}
8849lt_preloaded_symbols[] =
8850{
8851EOF
8852          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8853          cat <<\EOF >> conftest.$ac_ext
8854  {0, (lt_ptr_t) 0}
8855};
8856
8857#ifdef __cplusplus
8858}
8859#endif
8860EOF
8861          # Now try linking the two files.
8862          mv conftest.$ac_objext conftstm.$ac_objext
8863          lt_save_LIBS="$LIBS"
8864          lt_save_CFLAGS="$CFLAGS"
8865          LIBS="conftstm.$ac_objext"
8866          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8867          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868  (eval $ac_link) 2>&5
8869  ac_status=$?
8870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8872            pipe_works=yes
8873          fi
8874          LIBS="$lt_save_LIBS"
8875          CFLAGS="$lt_save_CFLAGS"
8876        else
8877          echo "cannot find nm_test_func in $nlist" >&5
8878        fi
8879      else
8880        echo "cannot find nm_test_var in $nlist" >&5
8881      fi
8882    else
8883      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8884    fi
8885  else
8886    echo "$progname: failed program was:" >&5
8887    cat conftest.$ac_ext >&5
8888  fi
8889  rm -f conftest* conftst*
8890
8891  # Do not use the global_symbol_pipe unless it works.
8892  if test "$pipe_works" = yes; then
8893    break
8894  else
8895    lt_cv_sys_global_symbol_pipe=
8896  fi
8897done
8898
8899fi
8900
8901if test -z "$lt_cv_sys_global_symbol_pipe"; then
8902  lt_cv_sys_global_symbol_to_cdecl=
8903fi
8904if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8905  echo "$as_me:$LINENO: result: failed" >&5
8906echo "${ECHO_T}failed" >&6
8907else
8908  echo "$as_me:$LINENO: result: ok" >&5
8909echo "${ECHO_T}ok" >&6
8910fi
8911
8912echo "$as_me:$LINENO: checking for objdir" >&5
8913echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8914if test "${lt_cv_objdir+set}" = set; then
8915  echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917  rm -f .libs 2>/dev/null
8918mkdir .libs 2>/dev/null
8919if test -d .libs; then
8920  lt_cv_objdir=.libs
8921else
8922  # MS-DOS does not allow filenames that begin with a dot.
8923  lt_cv_objdir=_libs
8924fi
8925rmdir .libs 2>/dev/null
8926fi
8927echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8928echo "${ECHO_T}$lt_cv_objdir" >&6
8929objdir=$lt_cv_objdir
8930
8931
8932
8933
8934
8935case $host_os in
8936aix3*)
8937  # AIX sometimes has problems with the GCC collect2 program.  For some
8938  # reason, if we set the COLLECT_NAMES environment variable, the problems
8939  # vanish in a puff of smoke.
8940  if test "X${COLLECT_NAMES+set}" != Xset; then
8941    COLLECT_NAMES=
8942    export COLLECT_NAMES
8943  fi
8944  ;;
8945esac
8946
8947# Sed substitution that helps us do robust quoting.  It backslashifies
8948# metacharacters that are still active within double-quoted strings.
8949Xsed='sed -e 1s/^X//'
8950sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8951
8952# Same as above, but do not quote variable references.
8953double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8954
8955# Sed substitution to delay expansion of an escaped shell variable in a
8956# double_quote_subst'ed string.
8957delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8958
8959# Sed substitution to avoid accidental globbing in evaled expressions
8960no_glob_subst='s/\*/\\\*/g'
8961
8962# Constants:
8963rm="rm -f"
8964
8965# Global variables:
8966default_ofile=libtool
8967can_build_shared=yes
8968
8969# All known linkers require a `.a' archive for static linking (except MSVC,
8970# which needs '.lib').
8971libext=a
8972ltmain="$ac_aux_dir/ltmain.sh"
8973ofile="$default_ofile"
8974with_gnu_ld="$lt_cv_prog_gnu_ld"
8975
8976if test -n "$ac_tool_prefix"; then
8977  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8978set dummy ${ac_tool_prefix}ar; ac_word=$2
8979echo "$as_me:$LINENO: checking for $ac_word" >&5
8980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8981if test "${ac_cv_prog_AR+set}" = set; then
8982  echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984  if test -n "$AR"; then
8985  ac_cv_prog_AR="$AR" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990  IFS=$as_save_IFS
8991  test -z "$as_dir" && as_dir=.
8992  for ac_exec_ext in '' $ac_executable_extensions; do
8993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994    ac_cv_prog_AR="${ac_tool_prefix}ar"
8995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996    break 2
8997  fi
8998done
8999done
9000
9001fi
9002fi
9003AR=$ac_cv_prog_AR
9004if test -n "$AR"; then
9005  echo "$as_me:$LINENO: result: $AR" >&5
9006echo "${ECHO_T}$AR" >&6
9007else
9008  echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
9010fi
9011
9012fi
9013if test -z "$ac_cv_prog_AR"; then
9014  ac_ct_AR=$AR
9015  # Extract the first word of "ar", so it can be a program name with args.
9016set dummy ar; ac_word=$2
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9020  echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022  if test -n "$ac_ct_AR"; then
9023  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028  IFS=$as_save_IFS
9029  test -z "$as_dir" && as_dir=.
9030  for ac_exec_ext in '' $ac_executable_extensions; do
9031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032    ac_cv_prog_ac_ct_AR="ar"
9033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034    break 2
9035  fi
9036done
9037done
9038
9039  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9040fi
9041fi
9042ac_ct_AR=$ac_cv_prog_ac_ct_AR
9043if test -n "$ac_ct_AR"; then
9044  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9045echo "${ECHO_T}$ac_ct_AR" >&6
9046else
9047  echo "$as_me:$LINENO: result: no" >&5
9048echo "${ECHO_T}no" >&6
9049fi
9050
9051  AR=$ac_ct_AR
9052else
9053  AR="$ac_cv_prog_AR"
9054fi
9055
9056if test -n "$ac_tool_prefix"; then
9057  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9058set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9059echo "$as_me:$LINENO: checking for $ac_word" >&5
9060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061if test "${ac_cv_prog_RANLIB+set}" = set; then
9062  echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064  if test -n "$RANLIB"; then
9065  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9066else
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070  IFS=$as_save_IFS
9071  test -z "$as_dir" && as_dir=.
9072  for ac_exec_ext in '' $ac_executable_extensions; do
9073  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9076    break 2
9077  fi
9078done
9079done
9080
9081fi
9082fi
9083RANLIB=$ac_cv_prog_RANLIB
9084if test -n "$RANLIB"; then
9085  echo "$as_me:$LINENO: result: $RANLIB" >&5
9086echo "${ECHO_T}$RANLIB" >&6
9087else
9088  echo "$as_me:$LINENO: result: no" >&5
9089echo "${ECHO_T}no" >&6
9090fi
9091
9092fi
9093if test -z "$ac_cv_prog_RANLIB"; then
9094  ac_ct_RANLIB=$RANLIB
9095  # Extract the first word of "ranlib", so it can be a program name with args.
9096set dummy ranlib; ac_word=$2
9097echo "$as_me:$LINENO: checking for $ac_word" >&5
9098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9099if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9100  echo $ECHO_N "(cached) $ECHO_C" >&6
9101else
9102  if test -n "$ac_ct_RANLIB"; then
9103  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9104else
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108  IFS=$as_save_IFS
9109  test -z "$as_dir" && as_dir=.
9110  for ac_exec_ext in '' $ac_executable_extensions; do
9111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112    ac_cv_prog_ac_ct_RANLIB="ranlib"
9113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9114    break 2
9115  fi
9116done
9117done
9118
9119  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9120fi
9121fi
9122ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9123if test -n "$ac_ct_RANLIB"; then
9124  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9125echo "${ECHO_T}$ac_ct_RANLIB" >&6
9126else
9127  echo "$as_me:$LINENO: result: no" >&5
9128echo "${ECHO_T}no" >&6
9129fi
9130
9131  RANLIB=$ac_ct_RANLIB
9132else
9133  RANLIB="$ac_cv_prog_RANLIB"
9134fi
9135
9136if test -n "$ac_tool_prefix"; then
9137  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9138set dummy ${ac_tool_prefix}strip; ac_word=$2
9139echo "$as_me:$LINENO: checking for $ac_word" >&5
9140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9141if test "${ac_cv_prog_STRIP+set}" = set; then
9142  echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144  if test -n "$STRIP"; then
9145  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9146else
9147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148for as_dir in $PATH
9149do
9150  IFS=$as_save_IFS
9151  test -z "$as_dir" && as_dir=.
9152  for ac_exec_ext in '' $ac_executable_extensions; do
9153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9154    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9156    break 2
9157  fi
9158done
9159done
9160
9161fi
9162fi
9163STRIP=$ac_cv_prog_STRIP
9164if test -n "$STRIP"; then
9165  echo "$as_me:$LINENO: result: $STRIP" >&5
9166echo "${ECHO_T}$STRIP" >&6
9167else
9168  echo "$as_me:$LINENO: result: no" >&5
9169echo "${ECHO_T}no" >&6
9170fi
9171
9172fi
9173if test -z "$ac_cv_prog_STRIP"; then
9174  ac_ct_STRIP=$STRIP
9175  # Extract the first word of "strip", so it can be a program name with args.
9176set dummy strip; ac_word=$2
9177echo "$as_me:$LINENO: checking for $ac_word" >&5
9178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9179if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9180  echo $ECHO_N "(cached) $ECHO_C" >&6
9181else
9182  if test -n "$ac_ct_STRIP"; then
9183  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9184else
9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $PATH
9187do
9188  IFS=$as_save_IFS
9189  test -z "$as_dir" && as_dir=.
9190  for ac_exec_ext in '' $ac_executable_extensions; do
9191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192    ac_cv_prog_ac_ct_STRIP="strip"
9193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9194    break 2
9195  fi
9196done
9197done
9198
9199  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9200fi
9201fi
9202ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9203if test -n "$ac_ct_STRIP"; then
9204  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9205echo "${ECHO_T}$ac_ct_STRIP" >&6
9206else
9207  echo "$as_me:$LINENO: result: no" >&5
9208echo "${ECHO_T}no" >&6
9209fi
9210
9211  STRIP=$ac_ct_STRIP
9212else
9213  STRIP="$ac_cv_prog_STRIP"
9214fi
9215
9216
9217old_CC="$CC"
9218old_CFLAGS="$CFLAGS"
9219
9220# Set sane defaults for various variables
9221test -z "$AR" && AR=ar
9222test -z "$AR_FLAGS" && AR_FLAGS=cru
9223test -z "$AS" && AS=as
9224test -z "$CC" && CC=cc
9225test -z "$LTCC" && LTCC=$CC
9226test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9227test -z "$DLLTOOL" && DLLTOOL=dlltool
9228test -z "$LD" && LD=ld
9229test -z "$LN_S" && LN_S="ln -s"
9230test -z "$MAGIC_CMD" && MAGIC_CMD=file
9231test -z "$NM" && NM=nm
9232test -z "$SED" && SED=sed
9233test -z "$OBJDUMP" && OBJDUMP=objdump
9234test -z "$RANLIB" && RANLIB=:
9235test -z "$STRIP" && STRIP=:
9236test -z "$ac_objext" && ac_objext=o
9237
9238# Determine commands to create old-style static archives.
9239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9240old_postinstall_cmds='chmod 644 $oldlib'
9241old_postuninstall_cmds=
9242
9243if test -n "$RANLIB"; then
9244  case $host_os in
9245  openbsd*)
9246    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9247    ;;
9248  *)
9249    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9250    ;;
9251  esac
9252  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9253fi
9254
9255for cc_temp in $compiler""; do
9256  case $cc_temp in
9257    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9258    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9259    \-*) ;;
9260    *) break;;
9261  esac
9262done
9263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9264
9265
9266# Only perform the check for file, if the check method requires it
9267case $deplibs_check_method in
9268file_magic*)
9269  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9270    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9271echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9272if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9273  echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275  case $MAGIC_CMD in
9276[\\/*] |  ?:[\\/]*)
9277  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9278  ;;
9279*)
9280  lt_save_MAGIC_CMD="$MAGIC_CMD"
9281  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9282  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9283  for ac_dir in $ac_dummy; do
9284    IFS="$lt_save_ifs"
9285    test -z "$ac_dir" && ac_dir=.
9286    if test -f $ac_dir/${ac_tool_prefix}file; then
9287      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9288      if test -n "$file_magic_test_file"; then
9289        case $deplibs_check_method in
9290        "file_magic "*)
9291          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9292          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9294            $EGREP "$file_magic_regex" > /dev/null; then
9295            :
9296          else
9297            cat <<EOF 1>&2
9298
9299*** Warning: the command libtool uses to detect shared libraries,
9300*** $file_magic_cmd, produces output that libtool cannot recognize.
9301*** The result is that libtool may fail to recognize shared libraries
9302*** as such.  This will affect the creation of libtool libraries that
9303*** depend on shared libraries, but programs linked with such libtool
9304*** libraries will work regardless of this problem.  Nevertheless, you
9305*** may want to report the problem to your system manager and/or to
9306*** bug-libtool@gnu.org
9307
9308EOF
9309          fi ;;
9310        esac
9311      fi
9312      break
9313    fi
9314  done
9315  IFS="$lt_save_ifs"
9316  MAGIC_CMD="$lt_save_MAGIC_CMD"
9317  ;;
9318esac
9319fi
9320
9321MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9322if test -n "$MAGIC_CMD"; then
9323  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9324echo "${ECHO_T}$MAGIC_CMD" >&6
9325else
9326  echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
9328fi
9329
9330if test -z "$lt_cv_path_MAGIC_CMD"; then
9331  if test -n "$ac_tool_prefix"; then
9332    echo "$as_me:$LINENO: checking for file" >&5
9333echo $ECHO_N "checking for file... $ECHO_C" >&6
9334if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9335  echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337  case $MAGIC_CMD in
9338[\\/*] |  ?:[\\/]*)
9339  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9340  ;;
9341*)
9342  lt_save_MAGIC_CMD="$MAGIC_CMD"
9343  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9344  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9345  for ac_dir in $ac_dummy; do
9346    IFS="$lt_save_ifs"
9347    test -z "$ac_dir" && ac_dir=.
9348    if test -f $ac_dir/file; then
9349      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9350      if test -n "$file_magic_test_file"; then
9351        case $deplibs_check_method in
9352        "file_magic "*)
9353          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9354          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9355          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9356            $EGREP "$file_magic_regex" > /dev/null; then
9357            :
9358          else
9359            cat <<EOF 1>&2
9360
9361*** Warning: the command libtool uses to detect shared libraries,
9362*** $file_magic_cmd, produces output that libtool cannot recognize.
9363*** The result is that libtool may fail to recognize shared libraries
9364*** as such.  This will affect the creation of libtool libraries that
9365*** depend on shared libraries, but programs linked with such libtool
9366*** libraries will work regardless of this problem.  Nevertheless, you
9367*** may want to report the problem to your system manager and/or to
9368*** bug-libtool@gnu.org
9369
9370EOF
9371          fi ;;
9372        esac
9373      fi
9374      break
9375    fi
9376  done
9377  IFS="$lt_save_ifs"
9378  MAGIC_CMD="$lt_save_MAGIC_CMD"
9379  ;;
9380esac
9381fi
9382
9383MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9384if test -n "$MAGIC_CMD"; then
9385  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9386echo "${ECHO_T}$MAGIC_CMD" >&6
9387else
9388  echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
9390fi
9391
9392  else
9393    MAGIC_CMD=:
9394  fi
9395fi
9396
9397  fi
9398  ;;
9399esac
9400
9401enable_dlopen=no
9402enable_win32_dll=no
9403
9404# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9405if test "${enable_libtool_lock+set}" = set; then
9406  enableval="$enable_libtool_lock"
9407
9408fi;
9409test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9410
9411
9412# Check whether --with-pic or --without-pic was given.
9413if test "${with_pic+set}" = set; then
9414  withval="$with_pic"
9415  pic_mode="$withval"
9416else
9417  pic_mode=default
9418fi;
9419test -z "$pic_mode" && pic_mode=default
9420
9421# Use C for the default configuration in the libtool script
9422tagname=
9423lt_save_CC="$CC"
9424ac_ext=c
9425ac_cpp='$CPP $CPPFLAGS'
9426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9428ac_compiler_gnu=$ac_cv_c_compiler_gnu
9429
9430
9431# Source file extension for C test sources.
9432ac_ext=c
9433
9434# Object file extension for compiled C test sources.
9435objext=o
9436objext=$objext
9437
9438# Code to be used in simple compile tests
9439lt_simple_compile_test_code="int some_variable = 0;\n"
9440
9441# Code to be used in simple link tests
9442lt_simple_link_test_code='int main(){return(0);}\n'
9443
9444
9445# If no C compiler was specified, use CC.
9446LTCC=${LTCC-"$CC"}
9447
9448# If no C compiler flags were specified, use CFLAGS.
9449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9450
9451# Allow CC to be a program name with arguments.
9452compiler=$CC
9453
9454
9455# save warnings/boilerplate of simple test code
9456ac_outfile=conftest.$ac_objext
9457printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9458eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9459_lt_compiler_boilerplate=`cat conftest.err`
9460$rm conftest*
9461
9462ac_outfile=conftest.$ac_objext
9463printf "$lt_simple_link_test_code" >conftest.$ac_ext
9464eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9465_lt_linker_boilerplate=`cat conftest.err`
9466$rm conftest*
9467
9468
9469## CAVEAT EMPTOR:
9470## There is no encapsulation within the following macros, do not change
9471## the running order or otherwise move them around unless you know exactly
9472## what you are doing...
9473
9474lt_prog_compiler_no_builtin_flag=
9475
9476if test "$GCC" = yes; then
9477  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9478
9479
9480echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9481echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9482if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9483  echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485  lt_cv_prog_compiler_rtti_exceptions=no
9486  ac_outfile=conftest.$ac_objext
9487   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9488   lt_compiler_flag="-fno-rtti -fno-exceptions"
9489   # Insert the option either (1) after the last *FLAGS variable, or
9490   # (2) before a word containing "conftest.", or (3) at the end.
9491   # Note that $ac_compile itself does not contain backslashes and begins
9492   # with a dollar sign (not a hyphen), so the echo should work correctly.
9493   # The option is referenced via a variable to avoid confusing sed.
9494   lt_compile=`echo "$ac_compile" | $SED \
9495   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9497   -e 's:$: $lt_compiler_flag:'`
9498   (eval echo "\"\$as_me:9498: $lt_compile\"" >&5)
9499   (eval "$lt_compile" 2>conftest.err)
9500   ac_status=$?
9501   cat conftest.err >&5
9502   echo "$as_me:9502: \$? = $ac_status" >&5
9503   if (exit $ac_status) && test -s "$ac_outfile"; then
9504     # The compiler can only warn and ignore the option if not recognized
9505     # So say no if there are warnings other than the usual output.
9506     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9507     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9508     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9509       lt_cv_prog_compiler_rtti_exceptions=yes
9510     fi
9511   fi
9512   $rm conftest*
9513
9514fi
9515echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9516echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9517
9518if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9519    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9520else
9521    :
9522fi
9523
9524fi
9525
9526lt_prog_compiler_wl=
9527lt_prog_compiler_pic=
9528lt_prog_compiler_static=
9529
9530echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9531echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9532
9533  if test "$GCC" = yes; then
9534    lt_prog_compiler_wl='-Wl,'
9535    lt_prog_compiler_static='-static'
9536
9537    case $host_os in
9538      aix*)
9539      # All AIX code is PIC.
9540      if test "$host_cpu" = ia64; then
9541        # AIX 5 now supports IA64 processor
9542        lt_prog_compiler_static='-Bstatic'
9543      fi
9544      ;;
9545
9546    amigaos*)
9547      # FIXME: we need at least 68020 code to build shared libraries, but
9548      # adding the `-m68020' flag to GCC prevents building anything better,
9549      # like `-m68040'.
9550      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9551      ;;
9552
9553    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9554      # PIC is the default for these OSes.
9555      ;;
9556
9557    mingw* | pw32* | os2*)
9558      # This hack is so that the source file can tell whether it is being
9559      # built for inclusion in a dll (and should export symbols for example).
9560      lt_prog_compiler_pic='-DDLL_EXPORT'
9561      ;;
9562
9563    darwin* | rhapsody*)
9564      # PIC is the default on this platform
9565      # Common symbols not allowed in MH_DYLIB files
9566      lt_prog_compiler_pic='-fno-common'
9567      ;;
9568
9569    interix3*)
9570      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9571      # Instead, we relocate shared libraries at runtime.
9572      ;;
9573
9574    msdosdjgpp*)
9575      # Just because we use GCC doesn't mean we suddenly get shared libraries
9576      # on systems that don't support them.
9577      lt_prog_compiler_can_build_shared=no
9578      enable_shared=no
9579      ;;
9580
9581    sysv4*MP*)
9582      if test -d /usr/nec; then
9583        lt_prog_compiler_pic=-Kconform_pic
9584      fi
9585      ;;
9586
9587    hpux*)
9588      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9589      # not for PA HP-UX.
9590      case $host_cpu in
9591      hppa*64*|ia64*)
9592        # +Z the default
9593        ;;
9594      *)
9595        lt_prog_compiler_pic='-fPIC'
9596        ;;
9597      esac
9598      ;;
9599
9600    *)
9601      lt_prog_compiler_pic='-fPIC'
9602      ;;
9603    esac
9604  else
9605    # PORTME Check for flag to pass linker flags through the system compiler.
9606    case $host_os in
9607    aix*)
9608      lt_prog_compiler_wl='-Wl,'
9609      if test "$host_cpu" = ia64; then
9610        # AIX 5 now supports IA64 processor
9611        lt_prog_compiler_static='-Bstatic'
9612      else
9613        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9614      fi
9615      ;;
9616      darwin*)
9617        # PIC is the default on this platform
9618        # Common symbols not allowed in MH_DYLIB files
9619       case $cc_basename in
9620         xlc*)
9621         lt_prog_compiler_pic='-qnocommon'
9622         lt_prog_compiler_wl='-Wl,'
9623         ;;
9624       esac
9625       ;;
9626
9627    mingw* | pw32* | os2*)
9628      # This hack is so that the source file can tell whether it is being
9629      # built for inclusion in a dll (and should export symbols for example).
9630      lt_prog_compiler_pic='-DDLL_EXPORT'
9631      ;;
9632
9633    hpux9* | hpux10* | hpux11*)
9634      lt_prog_compiler_wl='-Wl,'
9635      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9636      # not for PA HP-UX.
9637      case $host_cpu in
9638      hppa*64*|ia64*)
9639        # +Z the default
9640        ;;
9641      *)
9642        lt_prog_compiler_pic='+Z'
9643        ;;
9644      esac
9645      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9646      lt_prog_compiler_static='${wl}-a ${wl}archive'
9647      ;;
9648
9649    irix5* | irix6* | nonstopux*)
9650      lt_prog_compiler_wl='-Wl,'
9651      # PIC (with -KPIC) is the default.
9652      lt_prog_compiler_static='-non_shared'
9653      ;;
9654
9655    newsos6)
9656      lt_prog_compiler_pic='-KPIC'
9657      lt_prog_compiler_static='-Bstatic'
9658      ;;
9659
9660    linux*)
9661      case $cc_basename in
9662      icc* | ecc*)
9663        lt_prog_compiler_wl='-Wl,'
9664        lt_prog_compiler_pic='-KPIC'
9665        lt_prog_compiler_static='-static'
9666        ;;
9667      pgcc* | pgf77* | pgf90* | pgf95*)
9668        # Portland Group compilers (*not* the Pentium gcc compiler,
9669        # which looks to be a dead project)
9670        lt_prog_compiler_wl='-Wl,'
9671        lt_prog_compiler_pic='-fpic'
9672        lt_prog_compiler_static='-Bstatic'
9673        ;;
9674      ccc*)
9675        lt_prog_compiler_wl='-Wl,'
9676        # All Alpha code is PIC.
9677        lt_prog_compiler_static='-non_shared'
9678        ;;
9679      esac
9680      ;;
9681
9682    osf3* | osf4* | osf5*)
9683      lt_prog_compiler_wl='-Wl,'
9684      # All OSF/1 code is PIC.
9685      lt_prog_compiler_static='-non_shared'
9686      ;;
9687
9688    solaris*)
9689      lt_prog_compiler_pic='-KPIC'
9690      lt_prog_compiler_static='-Bstatic'
9691      case $cc_basename in
9692      f77* | f90* | f95*)
9693        lt_prog_compiler_wl='-Qoption ld ';;
9694      *)
9695        lt_prog_compiler_wl='-Wl,';;
9696      esac
9697      ;;
9698
9699    sunos4*)
9700      lt_prog_compiler_wl='-Qoption ld '
9701      lt_prog_compiler_pic='-PIC'
9702      lt_prog_compiler_static='-Bstatic'
9703      ;;
9704
9705    sysv4 | sysv4.2uw2* | sysv4.3*)
9706      lt_prog_compiler_wl='-Wl,'
9707      lt_prog_compiler_pic='-KPIC'
9708      lt_prog_compiler_static='-Bstatic'
9709      ;;
9710
9711    sysv4*MP*)
9712      if test -d /usr/nec ;then
9713        lt_prog_compiler_pic='-Kconform_pic'
9714        lt_prog_compiler_static='-Bstatic'
9715      fi
9716      ;;
9717
9718    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9719      lt_prog_compiler_wl='-Wl,'
9720      lt_prog_compiler_pic='-KPIC'
9721      lt_prog_compiler_static='-Bstatic'
9722      ;;
9723
9724    unicos*)
9725      lt_prog_compiler_wl='-Wl,'
9726      lt_prog_compiler_can_build_shared=no
9727      ;;
9728
9729    uts4*)
9730      lt_prog_compiler_pic='-pic'
9731      lt_prog_compiler_static='-Bstatic'
9732      ;;
9733
9734    *)
9735      lt_prog_compiler_can_build_shared=no
9736      ;;
9737    esac
9738  fi
9739
9740echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9741echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9742
9743#
9744# Check to make sure the PIC flag actually works.
9745#
9746if test -n "$lt_prog_compiler_pic"; then
9747
9748echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9750if test "${lt_prog_compiler_pic_works+set}" = set; then
9751  echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753  lt_prog_compiler_pic_works=no
9754  ac_outfile=conftest.$ac_objext
9755   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9756   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9757   # Insert the option either (1) after the last *FLAGS variable, or
9758   # (2) before a word containing "conftest.", or (3) at the end.
9759   # Note that $ac_compile itself does not contain backslashes and begins
9760   # with a dollar sign (not a hyphen), so the echo should work correctly.
9761   # The option is referenced via a variable to avoid confusing sed.
9762   lt_compile=`echo "$ac_compile" | $SED \
9763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9765   -e 's:$: $lt_compiler_flag:'`
9766   (eval echo "\"\$as_me:9766: $lt_compile\"" >&5)
9767   (eval "$lt_compile" 2>conftest.err)
9768   ac_status=$?
9769   cat conftest.err >&5
9770   echo "$as_me:9770: \$? = $ac_status" >&5
9771   if (exit $ac_status) && test -s "$ac_outfile"; then
9772     # The compiler can only warn and ignore the option if not recognized
9773     # So say no if there are warnings other than the usual output.
9774     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9775     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9776     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9777       lt_prog_compiler_pic_works=yes
9778     fi
9779   fi
9780   $rm conftest*
9781
9782fi
9783echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9784echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9785
9786if test x"$lt_prog_compiler_pic_works" = xyes; then
9787    case $lt_prog_compiler_pic in
9788     "" | " "*) ;;
9789     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9790     esac
9791else
9792    lt_prog_compiler_pic=
9793     lt_prog_compiler_can_build_shared=no
9794fi
9795
9796fi
9797case $host_os in
9798  # For platforms which do not support PIC, -DPIC is meaningless:
9799  *djgpp*)
9800    lt_prog_compiler_pic=
9801    ;;
9802  *)
9803    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9804    ;;
9805esac
9806
9807#
9808# Check to make sure the static flag actually works.
9809#
9810wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9811echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9812echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9813if test "${lt_prog_compiler_static_works+set}" = set; then
9814  echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816  lt_prog_compiler_static_works=no
9817   save_LDFLAGS="$LDFLAGS"
9818   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9819   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9820   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9821     # The linker can only warn and ignore the option if not recognized
9822     # So say no if there are warnings
9823     if test -s conftest.err; then
9824       # Append any errors to the config.log.
9825       cat conftest.err 1>&5
9826       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9827       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9828       if diff conftest.exp conftest.er2 >/dev/null; then
9829         lt_prog_compiler_static_works=yes
9830       fi
9831     else
9832       lt_prog_compiler_static_works=yes
9833     fi
9834   fi
9835   $rm conftest*
9836   LDFLAGS="$save_LDFLAGS"
9837
9838fi
9839echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9840echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9841
9842if test x"$lt_prog_compiler_static_works" = xyes; then
9843    :
9844else
9845    lt_prog_compiler_static=
9846fi
9847
9848
9849echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9851if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9852  echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854  lt_cv_prog_compiler_c_o=no
9855   $rm -r conftest 2>/dev/null
9856   mkdir conftest
9857   cd conftest
9858   mkdir out
9859   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9860
9861   lt_compiler_flag="-o out/conftest2.$ac_objext"
9862   # Insert the option either (1) after the last *FLAGS variable, or
9863   # (2) before a word containing "conftest.", or (3) at the end.
9864   # Note that $ac_compile itself does not contain backslashes and begins
9865   # with a dollar sign (not a hyphen), so the echo should work correctly.
9866   lt_compile=`echo "$ac_compile" | $SED \
9867   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9868   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9869   -e 's:$: $lt_compiler_flag:'`
9870   (eval echo "\"\$as_me:9870: $lt_compile\"" >&5)
9871   (eval "$lt_compile" 2>out/conftest.err)
9872   ac_status=$?
9873   cat out/conftest.err >&5
9874   echo "$as_me:9874: \$? = $ac_status" >&5
9875   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9876   then
9877     # The compiler can only warn and ignore the option if not recognized
9878     # So say no if there are warnings
9879     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9880     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9881     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9882       lt_cv_prog_compiler_c_o=yes
9883     fi
9884   fi
9885   chmod u+w . 2>&5
9886   $rm conftest*
9887   # SGI C++ compiler will create directory out/ii_files/ for
9888   # template instantiation
9889   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9890   $rm out/* && rmdir out
9891   cd ..
9892   rmdir conftest
9893   $rm conftest*
9894
9895fi
9896echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9897echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9898
9899
9900hard_links="nottested"
9901if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9902  # do not overwrite the value of need_locks provided by the user
9903  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9905  hard_links=yes
9906  $rm conftest*
9907  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9908  touch conftest.a
9909  ln conftest.a conftest.b 2>&5 || hard_links=no
9910  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9911  echo "$as_me:$LINENO: result: $hard_links" >&5
9912echo "${ECHO_T}$hard_links" >&6
9913  if test "$hard_links" = no; then
9914    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9916    need_locks=warn
9917  fi
9918else
9919  need_locks=no
9920fi
9921
9922echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9924
9925  runpath_var=
9926  allow_undefined_flag=
9927  enable_shared_with_static_runtimes=no
9928  archive_cmds=
9929  archive_expsym_cmds=
9930  old_archive_From_new_cmds=
9931  old_archive_from_expsyms_cmds=
9932  export_dynamic_flag_spec=
9933  whole_archive_flag_spec=
9934  thread_safe_flag_spec=
9935  hardcode_libdir_flag_spec=
9936  hardcode_libdir_flag_spec_ld=
9937  hardcode_libdir_separator=
9938  hardcode_direct=no
9939  hardcode_minus_L=no
9940  hardcode_shlibpath_var=unsupported
9941  link_all_deplibs=unknown
9942  hardcode_automatic=no
9943  module_cmds=
9944  module_expsym_cmds=
9945  always_export_symbols=no
9946  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9947  # include_expsyms should be a list of space-separated symbols to be *always*
9948  # included in the symbol list
9949  include_expsyms=
9950  # exclude_expsyms can be an extended regexp of symbols to exclude
9951  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9952  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9953  # as well as any symbol that contains `d'.
9954  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9955  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9956  # platforms (ab)use it in PIC code, but their linkers get confused if
9957  # the symbol is explicitly referenced.  Since portable code cannot
9958  # rely on this symbol name, it's probably fine to never include it in
9959  # preloaded symbol tables.
9960  extract_expsyms_cmds=
9961  # Just being paranoid about ensuring that cc_basename is set.
9962  for cc_temp in $compiler""; do
9963  case $cc_temp in
9964    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9965    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9966    \-*) ;;
9967    *) break;;
9968  esac
9969done
9970cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9971
9972  case $host_os in
9973  cygwin* | mingw* | pw32*)
9974    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9975    # When not using gcc, we currently assume that we are using
9976    # Microsoft Visual C++.
9977    if test "$GCC" != yes; then
9978      with_gnu_ld=no
9979    fi
9980    ;;
9981  interix*)
9982    # we just hope/assume this is gcc and not c89 (= MSVC++)
9983    with_gnu_ld=yes
9984    ;;
9985  openbsd*)
9986    with_gnu_ld=no
9987    ;;
9988  esac
9989
9990  ld_shlibs=yes
9991  if test "$with_gnu_ld" = yes; then
9992    # If archive_cmds runs LD, not CC, wlarc should be empty
9993    wlarc='${wl}'
9994
9995    # Set some defaults for GNU ld with shared library support. These
9996    # are reset later if shared libraries are not supported. Putting them
9997    # here allows them to be overridden if necessary.
9998    runpath_var=LD_RUN_PATH
9999    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10000    export_dynamic_flag_spec='${wl}--export-dynamic'
10001    # ancient GNU ld didn't support --whole-archive et. al.
10002    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10003        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10004      else
10005        whole_archive_flag_spec=
10006    fi
10007    supports_anon_versioning=no
10008    case `$LD -v 2>/dev/null` in
10009      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10010      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10011      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10012      *\ 2.11.*) ;; # other 2.11 versions
10013      *) supports_anon_versioning=yes ;;
10014    esac
10015
10016    # See if GNU ld supports shared libraries.
10017    case $host_os in
10018    aix3* | aix4* | aix5*)
10019      # On AIX/PPC, the GNU linker is very broken
10020      if test "$host_cpu" != ia64; then
10021        ld_shlibs=no
10022        cat <<EOF 1>&2
10023
10024*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10025*** to be unable to reliably create shared libraries on AIX.
10026*** Therefore, libtool is disabling shared libraries support.  If you
10027*** really care for shared libraries, you may want to modify your PATH
10028*** so that a non-GNU linker is found, and then restart.
10029
10030EOF
10031      fi
10032      ;;
10033
10034    amigaos*)
10035      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)'
10036      hardcode_libdir_flag_spec='-L$libdir'
10037      hardcode_minus_L=yes
10038
10039      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10040      # that the semantics of dynamic libraries on AmigaOS, at least up
10041      # to version 4, is to share data among multiple programs linked
10042      # with the same dynamic library.  Since this doesn't match the
10043      # behavior of shared libraries on other platforms, we can't use
10044      # them.
10045      ld_shlibs=no
10046      ;;
10047
10048    beos*)
10049      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10050        allow_undefined_flag=unsupported
10051        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10052        # support --undefined.  This deserves some investigation.  FIXME
10053        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054      else
10055        ld_shlibs=no
10056      fi
10057      ;;
10058
10059    cygwin* | mingw* | pw32*)
10060      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10061      # as there is no search path for DLLs.
10062      hardcode_libdir_flag_spec='-L$libdir'
10063      allow_undefined_flag=unsupported
10064      always_export_symbols=no
10065      enable_shared_with_static_runtimes=yes
10066      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10067
10068      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10069        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10070        # If the export-symbols file already is a .def file (1st line
10071        # is EXPORTS), use it as is; otherwise, prepend...
10072        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10073          cp $export_symbols $output_objdir/$soname.def;
10074        else
10075          echo EXPORTS > $output_objdir/$soname.def;
10076          cat $export_symbols >> $output_objdir/$soname.def;
10077        fi~
10078        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079      else
10080        ld_shlibs=no
10081      fi
10082      ;;
10083
10084    interix3*)
10085      hardcode_direct=no
10086      hardcode_shlibpath_var=no
10087      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088      export_dynamic_flag_spec='${wl}-E'
10089      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10090      # Instead, shared libraries are loaded at an image base (0x10000000 by
10091      # default) and relocated if they conflict, which is a slow very memory
10092      # consuming and fragmenting process.  To avoid this, we pick a random,
10093      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10094      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10095      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10096      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'
10097      ;;
10098
10099    linux*)
10100      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10101        tmp_addflag=
10102        case $cc_basename,$host_cpu in
10103        pgcc*)                          # Portland Group C compiler
10104          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'
10105          tmp_addflag=' $pic_flag'
10106          ;;
10107        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10108          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'
10109          tmp_addflag=' $pic_flag -Mnomain' ;;
10110        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10111          tmp_addflag=' -i_dynamic' ;;
10112        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10113          tmp_addflag=' -i_dynamic -nofor_main' ;;
10114        ifc* | ifort*)                  # Intel Fortran compiler
10115          tmp_addflag=' -nofor_main' ;;
10116        esac
10117        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118
10119        if test $supports_anon_versioning = yes; then
10120          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10121  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10122  $echo "local: *; };" >> $output_objdir/$libname.ver~
10123          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10124        fi
10125      else
10126        ld_shlibs=no
10127      fi
10128      ;;
10129
10130    netbsd*)
10131      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10133        wlarc=
10134      else
10135        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10137      fi
10138      ;;
10139
10140    solaris*)
10141      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10142        ld_shlibs=no
10143        cat <<EOF 1>&2
10144
10145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10146*** create shared libraries on Solaris systems.  Therefore, libtool
10147*** is disabling shared libraries support.  We urge you to upgrade GNU
10148*** binutils to release 2.9.1 or newer.  Another option is to modify
10149*** your PATH or compiler configuration so that the native linker is
10150*** used, and then restart.
10151
10152EOF
10153      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10154        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156      else
10157        ld_shlibs=no
10158      fi
10159      ;;
10160
10161    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10162      case `$LD -v 2>&1` in
10163        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10164        ld_shlibs=no
10165        cat <<_LT_EOF 1>&2
10166
10167*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10168*** reliably create shared libraries on SCO systems.  Therefore, libtool
10169*** is disabling shared libraries support.  We urge you to upgrade GNU
10170*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10171*** your PATH or compiler configuration so that the native linker is
10172*** used, and then restart.
10173
10174_LT_EOF
10175        ;;
10176        *)
10177          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10178            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10179            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10180            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10181          else
10182            ld_shlibs=no
10183          fi
10184        ;;
10185      esac
10186      ;;
10187
10188    sunos4*)
10189      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10190      wlarc=
10191      hardcode_direct=yes
10192      hardcode_shlibpath_var=no
10193      ;;
10194
10195    *)
10196      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10197        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10199      else
10200        ld_shlibs=no
10201      fi
10202      ;;
10203    esac
10204
10205    if test "$ld_shlibs" = no; then
10206      runpath_var=
10207      hardcode_libdir_flag_spec=
10208      export_dynamic_flag_spec=
10209      whole_archive_flag_spec=
10210    fi
10211  else
10212    # PORTME fill in a description of your system's linker (not GNU ld)
10213    case $host_os in
10214    aix3*)
10215      allow_undefined_flag=unsupported
10216      always_export_symbols=yes
10217      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'
10218      # Note: this linker hardcodes the directories in LIBPATH if there
10219      # are no directories specified by -L.
10220      hardcode_minus_L=yes
10221      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10222        # Neither direct hardcoding nor static linking is supported with a
10223        # broken collect2.
10224        hardcode_direct=unsupported
10225      fi
10226      ;;
10227
10228    aix4* | aix5*)
10229      if test "$host_cpu" = ia64; then
10230        # On IA64, the linker does run time linking by default, so we don't
10231        # have to do anything special.
10232        aix_use_runtimelinking=no
10233        exp_sym_flag='-Bexport'
10234        no_entry_flag=""
10235      else
10236        # If we're using GNU nm, then we don't want the "-C" option.
10237        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10238        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10239          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'
10240        else
10241          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'
10242        fi
10243        aix_use_runtimelinking=no
10244
10245        # Test if we are trying to use run time linking or normal
10246        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10247        # need to do runtime linking.
10248        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10249          for ld_flag in $LDFLAGS; do
10250          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10251            aix_use_runtimelinking=yes
10252            break
10253          fi
10254          done
10255          ;;
10256        esac
10257
10258        exp_sym_flag='-bexport'
10259        no_entry_flag='-bnoentry'
10260      fi
10261
10262      # When large executables or shared objects are built, AIX ld can
10263      # have problems creating the table of contents.  If linking a library
10264      # or program results in "error TOC overflow" add -mminimal-toc to
10265      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10266      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10267
10268      archive_cmds=''
10269      hardcode_direct=yes
10270      hardcode_libdir_separator=':'
10271      link_all_deplibs=yes
10272
10273      if test "$GCC" = yes; then
10274        case $host_os in aix4.[012]|aix4.[012].*)
10275        # We only want to do this on AIX 4.2 and lower, the check
10276        # below for broken collect2 doesn't work under 4.3+
10277          collect2name=`${CC} -print-prog-name=collect2`
10278          if test -f "$collect2name" && \
10279           strings "$collect2name" | grep resolve_lib_name >/dev/null
10280          then
10281          # We have reworked collect2
10282          hardcode_direct=yes
10283          else
10284          # We have old collect2
10285          hardcode_direct=unsupported
10286          # It fails to find uninstalled libraries when the uninstalled
10287          # path is not listed in the libpath.  Setting hardcode_minus_L
10288          # to unsupported forces relinking
10289          hardcode_minus_L=yes
10290          hardcode_libdir_flag_spec='-L$libdir'
10291          hardcode_libdir_separator=
10292          fi
10293          ;;
10294        esac
10295        shared_flag='-shared'
10296        if test "$aix_use_runtimelinking" = yes; then
10297          shared_flag="$shared_flag "'${wl}-G'
10298        fi
10299      else
10300        # not using gcc
10301        if test "$host_cpu" = ia64; then
10302        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10303        # chokes on -Wl,-G. The following line is correct:
10304          shared_flag='-G'
10305        else
10306          if test "$aix_use_runtimelinking" = yes; then
10307            shared_flag='${wl}-G'
10308          else
10309            shared_flag='${wl}-bM:SRE'
10310          fi
10311        fi
10312      fi
10313
10314      # It seems that -bexpall does not export symbols beginning with
10315      # underscore (_), so it is better to generate a list of symbols to export.
10316      always_export_symbols=yes
10317      if test "$aix_use_runtimelinking" = yes; then
10318        # Warning - without using the other runtime loading flags (-brtl),
10319        # -berok will link without error, but may produce a broken library.
10320        allow_undefined_flag='-berok'
10321       # Determine the default libpath from the value encoded in an empty executable.
10322       cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h.  */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h.  */
10328
10329#ifdef F77_DUMMY_MAIN
10330
10331#  ifdef __cplusplus
10332     extern "C"
10333#  endif
10334   int F77_DUMMY_MAIN() { return 1; }
10335
10336#endif
10337int
10338main ()
10339{
10340
10341  ;
10342  return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
10346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347  (eval $ac_link) 2>conftest.er1
10348  ac_status=$?
10349  grep -v '^ *+' conftest.er1 >conftest.err
10350  rm -f conftest.er1
10351  cat conftest.err >&5
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); } &&
10354         { ac_try='test -z "$ac_c_werror_flag"
10355                         || test ! -s conftest.err'
10356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357  (eval $ac_try) 2>&5
10358  ac_status=$?
10359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360  (exit $ac_status); }; } &&
10361         { ac_try='test -s conftest$ac_exeext'
10362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363  (eval $ac_try) 2>&5
10364  ac_status=$?
10365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366  (exit $ac_status); }; }; then
10367
10368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10369}'`
10370# Check for a 64-bit object if we didn't find anything.
10371if 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; }
10372}'`; fi
10373else
10374  echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377fi
10378rm -f conftest.err conftest.$ac_objext \
10379      conftest$ac_exeext conftest.$ac_ext
10380if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10381
10382       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10383        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"
10384       else
10385        if test "$host_cpu" = ia64; then
10386          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10387          allow_undefined_flag="-z nodefs"
10388          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"
10389        else
10390         # Determine the default libpath from the value encoded in an empty executable.
10391         cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h.  */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h.  */
10397
10398#ifdef F77_DUMMY_MAIN
10399
10400#  ifdef __cplusplus
10401     extern "C"
10402#  endif
10403   int F77_DUMMY_MAIN() { return 1; }
10404
10405#endif
10406int
10407main ()
10408{
10409
10410  ;
10411  return 0;
10412}
10413_ACEOF
10414rm -f conftest.$ac_objext conftest$ac_exeext
10415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416  (eval $ac_link) 2>conftest.er1
10417  ac_status=$?
10418  grep -v '^ *+' conftest.er1 >conftest.err
10419  rm -f conftest.er1
10420  cat conftest.err >&5
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } &&
10423         { ac_try='test -z "$ac_c_werror_flag"
10424                         || test ! -s conftest.err'
10425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426  (eval $ac_try) 2>&5
10427  ac_status=$?
10428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429  (exit $ac_status); }; } &&
10430         { ac_try='test -s conftest$ac_exeext'
10431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432  (eval $ac_try) 2>&5
10433  ac_status=$?
10434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); }; }; then
10436
10437aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10438}'`
10439# Check for a 64-bit object if we didn't find anything.
10440if 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; }
10441}'`; fi
10442else
10443  echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446fi
10447rm -f conftest.err conftest.$ac_objext \
10448      conftest$ac_exeext conftest.$ac_ext
10449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10450
10451         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10452          # Warning - without using the other run time loading flags,
10453          # -berok will link without error, but may produce a broken library.
10454          no_undefined_flag=' ${wl}-bernotok'
10455          allow_undefined_flag=' ${wl}-berok'
10456          # Exported symbols can be pulled into shared objects from archives
10457          whole_archive_flag_spec='$convenience'
10458          archive_cmds_need_lc=yes
10459          # This is similar to how AIX traditionally builds its shared libraries.
10460          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'
10461        fi
10462      fi
10463      ;;
10464
10465    amigaos*)
10466      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)'
10467      hardcode_libdir_flag_spec='-L$libdir'
10468      hardcode_minus_L=yes
10469      # see comment about different semantics on the GNU ld section
10470      ld_shlibs=no
10471      ;;
10472
10473    bsdi[45]*)
10474      export_dynamic_flag_spec=-rdynamic
10475      ;;
10476
10477    cygwin* | mingw* | pw32*)
10478      # When not using gcc, we currently assume that we are using
10479      # Microsoft Visual C++.
10480      # hardcode_libdir_flag_spec is actually meaningless, as there is
10481      # no search path for DLLs.
10482      hardcode_libdir_flag_spec=' '
10483      allow_undefined_flag=unsupported
10484      # Tell ltmain to make .lib files, not .a files.
10485      libext=lib
10486      # Tell ltmain to make .dll files, not .so files.
10487      shrext_cmds=".dll"
10488      # FIXME: Setting linknames here is a bad hack.
10489      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10490      # The linker will automatically build a .lib file if we build a DLL.
10491      old_archive_From_new_cmds='true'
10492      # FIXME: Should let the user specify the lib program.
10493      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10494      fix_srcfile_path='`cygpath -w "$srcfile"`'
10495      enable_shared_with_static_runtimes=yes
10496      ;;
10497
10498    darwin* | rhapsody*)
10499      case $host_os in
10500        rhapsody* | darwin1.[012])
10501         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10502         ;;
10503       *) # Darwin 1.3 on
10504         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10505           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10506         else
10507           case ${MACOSX_DEPLOYMENT_TARGET} in
10508             10.[012])
10509               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10510               ;;
10511             10.*)
10512               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10513               ;;
10514           esac
10515         fi
10516         ;;
10517      esac
10518      archive_cmds_need_lc=no
10519      hardcode_direct=no
10520      hardcode_automatic=yes
10521      hardcode_shlibpath_var=unsupported
10522      whole_archive_flag_spec=''
10523      link_all_deplibs=yes
10524    if test "$GCC" = yes ; then
10525        output_verbose_link_cmd='echo'
10526        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10527      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10528      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10529      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}'
10530      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}'
10531    else
10532      case $cc_basename in
10533        xlc*)
10534         output_verbose_link_cmd='echo'
10535         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10536         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10537          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10538         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}'
10539          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}'
10540          ;;
10541       *)
10542         ld_shlibs=no
10543          ;;
10544      esac
10545    fi
10546      ;;
10547
10548    dgux*)
10549      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550      hardcode_libdir_flag_spec='-L$libdir'
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    freebsd1*)
10555      ld_shlibs=no
10556      ;;
10557
10558    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10559    # support.  Future versions do this automatically, but an explicit c++rt0.o
10560    # does not break anything, and helps significantly (at the cost of a little
10561    # extra space).
10562    freebsd2.2*)
10563      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10564      hardcode_libdir_flag_spec='-R$libdir'
10565      hardcode_direct=yes
10566      hardcode_shlibpath_var=no
10567      ;;
10568
10569    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10570    freebsd2*)
10571      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10572      hardcode_direct=yes
10573      hardcode_minus_L=yes
10574      hardcode_shlibpath_var=no
10575      ;;
10576
10577    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10578    freebsd* | kfreebsd*-gnu | dragonfly*)
10579      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10580      hardcode_libdir_flag_spec='-R$libdir'
10581      hardcode_direct=yes
10582      hardcode_shlibpath_var=no
10583      ;;
10584
10585    hpux9*)
10586      if test "$GCC" = yes; then
10587        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'
10588      else
10589        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'
10590      fi
10591      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10592      hardcode_libdir_separator=:
10593      hardcode_direct=yes
10594
10595      # hardcode_minus_L: Not really in the search PATH,
10596      # but as the default location of the library.
10597      hardcode_minus_L=yes
10598      export_dynamic_flag_spec='${wl}-E'
10599      ;;
10600
10601    hpux10*)
10602      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10603        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10604      else
10605        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10606      fi
10607      if test "$with_gnu_ld" = no; then
10608        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10609        hardcode_libdir_separator=:
10610
10611        hardcode_direct=yes
10612        export_dynamic_flag_spec='${wl}-E'
10613
10614        # hardcode_minus_L: Not really in the search PATH,
10615        # but as the default location of the library.
10616        hardcode_minus_L=yes
10617      fi
10618      ;;
10619
10620    hpux11*)
10621      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10622        case $host_cpu in
10623        hppa*64*)
10624          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10625          ;;
10626        ia64*)
10627          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10628          ;;
10629        *)
10630          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10631          ;;
10632        esac
10633      else
10634        case $host_cpu in
10635        hppa*64*)
10636          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10637          ;;
10638        ia64*)
10639          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10640          ;;
10641        *)
10642          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643          ;;
10644        esac
10645      fi
10646      if test "$with_gnu_ld" = no; then
10647        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10648        hardcode_libdir_separator=:
10649
10650        case $host_cpu in
10651        hppa*64*|ia64*)
10652          hardcode_libdir_flag_spec_ld='+b $libdir'
10653          hardcode_direct=no
10654          hardcode_shlibpath_var=no
10655          ;;
10656        *)
10657          hardcode_direct=yes
10658          export_dynamic_flag_spec='${wl}-E'
10659
10660          # hardcode_minus_L: Not really in the search PATH,
10661          # but as the default location of the library.
10662          hardcode_minus_L=yes
10663          ;;
10664        esac
10665      fi
10666      ;;
10667
10668    irix5* | irix6* | nonstopux*)
10669      if test "$GCC" = yes; then
10670        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'
10671      else
10672        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'
10673        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10674      fi
10675      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10676      hardcode_libdir_separator=:
10677      link_all_deplibs=yes
10678      ;;
10679
10680    netbsd*)
10681      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10682        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10683      else
10684        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10685      fi
10686      hardcode_libdir_flag_spec='-R$libdir'
10687      hardcode_direct=yes
10688      hardcode_shlibpath_var=no
10689      ;;
10690
10691    newsos6)
10692      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693      hardcode_direct=yes
10694      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10695      hardcode_libdir_separator=:
10696      hardcode_shlibpath_var=no
10697      ;;
10698
10699    openbsd*)
10700      hardcode_direct=yes
10701      hardcode_shlibpath_var=no
10702      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10703        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10704        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10705        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10706        export_dynamic_flag_spec='${wl}-E'
10707      else
10708       case $host_os in
10709         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10710           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10711           hardcode_libdir_flag_spec='-R$libdir'
10712           ;;
10713         *)
10714           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10715           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10716           ;;
10717       esac
10718      fi
10719      ;;
10720
10721    os2*)
10722      hardcode_libdir_flag_spec='-L$libdir'
10723      hardcode_minus_L=yes
10724      allow_undefined_flag=unsupported
10725      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'
10726      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10727      ;;
10728
10729    osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10733      else
10734        allow_undefined_flag=' -expect_unresolved \*'
10735        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'
10736      fi
10737      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10738      hardcode_libdir_separator=:
10739      ;;
10740
10741    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10742      if test "$GCC" = yes; then
10743        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10744        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'
10745        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746      else
10747        allow_undefined_flag=' -expect_unresolved \*'
10748        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'
10749        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10750        $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'
10751
10752        # Both c and cxx compiler support -rpath directly
10753        hardcode_libdir_flag_spec='-rpath $libdir'
10754      fi
10755      hardcode_libdir_separator=:
10756      ;;
10757
10758    solaris*)
10759      no_undefined_flag=' -z text'
10760      if test "$GCC" = yes; then
10761        wlarc='${wl}'
10762        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10763        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10764          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10765      else
10766        wlarc=''
10767        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10769        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10770      fi
10771      hardcode_libdir_flag_spec='-R$libdir'
10772      hardcode_shlibpath_var=no
10773      case $host_os in
10774      solaris2.[0-5] | solaris2.[0-5].*) ;;
10775      *)
10776        # The compiler driver will combine linker options so we
10777        # cannot just pass the convience library names through
10778        # without $wl, iff we do not link with $LD.
10779        # Luckily, gcc supports the same syntax we need for Sun Studio.
10780        # Supported since Solaris 2.6 (maybe 2.5.1?)
10781        case $wlarc in
10782        '')
10783          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10784        *)
10785          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' ;;
10786        esac ;;
10787      esac
10788      link_all_deplibs=yes
10789      ;;
10790
10791    sunos4*)
10792      if test "x$host_vendor" = xsequent; then
10793        # Use $CC to link under sequent, because it throws in some extra .o
10794        # files that make .init and .fini sections work.
10795        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10796      else
10797        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10798      fi
10799      hardcode_libdir_flag_spec='-L$libdir'
10800      hardcode_direct=yes
10801      hardcode_minus_L=yes
10802      hardcode_shlibpath_var=no
10803      ;;
10804