source: ThirdParty/HSL/trunk/configure @ 2120

Last change on this file since 2120 was 2120, checked in by stefan, 10 years ago

no need for config_hsl.h; rerun autotools

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