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

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

temporarily committing release candidate

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