source: ThirdParty/HSL/trunk/configure @ 2056

Last change on this file since 2056 was 2056, checked in by stefan, 11 years ago

add URL into .pc field; rerun autotools

  • Property svn:executable set to *
File size: 783.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyHSL trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyHSL'
431PACKAGE_TARNAME='thirdpartyhsl'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyHSL trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion HSL_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA77_TRUE COIN_HAS_MA77_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE HAVE_MXXX_CFLAGS F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_FC_set=${FC+set}
981ac_env_FC_value=$FC
982ac_cv_env_FC_set=${FC+set}
983ac_cv_env_FC_value=$FC
984ac_env_FCFLAGS_set=${FCFLAGS+set}
985ac_env_FCFLAGS_value=$FCFLAGS
986ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
987ac_cv_env_FCFLAGS_value=$FCFLAGS
988ac_env_CPP_set=${CPP+set}
989ac_env_CPP_value=$CPP
990ac_cv_env_CPP_set=${CPP+set}
991ac_cv_env_CPP_value=$CPP
992ac_env_CXX_set=${CXX+set}
993ac_env_CXX_value=$CXX
994ac_cv_env_CXX_set=${CXX+set}
995ac_cv_env_CXX_value=$CXX
996ac_env_CXXFLAGS_set=${CXXFLAGS+set}
997ac_env_CXXFLAGS_value=$CXXFLAGS
998ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
999ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1000ac_env_CXXCPP_set=${CXXCPP+set}
1001ac_env_CXXCPP_value=$CXXCPP
1002ac_cv_env_CXXCPP_set=${CXXCPP+set}
1003ac_cv_env_CXXCPP_value=$CXXCPP
1004
1005#
1006# Report the --help message.
1007#
1008if test "$ac_init_help" = "long"; then
1009  # Omit some internal or obsolete options to make the list less imposing.
1010  # This message is too long to be a string in the A/UX 3.1 sh.
1011  cat <<_ACEOF
1012\`configure' configures ThirdPartyHSL trunk to adapt to many kinds of systems.
1013
1014Usage: $0 [OPTION]... [VAR=VALUE]...
1015
1016To assign environment variables (e.g., CC, CFLAGS...), specify them as
1017VAR=VALUE.  See below for descriptions of some of the useful variables.
1018
1019Defaults for the options are specified in brackets.
1020
1021Configuration:
1022  -h, --help              display this help and exit
1023      --help=short        display options specific to this package
1024      --help=recursive    display the short help of all the included packages
1025  -V, --version           display version information and exit
1026  -q, --quiet, --silent   do not print \`checking...' messages
1027      --cache-file=FILE   cache test results in FILE [disabled]
1028  -C, --config-cache      alias for \`--cache-file=config.cache'
1029  -n, --no-create         do not create output files
1030      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1031
1032_ACEOF
1033
1034  cat <<_ACEOF
1035Installation directories:
1036  --prefix=PREFIX         install architecture-independent files in PREFIX
1037                          [$ac_default_prefix]
1038  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1039                          [PREFIX]
1040
1041By default, \`make install' will install all the files in
1042\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1043an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1044for instance \`--prefix=\$HOME'.
1045
1046For better control, use the options below.
1047
1048Fine tuning of the installation directories:
1049  --bindir=DIR           user executables [EPREFIX/bin]
1050  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1051  --libexecdir=DIR       program executables [EPREFIX/libexec]
1052  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1053  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1054  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1055  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1056  --libdir=DIR           object code libraries [EPREFIX/lib]
1057  --includedir=DIR       C header files [PREFIX/include]
1058  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1059  --infodir=DIR          info documentation [PREFIX/info]
1060  --mandir=DIR           man documentation [PREFIX/man]
1061_ACEOF
1062
1063  cat <<\_ACEOF
1064
1065Program names:
1066  --program-prefix=PREFIX            prepend PREFIX to installed program names
1067  --program-suffix=SUFFIX            append SUFFIX to installed program names
1068  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1069
1070System types:
1071  --build=BUILD     configure for building on BUILD [guessed]
1072  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1073_ACEOF
1074fi
1075
1076if test -n "$ac_init_help"; then
1077  case $ac_init_help in
1078     short | recursive ) echo "Configuration of ThirdPartyHSL trunk:";;
1079   esac
1080  cat <<\_ACEOF
1081
1082Optional Features:
1083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1085  --enable-loadable-library
1086                          compile stand-alone shared library for delayed
1087                          loading
1088  --enable-debug          compile all projects with debug options tests
1089  --enable-debug-hsl compile this project (HSL) with debug options
1090  --enable-doscompile     Under Cygwin, compile so that executables run under
1091                          DOS. Set to mingw to use gcc/g++/ld with
1092                          -mno-cygwin. Set to msvc to use cl/link (or
1093                          icl/link). Default when mentioned: mingw. Default
1094                          when not mentioned: disabled.
1095  --enable-pkg-config     use pkg-config if available (default is yes)
1096  --enable-static[=PKGS]
1097                          build static libraries [default=no]
1098  --disable-dependency-tracking  speeds up one-time build
1099  --enable-dependency-tracking   do not reject slow dependency extractors
1100  --enable-maintainer-mode  enable make rules and dependencies not useful
1101                          (and sometimes confusing) to the casual installer
1102  --enable-shared[=PKGS]
1103                          build shared libraries [default=yes]
1104  --enable-fast-install[=PKGS]
1105                          optimize for fast installation [default=yes]
1106  --disable-libtool-lock  avoid locking (might break parallel builds)
1107
1108Optional Packages:
1109  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1110  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1111  --with-hsl-verbosity specify the debug verbosity level for project HSL
1112  --with-hsl-checklevel specify the sanity check level for project HSL
1113  --with-coin-instdir     prefix of installation directory for precompiled
1114                          COIN packages
1115  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1116  --with-pic              try to use only PIC/non-PIC objects [default=use
1117                          both]
1118  --with-tags[=TAGS]
1119                          include additional configurations [automatic]
1120  --with-metis-lib linker flags for using package Metis
1121  --with-metis-incdir directory with header files for using package Metis
1122  --with-metis-datadir directory with data files for using package Metis
1123
1124Some influential environment variables:
1125  CDEFS       Additional -D flags to be used when compiling C code.
1126  ADD_CFLAGS  Additional C compiler options
1127  DBG_CFLAGS  Debug C compiler options
1128  OPT_CFLAGS  Optimize C compiler options
1129  CC          C compiler command
1130  CFLAGS      C compiler flags
1131  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1132              nonstandard directory <lib dir>
1133  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1134              headers in a nonstandard directory <include dir>
1135  MPICC       C MPI Compiler
1136  ADD_FFLAGS  Additional Fortran compiler options
1137  DBG_FFLAGS  Debug Fortran compiler options
1138  OPT_FFLAGS  Optimize Fortran compiler options
1139  F77         Fortran 77 compiler command
1140  FFLAGS      Fortran 77 compiler flags
1141  MPIF77      Fortran MPI Compiler
1142  PKG_CONFIG  path to pkg-config utility
1143  FC          Fortran compiler command
1144  FCFLAGS     Fortran compiler flags
1145  CPP         C preprocessor
1146  CXX         C++ compiler command
1147  CXXFLAGS    C++ compiler flags
1148  CXXCPP      C++ preprocessor
1149
1150Use these variables to override the choices made by `configure' or to help
1151it to find libraries and programs with nonstandard names/locations.
1152
1153Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1154_ACEOF
1155fi
1156
1157if test "$ac_init_help" = "recursive"; then
1158  # If there are subdirs, report their specific --help.
1159  ac_popdir=`pwd`
1160  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1161    test -d $ac_dir || continue
1162    ac_builddir=.
1163
1164if test "$ac_dir" != .; then
1165  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1166  # A "../" for each directory in $ac_dir_suffix.
1167  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1168else
1169  ac_dir_suffix= ac_top_builddir=
1170fi
1171
1172case $srcdir in
1173  .)  # No --srcdir option.  We are building in place.
1174    ac_srcdir=.
1175    if test -z "$ac_top_builddir"; then
1176       ac_top_srcdir=.
1177    else
1178       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1179    fi ;;
1180  [\\/]* | ?:[\\/]* )  # Absolute path.
1181    ac_srcdir=$srcdir$ac_dir_suffix;
1182    ac_top_srcdir=$srcdir ;;
1183  *) # Relative path.
1184    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1185    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1186esac
1187
1188# Do not use `cd foo && pwd` to compute absolute paths, because
1189# the directories may not exist.
1190case `pwd` in
1191.) ac_abs_builddir="$ac_dir";;
1192*)
1193  case "$ac_dir" in
1194  .) ac_abs_builddir=`pwd`;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1196  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1197  esac;;
1198esac
1199case $ac_abs_builddir in
1200.) ac_abs_top_builddir=${ac_top_builddir}.;;
1201*)
1202  case ${ac_top_builddir}. in
1203  .) ac_abs_top_builddir=$ac_abs_builddir;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1205  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1206  esac;;
1207esac
1208case $ac_abs_builddir in
1209.) ac_abs_srcdir=$ac_srcdir;;
1210*)
1211  case $ac_srcdir in
1212  .) ac_abs_srcdir=$ac_abs_builddir;;
1213  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1214  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1215  esac;;
1216esac
1217case $ac_abs_builddir in
1218.) ac_abs_top_srcdir=$ac_top_srcdir;;
1219*)
1220  case $ac_top_srcdir in
1221  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1222  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1223  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1224  esac;;
1225esac
1226
1227    cd $ac_dir
1228    # Check for guested configure; otherwise get Cygnus style configure.
1229    if test -f $ac_srcdir/configure.gnu; then
1230      echo
1231      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1232    elif test -f $ac_srcdir/configure; then
1233      echo
1234      $SHELL $ac_srcdir/configure  --help=recursive
1235    elif test -f $ac_srcdir/configure.ac ||
1236           test -f $ac_srcdir/configure.in; then
1237      echo
1238      $ac_configure --help
1239    else
1240      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1241    fi
1242    cd $ac_popdir
1243  done
1244fi
1245
1246test -n "$ac_init_help" && exit 0
1247if $ac_init_version; then
1248  cat <<\_ACEOF
1249ThirdPartyHSL configure trunk
1250generated by GNU Autoconf 2.59
1251
1252Copyright (C) 2003 Free Software Foundation, Inc.
1253This configure script is free software; the Free Software Foundation
1254gives unlimited permission to copy, distribute and modify it.
1255
1256
1257Copyright 2006, 2009 International Business Machines and others.
1258All Rights Reserved.
1259This file is part of the open source package Coin which is distributed
1260under the Eclipse Public License.
1261_ACEOF
1262  exit 0
1263fi
1264exec 5>config.log
1265cat >&5 <<_ACEOF
1266This file contains any messages produced by compilers while
1267running configure, to aid debugging if configure makes a mistake.
1268
1269It was created by ThirdPartyHSL $as_me trunk, which was
1270generated by GNU Autoconf 2.59.  Invocation command line was
1271
1272  $ $0 $@
1273
1274_ACEOF
1275{
1276cat <<_ASUNAME
1277## --------- ##
1278## Platform. ##
1279## --------- ##
1280
1281hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1282uname -m = `(uname -m) 2>/dev/null || echo unknown`
1283uname -r = `(uname -r) 2>/dev/null || echo unknown`
1284uname -s = `(uname -s) 2>/dev/null || echo unknown`
1285uname -v = `(uname -v) 2>/dev/null || echo unknown`
1286
1287/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1288/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1289
1290/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1291/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1292/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1293hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1294/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1295/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1296/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1297
1298_ASUNAME
1299
1300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1301for as_dir in $PATH
1302do
1303  IFS=$as_save_IFS
1304  test -z "$as_dir" && as_dir=.
1305  echo "PATH: $as_dir"
1306done
1307
1308} >&5
1309
1310cat >&5 <<_ACEOF
1311
1312
1313## ----------- ##
1314## Core tests. ##
1315## ----------- ##
1316
1317_ACEOF
1318
1319
1320# Keep a trace of the command line.
1321# Strip out --no-create and --no-recursion so they do not pile up.
1322# Strip out --silent because we don't want to record it for future runs.
1323# Also quote any args containing shell meta-characters.
1324# Make two passes to allow for proper duplicate-argument suppression.
1325ac_configure_args=
1326ac_configure_args0=
1327ac_configure_args1=
1328ac_sep=
1329ac_must_keep_next=false
1330for ac_pass in 1 2
1331do
1332  for ac_arg
1333  do
1334    case $ac_arg in
1335    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1336    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1337    | -silent | --silent | --silen | --sile | --sil)
1338      continue ;;
1339    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1340      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1341    esac
1342    case $ac_pass in
1343    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1344    2)
1345      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1346      if test $ac_must_keep_next = true; then
1347        ac_must_keep_next=false # Got value, back to normal.
1348      else
1349        case $ac_arg in
1350          *=* | --config-cache | -C | -disable-* | --disable-* \
1351          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1352          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1353          | -with-* | --with-* | -without-* | --without-* | --x)
1354            case "$ac_configure_args0 " in
1355              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1356            esac
1357            ;;
1358          -* ) ac_must_keep_next=true ;;
1359        esac
1360      fi
1361      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1362      # Get rid of the leading space.
1363      ac_sep=" "
1364      ;;
1365    esac
1366  done
1367done
1368$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1369$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1370
1371# When interrupted or exit'd, cleanup temporary files, and complete
1372# config.log.  We remove comments because anyway the quotes in there
1373# would cause problems or look ugly.
1374# WARNING: Be sure not to use single quotes in there, as some shells,
1375# such as our DU 5.0 friend, will then `close' the trap.
1376trap 'exit_status=$?
1377  # Save into config.log some information that might help in debugging.
1378  {
1379    echo
1380
1381    cat <<\_ASBOX
1382## ---------------- ##
1383## Cache variables. ##
1384## ---------------- ##
1385_ASBOX
1386    echo
1387    # The following way of writing the cache mishandles newlines in values,
1388{
1389  (set) 2>&1 |
1390    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1391    *ac_space=\ *)
1392      sed -n \
1393        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1394          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1395      ;;
1396    *)
1397      sed -n \
1398        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1399      ;;
1400    esac;
1401}
1402    echo
1403
1404    cat <<\_ASBOX
1405## ----------------- ##
1406## Output variables. ##
1407## ----------------- ##
1408_ASBOX
1409    echo
1410    for ac_var in $ac_subst_vars
1411    do
1412      eval ac_val=$`echo $ac_var`
1413      echo "$ac_var='"'"'$ac_val'"'"'"
1414    done | sort
1415    echo
1416
1417    if test -n "$ac_subst_files"; then
1418      cat <<\_ASBOX
1419## ------------- ##
1420## Output files. ##
1421## ------------- ##
1422_ASBOX
1423      echo
1424      for ac_var in $ac_subst_files
1425      do
1426        eval ac_val=$`echo $ac_var`
1427        echo "$ac_var='"'"'$ac_val'"'"'"
1428      done | sort
1429      echo
1430    fi
1431
1432    if test -s confdefs.h; then
1433      cat <<\_ASBOX
1434## ----------- ##
1435## confdefs.h. ##
1436## ----------- ##
1437_ASBOX
1438      echo
1439      sed "/^$/d" confdefs.h | sort
1440      echo
1441    fi
1442    test "$ac_signal" != 0 &&
1443      echo "$as_me: caught signal $ac_signal"
1444    echo "$as_me: exit $exit_status"
1445  } >&5
1446  rm -f core *.core &&
1447  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1448    exit $exit_status
1449     ' 0
1450for ac_signal in 1 2 13 15; do
1451  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1452done
1453ac_signal=0
1454
1455# confdefs.h avoids OS command line length limits that DEFS can exceed.
1456rm -rf conftest* confdefs.h
1457# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1458echo >confdefs.h
1459
1460# Predefined preprocessor variables.
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_NAME "$PACKAGE_NAME"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1469_ACEOF
1470
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_VERSION "$PACKAGE_VERSION"
1474_ACEOF
1475
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_STRING "$PACKAGE_STRING"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1484_ACEOF
1485
1486
1487# Let the site file select an alternate cache file if it wants to.
1488# Prefer explicitly selected file to automatically selected ones.
1489if test -z "$CONFIG_SITE"; then
1490  if test "x$prefix" != xNONE; then
1491    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1492  else
1493    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1494  fi
1495fi
1496for ac_site_file in $CONFIG_SITE; do
1497  if test -r "$ac_site_file"; then
1498    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1499echo "$as_me: loading site script $ac_site_file" >&6;}
1500    sed 's/^/| /' "$ac_site_file" >&5
1501    . "$ac_site_file"
1502  fi
1503done
1504
1505if test -r "$cache_file"; then
1506  # Some versions of bash will fail to source /dev/null (special
1507  # files actually), so we avoid doing that.
1508  if test -f "$cache_file"; then
1509    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1510echo "$as_me: loading cache $cache_file" >&6;}
1511    case $cache_file in
1512      [\\/]* | ?:[\\/]* ) . $cache_file;;
1513      *)                      . ./$cache_file;;
1514    esac
1515  fi
1516else
1517  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1518echo "$as_me: creating cache $cache_file" >&6;}
1519  >$cache_file
1520fi
1521
1522# Check that the precious variables saved in the cache have kept the same
1523# value.
1524ac_cache_corrupted=false
1525for ac_var in `(set) 2>&1 |
1526               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1527  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1528  eval ac_new_set=\$ac_env_${ac_var}_set
1529  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1530  eval ac_new_val="\$ac_env_${ac_var}_value"
1531  case $ac_old_set,$ac_new_set in
1532    set,)
1533      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1534echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1535      ac_cache_corrupted=: ;;
1536    ,set)
1537      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1538echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1539      ac_cache_corrupted=: ;;
1540    ,);;
1541    *)
1542      if test "x$ac_old_val" != "x$ac_new_val"; then
1543        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1544echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1545        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1546echo "$as_me:   former value:  $ac_old_val" >&2;}
1547        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1548echo "$as_me:   current value: $ac_new_val" >&2;}
1549        ac_cache_corrupted=:
1550      fi;;
1551  esac
1552  # Pass precious variables to config.status.
1553  if test "$ac_new_set" = set; then
1554    case $ac_new_val in
1555    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1556      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1557    *) ac_arg=$ac_var=$ac_new_val ;;
1558    esac
1559    case " $ac_configure_args " in
1560      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1561      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1562    esac
1563  fi
1564done
1565if $ac_cache_corrupted; then
1566  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1567echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1568  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1569echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1570   { (exit 1); exit 1; }; }
1571fi
1572
1573ac_ext=c
1574ac_cpp='$CPP $CPPFLAGS'
1575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1577ac_compiler_gnu=$ac_cv_c_compiler_gnu
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608# List one file in the package so that the configure script can test
1609# whether the package is actually there
1610# Here we don't know yet which files are actually provided...
1611
1612
1613# Where should everything be installed by default?  Here, we want it
1614# to be installed directly in 'bin', 'lib', 'include' subdirectories
1615# of the directory where configure is run.  The default would be
1616# /usr/local.
1617
1618
1619
1620# As backup, we make sure we don't loose an FLIBS if it has been set
1621# by the user
1622save_FLIBS="$FLIBS"
1623
1624# A useful makefile conditional that is always false
1625
1626
1627if false; then
1628  ALWAYS_FALSE_TRUE=
1629  ALWAYS_FALSE_FALSE='#'
1630else
1631  ALWAYS_FALSE_TRUE='#'
1632  ALWAYS_FALSE_FALSE=
1633fi
1634
1635
1636# We set the following variable so that we know later in AC_COIN_FINALIZE
1637# that we are in a project main directory
1638coin_projectdir=yes
1639
1640# Set the project's version number
1641if test "xHSL" != x; then
1642
1643cat >>confdefs.h <<_ACEOF
1644#define HSL_VERSION "$PACKAGE_VERSION"
1645_ACEOF
1646
1647fi
1648
1649# Set the project's SVN revision number. The complicated sed expression
1650# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1651# as a single number.
1652# Extract the first word of "svnversion", so it can be a program name with args.
1653set dummy svnversion; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_have_svnversion+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  if test -n "$have_svnversion"; then
1660  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665  IFS=$as_save_IFS
1666  test -z "$as_dir" && as_dir=.
1667  for ac_exec_ext in '' $ac_executable_extensions; do
1668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669    ac_cv_prog_have_svnversion="yes"
1670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671    break 2
1672  fi
1673done
1674done
1675
1676  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1677fi
1678fi
1679have_svnversion=$ac_cv_prog_have_svnversion
1680if test -n "$have_svnversion"; then
1681  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1682echo "${ECHO_T}$have_svnversion" >&6
1683else
1684  echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688if test "x$have_svnversion" = xyes && test "xHSL" != x; then
1689
1690  svn_rev_tmp=`cd $srcdir/$coin_has_hsl ; svnversion`
1691  HSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1692  if test $HSL_SVN_REV != exported; then
1693
1694cat >>confdefs.h <<_ACEOF
1695#define HSL_SVN_REV $HSL_SVN_REV
1696_ACEOF
1697
1698  fi
1699fi
1700
1701# Capture libtool library version, if given.
1702
1703
1704
1705#############################################################################
1706#                         Standard build tool stuff                         #
1707#############################################################################
1708
1709# Get the system type
1710ac_aux_dir=
1711for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1712  if test -f $ac_dir/install-sh; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/install-sh -c"
1715    break
1716  elif test -f $ac_dir/install.sh; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/install.sh -c"
1719    break
1720  elif test -f $ac_dir/shtool; then
1721    ac_aux_dir=$ac_dir
1722    ac_install_sh="$ac_aux_dir/shtool install -c"
1723    break
1724  fi
1725done
1726if test -z "$ac_aux_dir"; then
1727  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1728echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1729   { (exit 1); exit 1; }; }
1730fi
1731ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1732ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1733ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1734
1735# Make sure we can run config.sub.
1736$ac_config_sub sun4 >/dev/null 2>&1 ||
1737  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1738echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1739   { (exit 1); exit 1; }; }
1740
1741echo "$as_me:$LINENO: checking build system type" >&5
1742echo $ECHO_N "checking build system type... $ECHO_C" >&6
1743if test "${ac_cv_build+set}" = set; then
1744  echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746  ac_cv_build_alias=$build_alias
1747test -z "$ac_cv_build_alias" &&
1748  ac_cv_build_alias=`$ac_config_guess`
1749test -z "$ac_cv_build_alias" &&
1750  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1751echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1752   { (exit 1); exit 1; }; }
1753ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1754  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1755echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1756   { (exit 1); exit 1; }; }
1757
1758fi
1759echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1760echo "${ECHO_T}$ac_cv_build" >&6
1761build=$ac_cv_build
1762build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1763build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1764build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1765
1766
1767
1768# turn off warnings and pedantic mode since they could make trouble on some platforms,
1769# and we couldn't fix them anyway
1770coin_skip_warn_fflags=yes
1771
1772# provide flag to allow compilation of a stand-alone shared library
1773# Check whether --enable-loadable-library or --disable-loadable-library was given.
1774if test "${enable_loadable_library+set}" = set; then
1775  enableval="$enable_loadable_library"
1776
1777fi;
1778
1779# Check if user wants to produce debugging code
1780
1781echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1782echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1783
1784# Check whether --enable-debug or --disable-debug was given.
1785if test "${enable_debug+set}" = set; then
1786  enableval="$enable_debug"
1787  case "${enableval}" in
1788   yes) coin_debug_compile=true
1789        if test "${enable_shared+set}" = set; then :; else
1790          enable_shared=no
1791        fi
1792        ;;
1793   no)  coin_debug_compile=false
1794        ;;
1795   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1796echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1797   { (exit 1); exit 1; }; }
1798        ;;
1799esac
1800else
1801  coin_debug_compile=false
1802fi;
1803
1804# Check whether --enable-debug-hsl or --disable-debug-hsl was given.
1805if test "${enable_debug_hsl+set}" = set; then
1806  enableval="$enable_debug_hsl"
1807  case "${enableval}" in
1808    yes) coin_debug_compile=true
1809         enable_shared=no
1810         ;;
1811    no)  coin_debug_compile=false
1812         ;;
1813    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-hsl" >&5
1814echo "$as_me: error: bad value ${enableval} for --enable-debug-hsl" >&2;}
1815   { (exit 1); exit 1; }; }
1816         ;;
1817 esac
1818else
1819  :
1820fi;
1821
1822 # m4_ifvaln([HSL],
1823
1824if test $coin_debug_compile = true; then
1825  echo "$as_me:$LINENO: result: yes" >&5
1826echo "${ECHO_T}yes" >&6
1827else
1828  echo "$as_me:$LINENO: result: no" >&5
1829echo "${ECHO_T}no" >&6
1830fi
1831
1832
1833# Check whether --with-hsl-verbosity or --without-hsl-verbosity was given.
1834if test "${with_hsl_verbosity+set}" = set; then
1835  withval="$with_hsl_verbosity"
1836  if test "$withval" = yes; then
1837                withval=1
1838              fi
1839              coin_hsl_verbosity=$withval
1840else
1841  coin_hsl_verbosity=0
1842fi;
1843
1844cat >>confdefs.h <<_ACEOF
1845#define COIN_HSL_VERBOSITY $coin_hsl_verbosity
1846_ACEOF
1847
1848
1849
1850# Check whether --with-hsl-checklevel or --without-hsl-checklevel was given.
1851if test "${with_hsl_checklevel+set}" = set; then
1852  withval="$with_hsl_checklevel"
1853  if test "$withval" = yes; then
1854                withval=1
1855              fi
1856              coin_hsl_checklevel=$withval
1857else
1858  coin_hsl_checklevel=0
1859fi;
1860
1861cat >>confdefs.h <<_ACEOF
1862#define COIN_HSL_CHECKLEVEL $coin_hsl_checklevel
1863_ACEOF
1864
1865
1866# We use the following variable to have a string with the upper case
1867# version of the project name
1868COIN_PRJCT=HSL
1869
1870
1871 # m4_ifvaln([HSL],
1872
1873
1874
1875# Get the name of the C compiler (for a dummy program)
1876case $build in
1877  *-mingw*)
1878    if test "${LD+set}" = set; then :; else
1879      LD=link
1880    fi
1881    ;;
1882 esac
1883 case $enable_doscompile in
1884   msvc)
1885     if test "x${LD+set}" = xset; then :; else
1886       LD=link
1887     fi
1888     ;;
1889 esac
1890
1891
1892 # Check whether --enable-doscompile or --disable-doscompile was given.
1893if test "${enable_doscompile+set}" = set; then
1894  enableval="$enable_doscompile"
1895  if test "$enable_doscompile" != no; then
1896     case $build in
1897       *-cygwin* | *-mingw*) ;;
1898       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1899echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1900   { (exit 1); exit 1; }; } ;;
1901     esac
1902   fi
1903else
1904  enable_doscompile=no
1905fi;
1906 case "$enable_doscompile" in
1907   mingw)
1908     case $build in
1909       *-mingw*) enable_doscompile=no ;;
1910     esac
1911     ;;
1912   msvc|no) ;;
1913   yes) enable_doscompile=mingw ;;
1914   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1915                    Try configure --help=recursive." >&5
1916echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1917                    Try configure --help=recursive." >&2;}
1918   { (exit 1); exit 1; }; }
1919      ;;
1920  esac
1921  if test "$enable_doscompile" != no ; then
1922    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1923echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1924  fi
1925
1926
1927
1928
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936# For consistency, we set the C compiler to the same value of the C++
1937# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1938if test x"$CXX" != x; then
1939  case "$CXX" in
1940    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1941      if test x"$CC" = x; then
1942        CC="$CXX"
1943        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1944echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1945      fi
1946      ;;
1947  esac
1948fi
1949
1950# add automake conditional so we can recognize cl compiler in makefile
1951coin_cc_is_cl=false
1952if test x"$CXX" != x; then
1953  case "$CXX" in
1954    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1955      coin_cc_is_cl=true
1956      ;;
1957  esac
1958fi
1959
1960
1961if test $coin_cc_is_cl = true; then
1962  COIN_CC_IS_CL_TRUE=
1963  COIN_CC_IS_CL_FALSE='#'
1964else
1965  COIN_CC_IS_CL_TRUE='#'
1966  COIN_CC_IS_CL_FALSE=
1967fi
1968
1969
1970
1971
1972
1973
1974
1975coin_has_cc=yes
1976
1977save_cflags="$CFLAGS"
1978
1979# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1980# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1981# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1982# compiler. In this case, put cc after gcc.
1983
1984case $build in
1985  *-cygwin* | *-mingw*)
1986             if test "$enable_doscompile" = msvc ; then
1987               comps="icl cl"
1988             else
1989               comps="gcc cl"
1990             fi ;;
1991  *-*-solaris*)
1992             # Extract the first word of "cc", so it can be a program name with args.
1993set dummy cc; ac_word=$2
1994echo "$as_me:$LINENO: checking for $ac_word" >&5
1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  if test -n "$sol_cc_compiler"; then
2000  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2001else
2002  ac_prog_rejected=no
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008  for ac_exec_ext in '' $ac_executable_extensions; do
2009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2011       ac_prog_rejected=yes
2012       continue
2013     fi
2014    ac_cv_prog_sol_cc_compiler="cc"
2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016    break 2
2017  fi
2018done
2019done
2020
2021if test $ac_prog_rejected = yes; then
2022  # We found a bogon in the path, so make sure we never use it.
2023  set dummy $ac_cv_prog_sol_cc_compiler
2024  shift
2025  if test $# != 0; then
2026    # We chose a different compiler from the bogus one.
2027    # However, it has the same basename, so the bogon will be chosen
2028    # first if we set sol_cc_compiler to just the basename; use the full file name.
2029    shift
2030    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2031  fi
2032fi
2033fi
2034fi
2035sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2036if test -n "$sol_cc_compiler"; then
2037  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2038echo "${ECHO_T}$sol_cc_compiler" >&6
2039else
2040  echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6
2042fi
2043
2044             if test "$sol_cc_compiler" = "cc" ; then
2045               comps="cc xlc gcc pgcc icc"
2046             else
2047               comps="xlc gcc pgcc icc cc"
2048             fi
2049             ;;
2050  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2051  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2052  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2053esac
2054
2055# We delete the cached value, since the test might not have been
2056# performed with our choice of compilers earlier
2057$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2058# AC_MSG_NOTICE([C compiler candidates: $comps])
2059ac_ext=c
2060ac_cpp='$CPP $CPPFLAGS'
2061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064if test -n "$ac_tool_prefix"; then
2065  for ac_prog in $comps
2066  do
2067    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071if test "${ac_cv_prog_CC+set}" = set; then
2072  echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074  if test -n "$CC"; then
2075  ac_cv_prog_CC="$CC" # Let the user override the test.
2076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082  for ac_exec_ext in '' $ac_executable_extensions; do
2083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086    break 2
2087  fi
2088done
2089done
2090
2091fi
2092fi
2093CC=$ac_cv_prog_CC
2094if test -n "$CC"; then
2095  echo "$as_me:$LINENO: result: $CC" >&5
2096echo "${ECHO_T}$CC" >&6
2097else
2098  echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
2102    test -n "$CC" && break
2103  done
2104fi
2105if test -z "$CC"; then
2106  ac_ct_CC=$CC
2107  for ac_prog in $comps
2108do
2109  # Extract the first word of "$ac_prog", so it can be a program name with args.
2110set dummy $ac_prog; ac_word=$2
2111echo "$as_me:$LINENO: checking for $ac_word" >&5
2112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114  echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116  if test -n "$ac_ct_CC"; then
2117  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118else
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122  IFS=$as_save_IFS
2123  test -z "$as_dir" && as_dir=.
2124  for ac_exec_ext in '' $ac_executable_extensions; do
2125  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126    ac_cv_prog_ac_ct_CC="$ac_prog"
2127    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128    break 2
2129  fi
2130done
2131done
2132
2133fi
2134fi
2135ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136if test -n "$ac_ct_CC"; then
2137  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138echo "${ECHO_T}$ac_ct_CC" >&6
2139else
2140  echo "$as_me:$LINENO: result: no" >&5
2141echo "${ECHO_T}no" >&6
2142fi
2143
2144  test -n "$ac_ct_CC" && break
2145done
2146
2147  CC=$ac_ct_CC
2148fi
2149
2150
2151test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2152See \`config.log' for more details." >&5
2153echo "$as_me: error: no acceptable C compiler found in \$PATH
2154See \`config.log' for more details." >&2;}
2155   { (exit 1); exit 1; }; }
2156
2157# Provide some information about the compiler.
2158echo "$as_me:$LINENO:" \
2159     "checking for C compiler version" >&5
2160ac_compiler=`set X $ac_compile; echo $2`
2161{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2162  (eval $ac_compiler --version </dev/null >&5) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }
2166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2167  (eval $ac_compiler -v </dev/null >&5) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }
2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2172  (eval $ac_compiler -V </dev/null >&5) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }
2176
2177cat >conftest.$ac_ext <<_ACEOF
2178/* confdefs.h.  */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h.  */
2183
2184int
2185main ()
2186{
2187
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192ac_clean_files_save=$ac_clean_files
2193ac_clean_files="$ac_clean_files a.out a.exe b.out"
2194# Try to create an executable without -o first, disregard a.out.
2195# It will help us diagnose broken compilers, and finding out an intuition
2196# of exeext.
2197echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2198echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2199ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2200if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2201  (eval $ac_link_default) 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }; then
2205  # Find the output, starting from the most likely.  This scheme is
2206# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2207# resort.
2208
2209# Be careful to initialize this variable, since it used to be cached.
2210# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2211ac_cv_exeext=
2212# b.out is created by i960 compilers.
2213for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2214do
2215  test -f "$ac_file" || continue
2216  case $ac_file in
2217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2218        ;;
2219    conftest.$ac_ext )
2220        # This is the source file.
2221        ;;
2222    [ab].out )
2223        # We found the default executable, but exeext='' is most
2224        # certainly right.
2225        break;;
2226    *.* )
2227        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228        # FIXME: I believe we export ac_cv_exeext for Libtool,
2229        # but it would be cool to find out if it's true.  Does anybody
2230        # maintain Libtool? --akim.
2231        export ac_cv_exeext
2232        break;;
2233    * )
2234        break;;
2235  esac
2236done
2237else
2238  echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242See \`config.log' for more details." >&5
2243echo "$as_me: error: C compiler cannot create executables
2244See \`config.log' for more details." >&2;}
2245   { (exit 77); exit 77; }; }
2246fi
2247
2248ac_exeext=$ac_cv_exeext
2249echo "$as_me:$LINENO: result: $ac_file" >&5
2250echo "${ECHO_T}$ac_file" >&6
2251
2252# Check the compiler produces executables we can run.  If not, either
2253# the compiler is broken, or we cross compile.
2254echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2256# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257# If not cross compiling, check that we can run a simple program.
2258if test "$cross_compiling" != yes; then
2259  if { ac_try='./$ac_file'
2260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261  (eval $ac_try) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; }; then
2265    cross_compiling=no
2266  else
2267    if test "$cross_compiling" = maybe; then
2268        cross_compiling=yes
2269    else
2270        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2271If you meant to cross compile, use \`--host'.
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: cannot run C compiled programs.
2274If you meant to cross compile, use \`--host'.
2275See \`config.log' for more details." >&2;}
2276   { (exit 1); exit 1; }; }
2277    fi
2278  fi
2279fi
2280echo "$as_me:$LINENO: result: yes" >&5
2281echo "${ECHO_T}yes" >&6
2282
2283rm -f a.out a.exe conftest$ac_cv_exeext b.out
2284ac_clean_files=$ac_clean_files_save
2285# Check the compiler produces executables we can run.  If not, either
2286# the compiler is broken, or we cross compile.
2287echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2288echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2289echo "$as_me:$LINENO: result: $cross_compiling" >&5
2290echo "${ECHO_T}$cross_compiling" >&6
2291
2292echo "$as_me:$LINENO: checking for suffix of executables" >&5
2293echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2295  (eval $ac_link) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; then
2299  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2301# work properly (i.e., refer to `conftest.exe'), while it won't with
2302# `rm'.
2303for ac_file in conftest.exe conftest conftest.*; do
2304  test -f "$ac_file" || continue
2305  case $ac_file in
2306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2307    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308          export ac_cv_exeext
2309          break;;
2310    * ) break;;
2311  esac
2312done
2313else
2314  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&5
2316echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317See \`config.log' for more details." >&2;}
2318   { (exit 1); exit 1; }; }
2319fi
2320
2321rm -f conftest$ac_cv_exeext
2322echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323echo "${ECHO_T}$ac_cv_exeext" >&6
2324
2325rm -f conftest.$ac_ext
2326EXEEXT=$ac_cv_exeext
2327ac_exeext=$EXEEXT
2328echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2330if test "${ac_cv_objext+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339
2340int
2341main ()
2342{
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348rm -f conftest.o conftest.obj
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350  (eval $ac_compile) 2>&5
2351  ac_status=$?
2352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353  (exit $ac_status); }; then
2354  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355  case $ac_file in
2356    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2357    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358       break;;
2359  esac
2360done
2361else
2362  echo "$as_me: failed program was:" >&5
2363sed 's/^/| /' conftest.$ac_ext >&5
2364
2365{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&5
2367echo "$as_me: error: cannot compute suffix of object files: cannot compile
2368See \`config.log' for more details." >&2;}
2369   { (exit 1); exit 1; }; }
2370fi
2371
2372rm -f conftest.$ac_cv_objext conftest.$ac_ext
2373fi
2374echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375echo "${ECHO_T}$ac_cv_objext" >&6
2376OBJEXT=$ac_cv_objext
2377ac_objext=$OBJEXT
2378echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2379echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2380if test "${ac_cv_c_compiler_gnu+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  cat >conftest.$ac_ext <<_ACEOF
2384/* confdefs.h.  */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h.  */
2389
2390int
2391main ()
2392{
2393#ifndef __GNUC__
2394       choke me
2395#endif
2396
2397  ;
2398  return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403  (eval $ac_compile) 2>conftest.er1
2404  ac_status=$?
2405  grep -v '^ *+' conftest.er1 >conftest.err
2406  rm -f conftest.er1
2407  cat conftest.err >&5
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); } &&
2410         { ac_try='test -z "$ac_c_werror_flag"
2411                         || test ! -s conftest.err'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; } &&
2417         { ac_try='test -s conftest.$ac_objext'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; }; then
2423  ac_compiler_gnu=yes
2424else
2425  echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
2427
2428ac_compiler_gnu=no
2429fi
2430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433fi
2434echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2436GCC=`test $ac_compiler_gnu = yes && echo yes`
2437ac_test_CFLAGS=${CFLAGS+set}
2438ac_save_CFLAGS=$CFLAGS
2439CFLAGS="-g"
2440echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2441echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2442if test "${ac_cv_prog_cc_g+set}" = set; then
2443  echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445  cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h.  */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h.  */
2451
2452int
2453main ()
2454{
2455
2456  ;
2457  return 0;
2458}
2459_ACEOF
2460rm -f conftest.$ac_objext
2461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462  (eval $ac_compile) 2>conftest.er1
2463  ac_status=$?
2464  grep -v '^ *+' conftest.er1 >conftest.err
2465  rm -f conftest.er1
2466  cat conftest.err >&5
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); } &&
2469         { ac_try='test -z "$ac_c_werror_flag"
2470                         || test ! -s conftest.err'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; } &&
2476         { ac_try='test -s conftest.$ac_objext'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; }; then
2482  ac_cv_prog_cc_g=yes
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487ac_cv_prog_cc_g=no
2488fi
2489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490fi
2491echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2492echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2493if test "$ac_test_CFLAGS" = set; then
2494  CFLAGS=$ac_save_CFLAGS
2495elif test $ac_cv_prog_cc_g = yes; then
2496  if test "$GCC" = yes; then
2497    CFLAGS="-g -O2"
2498  else
2499    CFLAGS="-g"
2500  fi
2501else
2502  if test "$GCC" = yes; then
2503    CFLAGS="-O2"
2504  else
2505    CFLAGS=
2506  fi
2507fi
2508echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2509echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2510if test "${ac_cv_prog_cc_stdc+set}" = set; then
2511  echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513  ac_cv_prog_cc_stdc=no
2514ac_save_CC=$CC
2515cat >conftest.$ac_ext <<_ACEOF
2516/* confdefs.h.  */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h.  */
2521#include <stdarg.h>
2522#include <stdio.h>
2523#include <sys/types.h>
2524#include <sys/stat.h>
2525/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2526struct buf { int x; };
2527FILE * (*rcsopen) (struct buf *, struct stat *, int);
2528static char *e (p, i)
2529     char **p;
2530     int i;
2531{
2532  return p[i];
2533}
2534static char *f (char * (*g) (char **, int), char **p, ...)
2535{
2536  char *s;
2537  va_list v;
2538  va_start (v,p);
2539  s = g (p, va_arg (v,int));
2540  va_end (v);
2541  return s;
2542}
2543
2544/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2545   function prototypes and stuff, but not '\xHH' hex character constants.
2546   These don't provoke an error unfortunately, instead are silently treated
2547   as 'x'.  The following induces an error, until -std1 is added to get
2548   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2549   array size at least.  It's necessary to write '\x00'==0 to get something
2550   that's true only with -std1.  */
2551int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2552
2553int test (int i, double x);
2554struct s1 {int (*f) (int a);};
2555struct s2 {int (*f) (double a);};
2556int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2557int argc;
2558char **argv;
2559int
2560main ()
2561{
2562return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567# Don't try gcc -ansi; that turns off useful extensions and
2568# breaks some systems' header files.
2569# AIX                   -qlanglvl=ansi
2570# Ultrix and OSF/1      -std1
2571# HP-UX 10.20 and later -Ae
2572# HP-UX older versions  -Aa -D_HPUX_SOURCE
2573# SVR4                  -Xc -D__EXTENSIONS__
2574for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2575do
2576  CC="$ac_save_CC $ac_arg"
2577  rm -f conftest.$ac_objext
2578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579  (eval $ac_compile) 2>conftest.er1
2580  ac_status=$?
2581  grep -v '^ *+' conftest.er1 >conftest.err
2582  rm -f conftest.er1
2583  cat conftest.err >&5
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); } &&
2586         { ac_try='test -z "$ac_c_werror_flag"
2587                         || test ! -s conftest.err'
2588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589  (eval $ac_try) 2>&5
2590  ac_status=$?
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); }; } &&
2593         { ac_try='test -s conftest.$ac_objext'
2594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595  (eval $ac_try) 2>&5
2596  ac_status=$?
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); }; }; then
2599  ac_cv_prog_cc_stdc=$ac_arg
2600break
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605fi
2606rm -f conftest.err conftest.$ac_objext
2607done
2608rm -f conftest.$ac_ext conftest.$ac_objext
2609CC=$ac_save_CC
2610
2611fi
2612
2613case "x$ac_cv_prog_cc_stdc" in
2614  x|xno)
2615    echo "$as_me:$LINENO: result: none needed" >&5
2616echo "${ECHO_T}none needed" >&6 ;;
2617  *)
2618    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2619echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2620    CC="$CC $ac_cv_prog_cc_stdc" ;;
2621esac
2622
2623# Some people use a C++ compiler to compile C.  Since we use `exit',
2624# in C++ we need to declare it.  In case someone uses the same compiler
2625# for both compiling C and C++ we need to have the C++ compiler decide
2626# the declaration of exit, since it's the most demanding environment.
2627cat >conftest.$ac_ext <<_ACEOF
2628#ifndef __cplusplus
2629  choke me
2630#endif
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } &&
2641         { ac_try='test -z "$ac_c_werror_flag"
2642                         || test ! -s conftest.err'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; } &&
2648         { ac_try='test -s conftest.$ac_objext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  for ac_declaration in \
2655   '' \
2656   'extern "C" void std::exit (int) throw (); using std::exit;' \
2657   'extern "C" void std::exit (int); using std::exit;' \
2658   'extern "C" void exit (int) throw ();' \
2659   'extern "C" void exit (int);' \
2660   'void exit (int);'
2661do
2662  cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668$ac_declaration
2669#include <stdlib.h>
2670int
2671main ()
2672{
2673exit (42);
2674  ;
2675  return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext
2679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680  (eval $ac_compile) 2>conftest.er1
2681  ac_status=$?
2682  grep -v '^ *+' conftest.er1 >conftest.err
2683  rm -f conftest.er1
2684  cat conftest.err >&5
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); } &&
2687         { ac_try='test -z "$ac_c_werror_flag"
2688                         || test ! -s conftest.err'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; } &&
2694         { ac_try='test -s conftest.$ac_objext'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; }; then
2700  :
2701else
2702  echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705continue
2706fi
2707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714$ac_declaration
2715int
2716main ()
2717{
2718exit (42);
2719  ;
2720  return 0;
2721}
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725  (eval $ac_compile) 2>conftest.er1
2726  ac_status=$?
2727  grep -v '^ *+' conftest.er1 >conftest.err
2728  rm -f conftest.er1
2729  cat conftest.err >&5
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); } &&
2732         { ac_try='test -z "$ac_c_werror_flag"
2733                         || test ! -s conftest.err'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; } &&
2739         { ac_try='test -s conftest.$ac_objext'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; }; then
2745  break
2746else
2747  echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750fi
2751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752done
2753rm -f conftest*
2754if test -n "$ac_declaration"; then
2755  echo '#ifdef __cplusplus' >>confdefs.h
2756  echo $ac_declaration      >>confdefs.h
2757  echo '#endif'             >>confdefs.h
2758fi
2759
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764fi
2765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772if test -z "$CC" ; then
2773  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2774echo "$as_me: error: Failed to find a C compiler!" >&2;}
2775   { (exit 1); exit 1; }; }
2776fi
2777# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2778case "$CC" in
2779  cl* | */cl* | CL* | */CL* )
2780    if test "$ac_cv_prog_cc_g" = yes ; then
2781      ac_cv_prog_cc_g=no
2782      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2783echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2784    fi ;;
2785esac
2786CFLAGS="$save_cflags"
2787
2788# Check if a project specific CFLAGS variable has been set
2789if test x$COIN_PRJCT != x; then
2790  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2791  if test x$coin_tmp = xset; then
2792    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2793  fi
2794fi
2795
2796if test x"$CFLAGS" = x; then
2797
2798  coin_add_cflags=
2799  coin_opt_cflags=
2800  coin_dbg_cflags=
2801  coin_warn_cflags=
2802
2803  if test "$GCC" = "yes"; then
2804    case "$CC" in
2805      icc* | */icc*)
2806        ;;
2807      *)
2808        coin_opt_cflags="-O3"
2809        coin_add_cflags="-pipe"
2810        coin_dbg_cflags="-g"
2811        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2812        case $build in
2813          *-darwin*)
2814            ;;
2815          *)
2816            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2817            ;;
2818        esac
2819        case $enable_doscompile in
2820          mingw)
2821            CFLAGS="-mno-cygwin"
2822            cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828
2829int
2830main ()
2831{
2832int i=0; i++;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext conftest$ac_exeext
2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839  (eval $ac_link) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846         { ac_try='test -z "$ac_c_werror_flag"
2847                         || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853         { ac_try='test -s conftest$ac_exeext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864fi
2865rm -f conftest.err conftest.$ac_objext \
2866      conftest$ac_exeext conftest.$ac_ext
2867            CFLAGS=
2868          ;;
2869        esac
2870    esac
2871  fi
2872  if test -z "$coin_opt_cflags"; then
2873    case $build in
2874      *-cygwin* | *-mingw*)
2875        case "$CC" in
2876          cl* | */cl* | CL* | */CL*)
2877            coin_opt_cflags='-MT -O2'
2878            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2879            coin_dbg_cflags='-MTd'
2880            ;;
2881          icl* | */icl* | ICL* | */ICL*)
2882            coin_opt_cflags='-MT -Ox'
2883            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2884            coin_dbg_cflags='-MTd -debug'
2885            ;;
2886        esac
2887        ;;
2888      *-linux-*)
2889        case "$CC" in
2890          icc* | */icc*)
2891            coin_opt_cflags="-O3 -ip -mp1"
2892            coin_add_cflags=""
2893            coin_dbg_cflags="-g"
2894            # Check if -i_dynamic is necessary (for new glibc library)
2895            CFLAGS=
2896            cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902
2903int
2904main ()
2905{
2906int i=0; i++;
2907  ;
2908  return 0;
2909}
2910_ACEOF
2911rm -f conftest.$ac_objext conftest$ac_exeext
2912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2913  (eval $ac_link) 2>conftest.er1
2914  ac_status=$?
2915  grep -v '^ *+' conftest.er1 >conftest.err
2916  rm -f conftest.er1
2917  cat conftest.err >&5
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); } &&
2920         { ac_try='test -z "$ac_c_werror_flag"
2921                         || test ! -s conftest.err'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; } &&
2927         { ac_try='test -s conftest$ac_exeext'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933  :
2934else
2935  echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938coin_add_cflags="-i_dynamic $coin_add_cflags"
2939fi
2940rm -f conftest.err conftest.$ac_objext \
2941      conftest$ac_exeext conftest.$ac_ext
2942            ;;
2943          pgcc* | */pgcc*)
2944            coin_opt_cflags="-fast"
2945            coin_add_cflags="-Kieee -pc 64"
2946            coin_dbg_cflags="-g"
2947            ;;
2948        esac
2949        ;;
2950      *-ibm-*)
2951        case "$CC" in
2952          xlc* | */xlc* | mpxlc* | */mpxlc*)
2953            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2954            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2955            coin_dbg_cflags="-g"
2956          ;;
2957        esac
2958        ;;
2959      *-hp-*)
2960        coin_opt_cflags="-O"
2961        coin_add_cflags="-Ae"
2962        coin_dbg_cflags="-g"
2963        ;;
2964      *-*-solaris*)
2965        coin_opt_cflags="-xO4"
2966        coin_dbg_cflags="-g"
2967        ;;
2968      *-sgi-*)
2969        coin_opt_cflags="-O -OPT:Olimit=0"
2970        coin_dbg_cflags="-g"
2971        ;;
2972    esac
2973  fi
2974
2975  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2976    coin_dbg_cflags="-g"
2977  fi
2978
2979  if test -z "$coin_opt_cflags"; then
2980    # Try if -O option works if nothing else is set
2981    CFLAGS="-O"
2982    cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h.  */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h.  */
2988
2989int
2990main ()
2991{
2992int i=0; i++;
2993  ;
2994  return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext conftest$ac_exeext
2998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999  (eval $ac_link) 2>conftest.er1
3000  ac_status=$?
3001  grep -v '^ *+' conftest.er1 >conftest.err
3002  rm -f conftest.er1
3003  cat conftest.err >&5
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); } &&
3006         { ac_try='test -z "$ac_c_werror_flag"
3007                         || test ! -s conftest.err'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; } &&
3013         { ac_try='test -s conftest$ac_exeext'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; }; then
3019  coin_opt_cflags="-O"
3020else
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024fi
3025rm -f conftest.err conftest.$ac_objext \
3026      conftest$ac_exeext conftest.$ac_ext
3027  fi
3028
3029  # if PM doesn't want the warning messages, take them out
3030  if test x"$coin_skip_warn_cflags" = xyes; then
3031    coin_warn_cflags=
3032  fi
3033
3034  if test x${DBG_CFLAGS+set} != xset; then
3035    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3036  fi
3037  if test x${OPT_CFLAGS+set} != xset; then
3038    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3039  fi
3040
3041  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3042  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3043
3044  if test "$coin_debug_compile" = "true"; then
3045    CFLAGS="$DBG_CFLAGS"
3046  else
3047    CFLAGS="$OPT_CFLAGS"
3048  fi
3049else
3050  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3051  if test x${DBG_CFLAGS+set} != xset; then
3052    DBG_CFLAGS="$CFLAGS"
3053  fi
3054  if test x${OPT_CFLAGS+set} != xset; then
3055    OPT_CFLAGS="$CFLAGS"
3056  fi
3057fi
3058
3059# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3060
3061case "$CFLAGS" in
3062  *-mno-cygwin*)
3063    if test x${CPPFLAGS+set} != xset ; then
3064      CPPFLAGS="-mno-cygwin"
3065    else
3066      case "$CPPFLAGS" in
3067        *-mno-cygwin*)
3068          ;;
3069        *)
3070          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3071          ;;
3072      esac
3073    fi ;;
3074esac
3075
3076# Try if CFLAGS works
3077save_CFLAGS="$CFLAGS"
3078cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h.  */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088int i=0; i++;
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext conftest$ac_exeext
3094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3095  (eval $ac_link) 2>conftest.er1
3096  ac_status=$?
3097  grep -v '^ *+' conftest.er1 >conftest.err
3098  rm -f conftest.er1
3099  cat conftest.err >&5
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); } &&
3102         { ac_try='test -z "$ac_c_werror_flag"
3103                         || test ! -s conftest.err'
3104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105  (eval $ac_try) 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; } &&
3109         { ac_try='test -s conftest$ac_exeext'
3110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111  (eval $ac_try) 2>&5
3112  ac_status=$?
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); }; }; then
3115  :
3116else
3117  echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120CFLAGS=
3121fi
3122rm -f conftest.err conftest.$ac_objext \
3123      conftest$ac_exeext conftest.$ac_ext
3124if test -z "$CFLAGS"; then
3125  { 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
3126echo "$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;}
3127  CFLAGS='-O'
3128  cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h.  */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h.  */
3134
3135int
3136main ()
3137{
3138int i=0; i++;
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext conftest$ac_exeext
3144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145  (eval $ac_link) 2>conftest.er1
3146  ac_status=$?
3147  grep -v '^ *+' conftest.er1 >conftest.err
3148  rm -f conftest.er1
3149  cat conftest.err >&5
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); } &&
3152         { ac_try='test -z "$ac_c_werror_flag"
3153                         || test ! -s conftest.err'
3154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155  (eval $ac_try) 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; } &&
3159         { ac_try='test -s conftest$ac_exeext'
3160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161  (eval $ac_try) 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; }; then
3165  :
3166else
3167  echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170CFLAGS=
3171fi
3172rm -f conftest.err conftest.$ac_objext \
3173      conftest$ac_exeext conftest.$ac_ext
3174  if test -z "$CFLAGS"; then
3175    { 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
3176echo "$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;}
3177  fi
3178fi
3179
3180{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3181echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3182
3183
3184if test x"$MPICC" = x; then :; else
3185  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3186echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3187  CC="$MPICC"
3188fi
3189
3190# Correct the LD variable if we are using the MS or Intel-windows compiler
3191case "$CC" in
3192  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3193    case $build in
3194  *-mingw*)
3195    if test "${LD+set}" = set; then :; else
3196      LD=link
3197    fi
3198    ;;
3199 esac
3200 case $enable_doscompile in
3201   msvc)
3202     if test "x${LD+set}" = xset; then :; else
3203       LD=link
3204     fi
3205     ;;
3206 esac
3207
3208    ;;
3209esac
3210
3211ac_ext=c
3212ac_cpp='$CPP $CPPFLAGS'
3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216
3217
3218
3219# Get the name of the Fortran compiler and appropriate compiler options
3220case $build in
3221  *-cygwin* | *-mingw*)
3222     if test "$enable_doscompile" = msvc ; then
3223       coin_f77_comps="ifort fl32 compile_f2c"
3224     else
3225       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3226     fi ;;
3227  *-*-solaris*)
3228     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3229  *-linux-gnu*)
3230     coin_f77_comps="gfortran fort77 f77 g77 pgf90 pgf77 ifort ifc frt af77 xlf_r" ;;
3231  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3232 esac
3233
3234
3235
3236
3237
3238
3239ac_ext=f
3240ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3241ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3243
3244
3245
3246
3247
3248
3249coin_has_f77=yes
3250
3251save_fflags="$FFLAGS"
3252
3253# We delete the cached value, since the test might not have been
3254# performed with our choice of compilers earlier
3255$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3256
3257# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3258# coin_f77_comps to see if there's a program that matches one of the names.
3259# If there's no such program, F77 = unavailable. If we match the name,
3260# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3261# compiler.
3262# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3263
3264
3265{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3266echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3267for ac_prog in $coin_f77_comps
3268do
3269  # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271echo "$as_me:$LINENO: checking for $ac_word" >&5
3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273if test "${ac_cv_prog_F77+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  if test -n "$F77"; then
3277  ac_cv_prog_F77="$F77" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284  for ac_exec_ext in '' $ac_executable_extensions; do
3285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_F77="$ac_prog"
3287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291done
3292
3293fi
3294fi
3295F77=$ac_cv_prog_F77
3296if test -n "$F77"; then
3297  echo "$as_me:$LINENO: result: $F77" >&5
3298echo "${ECHO_T}$F77" >&6
3299else
3300  echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6
3302fi
3303
3304  test -n "$F77" && break
3305done
3306test -n "$F77" || F77="unavailable"
3307
3308
3309if test "$F77" != "unavailable" ; then
3310  ac_ext=f
3311ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3312ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3314if test -n "$ac_tool_prefix"; then
3315  for ac_prog in $coin_f77_comps
3316  do
3317    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_F77+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -n "$F77"; then
3325  ac_cv_prog_F77="$F77" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332  for ac_exec_ext in '' $ac_executable_extensions; do
3333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339done
3340
3341fi
3342fi
3343F77=$ac_cv_prog_F77
3344if test -n "$F77"; then
3345  echo "$as_me:$LINENO: result: $F77" >&5
3346echo "${ECHO_T}$F77" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351
3352    test -n "$F77" && break
3353  done
3354fi
3355if test -z "$F77"; then
3356  ac_ct_F77=$F77
3357  for ac_prog in $coin_f77_comps
3358do
3359  # Extract the first word of "$ac_prog", so it can be a program name with args.
3360set dummy $ac_prog; ac_word=$2
3361echo "$as_me:$LINENO: checking for $ac_word" >&5
3362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3364  echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366  if test -n "$ac_ct_F77"; then
3367  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374  for ac_exec_ext in '' $ac_executable_extensions; do
3375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_ac_ct_F77="$ac_prog"
3377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381done
3382
3383fi
3384fi
3385ac_ct_F77=$ac_cv_prog_ac_ct_F77
3386if test -n "$ac_ct_F77"; then
3387  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3388echo "${ECHO_T}$ac_ct_F77" >&6
3389else
3390  echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6
3392fi
3393
3394  test -n "$ac_ct_F77" && break
3395done
3396
3397  F77=$ac_ct_F77
3398fi
3399
3400
3401# Provide some information about the compiler.
3402echo "$as_me:3402:" \
3403     "checking for Fortran 77 compiler version" >&5
3404ac_compiler=`set X $ac_compile; echo $2`
3405{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3406  (eval $ac_compiler --version </dev/null >&5) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }
3410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3411  (eval $ac_compiler -v </dev/null >&5) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }
3415{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3416  (eval $ac_compiler -V </dev/null >&5) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }
3420rm -f a.out
3421
3422# If we don't use `.F' as extension, the preprocessor is not run on the
3423# input file.  (Note that this only needs to work for GNU compilers.)
3424ac_save_ext=$ac_ext
3425ac_ext=F
3426echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3427echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3428if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3429  echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431  cat >conftest.$ac_ext <<_ACEOF
3432      program main
3433#ifndef __GNUC__
3434       choke me
3435#endif
3436
3437      end
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441  (eval $ac_compile) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_f77_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest.$ac_objext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  ac_compiler_gnu=yes
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466ac_compiler_gnu=no
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3470
3471fi
3472echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3473echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3474ac_ext=$ac_save_ext
3475ac_test_FFLAGS=${FFLAGS+set}
3476ac_save_FFLAGS=$FFLAGS
3477FFLAGS=
3478echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3479echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3480if test "${ac_cv_prog_f77_g+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  FFLAGS=-g
3484cat >conftest.$ac_ext <<_ACEOF
3485      program main
3486
3487      end
3488_ACEOF
3489rm -f conftest.$ac_objext
3490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491  (eval $ac_compile) 2>conftest.er1
3492  ac_status=$?
3493  grep -v '^ *+' conftest.er1 >conftest.err
3494  rm -f conftest.er1
3495  cat conftest.err >&5
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); } &&
3498         { ac_try='test -z "$ac_f77_werror_flag"
3499                         || test ! -s conftest.err'
3500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501  (eval $ac_try) 2>&5
3502  ac_status=$?
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; } &&
3505         { ac_try='test -s conftest.$ac_objext'
3506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507  (eval $ac_try) 2>&5
3508  ac_status=$?
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); }; }; then
3511  ac_cv_prog_f77_g=yes
3512else
3513  echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516ac_cv_prog_f77_g=no
3517fi
3518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519
3520fi
3521echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3522echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3523if test "$ac_test_FFLAGS" = set; then
3524  FFLAGS=$ac_save_FFLAGS
3525elif test $ac_cv_prog_f77_g = yes; then
3526  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3527    FFLAGS="-g -O2"
3528  else
3529    FFLAGS="-g"
3530  fi
3531else
3532  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3533    FFLAGS="-O2"
3534  else
3535    FFLAGS=
3536  fi
3537fi
3538
3539G77=`test $ac_compiler_gnu = yes && echo yes`
3540ac_ext=f
3541ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3542ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3544
3545else
3546  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3547echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3548fi
3549
3550FFLAGS="$save_fflags"
3551
3552# Check if a project specific FFLAGS variable has been set
3553if test x$COIN_PRJCT != x; then
3554  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3555  if test x$coin_tmp = xset; then
3556    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3557  fi
3558fi
3559
3560if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3561
3562  coin_add_fflags=
3563  coin_opt_fflags=
3564  coin_dbg_fflags=
3565  coin_warn_fflags=
3566
3567  if test "$G77" = "yes"; then
3568    coin_opt_fflags="-O3"
3569    coin_add_fflags="-pipe"
3570    coin_dbg_fflags="-g"
3571    case $enable_doscompile in
3572      mingw)
3573        FFLAGS="-mno-cygwin"
3574        cat >conftest.$ac_ext <<_ACEOF
3575      program main
3576      write(*,*) 'Hello world'
3577      end
3578_ACEOF
3579rm -f conftest.$ac_objext conftest$ac_exeext
3580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581  (eval $ac_link) 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } &&
3588         { ac_try='test -z "$ac_f77_werror_flag"
3589                         || test ! -s conftest.err'
3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591  (eval $ac_try) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); }; } &&
3595         { ac_try='test -s conftest$ac_exeext'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; }; then
3601  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3602else
3603  echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606fi
3607rm -f conftest.err conftest.$ac_objext \
3608      conftest$ac_exeext conftest.$ac_ext
3609        FFLAGS=
3610      ;;
3611    esac
3612  else
3613    case $build in
3614      *-cygwin* | *-mingw*)
3615        case $F77 in
3616          ifort* | */ifort* | IFORT* | */IFORT* )
3617            coin_opt_fflags='-MT -O3'
3618            coin_add_fflags='-fpp -nologo'
3619            coin_dbg_fflags='-MTd -debug'
3620          ;;
3621          compile_f2c*)
3622            coin_opt_fflags='-MT -O2'
3623            coin_add_fflags='-nologo -wd4996'
3624            coin_dbg_fflags='-MTd'
3625          ;;
3626        esac
3627        ;;
3628      *-linux-*)
3629        case $F77 in
3630          ifc* | */ifc* | ifort* | */ifort*)
3631            coin_opt_fflags="-O3 -ip"
3632            coin_add_fflags="-cm -w90 -w95"
3633            coin_dbg_fflags="-g -CA -CB -CS"
3634            # Check if -i_dynamic is necessary (for new glibc library)
3635            FFLAGS=
3636            cat >conftest.$ac_ext <<_ACEOF
3637      program main
3638      write(*,*) 'Hello world'
3639      end
3640_ACEOF
3641rm -f conftest.$ac_objext conftest$ac_exeext
3642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643  (eval $ac_link) 2>conftest.er1
3644  ac_status=$?
3645  grep -v '^ *+' conftest.er1 >conftest.err
3646  rm -f conftest.er1
3647  cat conftest.err >&5
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); } &&
3650         { ac_try='test -z "$ac_f77_werror_flag"
3651                         || test ! -s conftest.err'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; } &&
3657         { ac_try='test -s conftest$ac_exeext'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; }; then
3663  :
3664else
3665  echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668coin_add_fflags="-i_dynamic $coin_add_fflags"
3669fi
3670rm -f conftest.err conftest.$ac_objext \
3671      conftest$ac_exeext conftest.$ac_ext
3672            ;;
3673          pgf77* | */pgf77* | pgf90* | */pgf90*)
3674            coin_opt_fflags="-fast"
3675            coin_add_fflags="-Kieee -pc 64"
3676            coin_dbg_fflags="-g"
3677          ;;
3678        esac
3679        ;;
3680      *-ibm-*)
3681        case "$F77" in
3682          xlf* | */xlf* | mpxlf* | */mpxlf* )
3683            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3684            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3685            coin_dbg_fflags="-g -C"
3686            ;;
3687        esac
3688        ;;
3689      *-hp-*)
3690        coin_opt_fflags="+O3"
3691        coin_add_fflags="+U77"
3692        coin_dbg_fflags="-C -g"
3693        ;;
3694      *-*-solaris*)
3695        coin_opt_fflags="-O4"
3696        coin_dbg_fflags="-g"
3697        ;;
3698      *-sgi-*)
3699        coin_opt_fflags="-O5 -OPT:Olimit=0"
3700        coin_dbg_fflags="-g"
3701        ;;
3702    esac
3703  fi
3704
3705  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3706    coin_dbg_fflags="-g"
3707  fi
3708
3709  if test -z "$coin_opt_fflags"; then
3710    # Try if -O option works if nothing else is set
3711    FFLAGS=-O
3712    cat >conftest.$ac_ext <<_ACEOF
3713      program main
3714      integer i
3715      end
3716_ACEOF
3717rm -f conftest.$ac_objext conftest$ac_exeext
3718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3719  (eval $ac_link) 2>conftest.er1
3720  ac_status=$?
3721  grep -v '^ *+' conftest.er1 >conftest.err
3722  rm -f conftest.er1
3723  cat conftest.err >&5
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); } &&
3726         { ac_try='test -z "$ac_f77_werror_flag"
3727                         || test ! -s conftest.err'
3728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729  (eval $ac_try) 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); }; } &&
3733         { ac_try='test -s conftest$ac_exeext'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; }; then
3739  coin_opt_fflags="-O"
3740else
3741  echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
3745rm -f conftest.err conftest.$ac_objext \
3746      conftest$ac_exeext conftest.$ac_ext
3747  fi
3748
3749  # if PM doesn't want the warning messages, take them out
3750  if test x"$coin_skip_warn_fflags" = xyes; then
3751    coin_warn_fflags=
3752  fi
3753
3754  if test x${DBG_FFLAGS+set} != xset; then
3755    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3756  fi
3757  if test x${OPT_FFLAGS+set} != xset; then
3758    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3759  fi
3760
3761  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3762  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3763
3764  if test "$coin_debug_compile" = "true"; then
3765    FFLAGS="$DBG_FFLAGS"
3766  else
3767    FFLAGS="$OPT_FFLAGS"
3768  fi
3769else
3770  FFLAGS="$FFLAGS $ADD_FFLAGS"
3771  if test x${DBG_FFLAGS+set} != xset; then
3772    DBG_FFLAGS="$FFLAGS"
3773  fi
3774  if test x${OPT_FFLAGS+set} != xset; then
3775    OPT_FFLAGS="$FFLAGS"
3776  fi
3777fi
3778
3779# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3780case "$FFLAGS" in
3781  *-mno-cygwin*)
3782    if test x${CPPFLAGS+set} != xset ; then
3783      CPPFLAGS="-mno-cygwin"
3784    else
3785      case "$CPPFLAGS" in
3786        *-mno-cygwin*)
3787          ;;
3788        *)
3789          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3790          ;;
3791      esac
3792    fi ;;
3793esac
3794
3795# Try if FFLAGS works
3796if test "$F77" != "unavailable" ; then
3797  cat >conftest.$ac_ext <<_ACEOF
3798      program main
3799      integer i
3800      end
3801_ACEOF
3802rm -f conftest.$ac_objext conftest$ac_exeext
3803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804  (eval $ac_link) 2>conftest.er1
3805  ac_status=$?
3806  grep -v '^ *+' conftest.er1 >conftest.err
3807  rm -f conftest.er1
3808  cat conftest.err >&5
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); } &&
3811         { ac_try='test -z "$ac_f77_werror_flag"
3812                         || test ! -s conftest.err'
3813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814  (eval $ac_try) 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }; } &&
3818         { ac_try='test -s conftest$ac_exeext'
3819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820  (eval $ac_try) 2>&5
3821  ac_status=$?
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); }; }; then
3824  :
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829FFLAGS=
3830fi
3831rm -f conftest.err conftest.$ac_objext \
3832      conftest$ac_exeext conftest.$ac_ext
3833  if test -z "$FFLAGS"; then
3834    { 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
3835echo "$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;}
3836    FFLAGS='-O'
3837    cat >conftest.$ac_ext <<_ACEOF
3838      program main
3839      integer i
3840      end
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844  (eval $ac_link) 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } &&
3851         { ac_try='test -z "$ac_f77_werror_flag"
3852                         || test ! -s conftest.err'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; } &&
3858         { ac_try='test -s conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  :
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869FFLAGS=
3870fi
3871rm -f conftest.err conftest.$ac_objext \
3872      conftest$ac_exeext conftest.$ac_ext
3873    if test -z "$FFLAGS"; then
3874      { 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
3875echo "$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;}
3876    fi
3877  fi
3878fi
3879
3880{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3881echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3882
3883
3884if test x"$MPIF77" = x; then :; else
3885  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3886echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3887  F77="$MPIF77"
3888fi
3889
3890# correct the LD variable if we use the intel fortran compiler in windows
3891case "$F77" in
3892  ifort* | */ifort* | IFORT* | */IFORT*)
3893    case $build in
3894  *-mingw*)
3895    if test "${LD+set}" = set; then :; else
3896      LD=link
3897    fi
3898    ;;
3899 esac
3900 case $enable_doscompile in
3901   msvc)
3902     if test "x${LD+set}" = xset; then :; else
3903       LD=link
3904     fi
3905     ;;
3906 esac
3907
3908    ;;
3909esac
3910
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917
3918
3919# Check if pkg-config is available (to setup addlibs file)
3920
3921
3922# Check whether --enable-pkg-config or --disable-pkg-config was given.
3923if test "${enable_pkg_config+set}" = set; then
3924  enableval="$enable_pkg_config"
3925  use_pkgconfig="$enableval"
3926else
3927  use_pkgconfig=yes
3928fi;
3929
3930if test $use_pkgconfig = yes ; then
3931  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3932    if test -n "$ac_tool_prefix"; then
3933  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3934set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3935echo "$as_me:$LINENO: checking for $ac_word" >&5
3936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3938  echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940  case $PKG_CONFIG in
3941  [\\/]* | ?:[\\/]*)
3942  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3943  ;;
3944  *)
3945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948  IFS=$as_save_IFS
3949  test -z "$as_dir" && as_dir=.
3950  for ac_exec_ext in '' $ac_executable_extensions; do
3951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956done
3957done
3958
3959  ;;
3960esac
3961fi
3962PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3963
3964if test -n "$PKG_CONFIG"; then
3965  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3966echo "${ECHO_T}$PKG_CONFIG" >&6
3967else
3968  echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
3970fi
3971
3972fi
3973if test -z "$ac_cv_path_PKG_CONFIG"; then
3974  ac_pt_PKG_CONFIG=$PKG_CONFIG
3975  # Extract the first word of "pkg-config", so it can be a program name with args.
3976set dummy pkg-config; ac_word=$2
3977echo "$as_me:$LINENO: checking for $ac_word" >&5
3978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3980  echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982  case $ac_pt_PKG_CONFIG in
3983  [\\/]* | ?:[\\/]*)
3984  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3985  ;;
3986  *)
3987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH
3989do
3990  IFS=$as_save_IFS
3991  test -z "$as_dir" && as_dir=.
3992  for ac_exec_ext in '' $ac_executable_extensions; do
3993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996    break 2
3997  fi
3998done
3999done
4000
4001  ;;
4002esac
4003fi
4004ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4005
4006if test -n "$ac_pt_PKG_CONFIG"; then
4007  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4008echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4009else
4010  echo "$as_me:$LINENO: result: no" >&5
4011echo "${ECHO_T}no" >&6
4012fi
4013
4014  PKG_CONFIG=$ac_pt_PKG_CONFIG
4015else
4016  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4017fi
4018
4019  fi
4020  if test -n "$PKG_CONFIG"; then
4021    _pkg_min_version=0.9.0
4022    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4023echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4024    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4025      echo "$as_me:$LINENO: result: yes" >&5
4026echo "${ECHO_T}yes" >&6
4027    else
4028      echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6
4030      PKG_CONFIG=""
4031    fi
4032  fi
4033
4034  # check if pkg-config supports the short-errors flag
4035  if test -n "$PKG_CONFIG" && \
4036    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4037    pkg_short_errors=" --short-errors "
4038  else
4039    pkg_short_errors=""
4040  fi
4041fi
4042
4043
4044
4045if test -n "$PKG_CONFIG"; then
4046  COIN_HAS_PKGCONFIG_TRUE=
4047  COIN_HAS_PKGCONFIG_FALSE='#'
4048else
4049  COIN_HAS_PKGCONFIG_TRUE='#'
4050  COIN_HAS_PKGCONFIG_FALSE=
4051fi
4052
4053
4054
4055# assemble pkg-config search path for installed projects
4056COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4057
4058# 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
4059# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4060# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4061if test "x${prefix}" = xNONE ; then
4062  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4063else
4064  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4065fi
4066
4067
4068# Check whether --with-coin-instdir or --without-coin-instdir was given.
4069if test "${with_coin_instdir+set}" = set; then
4070  withval="$with_coin_instdir"
4071  if test -d "$withval"; then : ; else
4072     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4073echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4074   { (exit 1); exit 1; }; }
4075   fi
4076   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4077
4078fi;
4079
4080
4081
4082# assemble additional pkg-config search paths for uninstalled projects
4083if test x$coin_projectdir = xyes ; then
4084  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4085  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4086  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4087  # 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)
4088  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4089  if test -e ../coin_subdirs.txt ; then
4090    for i in `cat ../coin_subdirs.txt` ; do
4091      if test -d ../$i ; then
4092        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4093      fi
4094      if test -d ../$i/pkgconfig ; then
4095        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4096      fi
4097    done
4098  fi
4099
4100  if test -e ../../coin_subdirs.txt ; then
4101    for i in `cat ../../coin_subdirs.txt` ; do
4102      if test -d ../../$i ; then
4103        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4104      fi
4105      if test -d ../../$i/pkgconfig ; then
4106        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4107      fi
4108    done
4109  fi
4110
4111
4112fi
4113
4114
4115
4116# Get the linker flags (FLIBS) that are required for linking against this blas library
4117ac_ext=f
4118ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4119ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4121echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4122echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4123if test "${ac_cv_prog_f77_v+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  cat >conftest.$ac_ext <<_ACEOF
4127      program main
4128
4129      end
4130_ACEOF
4131rm -f conftest.$ac_objext
4132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133  (eval $ac_compile) 2>conftest.er1
4134  ac_status=$?
4135  grep -v '^ *+' conftest.er1 >conftest.err
4136  rm -f conftest.er1
4137  cat conftest.err >&5
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); } &&
4140         { ac_try='test -z "$ac_f77_werror_flag"
4141                         || test ! -s conftest.err'
4142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143  (eval $ac_try) 2>&5
4144  ac_status=$?
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); }; } &&
4147         { ac_try='test -s conftest.$ac_objext'
4148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149  (eval $ac_try) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }; }; then
4153  ac_cv_prog_f77_v=
4154# Try some options frequently used verbose output
4155for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4156  cat >conftest.$ac_ext <<_ACEOF
4157      program main
4158
4159      end
4160_ACEOF
4161
4162# Compile and link our simple test program by passing a flag (argument
4163# 1 to this macro) to the Fortran compiler in order to get
4164# "verbose" output that we can then parse for the Fortran linker
4165# flags.
4166ac_save_FFLAGS=$FFLAGS
4167FFLAGS="$FFLAGS $ac_verb"
4168(eval echo $as_me:4168: \"$ac_link\") >&5
4169ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4170echo "$ac_f77_v_output" >&5
4171FFLAGS=$ac_save_FFLAGS
4172
4173rm -f conftest*
4174
4175# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4176# /foo, /bar, and /baz are search directories for the Fortran linker.
4177# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4178ac_f77_v_output="`echo $ac_f77_v_output |
4179        grep 'LPATH is:' |
4180        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4181
4182case $ac_f77_v_output in
4183  # If we are using xlf then replace all the commas with spaces.
4184  *xlfentry*)
4185    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4186
4187  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4188  # $LIBS confuse us, and the libraries appear later in the output anyway).
4189  *mGLOB_options_string*)
4190    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4191
4192  # If we are using Cray Fortran then delete quotes.
4193  # Use "\"" instead of '"' for font-lock-mode.
4194  # FIXME: a more general fix for quoted arguments with spaces?
4195  *cft90*)
4196    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4197esac
4198
4199
4200  # look for -l* and *.a constructs in the output
4201  for ac_arg in $ac_f77_v_output; do
4202     case $ac_arg in
4203        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4204          ac_cv_prog_f77_v=$ac_verb
4205          break 2 ;;
4206     esac
4207  done
4208done
4209if test -z "$ac_cv_prog_f77_v"; then
4210   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4211echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4212fi
4213else
4214  echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4218echo "$as_me: WARNING: compilation failed" >&2;}
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221
4222fi
4223echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4224echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4225echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4226echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4227if test "${ac_cv_f77_libs+set}" = set; then
4228  echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230  if test "x$FLIBS" != "x"; then
4231  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4232else
4233
4234cat >conftest.$ac_ext <<_ACEOF
4235      program main
4236
4237      end
4238_ACEOF
4239
4240# Compile and link our simple test program by passing a flag (argument
4241# 1 to this macro) to the Fortran compiler in order to get
4242# "verbose" output that we can then parse for the Fortran linker
4243# flags.
4244ac_save_FFLAGS=$FFLAGS
4245FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4246(eval echo $as_me:4246: \"$ac_link\") >&5
4247ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4248echo "$ac_f77_v_output" >&5
4249FFLAGS=$ac_save_FFLAGS
4250
4251rm -f conftest*
4252
4253# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4254# /foo, /bar, and /baz are search directories for the Fortran linker.
4255# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4256ac_f77_v_output="`echo $ac_f77_v_output |
4257        grep 'LPATH is:' |
4258        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4259
4260case $ac_f77_v_output in
4261  # If we are using xlf then replace all the commas with spaces.
4262  *xlfentry*)
4263    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4264
4265  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4266  # $LIBS confuse us, and the libraries appear later in the output anyway).
4267  *mGLOB_options_string*)
4268    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4269
4270  # If we are using Cray Fortran then delete quotes.
4271  # Use "\"" instead of '"' for font-lock-mode.
4272  # FIXME: a more general fix for quoted arguments with spaces?
4273  *cft90*)
4274    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4275esac
4276
4277
4278
4279ac_cv_f77_libs=
4280
4281# Save positional arguments (if any)
4282ac_save_positional="$@"
4283
4284set X $ac_f77_v_output
4285while test $# != 1; do
4286  shift
4287  ac_arg=$1
4288  case $ac_arg in
4289        [\\/]*.a | ?:[\\/]*.a)
4290            ac_exists=false
4291  for ac_i in $ac_cv_f77_libs; do
4292    if test x"$ac_arg" = x"$ac_i"; then
4293      ac_exists=true
4294      break
4295    fi
4296  done
4297
4298  if test x"$ac_exists" = xtrue; then
4299  :
4300else
4301  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4302fi
4303
4304          ;;
4305        -bI:*)
4306            ac_exists=false
4307  for ac_i in $ac_cv_f77_libs; do
4308    if test x"$ac_arg" = x"$ac_i"; then
4309      ac_exists=true
4310      break
4311    fi
4312  done
4313
4314  if test x"$ac_exists" = xtrue; then
4315  :
4316else
4317  if test "$ac_compiler_gnu" = yes; then
4318  for ac_link_opt in $ac_arg; do
4319    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4320  done
4321else
4322  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4323fi
4324fi
4325
4326          ;;
4327          # Ignore these flags.
4328        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4329          ;;
4330        -lkernel32)
4331          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4332          ;;
4333        -[LRuY])
4334          # These flags, when seen by themselves, take an argument.
4335          # We remove the space between option and argument and re-iterate
4336          # unless we find an empty arg or a new option (starting with -)
4337          case $2 in
4338             "" | -*);;
4339             *)
4340                ac_arg="$ac_arg$2"
4341                shift; shift
4342                set X $ac_arg "$@"
4343                ;;
4344          esac
4345          ;;
4346        -YP,*)
4347          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4348              ac_exists=false
4349  for ac_i in $ac_cv_f77_libs; do
4350    if test x"$ac_j" = x"$ac_i"; then
4351      ac_exists=true
4352      break
4353    fi
4354  done
4355
4356  if test x"$ac_exists" = xtrue; then
4357  :
4358else
4359  ac_arg="$ac_arg $ac_j"
4360                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4361fi
4362
4363          done
4364          ;;
4365        -[lLR]*)
4366            ac_exists=false
4367  for ac_i in $ac_cv_f77_libs; do
4368    if test x"$ac_arg" = x"$ac_i"; then
4369      ac_exists=true
4370      break
4371    fi
4372  done
4373
4374  if test x"$ac_exists" = xtrue; then
4375  :
4376else
4377  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4378fi
4379
4380          ;;
4381          # Ignore everything else.
4382  esac
4383done
4384# restore positional arguments
4385set X $ac_save_positional; shift
4386
4387# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4388# then we insist that the "run path" must be an absolute path (i.e. it
4389# must begin with a "/").
4390case `(uname -sr) 2>/dev/null` in
4391   "SunOS 5"*)
4392      ac_ld_run_path=`echo $ac_f77_v_output |
4393                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4394      test "x$ac_ld_run_path" != x &&
4395        if test "$ac_compiler_gnu" = yes; then
4396  for ac_link_opt in $ac_ld_run_path; do
4397    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4398  done
4399else
4400  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4401fi
4402      ;;
4403esac
4404fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4405
4406fi
4407echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4408echo "${ECHO_T}$ac_cv_f77_libs" >&6
4409FLIBS="$ac_cv_f77_libs"
4410
4411
4412ac_ext=f
4413ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4414ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4416
4417ac_ext=f
4418ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4419ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4421
4422echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4423echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4424if test "${ac_cv_f77_dummy_main+set}" = set; then
4425  echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427  ac_f77_dm_save_LIBS=$LIBS
4428 LIBS="$LIBS $FLIBS"
4429 ac_fortran_dm_var=F77_DUMMY_MAIN
4430 ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
4436 # First, try linking without a dummy main:
4437 cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h.  */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h.  */
4443
4444#ifdef F77_DUMMY_MAIN
4445
4446#  ifdef __cplusplus
4447     extern "C"
4448#  endif
4449   int F77_DUMMY_MAIN() { return 1; }
4450
4451#endif
4452int
4453main ()
4454{
4455
4456  ;
4457  return 0;
4458}
4459_ACEOF
4460rm -f conftest.$ac_objext conftest$ac_exeext
4461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4462  (eval $ac_link) 2>conftest.er1
4463  ac_status=$?
4464  grep -v '^ *+' conftest.er1 >conftest.err
4465  rm -f conftest.er1
4466  cat conftest.err >&5
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); } &&
4469         { ac_try='test -z "$ac_c_werror_flag"
4470                         || test ! -s conftest.err'
4471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472  (eval $ac_try) 2>&5
4473  ac_status=$?
4474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475  (exit $ac_status); }; } &&
4476         { ac_try='test -s conftest$ac_exeext'
4477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478  (eval $ac_try) 2>&5
4479  ac_status=$?
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); }; }; then
4482  ac_cv_fortran_dummy_main=none
4483else
4484  echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487ac_cv_fortran_dummy_main=unknown
4488fi
4489rm -f conftest.err conftest.$ac_objext \
4490      conftest$ac_exeext conftest.$ac_ext
4491
4492 if test $ac_cv_fortran_dummy_main = unknown; then
4493   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4494     cat >conftest.$ac_ext <<_ACEOF
4495/* confdefs.h.  */
4496_ACEOF
4497cat confdefs.h >>conftest.$ac_ext
4498cat >>conftest.$ac_ext <<_ACEOF
4499/* end confdefs.h.  */
4500#define $ac_fortran_dm_var $ac_func
4501#ifdef F77_DUMMY_MAIN
4502
4503#  ifdef __cplusplus
4504     extern "C"
4505#  endif
4506   int F77_DUMMY_MAIN() { return 1; }
4507
4508#endif
4509int
4510main ()
4511{
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517rm -f conftest.$ac_objext conftest$ac_exeext
4518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519  (eval $ac_link) 2>conftest.er1
4520  ac_status=$?
4521  grep -v '^ *+' conftest.er1 >conftest.err
4522  rm -f conftest.er1
4523  cat conftest.err >&5
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); } &&
4526         { ac_try='test -z "$ac_c_werror_flag"
4527                         || test ! -s conftest.err'
4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; } &&
4533         { ac_try='test -s conftest$ac_exeext'
4534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535  (eval $ac_try) 2>&5
4536  ac_status=$?
4537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538  (exit $ac_status); }; }; then
4539  ac_cv_fortran_dummy_main=$ac_func; break
4540else
4541  echo "$as_me: failed program was:" >&5
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
4544fi
4545rm -f conftest.err conftest.$ac_objext \
4546      conftest$ac_exeext conftest.$ac_ext
4547   done
4548 fi
4549 ac_ext=f
4550ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4551ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4553 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4554 rm -f conftest*
4555 LIBS=$ac_f77_dm_save_LIBS
4556
4557fi
4558echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4559echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4560F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4561if test "$F77_DUMMY_MAIN" != unknown; then
4562  if test $F77_DUMMY_MAIN != none; then
4563
4564cat >>confdefs.h <<_ACEOF
4565#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4566_ACEOF
4567
4568  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4569
4570cat >>confdefs.h <<\_ACEOF
4571#define FC_DUMMY_MAIN_EQ_F77 1
4572_ACEOF
4573
4574  fi
4575fi
4576else
4577  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4578See \`config.log' for more details." >&5
4579echo "$as_me: error: linking to Fortran libraries from C fails
4580See \`config.log' for more details." >&2;}
4581   { (exit 1); exit 1; }; }
4582fi
4583
4584
4585ac_ext=f
4586ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4587ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4589
4590ac_ext=f
4591ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4592ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4594echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4595echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4596if test "${ac_cv_f77_mangling+set}" = set; then
4597  echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599  cat >conftest.$ac_ext <<_ACEOF
4600      subroutine foobar()
4601      return
4602      end
4603      subroutine foo_bar()
4604      return
4605      end
4606_ACEOF
4607rm -f conftest.$ac_objext
4608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609  (eval $ac_compile) 2>conftest.er1
4610  ac_status=$?
4611  grep -v '^ *+' conftest.er1 >conftest.err
4612  rm -f conftest.er1
4613  cat conftest.err >&5
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); } &&
4616         { ac_try='test -z "$ac_f77_werror_flag"
4617                         || test ! -s conftest.err'
4618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619  (eval $ac_try) 2>&5
4620  ac_status=$?
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); }; } &&
4623         { ac_try='test -s conftest.$ac_objext'
4624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625  (eval $ac_try) 2>&5
4626  ac_status=$?
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); }; }; then
4629  mv conftest.$ac_objext cfortran_test.$ac_objext
4630
4631  ac_save_LIBS=$LIBS
4632  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4633
4634  ac_ext=c
4635ac_cpp='$CPP $CPPFLAGS'
4636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639  ac_success=no
4640  for ac_foobar in foobar FOOBAR; do
4641    for ac_underscore in "" "_"; do
4642      ac_func="$ac_foobar$ac_underscore"
4643      cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h.  */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h.  */
4649
4650/* Override any gcc2 internal prototype to avoid an error.  */
4651#ifdef __cplusplus
4652extern "C"
4653#endif
4654/* We use char because int might match the return type of a gcc2
4655   builtin and then its argument prototype would still apply.  */
4656char $ac_func ();
4657#ifdef F77_DUMMY_MAIN
4658
4659#  ifdef __cplusplus
4660     extern "C"
4661#  endif
4662   int F77_DUMMY_MAIN() { return 1; }
4663
4664#endif
4665int
4666main ()
4667{
4668$ac_func ();
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673rm -f conftest.$ac_objext conftest$ac_exeext
4674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4675  (eval $ac_link) 2>conftest.er1
4676  ac_status=$?
4677  grep -v '^ *+' conftest.er1 >conftest.err
4678  rm -f conftest.er1
4679  cat conftest.err >&5
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); } &&
4682         { ac_try='test -z "$ac_c_werror_flag"
4683                         || test ! -s conftest.err'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; } &&
4689         { ac_try='test -s conftest$ac_exeext'
4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691  (eval $ac_try) 2>&5
4692  ac_status=$?
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); }; }; then
4695  ac_success=yes; break 2
4696else
4697  echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700fi
4701rm -f conftest.err conftest.$ac_objext \
4702      conftest$ac_exeext conftest.$ac_ext
4703    done
4704  done
4705  ac_ext=f
4706ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4707ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4709
4710  if test "$ac_success" = "yes"; then
4711     case $ac_foobar in
4712        foobar)
4713           ac_case=lower
4714           ac_foo_bar=foo_bar
4715           ;;
4716        FOOBAR)
4717           ac_case=upper
4718           ac_foo_bar=FOO_BAR
4719           ;;
4720     esac
4721
4722     ac_ext=c
4723ac_cpp='$CPP $CPPFLAGS'
4724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727     ac_success_extra=no
4728     for ac_extra in "" "_"; do
4729        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4730        cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736
4737/* Override any gcc2 internal prototype to avoid an error.  */
4738#ifdef __cplusplus
4739extern "C"
4740#endif
4741/* We use char because int might match the return type of a gcc2
4742   builtin and then its argument prototype would still apply.  */
4743char $ac_func ();
4744#ifdef F77_DUMMY_MAIN
4745
4746#  ifdef __cplusplus
4747     extern "C"
4748#  endif
4749   int F77_DUMMY_MAIN() { return 1; }
4750
4751#endif
4752int
4753main ()
4754{
4755$ac_func ();
4756  ;
4757  return 0;
4758}
4759_ACEOF
4760rm -f conftest.$ac_objext conftest$ac_exeext
4761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762  (eval $ac_link) 2>conftest.er1
4763  ac_status=$?
4764  grep -v '^ *+' conftest.er1 >conftest.err
4765  rm -f conftest.er1
4766  cat conftest.err >&5
4767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768  (exit $ac_status); } &&
4769         { ac_try='test -z "$ac_c_werror_flag"
4770                         || test ! -s conftest.err'
4771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772  (eval $ac_try) 2>&5
4773  ac_status=$?
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); }; } &&
4776         { ac_try='test -s conftest$ac_exeext'
4777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778  (eval $ac_try) 2>&5
4779  ac_status=$?
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); }; }; then
4782  ac_success_extra=yes; break
4783else
4784  echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787fi
4788rm -f conftest.err conftest.$ac_objext \
4789      conftest$ac_exeext conftest.$ac_ext
4790     done
4791     ac_ext=f
4792ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4793ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4795
4796     if test "$ac_success_extra" = "yes"; then
4797        ac_cv_f77_mangling="$ac_case case"
4798        if test -z "$ac_underscore"; then
4799           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4800        else
4801           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4802        fi
4803        if test -z "$ac_extra"; then
4804           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4805        else
4806           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4807        fi
4808      else
4809        ac_cv_f77_mangling="unknown"
4810      fi
4811  else
4812     ac_cv_f77_mangling="unknown"
4813  fi
4814
4815  LIBS=$ac_save_LIBS
4816  rm -f cfortran_test* conftest*
4817else
4818  echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4822See \`config.log' for more details." >&5
4823echo "$as_me: error: cannot compile a simple Fortran program
4824See \`config.log' for more details." >&2;}
4825   { (exit 1); exit 1; }; }
4826fi
4827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828
4829fi
4830echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4831echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4832
4833ac_ext=f
4834ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4835ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4837
4838
4839ac_ext=f
4840ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4841ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4843
4844
4845ac_ext=f
4846ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4847ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4849
4850
4851case $ac_cv_f77_mangling in
4852  "lower case, no underscore, no extra underscore")
4853          cat >>confdefs.h <<\_ACEOF
4854#define F77_FUNC(name,NAME) name
4855_ACEOF
4856
4857          cat >>confdefs.h <<\_ACEOF
4858#define F77_FUNC_(name,NAME) name
4859_ACEOF
4860 ;;
4861  "lower case, no underscore, extra underscore")
4862          cat >>confdefs.h <<\_ACEOF
4863#define F77_FUNC(name,NAME) name
4864_ACEOF
4865
4866          cat >>confdefs.h <<\_ACEOF
4867#define F77_FUNC_(name,NAME) name ## _
4868_ACEOF
4869 ;;
4870  "lower case, underscore, no extra underscore")
4871          cat >>confdefs.h <<\_ACEOF
4872#define F77_FUNC(name,NAME) name ## _
4873_ACEOF
4874
4875          cat >>confdefs.h <<\_ACEOF
4876#define F77_FUNC_(name,NAME) name ## _
4877_ACEOF
4878 ;;
4879  "lower case, underscore, extra underscore")
4880          cat >>confdefs.h <<\_ACEOF
4881#define F77_FUNC(name,NAME) name ## _
4882_ACEOF
4883
4884          cat >>confdefs.h <<\_ACEOF
4885#define F77_FUNC_(name,NAME) name ## __
4886_ACEOF
4887 ;;
4888  "upper case, no underscore, no extra underscore")
4889          cat >>confdefs.h <<\_ACEOF
4890#define F77_FUNC(name,NAME) NAME
4891_ACEOF
4892
4893          cat >>confdefs.h <<\_ACEOF
4894#define F77_FUNC_(name,NAME) NAME
4895_ACEOF
4896 ;;
4897  "upper case, no underscore, extra underscore")
4898          cat >>confdefs.h <<\_ACEOF
4899#define F77_FUNC(name,NAME) NAME
4900_ACEOF
4901
4902          cat >>confdefs.h <<\_ACEOF
4903#define F77_FUNC_(name,NAME) NAME ## _
4904_ACEOF
4905 ;;
4906  "upper case, underscore, no extra underscore")
4907          cat >>confdefs.h <<\_ACEOF
4908#define F77_FUNC(name,NAME) NAME ## _
4909_ACEOF
4910
4911          cat >>confdefs.h <<\_ACEOF
4912#define F77_FUNC_(name,NAME) NAME ## _
4913_ACEOF
4914 ;;
4915  "upper case, underscore, extra underscore")
4916          cat >>confdefs.h <<\_ACEOF
4917#define F77_FUNC(name,NAME) NAME ## _
4918_ACEOF
4919
4920          cat >>confdefs.h <<\_ACEOF
4921#define F77_FUNC_(name,NAME) NAME ## __
4922_ACEOF
4923 ;;
4924  *)
4925          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4926echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4927          ;;
4928esac
4929
4930ac_ext=f
4931ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4932ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4934
4935
4936# If FLIBS has been set by the user, we just restore its value here
4937if test x"$save_FLIBS" != x; then
4938  FLIBS="$save_FLIBS"
4939else
4940  # This is to correct a missing exclusion in autoconf 2.59
4941  if test x"$FLIBS" != x; then
4942    my_flibs=
4943    for flag in $FLIBS; do
4944      case $flag in
4945        -lcrt*.o) ;;
4946        -lcygwin) ;;
4947               *) my_flibs="$my_flibs $flag" ;;
4948      esac
4949    done
4950    FLIBS="$my_flibs"
4951  fi
4952
4953  case $build in
4954  # The following is a fix to define FLIBS for ifort on Windows
4955  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4956  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4957  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4958  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4959  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4960     *-cygwin* | *-mingw*)
4961       case "$F77" in
4962#         ifort* | */ifort* | IFORT* | */IFORT*)
4963#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4964#           if "$coin_debug_compile" = true ; then
4965#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4966#           else
4967#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4968#           fi
4969#           ;;
4970         compile_f2c*)
4971           FLIBS=`$F77 -FLIBS` ;;
4972       esac;;
4973     *-hp-*)
4974         FLIBS="$FLIBS -lm";;
4975     *-ibm-*)
4976         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4977     *-linux-*)
4978       case "$F77" in
4979         pgf77* | */pgf77* | pgf90* | */pgf90*)
4980# ask linker to go through the archives multiple times
4981# (the Fortran compiler seems to do that automatically...)
4982           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4983       esac
4984  esac
4985  ac_cv_f77_libs="$FLIBS"
4986fi
4987
4988ac_ext=c
4989ac_cpp='$CPP $CPPFLAGS'
4990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
4994
4995
4996
4997# Add FLIBS to HSL_PCLIBS, so that they get into the .pc files
4998HSL_PCLIBS="$HSL_PCLIBS $FLIBS"
4999
5000# Need egrep later on
5001echo "$as_me:$LINENO: checking for egrep" >&5
5002echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5003if test "${ac_cv_prog_egrep+set}" = set; then
5004  echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5007    then ac_cv_prog_egrep='grep -E'
5008    else ac_cv_prog_egrep='egrep'
5009    fi
5010fi
5011echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5012echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5013 EGREP=$ac_cv_prog_egrep
5014
5015
5016
5017# Also set up the FC compiler variable, required to compile .f90
5018# files.  We use the same compile and flags as F77 and FFLAGS, unless
5019# the user has set FC and FCFLAGS explicitly.
5020if test "$FC" = ""; then
5021  FC="$F77"
5022fi
5023if test "$FCFLAGS" = ""; then
5024  FCFLAGS="$FFLAGS"
5025fi
5026ac_ext=${FC_SRCEXT-f}
5027ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5028ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5029ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5030if test -n "$ac_tool_prefix"; then
5031  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5032  do
5033    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5035echo "$as_me:$LINENO: checking for $ac_word" >&5
5036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037if test "${ac_cv_prog_FC+set}" = set; then
5038  echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040  if test -n "$FC"; then
5041  ac_cv_prog_FC="$FC" # Let the user override the test.
5042else
5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046  IFS=$as_save_IFS
5047  test -z "$as_dir" && as_dir=.
5048  for ac_exec_ext in '' $ac_executable_extensions; do
5049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052    break 2
5053  fi
5054done
5055done
5056
5057fi
5058fi
5059FC=$ac_cv_prog_FC
5060if test -n "$FC"; then
5061  echo "$as_me:$LINENO: result: $FC" >&5
5062echo "${ECHO_T}$FC" >&6
5063else
5064  echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066fi
5067
5068    test -n "$FC" && break
5069  done
5070fi
5071if test -z "$FC"; then
5072  ac_ct_FC=$FC
5073  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
5074do
5075  # Extract the first word of "$ac_prog", so it can be a program name with args.
5076set dummy $ac_prog; ac_word=$2
5077echo "$as_me:$LINENO: checking for $ac_word" >&5
5078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5079if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  if test -n "$ac_ct_FC"; then
5083  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088  IFS=$as_save_IFS
5089  test -z "$as_dir" && as_dir=.
5090  for ac_exec_ext in '' $ac_executable_extensions; do
5091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092    ac_cv_prog_ac_ct_FC="$ac_prog"
5093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094    break 2
5095  fi
5096done
5097done
5098
5099fi
5100fi
5101ac_ct_FC=$ac_cv_prog_ac_ct_FC
5102if test -n "$ac_ct_FC"; then
5103  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
5104echo "${ECHO_T}$ac_ct_FC" >&6
5105else
5106  echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108fi
5109
5110  test -n "$ac_ct_FC" && break
5111done
5112
5113  FC=$ac_ct_FC
5114fi
5115
5116
5117# Provide some information about the compiler.
5118echo "$as_me:5118:" \
5119     "checking for Fortran compiler version" >&5
5120ac_compiler=`set X $ac_compile; echo $2`
5121{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5122  (eval $ac_compiler --version </dev/null >&5) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }
5126{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5127  (eval $ac_compiler -v </dev/null >&5) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }
5131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5132  (eval $ac_compiler -V </dev/null >&5) 2>&5
5133  ac_status=$?
5134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135  (exit $ac_status); }
5136rm -f a.out
5137
5138# If we don't use `.F' as extension, the preprocessor is not run on the
5139# input file.  (Note that this only needs to work for GNU compilers.)
5140ac_save_ext=$ac_ext
5141ac_ext=F
5142echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
5143echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
5144if test "${ac_cv_fc_compiler_gnu+set}" = set; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147  cat >conftest.$ac_ext <<_ACEOF
5148      program main
5149#ifndef __GNUC__
5150       choke me
5151#endif
5152
5153      end
5154_ACEOF
5155rm -f conftest.$ac_objext
5156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157  (eval $ac_compile) 2>conftest.er1
5158  ac_status=$?
5159  grep -v '^ *+' conftest.er1 >conftest.err
5160  rm -f conftest.er1
5161  cat conftest.err >&5
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); } &&
5164         { ac_try='test -z "$ac_fc_werror_flag"
5165                         || test ! -s conftest.err'
5166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167  (eval $ac_try) 2>&5
5168  ac_status=$?
5169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170  (exit $ac_status); }; } &&
5171         { ac_try='test -s conftest.$ac_objext'
5172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173  (eval $ac_try) 2>&5
5174  ac_status=$?
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); }; }; then
5177  ac_compiler_gnu=yes
5178else
5179  echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182ac_compiler_gnu=no
5183fi
5184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5186
5187fi
5188echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
5189echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
5190ac_ext=$ac_save_ext
5191ac_test_FFLAGS=${FCFLAGS+set}
5192ac_save_FFLAGS=$FCFLAGS
5193FCFLAGS=
5194echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
5195echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
5196if test "${ac_cv_prog_fc_g+set}" = set; then
5197  echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199  FCFLAGS=-g
5200cat >conftest.$ac_ext <<_ACEOF
5201      program main
5202
5203      end
5204_ACEOF
5205rm -f conftest.$ac_objext
5206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5207  (eval $ac_compile) 2>conftest.er1
5208  ac_status=$?
5209  grep -v '^ *+' conftest.er1 >conftest.err
5210  rm -f conftest.er1
5211  cat conftest.err >&5
5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); } &&
5214         { ac_try='test -z "$ac_fc_werror_flag"
5215                         || test ! -s conftest.err'
5216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217  (eval $ac_try) 2>&5
5218  ac_status=$?
5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); }; } &&
5221         { ac_try='test -s conftest.$ac_objext'
5222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223  (eval $ac_try) 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); }; }; then
5227  ac_cv_prog_fc_g=yes
5228else
5229  echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232ac_cv_prog_fc_g=no
5233fi
5234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5235
5236fi
5237echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
5238echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
5239if test "$ac_test_FFLAGS" = set; then
5240  FCFLAGS=$ac_save_FFLAGS
5241elif test $ac_cv_prog_fc_g = yes; then
5242  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5243    FCFLAGS="-g -O2"
5244  else
5245    FCFLAGS="-g"
5246  fi
5247else
5248  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5249    FCFLAGS="-O2"
5250  else
5251    FCFLAGS=
5252  fi
5253fi
5254
5255ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260
5261
5262# Initialize autotools
5263
5264if test x$enable_loadable_library = xyes; then
5265  flag=force_shared
5266fi
5267{
5268
5269
5270
5271# START
5272
5273# Test if force_shared has been set
5274if test "x$flag" = xforce_shared; then
5275  if test x$enable_shared = xno; then
5276    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5277echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5278   { (exit 1); exit 1; }; }
5279  fi
5280  enable_shared=yes;
5281else
5282  # On Cygwin and AIX, building DLLs doesn't work
5283  case $build in
5284    *-cygwin*)
5285      coin_disable_shared=yes
5286      platform=Cygwin
5287    ;;
5288    *-aix*)
5289      coin_disable_shared=yes
5290      platform=AIX
5291    ;;
5292    *-mingw*)
5293      coin_disable_shared=yes
5294      platform="Msys"
5295#      case "$CXX" in
5296#        cl*)
5297#          coin_disable_shared=yes
5298#          platform="Msys with cl"
5299#      ;;
5300#      esac
5301    ;;
5302  esac
5303fi
5304if test x"$coin_disable_shared" = xyes; then
5305  if test x"$enable_shared" = xyes; then
5306    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5307echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5308  fi
5309  enable_shared=no
5310fi
5311# By default, we only want the shared objects to be compiled
5312# Check whether --enable-static or --disable-static was given.
5313if test "${enable_static+set}" = set; then
5314  enableval="$enable_static"
5315  p=${PACKAGE-default}
5316    case $enableval in
5317    yes) enable_static=yes ;;
5318    no) enable_static=no ;;
5319    *)
5320     enable_static=no
5321      # Look at the argument we got.  We use all the common list separators.
5322      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5323      for pkg in $enableval; do
5324        IFS="$lt_save_ifs"
5325        if test "X$pkg" = "X$p"; then
5326          enable_static=yes
5327        fi
5328      done
5329      IFS="$lt_save_ifs"
5330      ;;
5331    esac
5332else
5333  enable_static=no
5334fi;
5335
5336
5337
5338
5339# Initialize automake
5340am__api_version="1.9"
5341# Find a good install program.  We prefer a C program (faster),
5342# so one script is as good as another.  But avoid the broken or
5343# incompatible versions:
5344# SysV /etc/install, /usr/sbin/install
5345# SunOS /usr/etc/install
5346# IRIX /sbin/install
5347# AIX /bin/install
5348# AmigaOS /C/install, which installs bootblocks on floppy discs
5349# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5350# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5351# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5352# OS/2's system install, which has a completely different semantic
5353# ./install, which can be erroneously created by make from ./install.sh.
5354echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5355echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5356if test -z "$INSTALL"; then
5357if test "${ac_cv_path_install+set}" = set; then
5358  echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363  IFS=$as_save_IFS
5364  test -z "$as_dir" && as_dir=.
5365  # Account for people who put trailing slashes in PATH elements.
5366case $as_dir/ in
5367  ./ | .// | /cC/* | \
5368  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5369  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5370  /usr/ucb/* ) ;;
5371  *)
5372    # OSF1 and SCO ODT 3.0 have their own names for install.
5373    # Don't use installbsd from OSF since it installs stuff as root
5374    # by default.
5375    for ac_prog in ginstall scoinst install; do
5376      for ac_exec_ext in '' $ac_executable_extensions; do
5377        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5378          if test $ac_prog = install &&
5379            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5380            # AIX install.  It has an incompatible calling convention.
5381            :
5382          elif test $ac_prog = install &&
5383            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5384            # program-specific install script used by HP pwplus--don't use.
5385            :
5386          else
5387            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5388            break 3
5389          fi
5390        fi
5391      done
5392    done
5393    ;;
5394esac
5395done
5396
5397
5398fi
5399  if test "${ac_cv_path_install+set}" = set; then
5400    INSTALL=$ac_cv_path_install
5401  else
5402    # As a last resort, use the slow shell script.  We don't cache a
5403    # path for INSTALL within a source directory, because that will
5404    # break other packages using the cache if that directory is
5405    # removed, or if the path is relative.
5406    INSTALL=$ac_install_sh
5407  fi
5408fi
5409echo "$as_me:$LINENO: result: $INSTALL" >&5
5410echo "${ECHO_T}$INSTALL" >&6
5411
5412# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5413# It thinks the first close brace ends the variable substitution.
5414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5415
5416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5417
5418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5419
5420echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5421echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5422# Just in case
5423sleep 1
5424echo timestamp > conftest.file
5425# Do `set' in a subshell so we don't clobber the current shell's
5426# arguments.  Must try -L first in case configure is actually a
5427# symlink; some systems play weird games with the mod time of symlinks
5428# (eg FreeBSD returns the mod time of the symlink's containing
5429# directory).
5430if (
5431   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5432   if test "$*" = "X"; then
5433      # -L didn't work.
5434      set X `ls -t $srcdir/configure conftest.file`
5435   fi
5436   rm -f conftest.file
5437   if test "$*" != "X $srcdir/configure conftest.file" \
5438      && test "$*" != "X conftest.file $srcdir/configure"; then
5439
5440      # If neither matched, then we have a broken ls.  This can happen
5441      # if, for instance, CONFIG_SHELL is bash and it inherits a
5442      # broken ls alias from the environment.  This has actually
5443      # happened.  Such a system could not be considered "sane".
5444      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5445alias in your environment" >&5
5446echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5447alias in your environment" >&2;}
5448   { (exit 1); exit 1; }; }
5449   fi
5450
5451   test "$2" = conftest.file
5452   )
5453then
5454   # Ok.
5455   :
5456else
5457   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5458Check your system clock" >&5
5459echo "$as_me: error: newly created file is older than distributed files!
5460Check your system clock" >&2;}
5461   { (exit 1); exit 1; }; }
5462fi
5463echo "$as_me:$LINENO: result: yes" >&5
5464echo "${ECHO_T}yes" >&6
5465test "$program_prefix" != NONE &&
5466  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5467# Use a double $ so make ignores it.
5468test "$program_suffix" != NONE &&
5469  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5470# Double any \ or $.  echo might interpret backslashes.
5471# By default was `s,x,x', remove it if useless.
5472cat <<\_ACEOF >conftest.sed
5473s/[\\$]/&&/g;s/;s,x,x,$//
5474_ACEOF
5475program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5476rm conftest.sed
5477
5478# expand $ac_aux_dir to an absolute path
5479am_aux_dir=`cd $ac_aux_dir && pwd`
5480
5481test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5482# Use eval to expand $SHELL
5483if eval "$MISSING --run true"; then
5484  am_missing_run="$MISSING --run "
5485else
5486  am_missing_run=
5487  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5488echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5489fi
5490
5491if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5492  # We used to keeping the `.' as first argument, in order to
5493  # allow $(mkdir_p) to be used without argument.  As in
5494  #   $(mkdir_p) $(somedir)
5495  # where $(somedir) is conditionally defined.  However this is wrong
5496  # for two reasons:
5497  #  1. if the package is installed by a user who cannot write `.'
5498  #     make install will fail,
5499  #  2. the above comment should most certainly read
5500  #     $(mkdir_p) $(DESTDIR)$(somedir)
5501  #     so it does not work when $(somedir) is undefined and
5502  #     $(DESTDIR) is not.
5503  #  To support the latter case, we have to write
5504  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5505  #  so the `.' trick is pointless.
5506  mkdir_p='mkdir -p --'
5507else
5508  # On NextStep and OpenStep, the `mkdir' command does not
5509  # recognize any option.  It will interpret all options as
5510  # directories to create, and then abort because `.' already
5511  # exists.
5512  for d in ./-p ./--version;
5513  do
5514    test -d $d && rmdir $d
5515  done
5516  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5517  if test -f "$ac_aux_dir/mkinstalldirs"; then
5518    mkdir_p='$(mkinstalldirs)'
5519  else
5520    mkdir_p='$(install_sh) -d'
5521  fi
5522fi
5523
5524for ac_prog in gawk mawk nawk awk
5525do
5526  # Extract the first word of "$ac_prog", so it can be a program name with args.
5527set dummy $ac_prog; ac_word=$2
5528echo "$as_me:$LINENO: checking for $ac_word" >&5
5529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530if test "${ac_cv_prog_AWK+set}" = set; then
5531  echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533  if test -n "$AWK"; then
5534  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539  IFS=$as_save_IFS
5540  test -z "$as_dir" && as_dir=.
5541  for ac_exec_ext in '' $ac_executable_extensions; do
5542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543    ac_cv_prog_AWK="$ac_prog"
5544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545    break 2
5546  fi
5547done
5548done
5549
5550fi
5551fi
5552AWK=$ac_cv_prog_AWK
5553if test -n "$AWK"; then
5554  echo "$as_me:$LINENO: result: $AWK" >&5
5555echo "${ECHO_T}$AWK" >&6
5556else
5557  echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559fi
5560
5561  test -n "$AWK" && break
5562done
5563
5564echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5565echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5566set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5567if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5568  echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570  cat >conftest.make <<\_ACEOF
5571all:
5572        @echo 'ac_maketemp="$(MAKE)"'
5573_ACEOF
5574# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5575eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5576if test -n "$ac_maketemp"; then
5577  eval ac_cv_prog_make_${ac_make}_set=yes
5578else
5579  eval ac_cv_prog_make_${ac_make}_set=no
5580fi
5581rm -f conftest.make
5582fi
5583if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5584  echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
5586  SET_MAKE=
5587else
5588  echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590  SET_MAKE="MAKE=${MAKE-make}"
5591fi
5592
5593rm -rf .tst 2>/dev/null
5594mkdir .tst 2>/dev/null
5595if test -d .tst; then
5596  am__leading_dot=.
5597else
5598  am__leading_dot=_
5599fi
5600rmdir .tst 2>/dev/null
5601
5602DEPDIR="${am__leading_dot}deps"
5603
5604          ac_config_commands="$ac_config_commands depfiles"
5605
5606
5607am_make=${MAKE-make}
5608cat > confinc << 'END'
5609am__doit:
5610        @echo done
5611.PHONY: am__doit
5612END
5613# If we don't find an include directive, just comment out the code.
5614echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5615echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5616am__include="#"
5617am__quote=
5618_am_result=none
5619# First try GNU make style include.
5620echo "include confinc" > confmf
5621# We grep out `Entering directory' and `Leaving directory'
5622# messages which can occur if `w' ends up in MAKEFLAGS.
5623# In particular we don't look at `^make:' because GNU make might
5624# be invoked under some other name (usually "gmake"), in which
5625# case it prints its new name instead of `make'.
5626if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5627   am__include=include
5628   am__quote=
5629   _am_result=GNU
5630fi
5631# Now try BSD make style include.
5632if test "$am__include" = "#"; then
5633   echo '.include "confinc"' > confmf
5634   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5635      am__include=.include
5636      am__quote="\""
5637      _am_result=BSD
5638   fi
5639fi
5640
5641
5642echo "$as_me:$LINENO: result: $_am_result" >&5
5643echo "${ECHO_T}$_am_result" >&6
5644rm -f confinc confmf
5645
5646# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5647if test "${enable_dependency_tracking+set}" = set; then
5648  enableval="$enable_dependency_tracking"
5649
5650fi;
5651if test "x$enable_dependency_tracking" != xno; then
5652  am_depcomp="$ac_aux_dir/depcomp"
5653  AMDEPBACKSLASH='\'
5654fi
5655
5656
5657if test "x$enable_dependency_tracking" != xno; then
5658  AMDEP_TRUE=
5659  AMDEP_FALSE='#'
5660else
5661  AMDEP_TRUE='#'
5662  AMDEP_FALSE=
5663fi
5664
5665
5666
5667
5668
5669# AC_MSG_NOTICE([Beginning automake initialisation.])
5670# Stuff for automake
5671# test to see if srcdir already configured
5672if test "`cd $srcdir && pwd`" != "`pwd`" &&
5673   test -f $srcdir/config.status; then
5674  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5675echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5676   { (exit 1); exit 1; }; }
5677fi
5678
5679# test whether we have cygpath
5680if test -z "$CYGPATH_W"; then
5681  if (cygpath --version) >/dev/null 2>/dev/null; then
5682    CYGPATH_W='cygpath -w'
5683  else
5684    CYGPATH_W=echo
5685  fi
5686fi
5687
5688
5689# Define the identity of the package.
5690 PACKAGE='thirdpartyhsl'
5691 VERSION='trunk'
5692
5693
5694cat >>confdefs.h <<_ACEOF
5695#define PACKAGE "$PACKAGE"
5696_ACEOF
5697
5698
5699cat >>confdefs.h <<_ACEOF
5700#define VERSION "$VERSION"
5701_ACEOF
5702
5703# Some tools Automake needs.
5704
5705ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5706
5707
5708AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5709
5710
5711AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5712
5713
5714AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5715
5716
5717MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5718
5719install_sh=${install_sh-"$am_aux_dir/install-sh"}
5720
5721# Installed binaries are usually stripped using `strip' when the user
5722# run `make install-strip'.  However `strip' might not be the right
5723# tool to use in cross-compilation environments, therefore Automake
5724# will honor the `STRIP' environment variable to overrule this program.
5725if test "$cross_compiling" != no; then
5726  if test -n "$ac_tool_prefix"; then
5727  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728set dummy ${ac_tool_prefix}strip; ac_word=$2
5729echo "$as_me:$LINENO: checking for $ac_word" >&5
5730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731if test "${ac_cv_prog_STRIP+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  if test -n "$STRIP"; then
5735  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740  IFS=$as_save_IFS
5741  test -z "$as_dir" && as_dir=.
5742  for ac_exec_ext in '' $ac_executable_extensions; do
5743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746    break 2
5747  fi
5748done
5749done
5750
5751fi
5752fi
5753STRIP=$ac_cv_prog_STRIP
5754if test -n "$STRIP"; then
5755  echo "$as_me:$LINENO: result: $STRIP" >&5
5756echo "${ECHO_T}$STRIP" >&6
5757else
5758  echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760fi
5761
5762fi
5763if test -z "$ac_cv_prog_STRIP"; then
5764  ac_ct_STRIP=$STRIP
5765  # Extract the first word of "strip", so it can be a program name with args.
5766set dummy strip; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  if test -n "$ac_ct_STRIP"; then
5773  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  test -z "$as_dir" && as_dir=.
5780  for ac_exec_ext in '' $ac_executable_extensions; do
5781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782    ac_cv_prog_ac_ct_STRIP="strip"
5783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784    break 2
5785  fi
5786done
5787done
5788
5789  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5790fi
5791fi
5792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793if test -n "$ac_ct_STRIP"; then
5794  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795echo "${ECHO_T}$ac_ct_STRIP" >&6
5796else
5797  echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799fi
5800
5801  STRIP=$ac_ct_STRIP
5802else
5803  STRIP="$ac_cv_prog_STRIP"
5804fi
5805
5806fi
5807INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5808
5809# We need awk for the "check" target.  The system "awk" is bad on
5810# some platforms.
5811# Always define AMTAR for backward compatibility.
5812
5813AMTAR=${AMTAR-"${am_missing_run}tar"}
5814
5815am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5816
5817
5818
5819
5820depcc="$CC"   am_compiler_list=
5821
5822echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5823echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5824if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5828  # We make a subdir and do the tests there.  Otherwise we can end up
5829  # making bogus files that we don't know about and never remove.  For
5830  # instance it was reported that on HP-UX the gcc test will end up
5831  # making a dummy file named `D' -- because `-MD' means `put the output
5832  # in D'.
5833  mkdir conftest.dir
5834  # Copy depcomp to subdir because otherwise we won't find it if we're
5835  # using a relative directory.
5836  cp "$am_depcomp" conftest.dir
5837  cd conftest.dir
5838  # We will build objects and dependencies in a subdirectory because
5839  # it helps to detect inapplicable dependency modes.  For instance
5840  # both Tru64's cc and ICC support -MD to output dependencies as a
5841  # side effect of compilation, but ICC will put the dependencies in
5842  # the current directory while Tru64 will put them in the object
5843  # directory.
5844  mkdir sub
5845
5846  am_cv_CC_dependencies_compiler_type=none
5847  if test "$am_compiler_list" = ""; then
5848     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5849  fi
5850  for depmode in $am_compiler_list; do
5851    # Setup a source with many dependencies, because some compilers
5852    # like to wrap large dependency lists on column 80 (with \), and
5853    # we should not choose a depcomp mode which is confused by this.
5854    #
5855    # We need to recreate these files for each test, as the compiler may
5856    # overwrite some of them when testing with obscure command lines.
5857    # This happens at least with the AIX C compiler.
5858    : > sub/conftest.c
5859    for i in 1 2 3 4 5 6; do
5860      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5861      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5862      # Solaris 8's {/usr,}/bin/sh.
5863      touch sub/conftst$i.h
5864    done
5865    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5866
5867    case $depmode in
5868    nosideeffect)
5869      # after this tag, mechanisms are not by side-effect, so they'll
5870      # only be used when explicitly requested
5871      if test "x$enable_dependency_tracking" = xyes; then
5872        continue
5873      else
5874        break
5875      fi
5876      ;;
5877    none) break ;;
5878    esac
5879    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5880    # mode.  It turns out that the SunPro C++ compiler does not properly
5881    # handle `-M -o', and we need to detect this.
5882    if depmode=$depmode \
5883       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5884       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5885       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5886         >/dev/null 2>conftest.err &&
5887       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5888       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5889       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5890      # icc doesn't choke on unknown options, it will just issue warnings
5891      # or remarks (even with -Werror).  So we grep stderr for any message
5892      # that says an option was ignored or not supported.
5893      # When given -MP, icc 7.0 and 7.1 complain thusly:
5894      #   icc: Command line warning: ignoring option '-M'; no argument required
5895      # The diagnosis changed in icc 8.0:
5896      #   icc: Command line remark: option '-MP' not supported
5897      if (grep 'ignoring option' conftest.err ||
5898          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5899        am_cv_CC_dependencies_compiler_type=$depmode
5900        break
5901      fi
5902    fi
5903  done
5904
5905  cd ..
5906  rm -rf conftest.dir
5907else
5908  am_cv_CC_dependencies_compiler_type=none
5909fi
5910
5911fi
5912echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5913echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5914CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5915
5916
5917
5918if
5919  test "x$enable_dependency_tracking" != xno \
5920  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5921  am__fastdepCC_TRUE=
5922  am__fastdepCC_FALSE='#'
5923else
5924  am__fastdepCC_TRUE='#'
5925  am__fastdepCC_FALSE=
5926fi
5927
5928
5929
5930echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5931echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5932    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5933if test "${enable_maintainer_mode+set}" = set; then
5934  enableval="$enable_maintainer_mode"
5935  USE_MAINTAINER_MODE=$enableval
5936else
5937  USE_MAINTAINER_MODE=no
5938fi;
5939  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5940echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5941
5942
5943if test $USE_MAINTAINER_MODE = yes; then
5944  MAINTAINER_MODE_TRUE=
5945  MAINTAINER_MODE_FALSE='#'
5946else
5947  MAINTAINER_MODE_TRUE='#'
5948  MAINTAINER_MODE_FALSE=
5949fi
5950
5951  MAINT=$MAINTAINER_MODE_TRUE
5952
5953
5954
5955coin_have_externals=no
5956if test "$enable_maintainer_mode" = yes; then
5957
5958  # If maintainer mode is chosen, we make sure that the correct versions
5959  # of the tools are used, and that we know where libtool.m4 is (to
5960  # recreate acinclude.m4)
5961
5962
5963  LIBTOOLM4=
5964  # Normally, $HOME
5965  AUTOTOOLS_DFLT=$HOME
5966
5967  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5968echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5969if test "${ac_cv_use_correct_autotools+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  ac_cv_use_correct_autotools=check
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5975echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5976
5977  if test $ac_cv_use_correct_autotools = check; then
5978    ac_cv_use_correct_autotools=yes
5979    # Check if we have autoconf
5980    # Extract the first word of "autoconf", so it can be a program name with args.
5981set dummy autoconf; ac_word=$2
5982echo "$as_me:$LINENO: checking for $ac_word" >&5
5983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984if test "${ac_cv_prog_have_autoconf+set}" = set; then
5985  echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987  if test -n "$have_autoconf"; then
5988  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995  for ac_exec_ext in '' $ac_executable_extensions; do
5996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997    ac_cv_prog_have_autoconf="yes"
5998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999    break 2
6000  fi
6001done
6002done
6003
6004  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6005fi
6006fi
6007have_autoconf=$ac_cv_prog_have_autoconf
6008if test -n "$have_autoconf"; then
6009  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6010echo "${ECHO_T}$have_autoconf" >&6
6011else
6012  echo "$as_me:$LINENO: result: no" >&5
6013echo "${ECHO_T}no" >&6
6014fi
6015
6016    if test $have_autoconf = no; then
6017      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6018echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6019   { (exit 1); exit 1; }; }
6020    fi
6021
6022    # Check whether autoconf is the correct version
6023    correct_version='2.59'
6024    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6025    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6026echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6027    autoconf --version > confauto.out 2>&1
6028    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6029      echo "$as_me:$LINENO: result: yes" >&5
6030echo "${ECHO_T}yes" >&6
6031    else
6032      rm -f confauto.out
6033      echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6
6035      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6036echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6037   { (exit 1); exit 1; }; }
6038    fi
6039    rm -f confauto.out
6040
6041    # Check if the executable autoconf is picked up from the correct location
6042    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6043echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6044    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6045    autoconf_dir=`cd $autoconf_dir; pwd`
6046    if test x$AUTOTOOLS_DIR = x; then
6047      want_dir=$AUTOTOOLS_DFLT/bin
6048    else
6049      want_dir=$AUTOTOOLS_DIR/bin
6050    fi
6051    if test $autoconf_dir = `cd $want_dir; pwd`; then
6052      echo "$as_me:$LINENO: result: yes" >&5
6053echo "${ECHO_T}yes" >&6
6054    else
6055      rm -f confauto.out
6056      echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6059echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6060   { (exit 1); exit 1; }; }
6061    fi
6062
6063    # Check if we have automake
6064    # Extract the first word of "automake", so it can be a program name with args.
6065set dummy automake; ac_word=$2
6066echo "$as_me:$LINENO: checking for $ac_word" >&5
6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068if test "${ac_cv_prog_have_automake+set}" = set; then
6069  echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071  if test -n "$have_automake"; then
6072  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077  IFS=$as_save_IFS
6078  test -z "$as_dir" && as_dir=.
6079  for ac_exec_ext in '' $ac_executable_extensions; do
6080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081    ac_cv_prog_have_automake="yes"
6082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083    break 2
6084  fi
6085done
6086done
6087
6088  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6089fi
6090fi
6091have_automake=$ac_cv_prog_have_automake
6092if test -n "$have_automake"; then
6093  echo "$as_me:$LINENO: result: $have_automake" >&5
6094echo "${ECHO_T}$have_automake" >&6
6095else
6096  echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
6098fi
6099
6100    if test $have_automake = no; then
6101      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6102echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6103   { (exit 1); exit 1; }; }
6104    fi
6105
6106    # Check whether automake is the correct version
6107    correct_version='1.9.6'
6108    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6109    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6110echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6111    automake --version > confauto.out 2>&1
6112    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6113      echo "$as_me:$LINENO: result: yes" >&5
6114echo "${ECHO_T}yes" >&6
6115    else
6116      rm -f confauto.out
6117      echo "$as_me:$LINENO: result: no" >&5
6118echo "${ECHO_T}no" >&6
6119      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6120echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6121   { (exit 1); exit 1; }; }
6122    fi
6123    rm -f confauto.out
6124
6125    # Check if the executable automake is picked up from the correct location
6126    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6127echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6128    automake_dir=`which automake | sed -e 's=/automake=='`
6129    automake_dir=`cd $automake_dir; pwd`
6130    if test x$AUTOTOOLS_DIR = x; then
6131      want_dir=$AUTOTOOLS_DFLT/bin
6132    else
6133      want_dir=$AUTOTOOLS_DIR/bin
6134    fi
6135    if test $automake_dir = `cd $want_dir; pwd`; then
6136      echo "$as_me:$LINENO: result: yes" >&5
6137echo "${ECHO_T}yes" >&6
6138    else
6139      rm -f confauto.out
6140      echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
6142      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6143echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6144   { (exit 1); exit 1; }; }
6145    fi
6146
6147    # Check if this is the correct version of libtool (with escaped dots)
6148    if test x$AUTOTOOLS_DIR = x; then
6149      want_dir=$AUTOTOOLS_DFLT/share
6150    else
6151      want_dir=$AUTOTOOLS_DIR/share
6152    fi
6153    correct_version='1.5.22'
6154    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6155    if test -r $want_dir/libtool/ltmain.sh; then
6156  have_ltmain=yes
6157  :
6158else
6159  have_ltmain=no
6160  :
6161fi
6162
6163    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6164echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6165    if test $have_ltmain = yes; then
6166    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6167        echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169      else
6170        echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6173echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6174   { (exit 1); exit 1; }; }
6175      fi
6176    else
6177      echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
6179      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6180echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6181   { (exit 1); exit 1; }; }
6182    fi
6183  fi
6184
6185  # Check if we can find the libtool file
6186  if test x$AUTOTOOLS_DIR = x; then
6187    want_dir=$AUTOTOOLS_DFLT/share
6188  else
6189    want_dir=$AUTOTOOLS_DIR/share
6190  fi
6191  if test -r $want_dir/aclocal/libtool.m4; then
6192  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6193  :
6194else
6195  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6196echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6197   { (exit 1); exit 1; }; }
6198  :
6199fi
6200
6201
6202  # Check if we have an Externals file
6203  if test -r $srcdir/Externals; then
6204    coin_have_externals=yes
6205  fi
6206  # Check if subversion is installed and understands https
6207  # Extract the first word of "svn", so it can be a program name with args.
6208set dummy svn; ac_word=$2
6209echo "$as_me:$LINENO: checking for $ac_word" >&5
6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211if test "${ac_cv_prog_have_svn+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  if test -n "$have_svn"; then
6215  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  test -z "$as_dir" && as_dir=.
6222  for ac_exec_ext in '' $ac_executable_extensions; do
6223  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224    ac_cv_prog_have_svn="yes"
6225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229done
6230
6231  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6232fi
6233fi
6234have_svn=$ac_cv_prog_have_svn
6235if test -n "$have_svn"; then
6236  echo "$as_me:$LINENO: result: $have_svn" >&5
6237echo "${ECHO_T}$have_svn" >&6
6238else
6239  echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
6241fi
6242
6243  if test x$have_svn = xyes; then
6244    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6245echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6246if test "${ac_cv_svn_understands_https+set}" = set; then
6247  echo $ECHO_N "(cached) $ECHO_C" >&6
6248else
6249  svn --version > confauto.out 2>&1
6250                    if $EGREP https confauto.out >/dev/null 2>&1; then
6251                      ac_cv_svn_understands_https=yes
6252                    else
6253                      ac_cv_svn_understands_https=no
6254                      have_svn=no
6255                      ac_cv_prog_have_svn=no
6256                    fi
6257                    rm -f confauto.out
6258fi
6259echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6260echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6261  fi
6262
6263  # Find the location of the BuildTools directory
6264  BUILDTOOLSDIR=
6265  if test -r $srcdir/BuildTools/coin.m4; then
6266    BUILDTOOLSDIR=$srcdir/BuildTools
6267  else
6268    if test -r $srcdir/../BuildTools/coin.m4; then
6269      BUILDTOOLSDIR=$srcdir/../BuildTools
6270    else
6271      if test -r $srcdir/../../BuildTools/coin.m4; then
6272        BUILDTOOLSDIR=$srcdir/../../BuildTools
6273      else
6274        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6275echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6276   { (exit 1); exit 1; }; }
6277      fi
6278    fi
6279  fi
6280
6281
6282  # The following variable is set to the name of the directory where
6283  # the autotool scripts are located
6284
6285  AUX_DIR=$ac_aux_dir
6286fi
6287
6288# helpful variable for the base directory of this package
6289abs_source_dir=`cd $srcdir; pwd`
6290
6291
6292# Stuff for example Makefiles
6293if test x$prefix = xNONE; then
6294  full_prefix=$ac_default_prefix
6295else
6296  full_prefix=$prefix
6297fi
6298full_prefix=`cd $full_prefix ; pwd`
6299
6300abs_lib_dir=$full_prefix/lib
6301
6302abs_include_dir=$full_prefix/include
6303
6304abs_bin_dir=$full_prefix/bin
6305
6306
6307
6308if test $coin_have_externals = yes && test x$have_svn = xyes; then
6309  HAVE_EXTERNALS_TRUE=
6310  HAVE_EXTERNALS_FALSE='#'
6311else
6312  HAVE_EXTERNALS_TRUE='#'
6313  HAVE_EXTERNALS_FALSE=
6314fi
6315
6316
6317# AC_MSG_NOTICE([End automake initialisation.])
6318
6319
6320
6321LIBTOOL=
6322if test -r ../libtool; then
6323  coin_config_dir=..
6324  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6325fi
6326if test "x$LIBTOOL" = x; then
6327  if test -r ../../libtool; then
6328    coin_config_dir=../..
6329    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6330  fi
6331fi
6332
6333if test "x$LIBTOOL" = x; then
6334# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6335  # Stuff for libtool
6336  # Check whether --enable-shared or --disable-shared was given.
6337if test "${enable_shared+set}" = set; then
6338  enableval="$enable_shared"
6339  p=${PACKAGE-default}
6340    case $enableval in
6341    yes) enable_shared=yes ;;
6342    no) enable_shared=no ;;
6343    *)
6344      enable_shared=no
6345      # Look at the argument we got.  We use all the common list separators.
6346      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6347      for pkg in $enableval; do
6348        IFS="$lt_save_ifs"
6349        if test "X$pkg" = "X$p"; then
6350          enable_shared=yes
6351        fi
6352      done
6353      IFS="$lt_save_ifs"
6354      ;;
6355    esac
6356else
6357  enable_shared=yes
6358fi;
6359
6360# Check whether --enable-fast-install or --disable-fast-install was given.
6361if test "${enable_fast_install+set}" = set; then
6362  enableval="$enable_fast_install"
6363  p=${PACKAGE-default}
6364    case $enableval in
6365    yes) enable_fast_install=yes ;;
6366    no) enable_fast_install=no ;;
6367    *)
6368      enable_fast_install=no
6369      # Look at the argument we got.  We use all the common list separators.
6370      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6371      for pkg in $enableval; do
6372        IFS="$lt_save_ifs"
6373        if test "X$pkg" = "X$p"; then
6374          enable_fast_install=yes
6375        fi
6376      done
6377      IFS="$lt_save_ifs"
6378      ;;
6379    esac
6380else
6381  enable_fast_install=yes
6382fi;
6383
6384echo "$as_me:$LINENO: checking host system type" >&5
6385echo $ECHO_N "checking host system type... $ECHO_C" >&6
6386if test "${ac_cv_host+set}" = set; then
6387  echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389  ac_cv_host_alias=$host_alias
6390test -z "$ac_cv_host_alias" &&
6391  ac_cv_host_alias=$ac_cv_build_alias
6392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6393  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6395   { (exit 1); exit 1; }; }
6396
6397fi
6398echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6399echo "${ECHO_T}$ac_cv_host" >&6
6400host=$ac_cv_host
6401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6404
6405
6406echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6407echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6408if test "${lt_cv_path_SED+set}" = set; then
6409  echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411  # Loop through the user's path and test for sed and gsed.
6412# Then use that list of sed's as ones to test for truncation.
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416  IFS=$as_save_IFS
6417  test -z "$as_dir" && as_dir=.
6418  for lt_ac_prog in sed gsed; do
6419    for ac_exec_ext in '' $ac_executable_extensions; do
6420      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6421        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6422      fi
6423    done
6424  done
6425done
6426lt_ac_max=0
6427lt_ac_count=0
6428# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6429# along with /bin/sed that truncates output.
6430for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6431  test ! -f $lt_ac_sed && continue
6432  cat /dev/null > conftest.in
6433  lt_ac_count=0
6434  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6435  # Check for GNU sed and select it if it is found.
6436  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6437    lt_cv_path_SED=$lt_ac_sed
6438    break
6439  fi
6440  while true; do
6441    cat conftest.in conftest.in >conftest.tmp
6442    mv conftest.tmp conftest.in
6443    cp conftest.in conftest.nl
6444    echo >>conftest.nl
6445    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6446    cmp -s conftest.out conftest.nl || break
6447    # 10000 chars as input seems more than enough
6448    test $lt_ac_count -gt 10 && break
6449    lt_ac_count=`expr $lt_ac_count + 1`
6450    if test $lt_ac_count -gt $lt_ac_max; then
6451      lt_ac_max=$lt_ac_count
6452      lt_cv_path_SED=$lt_ac_sed
6453    fi
6454  done
6455done
6456
6457fi
6458
6459SED=$lt_cv_path_SED
6460echo "$as_me:$LINENO: result: $SED" >&5
6461echo "${ECHO_T}$SED" >&6
6462
6463
6464# Check whether --with-gnu-ld or --without-gnu-ld was given.
6465if test "${with_gnu_ld+set}" = set; then
6466  withval="$with_gnu_ld"
6467  test "$withval" = no || with_gnu_ld=yes
6468else
6469  with_gnu_ld=no
6470fi;
6471ac_prog=ld
6472if test "$GCC" = yes; then
6473  # Check if gcc -print-prog-name=ld gives a path.
6474  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6475echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6476  case $host in
6477  *-*-mingw*)
6478    # gcc leaves a trailing carriage return which upsets mingw
6479    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6480  *)
6481    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6482  esac
6483  case $ac_prog in
6484    # Accept absolute paths.
6485    [\\/]* | ?:[\\/]*)
6486      re_direlt='/[^/][^/]*/\.\./'
6487      # Canonicalize the pathname of ld
6488      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6489      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6490        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6491      done
6492      test -z "$LD" && LD="$ac_prog"
6493      ;;
6494  "")
6495    # If it fails, then pretend we aren't using GCC.
6496    ac_prog=ld
6497    ;;
6498  *)
6499    # If it is relative, then search for the first ld in PATH.
6500    with_gnu_ld=unknown
6501    ;;
6502  esac
6503elif test "$with_gnu_ld" = yes; then
6504  echo "$as_me:$LINENO: checking for GNU ld" >&5
6505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6506else
6507  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6509fi
6510if test "${lt_cv_path_LD+set}" = set; then
6511  echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513  if test -z "$LD"; then
6514  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6515  for ac_dir in $PATH; do
6516    IFS="$lt_save_ifs"
6517    test -z "$ac_dir" && ac_dir=.
6518    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6519      lt_cv_path_LD="$ac_dir/$ac_prog"
6520      # Check to see if the program is GNU ld.  I'd rather use --version,
6521      # but apparently some variants of GNU ld only accept -v.
6522      # Break only if it was the GNU/non-GNU ld that we prefer.
6523      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6524      *GNU* | *'with BFD'*)
6525        test "$with_gnu_ld" != no && break
6526        ;;
6527      *)
6528        test "$with_gnu_ld" != yes && break
6529        ;;
6530      esac
6531    fi
6532  done
6533  IFS="$lt_save_ifs"
6534else
6535  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6536fi
6537fi
6538
6539LD="$lt_cv_path_LD"
6540if test -n "$LD"; then
6541  echo "$as_me:$LINENO: result: $LD" >&5
6542echo "${ECHO_T}$LD" >&6
6543else
6544  echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546fi
6547test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6548echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6549   { (exit 1); exit 1; }; }
6550echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6551echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6552if test "${lt_cv_prog_gnu_ld+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6556case `$LD -v 2>&1 </dev/null` in
6557*GNU* | *'with BFD'*)
6558  lt_cv_prog_gnu_ld=yes
6559  ;;
6560*)
6561  lt_cv_prog_gnu_ld=no
6562  ;;
6563esac
6564fi
6565echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6566echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6567with_gnu_ld=$lt_cv_prog_gnu_ld
6568
6569
6570echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6571echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6572if test "${lt_cv_ld_reload_flag+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  lt_cv_ld_reload_flag='-r'
6576fi
6577echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6578echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6579reload_flag=$lt_cv_ld_reload_flag
6580case $reload_flag in
6581"" | " "*) ;;
6582*) reload_flag=" $reload_flag" ;;
6583esac
6584reload_cmds='$LD$reload_flag -o $output$reload_objs'
6585case $host_os in
6586  darwin*)
6587    if test "$GCC" = yes; then
6588      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6589    else
6590      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6591    fi
6592    ;;
6593esac
6594
6595echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6596echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6597if test "${lt_cv_path_NM+set}" = set; then
6598  echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600  if test -n "$NM"; then
6601  # Let the user override the test.
6602  lt_cv_path_NM="$NM"
6603else
6604  lt_nm_to_check="${ac_tool_prefix}nm"
6605  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6606    lt_nm_to_check="$lt_nm_to_check nm"
6607  fi
6608  for lt_tmp_nm in $lt_nm_to_check; do
6609    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6610    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6611      IFS="$lt_save_ifs"
6612      test -z "$ac_dir" && ac_dir=.
6613      tmp_nm="$ac_dir/$lt_tmp_nm"
6614      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6615        # Check to see if the nm accepts a BSD-compat flag.
6616        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6617        #   nm: unknown option "B" ignored
6618        # Tru64's nm complains that /dev/null is an invalid object file
6619        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6620        */dev/null* | *'Invalid file or object type'*)
6621          lt_cv_path_NM="$tmp_nm -B"
6622          break
6623          ;;
6624        *)
6625          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6626          */dev/null*)
6627            lt_cv_path_NM="$tmp_nm -p"
6628            break
6629            ;;
6630          *)
6631            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6632            continue # so that we can try to find one that supports BSD flags
6633            ;;
6634          esac
6635          ;;
6636        esac
6637      fi
6638    done
6639    IFS="$lt_save_ifs"
6640  done
6641  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6642fi
6643fi
6644echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6645echo "${ECHO_T}$lt_cv_path_NM" >&6
6646NM="$lt_cv_path_NM"
6647
6648echo "$as_me:$LINENO: checking whether ln -s works" >&5
6649echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6650LN_S=$as_ln_s
6651if test "$LN_S" = "ln -s"; then
6652  echo "$as_me:$LINENO: result: yes" >&5
6653echo "${ECHO_T}yes" >&6
6654else
6655  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6656echo "${ECHO_T}no, using $LN_S" >&6
6657fi
6658
6659echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6660echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6661if test "${lt_cv_deplibs_check_method+set}" = set; then
6662  echo $ECHO_N "(cached) $ECHO_C" >&6
6663else
6664  lt_cv_file_magic_cmd='$MAGIC_CMD'
6665lt_cv_file_magic_test_file=
6666lt_cv_deplibs_check_method='unknown'
6667# Need to set the preceding variable on all platforms that support
6668# interlibrary dependencies.
6669# 'none' -- dependencies not supported.
6670# `unknown' -- same as none, but documents that we really don't know.
6671# 'pass_all' -- all dependencies passed with no checks.
6672# 'test_compile' -- check by making test program.
6673# 'file_magic [[regex]]' -- check by looking for files in library path
6674# which responds to the $file_magic_cmd with a given extended regex.
6675# If you have `file' or equivalent on your system and you're not sure
6676# whether `pass_all' will *always* work, you probably want this one.
6677
6678case $host_os in
6679aix4* | aix5*)
6680  lt_cv_deplibs_check_method=pass_all
6681  ;;
6682
6683beos*)
6684  lt_cv_deplibs_check_method=pass_all
6685  ;;
6686
6687bsdi[45]*)
6688  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6689  lt_cv_file_magic_cmd='/usr/bin/file -L'
6690  lt_cv_file_magic_test_file=/shlib/libc.so
6691  ;;
6692
6693cygwin*)
6694  # func_win32_libid is a shell function defined in ltmain.sh
6695  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6696  lt_cv_file_magic_cmd='func_win32_libid'
6697  ;;
6698
6699mingw* | pw32*)
6700  # Base MSYS/MinGW do not provide the 'file' command needed by
6701  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6702  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6703  lt_cv_file_magic_cmd='$OBJDUMP -f'
6704  ;;
6705
6706darwin* | rhapsody*)
6707  lt_cv_deplibs_check_method=pass_all
6708  ;;
6709
6710freebsd* | kfreebsd*-gnu | dragonfly*)
6711  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6712    case $host_cpu in
6713    i*86 )
6714      # Not sure whether the presence of OpenBSD here was a mistake.
6715      # Let's accept both of them until this is cleared up.
6716      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6717      lt_cv_file_magic_cmd=/usr/bin/file
6718      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6719      ;;
6720    esac
6721  else
6722    lt_cv_deplibs_check_method=pass_all
6723  fi
6724  ;;
6725
6726gnu*)
6727  lt_cv_deplibs_check_method=pass_all
6728  ;;
6729
6730hpux10.20* | hpux11*)
6731  lt_cv_file_magic_cmd=/usr/bin/file
6732  case $host_cpu in
6733  ia64*)
6734    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6735    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6736    ;;
6737  hppa*64*)
6738    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]'
6739    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6740    ;;
6741  *)
6742    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6743    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6744    ;;
6745  esac
6746  ;;
6747
6748interix3*)
6749  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6750  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6751  ;;
6752
6753irix5* | irix6* | nonstopux*)
6754  case $LD in
6755  *-32|*"-32 ") libmagic=32-bit;;
6756  *-n32|*"-n32 ") libmagic=N32;;
6757  *-64|*"-64 ") libmagic=64-bit;;
6758  *) libmagic=never-match;;
6759  esac
6760  lt_cv_deplibs_check_method=pass_all
6761  ;;
6762
6763# This must be Linux ELF.
6764linux*)
6765  lt_cv_deplibs_check_method=pass_all
6766  ;;
6767
6768netbsd*)
6769  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6770    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6771  else
6772    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6773  fi
6774  ;;
6775
6776newos6*)
6777  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6778  lt_cv_file_magic_cmd=/usr/bin/file
6779  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6780  ;;
6781
6782nto-qnx*)
6783  lt_cv_deplibs_check_method=unknown
6784  ;;
6785
6786openbsd*)
6787  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6788    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6789  else
6790    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6791  fi
6792  ;;
6793
6794osf3* | osf4* | osf5*)
6795  lt_cv_deplibs_check_method=pass_all
6796  ;;
6797
6798solaris*)
6799  lt_cv_deplibs_check_method=pass_all
6800  ;;
6801
6802sysv4 | sysv4.3*)
6803  case $host_vendor in
6804  motorola)
6805    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]'
6806    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6807    ;;
6808  ncr)
6809    lt_cv_deplibs_check_method=pass_all
6810    ;;
6811  sequent)
6812    lt_cv_file_magic_cmd='/bin/file'
6813    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6814    ;;
6815  sni)
6816    lt_cv_file_magic_cmd='/bin/file'
6817    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6818    lt_cv_file_magic_test_file=/lib/libc.so
6819    ;;
6820  siemens)
6821    lt_cv_deplibs_check_method=pass_all
6822    ;;
6823  pc)
6824    lt_cv_deplibs_check_method=pass_all
6825    ;;
6826  esac
6827  ;;
6828
6829sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6830  lt_cv_deplibs_check_method=pass_all
6831  ;;
6832esac
6833
6834fi
6835echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6836echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6837file_magic_cmd=$lt_cv_file_magic_cmd
6838deplibs_check_method=$lt_cv_deplibs_check_method
6839test -z "$deplibs_check_method" && deplibs_check_method=unknown
6840
6841
6842
6843
6844# If no C compiler was specified, use CC.
6845LTCC=${LTCC-"$CC"}
6846
6847# If no C compiler flags were specified, use CFLAGS.
6848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6849
6850# Allow CC to be a program name with arguments.
6851compiler=$CC
6852
6853# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6854if test "${enable_libtool_lock+set}" = set; then
6855  enableval="$enable_libtool_lock"
6856
6857fi;
6858test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6859
6860# Some flags need to be propagated to the compiler or linker for good
6861# libtool support.
6862case $host in
6863ia64-*-hpux*)
6864  # Find out which ABI we are using.
6865  echo 'int i;' > conftest.$ac_ext
6866  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867  (eval $ac_compile) 2>&5
6868  ac_status=$?
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); }; then
6871    case `/usr/bin/file conftest.$ac_objext` in
6872    *ELF-32*)
6873      HPUX_IA64_MODE="32"
6874      ;;
6875    *ELF-64*)
6876      HPUX_IA64_MODE="64"
6877      ;;
6878    esac
6879  fi
6880  rm -rf conftest*
6881  ;;
6882*-*-irix6*)
6883  # Find out which ABI we are using.
6884  echo '#line 6884 "configure"' > conftest.$ac_ext
6885  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886  (eval $ac_compile) 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); }; then
6890   if test "$lt_cv_prog_gnu_ld" = yes; then
6891    case `/usr/bin/file conftest.$ac_objext` in
6892    *32-bit*)
6893      LD="${LD-ld} -melf32bsmip"
6894      ;;
6895    *N32*)
6896      LD="${LD-ld} -melf32bmipn32"
6897      ;;
6898    *64-bit*)
6899      LD="${LD-ld} -melf64bmip"
6900      ;;
6901    esac
6902   else
6903    case `/usr/bin/file conftest.$ac_objext` in
6904    *32-bit*)
6905      LD="${LD-ld} -32"
6906      ;;
6907    *N32*)
6908      LD="${LD-ld} -n32"
6909      ;;
6910    *64-bit*)
6911      LD="${LD-ld} -64"
6912      ;;
6913    esac
6914   fi
6915  fi
6916  rm -rf conftest*
6917  ;;
6918
6919x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6920  # Find out which ABI we are using.
6921  echo 'int i;' > conftest.$ac_ext
6922  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923  (eval $ac_compile) 2>&5
6924  ac_status=$?
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); }; then
6927    case `/usr/bin/file conftest.o` in
6928    *32-bit*)
6929      case $host in
6930        x86_64-*linux*)
6931          LD="${LD-ld} -m elf_i386"
6932          ;;
6933        ppc64-*linux*|powerpc64-*linux*)
6934          LD="${LD-ld} -m elf32ppclinux"
6935          ;;
6936        s390x-*linux*)
6937          LD="${LD-ld} -m elf_s390"
6938          ;;
6939        sparc64-*linux*)
6940          LD="${LD-ld} -m elf32_sparc"
6941          ;;
6942      esac
6943      ;;
6944    *64-bit*)
6945      case $host in
6946        x86_64-*linux*)
6947          LD="${LD-ld} -m elf_x86_64"
6948          ;;
6949        ppc*-*linux*|powerpc*-*linux*)
6950          LD="${LD-ld} -m elf64ppc"
6951          ;;
6952        s390*-*linux*)
6953          LD="${LD-ld} -m elf64_s390"
6954          ;;
6955        sparc*-*linux*)
6956          LD="${LD-ld} -m elf64_sparc"
6957          ;;
6958      esac
6959      ;;
6960    esac
6961  fi
6962  rm -rf conftest*
6963  ;;
6964
6965*-*-sco3.2v5*)
6966  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6967  SAVE_CFLAGS="$CFLAGS"
6968  CFLAGS="$CFLAGS -belf"
6969  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6970echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6971if test "${lt_cv_cc_needs_belf+set}" = set; then
6972  echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974  ac_ext=c
6975ac_cpp='$CPP $CPPFLAGS'
6976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979
6980     cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h.  */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h.  */
6986
6987#ifdef F77_DUMMY_MAIN
6988
6989#  ifdef __cplusplus
6990     extern "C"
6991#  endif
6992   int F77_DUMMY_MAIN() { return 1; }
6993
6994#endif
6995int
6996main ()
6997{
6998
6999  ;
7000  return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005  (eval $ac_link) 2>conftest.er1
7006  ac_status=$?
7007  grep -v '^ *+' conftest.er1 >conftest.err
7008  rm -f conftest.er1
7009  cat conftest.err >&5
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); } &&
7012         { ac_try='test -z "$ac_c_werror_flag"
7013                         || test ! -s conftest.err'
7014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015  (eval $ac_try) 2>&5
7016  ac_status=$?
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); }; } &&
7019         { ac_try='test -s conftest$ac_exeext'
7020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021  (eval $ac_try) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; }; then
7025  lt_cv_cc_needs_belf=yes
7026else
7027  echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030lt_cv_cc_needs_belf=no
7031fi
7032rm -f conftest.err conftest.$ac_objext \
7033      conftest$ac_exeext conftest.$ac_ext
7034     ac_ext=c
7035ac_cpp='$CPP $CPPFLAGS'
7036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040fi
7041echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7042echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7043  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7044    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7045    CFLAGS="$SAVE_CFLAGS"
7046  fi
7047  ;;
7048sparc*-*solaris*)
7049  # Find out which ABI we are using.
7050  echo 'int i;' > conftest.$ac_ext
7051  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7052  (eval $ac_compile) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); }; then
7056    case `/usr/bin/file conftest.o` in
7057    *64-bit*)
7058      case $lt_cv_prog_gnu_ld in
7059      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7060      *)    LD="${LD-ld} -64" ;;
7061      esac
7062      ;;
7063    esac
7064  fi
7065  rm -rf conftest*
7066  ;;
7067
7068
7069esac
7070
7071need_locks="$enable_libtool_lock"
7072
7073
7074ac_ext=c
7075ac_cpp='$CPP $CPPFLAGS'
7076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7080echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7081# On Suns, sometimes $CPP names a directory.
7082if test -n "$CPP" && test -d "$CPP"; then
7083  CPP=
7084fi
7085if test -z "$CPP"; then
7086  if test "${ac_cv_prog_CPP+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089      # Double quotes because CPP needs to be expanded
7090    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7091    do
7092      ac_preproc_ok=false
7093for ac_c_preproc_warn_flag in '' yes
7094do
7095  # Use a header file that comes with gcc, so configuring glibc
7096  # with a fresh cross-compiler works.
7097  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098  # <limits.h> exists even on freestanding compilers.
7099  # On the NeXT, cc -E runs the code through the compiler's parser,
7100  # not just through cpp. "Syntax error" is here to catch this case.
7101  cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107#ifdef __STDC__
7108# include <limits.h>
7109#else
7110# include <assert.h>
7111#endif
7112                     Syntax error
7113_ACEOF
7114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7116  ac_status=$?
7117  grep -v '^ *+' conftest.er1 >conftest.err
7118  rm -f conftest.er1
7119  cat conftest.err >&5
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); } >/dev/null; then
7122  if test -s conftest.err; then
7123    ac_cpp_err=$ac_c_preproc_warn_flag
7124    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7125  else
7126    ac_cpp_err=
7127  fi
7128else
7129  ac_cpp_err=yes
7130fi
7131if test -z "$ac_cpp_err"; then
7132  :
7133else
7134  echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137  # Broken: fails on valid input.
7138continue
7139fi
7140rm -f conftest.err conftest.$ac_ext
7141
7142  # OK, works on sane cases.  Now check whether non-existent headers
7143  # can be detected and how.
7144  cat >conftest.$ac_ext <<_ACEOF
7145/* confdefs.h.  */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h.  */
7150#include <ac_nonexistent.h>
7151_ACEOF
7152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7154  ac_status=$?
7155  grep -v '^ *+' conftest.er1 >conftest.err
7156  rm -f conftest.er1
7157  cat conftest.err >&5
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); } >/dev/null; then
7160  if test -s conftest.err; then
7161    ac_cpp_err=$ac_c_preproc_warn_flag
7162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7163  else
7164    ac_cpp_err=
7165  fi
7166else
7167  ac_cpp_err=yes
7168fi
7169if test -z "$ac_cpp_err"; then
7170  # Broken: success on invalid input.
7171continue
7172else
7173  echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176  # Passes both tests.
7177ac_preproc_ok=:
7178break
7179fi
7180rm -f conftest.err conftest.$ac_ext
7181
7182done
7183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7184rm -f conftest.err conftest.$ac_ext
7185if $ac_preproc_ok; then
7186  break
7187fi
7188
7189    done
7190    ac_cv_prog_CPP=$CPP
7191
7192fi
7193  CPP=$ac_cv_prog_CPP
7194else
7195  ac_cv_prog_CPP=$CPP
7196fi
7197echo "$as_me:$LINENO: result: $CPP" >&5
7198echo "${ECHO_T}$CPP" >&6
7199ac_preproc_ok=false
7200for ac_c_preproc_warn_flag in '' yes
7201do
7202  # Use a header file that comes with gcc, so configuring glibc
7203  # with a fresh cross-compiler works.
7204  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7205  # <limits.h> exists even on freestanding compilers.
7206  # On the NeXT, cc -E runs the code through the compiler's parser,
7207  # not just through cpp. "Syntax error" is here to catch this case.
7208  cat >conftest.$ac_ext <<_ACEOF
7209/* confdefs.h.  */
7210_ACEOF
7211cat confdefs.h >>conftest.$ac_ext
7212cat >>conftest.$ac_ext <<_ACEOF
7213/* end confdefs.h.  */
7214#ifdef __STDC__
7215# include <limits.h>
7216#else
7217# include <assert.h>
7218#endif
7219                     Syntax error
7220_ACEOF
7221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7222  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7223  ac_status=$?
7224  grep -v '^ *+' conftest.er1 >conftest.err
7225  rm -f conftest.er1
7226  cat conftest.err >&5
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); } >/dev/null; then
7229  if test -s conftest.err; then
7230    ac_cpp_err=$ac_c_preproc_warn_flag
7231    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7232  else
7233    ac_cpp_err=
7234  fi
7235else
7236  ac_cpp_err=yes
7237fi
7238if test -z "$ac_cpp_err"; then
7239  :
7240else
7241  echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244  # Broken: fails on valid input.
7245continue
7246fi
7247rm -f conftest.err conftest.$ac_ext
7248
7249  # OK, works on sane cases.  Now check whether non-existent headers
7250  # can be detected and how.
7251  cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h.  */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h.  */
7257#include <ac_nonexistent.h>
7258_ACEOF
7259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7261  ac_status=$?
7262  grep -v '^ *+' conftest.er1 >conftest.err
7263  rm -f conftest.er1
7264  cat conftest.err >&5
7265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266  (exit $ac_status); } >/dev/null; then
7267  if test -s conftest.err; then
7268    ac_cpp_err=$ac_c_preproc_warn_flag
7269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7270  else
7271    ac_cpp_err=
7272  fi
7273else
7274  ac_cpp_err=yes
7275fi
7276if test -z "$ac_cpp_err"; then
7277  # Broken: success on invalid input.
7278continue
7279else
7280  echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283  # Passes both tests.
7284ac_preproc_ok=:
7285break
7286fi
7287rm -f conftest.err conftest.$ac_ext
7288
7289done
7290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291rm -f conftest.err conftest.$ac_ext
7292if $ac_preproc_ok; then
7293  :
7294else
7295  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7296See \`config.log' for more details." >&5
7297echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7298See \`config.log' for more details." >&2;}
7299   { (exit 1); exit 1; }; }
7300fi
7301
7302ac_ext=c
7303ac_cpp='$CPP $CPPFLAGS'
7304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307
7308
7309echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7310echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7311if test "${ac_cv_header_stdc+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  cat >conftest.$ac_ext <<_ACEOF
7315/* confdefs.h.  */
7316_ACEOF
7317cat confdefs.h >>conftest.$ac_ext
7318cat >>conftest.$ac_ext <<_ACEOF
7319/* end confdefs.h.  */
7320#include <stdlib.h>
7321#include <stdarg.h>
7322#include <string.h>
7323#include <float.h>
7324
7325#ifdef F77_DUMMY_MAIN
7326
7327#  ifdef __cplusplus
7328     extern "C"
7329#  endif
7330   int F77_DUMMY_MAIN() { return 1; }
7331
7332#endif
7333int
7334main ()
7335{
7336
7337  ;
7338  return 0;
7339}
7340_ACEOF
7341rm -f conftest.$ac_objext
7342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343  (eval $ac_compile) 2>conftest.er1
7344  ac_status=$?
7345  grep -v '^ *+' conftest.er1 >conftest.err
7346  rm -f conftest.er1
7347  cat conftest.err >&5
7348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); } &&
7350         { ac_try='test -z "$ac_c_werror_flag"
7351                         || test ! -s conftest.err'
7352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353  (eval $ac_try) 2>&5
7354  ac_status=$?
7355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356  (exit $ac_status); }; } &&
7357         { ac_try='test -s conftest.$ac_objext'
7358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359  (eval $ac_try) 2>&5
7360  ac_status=$?
7361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); }; }; then
7363  ac_cv_header_stdc=yes
7364else
7365  echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368ac_cv_header_stdc=no
7369fi
7370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371
7372if test $ac_cv_header_stdc = yes; then
7373  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7374  cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h.  */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h.  */
7380#include <string.h>
7381
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384  $EGREP "memchr" >/dev/null 2>&1; then
7385  :
7386else
7387  ac_cv_header_stdc=no
7388fi
7389rm -f conftest*
7390
7391fi
7392
7393if test $ac_cv_header_stdc = yes; then
7394  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7395  cat >conftest.$ac_ext <<_ACEOF
7396/* confdefs.h.  */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h.  */
7401#include <stdlib.h>
7402
7403_ACEOF
7404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405  $EGREP "free" >/dev/null 2>&1; then
7406  :
7407else
7408  ac_cv_header_stdc=no
7409fi
7410rm -f conftest*
7411
7412fi
7413
7414if test $ac_cv_header_stdc = yes; then
7415  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7416  if test "$cross_compiling" = yes; then
7417  :
7418else
7419  cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h.  */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h.  */
7425#include <ctype.h>
7426#if ((' ' & 0x0FF) == 0x020)
7427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7429#else
7430# define ISLOWER(c) \
7431                   (('a' <= (c) && (c) <= 'i') \
7432                     || ('j' <= (c) && (c) <= 'r') \
7433                     || ('s' <= (c) && (c) <= 'z'))
7434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7435#endif
7436
7437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7438int
7439main ()
7440{
7441  int i;
7442  for (i = 0; i < 256; i++)
7443    if (XOR (islower (i), ISLOWER (i))
7444        || toupper (i) != TOUPPER (i))
7445      exit(2);
7446  exit (0);
7447}
7448_ACEOF
7449rm -f conftest$ac_exeext
7450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451  (eval $ac_link) 2>&5
7452  ac_status=$?
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456  (eval $ac_try) 2>&5
7457  ac_status=$?
7458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); }; }; then
7460  :
7461else
7462  echo "$as_me: program exited with status $ac_status" >&5
7463echo "$as_me: failed program was:" >&5
7464sed 's/^/| /' conftest.$ac_ext >&5
7465
7466( exit $ac_status )
7467ac_cv_header_stdc=no
7468fi
7469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7470fi
7471fi
7472fi
7473echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7474echo "${ECHO_T}$ac_cv_header_stdc" >&6
7475if test $ac_cv_header_stdc = yes; then
7476
7477cat >>confdefs.h <<\_ACEOF
7478#define STDC_HEADERS 1
7479_ACEOF
7480
7481fi
7482
7483# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7494                  inttypes.h stdint.h unistd.h
7495do
7496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7497echo "$as_me:$LINENO: checking for $ac_header" >&5
7498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7499if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500  echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502  cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508$ac_includes_default
7509
7510#include <$ac_header>
7511_ACEOF
7512rm -f conftest.$ac_objext
7513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514  (eval $ac_compile) 2>conftest.er1
7515  ac_status=$?
7516  grep -v '^ *+' conftest.er1 >conftest.err
7517  rm -f conftest.er1
7518  cat conftest.err >&5
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); } &&
7521         { ac_try='test -z "$ac_c_werror_flag"
7522                         || test ! -s conftest.err'
7523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524  (eval $ac_try) 2>&5
7525  ac_status=$?
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); }; } &&
7528         { ac_try='test -s conftest.$ac_objext'
7529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530  (eval $ac_try) 2>&5
7531  ac_status=$?
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); }; }; then
7534  eval "$as_ac_Header=yes"
7535else
7536  echo "$as_me: failed program was:" >&5
7537sed 's/^/| /' conftest.$ac_ext >&5
7538
7539eval "$as_ac_Header=no"
7540fi
7541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7542fi
7543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7545if test `eval echo '${'$as_ac_Header'}'` = yes; then
7546  cat >>confdefs.h <<_ACEOF
7547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7548_ACEOF
7549
7550fi
7551
7552done
7553
7554
7555
7556for ac_header in dlfcn.h
7557do
7558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7559if eval "test \"\${$as_ac_Header+set}\" = set"; then
7560  echo "$as_me:$LINENO: checking for $ac_header" >&5
7561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7562if eval "test \"\${$as_ac_Header+set}\" = set"; then
7563  echo $ECHO_N "(cached) $ECHO_C" >&6
7564fi
7565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7567else
7568  # Is the header compilable?
7569echo "$as_me:$LINENO: checking $ac_header usability" >&5
7570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7571cat >conftest.$ac_ext <<_ACEOF
7572/* confdefs.h.  */
7573_ACEOF
7574cat confdefs.h >>conftest.$ac_ext
7575cat >>conftest.$ac_ext <<_ACEOF
7576/* end confdefs.h.  */
7577$ac_includes_default
7578#include <$ac_header>
7579_ACEOF
7580rm -f conftest.$ac_objext
7581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582  (eval $ac_compile) 2>conftest.er1
7583  ac_status=$?
7584  grep -v '^ *+' conftest.er1 >conftest.err
7585  rm -f conftest.er1
7586  cat conftest.err >&5
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); } &&
7589         { ac_try='test -z "$ac_c_werror_flag"
7590                         || test ! -s conftest.err'
7591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592  (eval $ac_try) 2>&5
7593  ac_status=$?
7594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595  (exit $ac_status); }; } &&
7596         { ac_try='test -s conftest.$ac_objext'
7597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598  (eval $ac_try) 2>&5
7599  ac_status=$?
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); }; }; then
7602  ac_header_compiler=yes
7603else
7604  echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607ac_header_compiler=no
7608fi
7609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611echo "${ECHO_T}$ac_header_compiler" >&6
7612
7613# Is the header present?
7614echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7616cat >conftest.$ac_ext <<_ACEOF
7617/* confdefs.h.  */
7618_ACEOF
7619cat confdefs.h >>conftest.$ac_ext
7620cat >>conftest.$ac_ext <<_ACEOF
7621/* end confdefs.h.  */
7622#include <$ac_header>
7623_ACEOF
7624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7625  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7626  ac_status=$?
7627  grep -v '^ *+' conftest.er1 >conftest.err
7628  rm -f conftest.er1
7629  cat conftest.err >&5
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); } >/dev/null; then
7632  if test -s conftest.err; then
7633    ac_cpp_err=$ac_c_preproc_warn_flag
7634    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7635  else
7636    ac_cpp_err=
7637  fi
7638else
7639  ac_cpp_err=yes
7640fi
7641if test -z "$ac_cpp_err"; then
7642  ac_header_preproc=yes
7643else
7644  echo "$as_me: failed program was:" >&5
7645sed 's/^/| /' conftest.$ac_ext >&5
7646
7647  ac_header_preproc=no
7648fi
7649rm -f conftest.err conftest.$ac_ext
7650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7651echo "${ECHO_T}$ac_header_preproc" >&6
7652
7653# So?  What about this header?
7654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7655  yes:no: )
7656    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7658    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7660    ac_header_preproc=yes
7661    ;;
7662  no:yes:* )
7663    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7665    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7666echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7667    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7669    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7670echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7673    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7675    (
7676      cat <<\_ASBOX
7677## --------------------------------------------------------------- ##
7678## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7679## --------------------------------------------------------------- ##
7680_ASBOX
7681    ) |
7682      sed "s/^/$as_me: WARNING:     /" >&2
7683    ;;
7684esac
7685echo "$as_me:$LINENO: checking for $ac_header" >&5
7686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688  echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690  eval "$as_ac_Header=\$ac_header_preproc"
7691fi
7692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7694
7695fi
7696if test `eval echo '${'$as_ac_Header'}'` = yes; then
7697  cat >>confdefs.h <<_ACEOF
7698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699_ACEOF
7700
7701fi
7702
7703done
7704
7705ac_ext=cc
7706ac_cpp='$CXXCPP $CPPFLAGS'
7707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7710if test -n "$ac_tool_prefix"; then
7711  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7712  do
7713    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7715echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717if test "${ac_cv_prog_CXX+set}" = set; then
7718  echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720  if test -n "$CXX"; then
7721  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728  for ac_exec_ext in '' $ac_executable_extensions; do
7729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735done
7736
7737fi
7738fi
7739CXX=$ac_cv_prog_CXX
7740if test -n "$CXX"; then
7741  echo "$as_me:$LINENO: result: $CXX" >&5
7742echo "${ECHO_T}$CXX" >&6
7743else
7744  echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746fi
7747
7748    test -n "$CXX" && break
7749  done
7750fi
7751if test -z "$CXX"; then
7752  ac_ct_CXX=$CXX
7753  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7754do
7755  # Extract the first word of "$ac_prog", so it can be a program name with args.
7756set dummy $ac_prog; ac_word=$2
7757echo "$as_me:$LINENO: checking for $ac_word" >&5
7758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7759if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7760  echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762  if test -n "$ac_ct_CXX"; then
7763  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768  IFS=$as_save_IFS
7769  test -z "$as_dir" && as_dir=.
7770  for ac_exec_ext in '' $ac_executable_extensions; do
7771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772    ac_cv_prog_ac_ct_CXX="$ac_prog"
7773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774    break 2
7775  fi
7776done
7777done
7778
7779fi
7780fi
7781ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7782if test -n "$ac_ct_CXX"; then
7783  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7784echo "${ECHO_T}$ac_ct_CXX" >&6
7785else
7786  echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788fi
7789
7790  test -n "$ac_ct_CXX" && break
7791done
7792test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7793
7794  CXX=$ac_ct_CXX
7795fi
7796
7797
7798# Provide some information about the compiler.
7799echo "$as_me:$LINENO:" \
7800     "checking for C++ compiler version" >&5
7801ac_compiler=`set X $ac_compile; echo $2`
7802{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7803  (eval $ac_compiler --version </dev/null >&5) 2>&5
7804  ac_status=$?
7805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806  (exit $ac_status); }
7807{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7808  (eval $ac_compiler -v </dev/null >&5) 2>&5
7809  ac_status=$?
7810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811  (exit $ac_status); }
7812{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7813  (eval $ac_compiler -V </dev/null >&5) 2>&5
7814  ac_status=$?
7815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816  (exit $ac_status); }
7817
7818echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7819echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7820if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7821  echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823  cat >conftest.$ac_ext <<_ACEOF
7824/* confdefs.h.  */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h.  */
7829
7830#ifdef F77_DUMMY_MAIN
7831
7832#  ifdef __cplusplus
7833     extern "C"
7834#  endif
7835   int F77_DUMMY_MAIN() { return 1; }
7836
7837#endif
7838int
7839main ()
7840{
7841#ifndef __GNUC__
7842       choke me
7843#endif
7844
7845  ;
7846  return 0;
7847}
7848_ACEOF
7849rm -f conftest.$ac_objext
7850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7851  (eval $ac_compile) 2>conftest.er1
7852  ac_status=$?
7853  grep -v '^ *+' conftest.er1 >conftest.err
7854  rm -f conftest.er1
7855  cat conftest.err >&5
7856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857  (exit $ac_status); } &&
7858         { ac_try='test -z "$ac_cxx_werror_flag"
7859                         || test ! -s conftest.err'
7860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861  (eval $ac_try) 2>&5
7862  ac_status=$?
7863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864  (exit $ac_status); }; } &&
7865         { ac_try='test -s conftest.$ac_objext'
7866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867  (eval $ac_try) 2>&5
7868  ac_status=$?
7869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870  (exit $ac_status); }; }; then
7871  ac_compiler_gnu=yes
7872else
7873  echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876ac_compiler_gnu=no
7877fi
7878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7879ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7880
7881fi
7882echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7883echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7884GXX=`test $ac_compiler_gnu = yes && echo yes`
7885ac_test_CXXFLAGS=${CXXFLAGS+set}
7886ac_save_CXXFLAGS=$CXXFLAGS
7887CXXFLAGS="-g"
7888echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7889echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7890if test "${ac_cv_prog_cxx_g+set}" = set; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  cat >conftest.$ac_ext <<_ACEOF
7894/* confdefs.h.  */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h.  */
7899
7900#ifdef F77_DUMMY_MAIN
7901
7902#  ifdef __cplusplus
7903     extern "C"
7904#  endif
7905   int F77_DUMMY_MAIN() { return 1; }
7906
7907#endif
7908int
7909main ()
7910{
7911
7912  ;
7913  return 0;
7914}
7915_ACEOF
7916rm -f conftest.$ac_objext
7917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7918  (eval $ac_compile) 2>conftest.er1
7919  ac_status=$?
7920  grep -v '^ *+' conftest.er1 >conftest.err
7921  rm -f conftest.er1
7922  cat conftest.err >&5
7923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924  (exit $ac_status); } &&
7925         { ac_try='test -z "$ac_cxx_werror_flag"
7926                         || test ! -s conftest.err'
7927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928  (eval $ac_try) 2>&5
7929  ac_status=$?
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); }; } &&
7932         { ac_try='test -s conftest.$ac_objext'
7933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934  (eval $ac_try) 2>&5
7935  ac_status=$?
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); }; }; then
7938  ac_cv_prog_cxx_g=yes
7939else
7940  echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
7943ac_cv_prog_cxx_g=no
7944fi
7945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7946fi
7947echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7948echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7949if test "$ac_test_CXXFLAGS" = set; then
7950  CXXFLAGS=$ac_save_CXXFLAGS
7951elif test $ac_cv_prog_cxx_g = yes; then
7952  if test "$GXX" = yes; then
7953    CXXFLAGS="-g -O2"
7954  else
7955    CXXFLAGS="-g"
7956  fi
7957else
7958  if test "$GXX" = yes; then
7959    CXXFLAGS="-O2"
7960  else
7961    CXXFLAGS=
7962  fi
7963fi
7964for ac_declaration in \
7965   '' \
7966   'extern "C" void std::exit (int) throw (); using std::exit;' \
7967   'extern "C" void std::exit (int); using std::exit;' \
7968   'extern "C" void exit (int) throw ();' \
7969   'extern "C" void exit (int);' \
7970   'void exit (int);'
7971do
7972  cat >conftest.$ac_ext <<_ACEOF
7973/* confdefs.h.  */
7974_ACEOF
7975cat confdefs.h >>conftest.$ac_ext
7976cat >>conftest.$ac_ext <<_ACEOF
7977/* end confdefs.h.  */
7978$ac_declaration
7979#include <stdlib.h>
7980#ifdef F77_DUMMY_MAIN
7981
7982#  ifdef __cplusplus
7983     extern "C"
7984#  endif
7985   int F77_DUMMY_MAIN() { return 1; }
7986
7987#endif
7988int
7989main ()
7990{
7991exit (42);
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext
7997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998  (eval $ac_compile) 2>conftest.er1
7999  ac_status=$?
8000  grep -v '^ *+' conftest.er1 >conftest.err
8001  rm -f conftest.er1
8002  cat conftest.err >&5
8003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004  (exit $ac_status); } &&
8005         { ac_try='test -z "$ac_cxx_werror_flag"
8006                         || test ! -s conftest.err'
8007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008  (eval $ac_try) 2>&5
8009  ac_status=$?
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); }; } &&
8012         { ac_try='test -s conftest.$ac_objext'
8013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014  (eval $ac_try) 2>&5
8015  ac_status=$?
8016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017  (exit $ac_status); }; }; then
8018  :
8019else
8020  echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023continue
8024fi
8025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026  cat >conftest.$ac_ext <<_ACEOF
8027/* confdefs.h.  */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h.  */
8032$ac_declaration
8033#ifdef F77_DUMMY_MAIN
8034
8035#  ifdef __cplusplus
8036     extern "C"
8037#  endif
8038   int F77_DUMMY_MAIN() { return 1; }
8039
8040#endif
8041int
8042main ()
8043{
8044exit (42);
8045  ;
8046  return 0;
8047}
8048_ACEOF
8049rm -f conftest.$ac_objext
8050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051  (eval $ac_compile) 2>conftest.er1
8052  ac_status=$?
8053  grep -v '^ *+' conftest.er1 >conftest.err
8054  rm -f conftest.er1
8055  cat conftest.err >&5
8056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057  (exit $ac_status); } &&
8058         { ac_try='test -z "$ac_cxx_werror_flag"
8059                         || test ! -s conftest.err'
8060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061  (eval $ac_try) 2>&5
8062  ac_status=$?
8063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064  (exit $ac_status); }; } &&
8065         { ac_try='test -s conftest.$ac_objext'
8066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067  (eval $ac_try) 2>&5
8068  ac_status=$?
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); }; }; then
8071  break
8072else
8073  echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076fi
8077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078done
8079rm -f conftest*
8080if test -n "$ac_declaration"; then
8081  echo '#ifdef __cplusplus' >>confdefs.h
8082  echo $ac_declaration      >>confdefs.h
8083  echo '#endif'             >>confdefs.h
8084fi
8085
8086ac_ext=cc
8087ac_cpp='$CXXCPP $CPPFLAGS'
8088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8091
8092depcc="$CXX"  am_compiler_list=
8093
8094echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8095echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8096if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8097  echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8100  # We make a subdir and do the tests there.  Otherwise we can end up
8101  # making bogus files that we don't know about and never remove.  For
8102  # instance it was reported that on HP-UX the gcc test will end up
8103  # making a dummy file named `D' -- because `-MD' means `put the output
8104  # in D'.
8105  mkdir conftest.dir
8106  # Copy depcomp to subdir because otherwise we won't find it if we're
8107  # using a relative directory.
8108  cp "$am_depcomp" conftest.dir
8109  cd conftest.dir
8110  # We will build objects and dependencies in a subdirectory because
8111  # it helps to detect inapplicable dependency modes.  For instance
8112  # both Tru64's cc and ICC support -MD to output dependencies as a
8113  # side effect of compilation, but ICC will put the dependencies in
8114  # the current directory while Tru64 will put them in the object
8115  # directory.
8116  mkdir sub
8117
8118  am_cv_CXX_dependencies_compiler_type=none
8119  if test "$am_compiler_list" = ""; then
8120     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8121  fi
8122  for depmode in $am_compiler_list; do
8123    # Setup a source with many dependencies, because some compilers
8124    # like to wrap large dependency lists on column 80 (with \), and
8125    # we should not choose a depcomp mode which is confused by this.
8126    #
8127    # We need to recreate these files for each test, as the compiler may
8128    # overwrite some of them when testing with obscure command lines.
8129    # This happens at least with the AIX C compiler.
8130    : > sub/conftest.c
8131    for i in 1 2 3 4 5 6; do
8132      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8133      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8134      # Solaris 8's {/usr,}/bin/sh.
8135      touch sub/conftst$i.h
8136    done
8137    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8138
8139    case $depmode in
8140    nosideeffect)
8141      # after this tag, mechanisms are not by side-effect, so they'll
8142      # only be used when explicitly requested
8143      if test "x$enable_dependency_tracking" = xyes; then
8144        continue
8145      else
8146        break
8147      fi
8148      ;;
8149    none) break ;;
8150    esac
8151    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8152    # mode.  It turns out that the SunPro C++ compiler does not properly
8153    # handle `-M -o', and we need to detect this.
8154    if depmode=$depmode \
8155       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8156       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8157       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8158         >/dev/null 2>conftest.err &&
8159       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8160       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8161       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8162      # icc doesn't choke on unknown options, it will just issue warnings
8163      # or remarks (even with -Werror).  So we grep stderr for any message
8164      # that says an option was ignored or not supported.
8165      # When given -MP, icc 7.0 and 7.1 complain thusly:
8166      #   icc: Command line warning: ignoring option '-M'; no argument required
8167      # The diagnosis changed in icc 8.0:
8168      #   icc: Command line remark: option '-MP' not supported
8169      if (grep 'ignoring option' conftest.err ||
8170          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8171        am_cv_CXX_dependencies_compiler_type=$depmode
8172        break
8173      fi
8174    fi
8175  done
8176
8177  cd ..
8178  rm -rf conftest.dir
8179else
8180  am_cv_CXX_dependencies_compiler_type=none
8181fi
8182
8183fi
8184echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8185echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8186CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8187
8188
8189
8190if
8191  test "x$enable_dependency_tracking" != xno \
8192  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8193  am__fastdepCXX_TRUE=
8194  am__fastdepCXX_FALSE='#'
8195else
8196  am__fastdepCXX_TRUE='#'
8197  am__fastdepCXX_FALSE=
8198fi
8199
8200
8201
8202
8203if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8204    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8205    (test "X$CXX" != "Xg++"))) ; then
8206  ac_ext=cc
8207ac_cpp='$CXXCPP $CPPFLAGS'
8208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8211echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8212echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8213if test -z "$CXXCPP"; then
8214  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8215  echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217      # Double quotes because CXXCPP needs to be expanded
8218    for CXXCPP in "$CXX -E" "/lib/cpp"
8219    do
8220      ac_preproc_ok=false
8221for ac_cxx_preproc_warn_flag in '' yes
8222do
8223  # Use a header file that comes with gcc, so configuring glibc
8224  # with a fresh cross-compiler works.
8225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8226  # <limits.h> exists even on freestanding compilers.
8227  # On the NeXT, cc -E runs the code through the compiler's parser,
8228  # not just through cpp. "Syntax error" is here to catch this case.
8229  cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h.  */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h.  */
8235#ifdef __STDC__
8236# include <limits.h>
8237#else
8238# include <assert.h>
8239#endif
8240                     Syntax error
8241_ACEOF
8242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8244  ac_status=$?
8245  grep -v '^ *+' conftest.er1 >conftest.err
8246  rm -f conftest.er1
8247  cat conftest.err >&5
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); } >/dev/null; then
8250  if test -s conftest.err; then
8251    ac_cpp_err=$ac_cxx_preproc_warn_flag
8252    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8253  else
8254    ac_cpp_err=
8255  fi
8256else
8257  ac_cpp_err=yes
8258fi
8259if test -z "$ac_cpp_err"; then
8260  :
8261else
8262  echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
8265  # Broken: fails on valid input.
8266continue
8267fi
8268rm -f conftest.err conftest.$ac_ext
8269
8270  # OK, works on sane cases.  Now check whether non-existent headers
8271  # can be detected and how.
8272  cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h.  */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h.  */
8278#include <ac_nonexistent.h>
8279_ACEOF
8280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8281  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8282  ac_status=$?
8283  grep -v '^ *+' conftest.er1 >conftest.err
8284  rm -f conftest.er1
8285  cat conftest.err >&5
8286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287  (exit $ac_status); } >/dev/null; then
8288  if test -s conftest.err; then
8289    ac_cpp_err=$ac_cxx_preproc_warn_flag
8290    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8291  else
8292    ac_cpp_err=
8293  fi
8294else
8295  ac_cpp_err=yes
8296fi
8297if test -z "$ac_cpp_err"; then
8298  # Broken: success on invalid input.
8299continue
8300else
8301  echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
8304  # Passes both tests.
8305ac_preproc_ok=:
8306break
8307fi
8308rm -f conftest.err conftest.$ac_ext
8309
8310done
8311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8312rm -f conftest.err conftest.$ac_ext
8313if $ac_preproc_ok; then
8314  break
8315fi
8316
8317    done
8318    ac_cv_prog_CXXCPP=$CXXCPP
8319
8320fi
8321  CXXCPP=$ac_cv_prog_CXXCPP
8322else
8323  ac_cv_prog_CXXCPP=$CXXCPP
8324fi
8325echo "$as_me:$LINENO: result: $CXXCPP" >&5
8326echo "${ECHO_T}$CXXCPP" >&6
8327ac_preproc_ok=false
8328for ac_cxx_preproc_warn_flag in '' yes
8329do
8330  # Use a header file that comes with gcc, so configuring glibc
8331  # with a fresh cross-compiler works.
8332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333  # <limits.h> exists even on freestanding compilers.
8334  # On the NeXT, cc -E runs the code through the compiler's parser,
8335  # not just through cpp. "Syntax error" is here to catch this case.
8336  cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h.  */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h.  */
8342#ifdef __STDC__
8343# include <limits.h>
8344#else
8345# include <assert.h>
8346#endif
8347                     Syntax error
8348_ACEOF
8349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8351  ac_status=$?
8352  grep -v '^ *+' conftest.er1 >conftest.err
8353  rm -f conftest.er1
8354  cat conftest.err >&5
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); } >/dev/null; then
8357  if test -s conftest.err; then
8358    ac_cpp_err=$ac_cxx_preproc_warn_flag
8359    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8360  else
8361    ac_cpp_err=
8362  fi
8363else
8364  ac_cpp_err=yes
8365fi
8366if test -z "$ac_cpp_err"; then
8367  :
8368else
8369  echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
8372  # Broken: fails on valid input.
8373continue
8374fi
8375rm -f conftest.err conftest.$ac_ext
8376
8377  # OK, works on sane cases.  Now check whether non-existent headers
8378  # can be detected and how.
8379  cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h.  */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h.  */
8385#include <ac_nonexistent.h>
8386_ACEOF
8387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389  ac_status=$?
8390  grep -v '^ *+' conftest.er1 >conftest.err
8391  rm -f conftest.er1
8392  cat conftest.err >&5
8393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394  (exit $ac_status); } >/dev/null; then
8395  if test -s conftest.err; then
8396    ac_cpp_err=$ac_cxx_preproc_warn_flag
8397    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8398  else
8399    ac_cpp_err=
8400  fi
8401else
8402  ac_cpp_err=yes
8403fi
8404if test -z "$ac_cpp_err"; then
8405  # Broken: success on invalid input.
8406continue
8407else
8408  echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411  # Passes both tests.
8412ac_preproc_ok=:
8413break
8414fi
8415rm -f conftest.err conftest.$ac_ext
8416
8417done
8418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8419rm -f conftest.err conftest.$ac_ext
8420if $ac_preproc_ok; then
8421  :
8422else
8423  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8424See \`config.log' for more details." >&5
8425echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8426See \`config.log' for more details." >&2;}
8427   { (exit 1); exit 1; }; }
8428fi
8429
8430ac_ext=cc
8431ac_cpp='$CXXCPP $CPPFLAGS'
8432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8435
8436fi
8437
8438
8439
8440# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8441
8442# find the maximum length of command line arguments
8443echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8444echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8445if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8446  echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448    i=0
8449  teststring="ABCD"
8450
8451  case $build_os in
8452  msdosdjgpp*)
8453    # On DJGPP, this test can blow up pretty badly due to problems in libc
8454    # (any single argument exceeding 2000 bytes causes a buffer overrun
8455    # during glob expansion).  Even if it were fixed, the result of this
8456    # check would be larger than it should be.
8457    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8458    ;;
8459
8460  gnu*)
8461    # Under GNU Hurd, this test is not required because there is
8462    # no limit to the length of command line arguments.
8463    # Libtool will interpret -1 as no limit whatsoever
8464    lt_cv_sys_max_cmd_len=-1;
8465    ;;
8466
8467  cygwin* | mingw*)
8468    # On Win9x/ME, this test blows up -- it succeeds, but takes
8469    # about 5 minutes as the teststring grows exponentially.
8470    # Worse, since 9x/ME are not pre-emptively multitasking,
8471    # you end up with a "frozen" computer, even though with patience
8472    # the test eventually succeeds (with a max line length of 256k).
8473    # Instead, let's just punt: use the minimum linelength reported by
8474    # all of the supported platforms: 8192 (on NT/2K/XP).
8475    lt_cv_sys_max_cmd_len=8192;
8476    ;;
8477
8478  amigaos*)
8479    # On AmigaOS with pdksh, this test takes hours, literally.
8480    # So we just punt and use a minimum line length of 8192.
8481    lt_cv_sys_max_cmd_len=8192;
8482    ;;
8483
8484  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8485    # This has been around since 386BSD, at least.  Likely further.
8486    if test -x /sbin/sysctl; then
8487      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8488    elif test -x /usr/sbin/sysctl; then
8489      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8490    else
8491      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8492    fi
8493    # And add a safety zone
8494    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8495    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8496    ;;
8497
8498  interix*)
8499    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8500    lt_cv_sys_max_cmd_len=196608
8501    ;;
8502
8503  osf*)
8504    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8505    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8506    # nice to cause kernel panics so lets avoid the loop below.
8507    # First set a reasonable default.
8508    lt_cv_sys_max_cmd_len=16384
8509    #
8510    if test -x /sbin/sysconfig; then
8511      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8512        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8513      esac
8514    fi
8515    ;;
8516  sco3.2v5*)
8517    lt_cv_sys_max_cmd_len=102400
8518    ;;
8519  sysv5* | sco5v6* | sysv4.2uw2*)
8520    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8521    if test -n "$kargmax"; then
8522      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8523    else
8524      lt_cv_sys_max_cmd_len=32768
8525    fi
8526    ;;
8527  *)
8528    # If test is not a shell built-in, we'll probably end up computing a
8529    # maximum length that is only half of the actual maximum length, but
8530    # we can't tell.
8531    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8532    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8533               = "XX$teststring") >/dev/null 2>&1 &&
8534            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8535            lt_cv_sys_max_cmd_len=$new_result &&
8536            test $i != 17 # 1/2 MB should be enough
8537    do
8538      i=`expr $i + 1`
8539      teststring=$teststring$teststring
8540    done
8541    teststring=
8542    # Add a significant safety factor because C++ compilers can tack on massive
8543    # amounts of additional arguments before passing them to the linker.
8544    # It appears as though 1/2 is a usable value.
8545    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8546    ;;
8547  esac
8548
8549fi
8550
8551if test -n $lt_cv_sys_max_cmd_len ; then
8552  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8553echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8554else
8555  echo "$as_me:$LINENO: result: none" >&5
8556echo "${ECHO_T}none" >&6
8557fi
8558
8559
8560
8561
8562# Check for command to grab the raw symbol name followed by C symbol from nm.
8563echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8564echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8565if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568
8569# These are sane defaults that work on at least a few old systems.
8570# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8571
8572# Character class describing NM global symbol codes.
8573symcode='[BCDEGRST]'
8574
8575# Regexp to match symbols that can be accessed directly from C.
8576sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8577
8578# Transform an extracted symbol line into a proper C declaration
8579lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8580
8581# Transform an extracted symbol line into symbol name and symbol address
8582lt_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'"
8583
8584# Define system-specific variables.
8585case $host_os in
8586aix*)
8587  symcode='[BCDT]'
8588  ;;
8589cygwin* | mingw* | pw32*)
8590  symcode='[ABCDGISTW]'
8591  ;;
8592hpux*) # Its linker distinguishes data from code symbols
8593  if test "$host_cpu" = ia64; then
8594    symcode='[ABCDEGRST]'
8595  fi
8596  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8597  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'"
8598  ;;
8599linux*)
8600  if test "$host_cpu" = ia64; then
8601    symcode='[ABCDGIRSTW]'
8602    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8603    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'"
8604  fi
8605  ;;
8606irix* | nonstopux*)
8607  symcode='[BCDEGRST]'
8608  ;;
8609osf*)
8610  symcode='[BCDEGQRST]'
8611  ;;
8612solaris*)
8613  symcode='[BDRT]'
8614  ;;
8615sco3.2v5*)
8616  symcode='[DT]'
8617  ;;
8618sysv4.2uw2*)
8619  symcode='[DT]'
8620  ;;
8621sysv5* | sco5v6* | unixware* | OpenUNIX*)
8622  symcode='[ABDT]'
8623  ;;
8624sysv4)
8625  symcode='[DFNSTU]'
8626  ;;
8627esac
8628
8629# Handle CRLF in mingw tool chain
8630opt_cr=
8631case $build_os in
8632mingw*)
8633  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8634  ;;
8635esac
8636
8637# If we're using GNU nm, then use its standard symbol codes.
8638case `$NM -V 2>&1` in
8639*GNU* | *'with BFD'*)
8640  symcode='[ABCDGIRSTW]' ;;
8641esac
8642
8643# Try without a prefix undercore, then with it.
8644for ac_symprfx in "" "_"; do
8645
8646  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8647  symxfrm="\\1 $ac_symprfx\\2 \\2"
8648
8649  # Write the raw and C identifiers.
8650  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8651
8652  # Check to see that the pipe works correctly.
8653  pipe_works=no
8654
8655  rm -f conftest*
8656  cat > conftest.$ac_ext <<EOF
8657#ifdef __cplusplus
8658extern "C" {
8659#endif
8660char nm_test_var;
8661void nm_test_func(){}
8662#ifdef __cplusplus
8663}
8664#endif
8665int main(){nm_test_var='a';nm_test_func();return(0);}
8666EOF
8667
8668  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669  (eval $ac_compile) 2>&5
8670  ac_status=$?
8671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672  (exit $ac_status); }; then
8673    # Now try to grab the symbols.
8674    nlist=conftest.nm
8675    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8676  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8677  ac_status=$?
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); } && test -s "$nlist"; then
8680      # Try sorting and uniquifying the output.
8681      if sort "$nlist" | uniq > "$nlist"T; then
8682        mv -f "$nlist"T "$nlist"
8683      else
8684        rm -f "$nlist"T
8685      fi
8686
8687      # Make sure that we snagged all the symbols we need.
8688      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8689        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8690          cat <<EOF > conftest.$ac_ext
8691#ifdef __cplusplus
8692extern "C" {
8693#endif
8694
8695EOF
8696          # Now generate the symbol file.
8697          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8698
8699          cat <<EOF >> conftest.$ac_ext
8700#if defined (__STDC__) && __STDC__
8701# define lt_ptr_t void *
8702#else
8703# define lt_ptr_t char *
8704# define const
8705#endif
8706
8707/* The mapping between symbol names and symbols. */
8708const struct {
8709  const char *name;
8710  lt_ptr_t address;
8711}
8712lt_preloaded_symbols[] =
8713{
8714EOF
8715          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8716          cat <<\EOF >> conftest.$ac_ext
8717  {0, (lt_ptr_t) 0}
8718};
8719
8720#ifdef __cplusplus
8721}
8722#endif
8723EOF
8724          # Now try linking the two files.
8725          mv conftest.$ac_objext conftstm.$ac_objext
8726          lt_save_LIBS="$LIBS"
8727          lt_save_CFLAGS="$CFLAGS"
8728          LIBS="conftstm.$ac_objext"
8729          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8730          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731  (eval $ac_link) 2>&5
8732  ac_status=$?
8733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8735            pipe_works=yes
8736          fi
8737          LIBS="$lt_save_LIBS"
8738          CFLAGS="$lt_save_CFLAGS"
8739        else
8740          echo "cannot find nm_test_func in $nlist" >&5
8741        fi
8742      else
8743        echo "cannot find nm_test_var in $nlist" >&5
8744      fi
8745    else
8746      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8747    fi
8748  else
8749    echo "$progname: failed program was:" >&5
8750    cat conftest.$ac_ext >&5
8751  fi
8752  rm -f conftest* conftst*
8753
8754  # Do not use the global_symbol_pipe unless it works.
8755  if test "$pipe_works" = yes; then
8756    break
8757  else
8758    lt_cv_sys_global_symbol_pipe=
8759  fi
8760done
8761
8762fi
8763
8764if test -z "$lt_cv_sys_global_symbol_pipe"; then
8765  lt_cv_sys_global_symbol_to_cdecl=
8766fi
8767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8768  echo "$as_me:$LINENO: result: failed" >&5
8769echo "${ECHO_T}failed" >&6
8770else
8771  echo "$as_me:$LINENO: result: ok" >&5
8772echo "${ECHO_T}ok" >&6
8773fi
8774
8775echo "$as_me:$LINENO: checking for objdir" >&5
8776echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8777if test "${lt_cv_objdir+set}" = set; then
8778  echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
8780  rm -f .libs 2>/dev/null
8781mkdir .libs 2>/dev/null
8782if test -d .libs; then
8783  lt_cv_objdir=.libs
8784else
8785  # MS-DOS does not allow filenames that begin with a dot.
8786  lt_cv_objdir=_libs
8787fi
8788rmdir .libs 2>/dev/null
8789fi
8790echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8791echo "${ECHO_T}$lt_cv_objdir" >&6
8792objdir=$lt_cv_objdir
8793
8794
8795
8796
8797
8798case $host_os in
8799aix3*)
8800  # AIX sometimes has problems with the GCC collect2 program.  For some
8801  # reason, if we set the COLLECT_NAMES environment variable, the problems
8802  # vanish in a puff of smoke.
8803  if test "X${COLLECT_NAMES+set}" != Xset; then
8804    COLLECT_NAMES=
8805    export COLLECT_NAMES
8806  fi
8807  ;;
8808esac
8809
8810# Sed substitution that helps us do robust quoting.  It backslashifies
8811# metacharacters that are still active within double-quoted strings.
8812Xsed='sed -e 1s/^X//'
8813sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8814
8815# Same as above, but do not quote variable references.
8816double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8817
8818# Sed substitution to delay expansion of an escaped shell variable in a
8819# double_quote_subst'ed string.
8820delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8821
8822# Sed substitution to avoid accidental globbing in evaled expressions
8823no_glob_subst='s/\*/\\\*/g'
8824
8825# Constants:
8826rm="rm -f"
8827
8828# Global variables:
8829default_ofile=libtool
8830can_build_shared=yes
8831
8832# All known linkers require a `.a' archive for static linking (except MSVC,
8833# which needs '.lib').
8834libext=a
8835ltmain="$ac_aux_dir/ltmain.sh"
8836ofile="$default_ofile"
8837with_gnu_ld="$lt_cv_prog_gnu_ld"
8838
8839if test -n "$ac_tool_prefix"; then
8840  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8841set dummy ${ac_tool_prefix}ar; ac_word=$2
8842echo "$as_me:$LINENO: checking for $ac_word" >&5
8843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8844if test "${ac_cv_prog_AR+set}" = set; then
8845  echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847  if test -n "$AR"; then
8848  ac_cv_prog_AR="$AR" # Let the user override the test.
8849else
8850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853  IFS=$as_save_IFS
8854  test -z "$as_dir" && as_dir=.
8855  for ac_exec_ext in '' $ac_executable_extensions; do
8856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857    ac_cv_prog_AR="${ac_tool_prefix}ar"
8858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8859    break 2
8860  fi
8861done
8862done
8863
8864fi
8865fi
8866AR=$ac_cv_prog_AR
8867if test -n "$AR"; then
8868  echo "$as_me:$LINENO: result: $AR" >&5
8869echo "${ECHO_T}$AR" >&6
8870else
8871  echo "$as_me:$LINENO: result: no" >&5
8872echo "${ECHO_T}no" >&6
8873fi
8874
8875fi
8876if test -z "$ac_cv_prog_AR"; then
8877  ac_ct_AR=$AR
8878  # Extract the first word of "ar", so it can be a program name with args.
8879set dummy ar; ac_word=$2
8880echo "$as_me:$LINENO: checking for $ac_word" >&5
8881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8882if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8883  echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885  if test -n "$ac_ct_AR"; then
8886  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891  IFS=$as_save_IFS
8892  test -z "$as_dir" && as_dir=.
8893  for ac_exec_ext in '' $ac_executable_extensions; do
8894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895    ac_cv_prog_ac_ct_AR="ar"
8896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8897    break 2
8898  fi
8899done
8900done
8901
8902  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8903fi
8904fi
8905ac_ct_AR=$ac_cv_prog_ac_ct_AR
8906if test -n "$ac_ct_AR"; then
8907  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8908echo "${ECHO_T}$ac_ct_AR" >&6
8909else
8910  echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6
8912fi
8913
8914  AR=$ac_ct_AR
8915else
8916  AR="$ac_cv_prog_AR"
8917fi
8918
8919if test -n "$ac_tool_prefix"; then
8920  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8921set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8922echo "$as_me:$LINENO: checking for $ac_word" >&5
8923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8924if test "${ac_cv_prog_RANLIB+set}" = set; then
8925  echo $ECHO_N "(cached) $ECHO_C" >&6
8926else
8927  if test -n "$RANLIB"; then
8928  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8929else
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933  IFS=$as_save_IFS
8934  test -z "$as_dir" && as_dir=.
8935  for ac_exec_ext in '' $ac_executable_extensions; do
8936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8939    break 2
8940  fi
8941done
8942done
8943
8944fi
8945fi
8946RANLIB=$ac_cv_prog_RANLIB
8947if test -n "$RANLIB"; then
8948  echo "$as_me:$LINENO: result: $RANLIB" >&5
8949echo "${ECHO_T}$RANLIB" >&6
8950else
8951  echo "$as_me:$LINENO: result: no" >&5
8952echo "${ECHO_T}no" >&6
8953fi
8954
8955fi
8956if test -z "$ac_cv_prog_RANLIB"; then
8957  ac_ct_RANLIB=$RANLIB
8958  # Extract the first word of "ranlib", so it can be a program name with args.
8959set dummy ranlib; ac_word=$2
8960echo "$as_me:$LINENO: checking for $ac_word" >&5
8961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8962if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8963  echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965  if test -n "$ac_ct_RANLIB"; then
8966  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8967else
8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969for as_dir in $PATH
8970do
8971  IFS=$as_save_IFS
8972  test -z "$as_dir" && as_dir=.
8973  for ac_exec_ext in '' $ac_executable_extensions; do
8974  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975    ac_cv_prog_ac_ct_RANLIB="ranlib"
8976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977    break 2
8978  fi
8979done
8980done
8981
8982  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8983fi
8984fi
8985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8986if test -n "$ac_ct_RANLIB"; then
8987  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8988echo "${ECHO_T}$ac_ct_RANLIB" >&6
8989else
8990  echo "$as_me:$LINENO: result: no" >&5
8991echo "${ECHO_T}no" >&6
8992fi
8993
8994  RANLIB=$ac_ct_RANLIB
8995else
8996  RANLIB="$ac_cv_prog_RANLIB"
8997fi
8998
8999if test -n "$ac_tool_prefix"; then
9000  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9001set dummy ${ac_tool_prefix}strip; ac_word=$2
9002echo "$as_me:$LINENO: checking for $ac_word" >&5
9003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9004if test "${ac_cv_prog_STRIP+set}" = set; then
9005  echo $ECHO_N "(cached) $ECHO_C" >&6
9006else
9007  if test -n "$STRIP"; then
9008  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9009else
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013  IFS=$as_save_IFS
9014  test -z "$as_dir" && as_dir=.
9015  for ac_exec_ext in '' $ac_executable_extensions; do
9016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019    break 2
9020  fi
9021done
9022done
9023
9024fi
9025fi
9026STRIP=$ac_cv_prog_STRIP
9027if test -n "$STRIP"; then
9028  echo "$as_me:$LINENO: result: $STRIP" >&5
9029echo "${ECHO_T}$STRIP" >&6
9030else
9031  echo "$as_me:$LINENO: result: no" >&5
9032echo "${ECHO_T}no" >&6
9033fi
9034
9035fi
9036if test -z "$ac_cv_prog_STRIP"; then
9037  ac_ct_STRIP=$STRIP
9038  # Extract the first word of "strip", so it can be a program name with args.
9039set dummy strip; ac_word=$2
9040echo "$as_me:$LINENO: checking for $ac_word" >&5
9041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9043  echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045  if test -n "$ac_ct_STRIP"; then
9046  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9047else
9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH
9050do
9051  IFS=$as_save_IFS
9052  test -z "$as_dir" && as_dir=.
9053  for ac_exec_ext in '' $ac_executable_extensions; do
9054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055    ac_cv_prog_ac_ct_STRIP="strip"
9056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057    break 2
9058  fi
9059done
9060done
9061
9062  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9063fi
9064fi
9065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9066if test -n "$ac_ct_STRIP"; then
9067  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9068echo "${ECHO_T}$ac_ct_STRIP" >&6
9069else
9070  echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
9072fi
9073
9074  STRIP=$ac_ct_STRIP
9075else
9076  STRIP="$ac_cv_prog_STRIP"
9077fi
9078
9079
9080old_CC="$CC"
9081old_CFLAGS="$CFLAGS"
9082
9083# Set sane defaults for various variables
9084test -z "$AR" && AR=ar
9085test -z "$AR_FLAGS" && AR_FLAGS=cru
9086test -z "$AS" && AS=as
9087test -z "$CC" && CC=cc
9088test -z "$LTCC" && LTCC=$CC
9089test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9090test -z "$DLLTOOL" && DLLTOOL=dlltool
9091test -z "$LD" && LD=ld
9092test -z "$LN_S" && LN_S="ln -s"
9093test -z "$MAGIC_CMD" && MAGIC_CMD=file
9094test -z "$NM" && NM=nm
9095test -z "$SED" && SED=sed
9096test -z "$OBJDUMP" && OBJDUMP=objdump
9097test -z "$RANLIB" && RANLIB=:
9098test -z "$STRIP" && STRIP=:
9099test -z "$ac_objext" && ac_objext=o
9100
9101# Determine commands to create old-style static archives.
9102old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9103old_postinstall_cmds='chmod 644 $oldlib'
9104old_postuninstall_cmds=
9105
9106if test -n "$RANLIB"; then
9107  case $host_os in
9108  openbsd*)
9109    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9110    ;;
9111  *)
9112    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9113    ;;
9114  esac
9115  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9116fi
9117
9118for cc_temp in $compiler""; do
9119  case $cc_temp in
9120    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9121    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9122    \-*) ;;
9123    *) break;;
9124  esac
9125done
9126cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9127
9128
9129# Only perform the check for file, if the check method requires it
9130case $deplibs_check_method in
9131file_magic*)
9132  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9133    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9134echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9135if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9136  echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138  case $MAGIC_CMD in
9139[\\/*] |  ?:[\\/]*)
9140  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9141  ;;
9142*)
9143  lt_save_MAGIC_CMD="$MAGIC_CMD"
9144  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9145  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9146  for ac_dir in $ac_dummy; do
9147    IFS="$lt_save_ifs"
9148    test -z "$ac_dir" && ac_dir=.
9149    if test -f $ac_dir/${ac_tool_prefix}file; then
9150      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9151      if test -n "$file_magic_test_file"; then
9152        case $deplibs_check_method in
9153        "file_magic "*)
9154          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9155          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9156          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9157            $EGREP "$file_magic_regex" > /dev/null; then
9158            :
9159          else
9160            cat <<EOF 1>&2
9161
9162*** Warning: the command libtool uses to detect shared libraries,
9163*** $file_magic_cmd, produces output that libtool cannot recognize.
9164*** The result is that libtool may fail to recognize shared libraries
9165*** as such.  This will affect the creation of libtool libraries that
9166*** depend on shared libraries, but programs linked with such libtool
9167*** libraries will work regardless of this problem.  Nevertheless, you
9168*** may want to report the problem to your system manager and/or to
9169*** bug-libtool@gnu.org
9170
9171EOF
9172          fi ;;
9173        esac
9174      fi
9175      break
9176    fi
9177  done
9178  IFS="$lt_save_ifs"
9179  MAGIC_CMD="$lt_save_MAGIC_CMD"
9180  ;;
9181esac
9182fi
9183
9184MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9185if test -n "$MAGIC_CMD"; then
9186  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9187echo "${ECHO_T}$MAGIC_CMD" >&6
9188else
9189  echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191fi
9192
9193if test -z "$lt_cv_path_MAGIC_CMD"; then
9194  if test -n "$ac_tool_prefix"; then
9195    echo "$as_me:$LINENO: checking for file" >&5
9196echo $ECHO_N "checking for file... $ECHO_C" >&6
9197if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9198  echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200  case $MAGIC_CMD in
9201[\\/*] |  ?:[\\/]*)
9202  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9203  ;;
9204*)
9205  lt_save_MAGIC_CMD="$MAGIC_CMD"
9206  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9207  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9208  for ac_dir in $ac_dummy; do
9209    IFS="$lt_save_ifs"
9210    test -z "$ac_dir" && ac_dir=.
9211    if test -f $ac_dir/file; then
9212      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9213      if test -n "$file_magic_test_file"; then
9214        case $deplibs_check_method in
9215        "file_magic "*)
9216          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9217          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9218          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9219            $EGREP "$file_magic_regex" > /dev/null; then
9220            :
9221          else
9222            cat <<EOF 1>&2
9223
9224*** Warning: the command libtool uses to detect shared libraries,
9225*** $file_magic_cmd, produces output that libtool cannot recognize.
9226*** The result is that libtool may fail to recognize shared libraries
9227*** as such.  This will affect the creation of libtool libraries that
9228*** depend on shared libraries, but programs linked with such libtool
9229*** libraries will work regardless of this problem.  Nevertheless, you
9230*** may want to report the problem to your system manager and/or to
9231*** bug-libtool@gnu.org
9232
9233EOF
9234          fi ;;
9235        esac
9236      fi
9237      break
9238    fi
9239  done
9240  IFS="$lt_save_ifs"
9241  MAGIC_CMD="$lt_save_MAGIC_CMD"
9242  ;;
9243esac
9244fi
9245
9246MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9247if test -n "$MAGIC_CMD"; then
9248  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9249echo "${ECHO_T}$MAGIC_CMD" >&6
9250else
9251  echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6
9253fi
9254
9255  else
9256    MAGIC_CMD=:
9257  fi
9258fi
9259
9260  fi
9261  ;;
9262esac
9263
9264enable_dlopen=no
9265enable_win32_dll=no
9266
9267# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9268if test "${enable_libtool_lock+set}" = set; then
9269  enableval="$enable_libtool_lock"
9270
9271fi;
9272test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9273
9274
9275# Check whether --with-pic or --without-pic was given.
9276if test "${with_pic+set}" = set; then
9277  withval="$with_pic"
9278  pic_mode="$withval"
9279else
9280  pic_mode=default
9281fi;
9282test -z "$pic_mode" && pic_mode=default
9283
9284# Use C for the default configuration in the libtool script
9285tagname=
9286lt_save_CC="$CC"
9287ac_ext=c
9288ac_cpp='$CPP $CPPFLAGS'
9289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
9293
9294# Source file extension for C test sources.
9295ac_ext=c
9296
9297# Object file extension for compiled C test sources.
9298objext=o
9299objext=$objext
9300
9301# Code to be used in simple compile tests
9302lt_simple_compile_test_code="int some_variable = 0;\n"
9303
9304# Code to be used in simple link tests
9305lt_simple_link_test_code='int main(){return(0);}\n'
9306
9307
9308# If no C compiler was specified, use CC.
9309LTCC=${LTCC-"$CC"}
9310
9311# If no C compiler flags were specified, use CFLAGS.
9312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9313
9314# Allow CC to be a program name with arguments.
9315compiler=$CC
9316
9317
9318# save warnings/boilerplate of simple test code
9319ac_outfile=conftest.$ac_objext
9320printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9322_lt_compiler_boilerplate=`cat conftest.err`
9323$rm conftest*
9324
9325ac_outfile=conftest.$ac_objext
9326printf "$lt_simple_link_test_code" >conftest.$ac_ext
9327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9328_lt_linker_boilerplate=`cat conftest.err`
9329$rm conftest*
9330
9331
9332## CAVEAT EMPTOR:
9333## There is no encapsulation within the following macros, do not change
9334## the running order or otherwise move them around unless you know exactly
9335## what you are doing...
9336
9337lt_prog_compiler_no_builtin_flag=
9338
9339if test "$GCC" = yes; then
9340  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9341
9342
9343echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9344echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9345if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9346  echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348  lt_cv_prog_compiler_rtti_exceptions=no
9349  ac_outfile=conftest.$ac_objext
9350   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9351   lt_compiler_flag="-fno-rtti -fno-exceptions"
9352   # Insert the option either (1) after the last *FLAGS variable, or
9353   # (2) before a word containing "conftest.", or (3) at the end.
9354   # Note that $ac_compile itself does not contain backslashes and begins
9355   # with a dollar sign (not a hyphen), so the echo should work correctly.
9356   # The option is referenced via a variable to avoid confusing sed.
9357   lt_compile=`echo "$ac_compile" | $SED \
9358   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360   -e 's:$: $lt_compiler_flag:'`
9361   (eval echo "\"\$as_me:9361: $lt_compile\"" >&5)
9362   (eval "$lt_compile" 2>conftest.err)
9363   ac_status=$?
9364   cat conftest.err >&5
9365   echo "$as_me:9365: \$? = $ac_status" >&5
9366   if (exit $ac_status) && test -s "$ac_outfile"; then
9367     # The compiler can only warn and ignore the option if not recognized
9368     # So say no if there are warnings other than the usual output.
9369     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9370     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9372       lt_cv_prog_compiler_rtti_exceptions=yes
9373     fi
9374   fi
9375   $rm conftest*
9376
9377fi
9378echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9379echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9380
9381if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9382    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9383else
9384    :
9385fi
9386
9387fi
9388
9389lt_prog_compiler_wl=
9390lt_prog_compiler_pic=
9391lt_prog_compiler_static=
9392
9393echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9394echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9395
9396  if test "$GCC" = yes; then
9397    lt_prog_compiler_wl='-Wl,'
9398    lt_prog_compiler_static='-static'
9399
9400    case $host_os in
9401      aix*)
9402      # All AIX code is PIC.
9403      if test "$host_cpu" = ia64; then
9404        # AIX 5 now supports IA64 processor
9405        lt_prog_compiler_static='-Bstatic'
9406      fi
9407      ;;
9408
9409    amigaos*)
9410      # FIXME: we need at least 68020 code to build shared libraries, but
9411      # adding the `-m68020' flag to GCC prevents building anything better,
9412      # like `-m68040'.
9413      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9414      ;;
9415
9416    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9417      # PIC is the default for these OSes.
9418      ;;
9419
9420    mingw* | pw32* | os2*)
9421      # This hack is so that the source file can tell whether it is being
9422      # built for inclusion in a dll (and should export symbols for example).
9423      lt_prog_compiler_pic='-DDLL_EXPORT'
9424      ;;
9425
9426    darwin* | rhapsody*)
9427      # PIC is the default on this platform
9428      # Common symbols not allowed in MH_DYLIB files
9429      lt_prog_compiler_pic='-fno-common'
9430      ;;
9431
9432    interix3*)
9433      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9434      # Instead, we relocate shared libraries at runtime.
9435      ;;
9436
9437    msdosdjgpp*)
9438      # Just because we use GCC doesn't mean we suddenly get shared libraries
9439      # on systems that don't support them.
9440      lt_prog_compiler_can_build_shared=no
9441      enable_shared=no
9442      ;;
9443
9444    sysv4*MP*)
9445      if test -d /usr/nec; then
9446        lt_prog_compiler_pic=-Kconform_pic
9447      fi
9448      ;;
9449
9450    hpux*)
9451      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9452      # not for PA HP-UX.
9453      case $host_cpu in
9454      hppa*64*|ia64*)
9455        # +Z the default
9456        ;;
9457      *)
9458        lt_prog_compiler_pic='-fPIC'
9459        ;;
9460      esac
9461      ;;
9462
9463    *)
9464      lt_prog_compiler_pic='-fPIC'
9465      ;;
9466    esac
9467  else
9468    # PORTME Check for flag to pass linker flags through the system compiler.
9469    case $host_os in
9470    aix*)
9471      lt_prog_compiler_wl='-Wl,'
9472      if test "$host_cpu" = ia64; then
9473        # AIX 5 now supports IA64 processor
9474        lt_prog_compiler_static='-Bstatic'
9475      else
9476        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9477      fi
9478      ;;
9479      darwin*)
9480        # PIC is the default on this platform
9481        # Common symbols not allowed in MH_DYLIB files
9482       case $cc_basename in
9483         xlc*)
9484         lt_prog_compiler_pic='-qnocommon'
9485         lt_prog_compiler_wl='-Wl,'
9486         ;;
9487       esac
9488       ;;
9489
9490    mingw* | pw32* | os2*)
9491      # This hack is so that the source file can tell whether it is being
9492      # built for inclusion in a dll (and should export symbols for example).
9493      lt_prog_compiler_pic='-DDLL_EXPORT'
9494      ;;
9495
9496    hpux9* | hpux10* | hpux11*)
9497      lt_prog_compiler_wl='-Wl,'
9498      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9499      # not for PA HP-UX.
9500      case $host_cpu in
9501      hppa*64*|ia64*)
9502        # +Z the default
9503        ;;
9504      *)
9505        lt_prog_compiler_pic='+Z'
9506        ;;
9507      esac
9508      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9509      lt_prog_compiler_static='${wl}-a ${wl}archive'
9510      ;;
9511
9512    irix5* | irix6* | nonstopux*)
9513      lt_prog_compiler_wl='-Wl,'
9514      # PIC (with -KPIC) is the default.
9515      lt_prog_compiler_static='-non_shared'
9516      ;;
9517
9518    newsos6)
9519      lt_prog_compiler_pic='-KPIC'
9520      lt_prog_compiler_static='-Bstatic'
9521      ;;
9522
9523    linux*)
9524      case $cc_basename in
9525      icc* | ecc*)
9526        lt_prog_compiler_wl='-Wl,'
9527        lt_prog_compiler_pic='-KPIC'
9528        lt_prog_compiler_static='-static'
9529        ;;
9530      pgcc* | pgf77* | pgf90* | pgf95*)
9531        # Portland Group compilers (*not* the Pentium gcc compiler,
9532        # which looks to be a dead project)
9533        lt_prog_compiler_wl='-Wl,'
9534        lt_prog_compiler_pic='-fpic'
9535        lt_prog_compiler_static='-Bstatic'
9536        ;;
9537      ccc*)
9538        lt_prog_compiler_wl='-Wl,'
9539        # All Alpha code is PIC.
9540        lt_prog_compiler_static='-non_shared'
9541        ;;
9542      esac
9543      ;;
9544
9545    osf3* | osf4* | osf5*)
9546      lt_prog_compiler_wl='-Wl,'
9547      # All OSF/1 code is PIC.
9548      lt_prog_compiler_static='-non_shared'
9549      ;;
9550
9551    solaris*)
9552      lt_prog_compiler_pic='-KPIC'
9553      lt_prog_compiler_static='-Bstatic'
9554      case $cc_basename in
9555      f77* | f90* | f95*)
9556        lt_prog_compiler_wl='-Qoption ld ';;
9557      *)
9558        lt_prog_compiler_wl='-Wl,';;
9559      esac
9560      ;;
9561
9562    sunos4*)
9563      lt_prog_compiler_wl='-Qoption ld '
9564      lt_prog_compiler_pic='-PIC'
9565      lt_prog_compiler_static='-Bstatic'
9566      ;;
9567
9568    sysv4 | sysv4.2uw2* | sysv4.3*)
9569      lt_prog_compiler_wl='-Wl,'
9570      lt_prog_compiler_pic='-KPIC'
9571      lt_prog_compiler_static='-Bstatic'
9572      ;;
9573
9574    sysv4*MP*)
9575      if test -d /usr/nec ;then
9576        lt_prog_compiler_pic='-Kconform_pic'
9577        lt_prog_compiler_static='-Bstatic'
9578      fi
9579      ;;
9580
9581    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9582      lt_prog_compiler_wl='-Wl,'
9583      lt_prog_compiler_pic='-KPIC'
9584      lt_prog_compiler_static='-Bstatic'
9585      ;;
9586
9587    unicos*)
9588      lt_prog_compiler_wl='-Wl,'
9589      lt_prog_compiler_can_build_shared=no
9590      ;;
9591
9592    uts4*)
9593      lt_prog_compiler_pic='-pic'
9594      lt_prog_compiler_static='-Bstatic'
9595      ;;
9596
9597    *)
9598      lt_prog_compiler_can_build_shared=no
9599      ;;
9600    esac
9601  fi
9602
9603echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9604echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9605
9606#
9607# Check to make sure the PIC flag actually works.
9608#
9609if test -n "$lt_prog_compiler_pic"; then
9610
9611echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9612echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9613if test "${lt_prog_compiler_pic_works+set}" = set; then
9614  echo $ECHO_N "(cached) $ECHO_C" >&6
9615else
9616  lt_prog_compiler_pic_works=no
9617  ac_outfile=conftest.$ac_objext
9618   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9619   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9620   # Insert the option either (1) after the last *FLAGS variable, or
9621   # (2) before a word containing "conftest.", or (3) at the end.
9622   # Note that $ac_compile itself does not contain backslashes and begins
9623   # with a dollar sign (not a hyphen), so the echo should work correctly.
9624   # The option is referenced via a variable to avoid confusing sed.
9625   lt_compile=`echo "$ac_compile" | $SED \
9626   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9627   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9628   -e 's:$: $lt_compiler_flag:'`
9629   (eval echo "\"\$as_me:9629: $lt_compile\"" >&5)
9630   (eval "$lt_compile" 2>conftest.err)
9631   ac_status=$?
9632   cat conftest.err >&5
9633   echo "$as_me:9633: \$? = $ac_status" >&5
9634   if (exit $ac_status) && test -s "$ac_outfile"; then
9635     # The compiler can only warn and ignore the option if not recognized
9636     # So say no if there are warnings other than the usual output.
9637     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9638     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9639     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9640       lt_prog_compiler_pic_works=yes
9641     fi
9642   fi
9643   $rm conftest*
9644
9645fi
9646echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9647echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9648
9649if test x"$lt_prog_compiler_pic_works" = xyes; then
9650    case $lt_prog_compiler_pic in
9651     "" | " "*) ;;
9652     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9653     esac
9654else
9655    lt_prog_compiler_pic=
9656     lt_prog_compiler_can_build_shared=no
9657fi
9658
9659fi
9660case $host_os in
9661  # For platforms which do not support PIC, -DPIC is meaningless:
9662  *djgpp*)
9663    lt_prog_compiler_pic=
9664    ;;
9665  *)
9666    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9667    ;;
9668esac
9669
9670#
9671# Check to make sure the static flag actually works.
9672#
9673wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9674echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9675echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9676if test "${lt_prog_compiler_static_works+set}" = set; then
9677  echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679  lt_prog_compiler_static_works=no
9680   save_LDFLAGS="$LDFLAGS"
9681   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9682   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9683   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9684     # The linker can only warn and ignore the option if not recognized
9685     # So say no if there are warnings
9686     if test -s conftest.err; then
9687       # Append any errors to the config.log.
9688       cat conftest.err 1>&5
9689       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9690       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9691       if diff conftest.exp conftest.er2 >/dev/null; then
9692         lt_prog_compiler_static_works=yes
9693       fi
9694     else
9695       lt_prog_compiler_static_works=yes
9696     fi
9697   fi
9698   $rm conftest*
9699   LDFLAGS="$save_LDFLAGS"
9700
9701fi
9702echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9703echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9704
9705if test x"$lt_prog_compiler_static_works" = xyes; then
9706    :
9707else
9708    lt_prog_compiler_static=
9709fi
9710
9711
9712echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9713echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9714if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9715  echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717  lt_cv_prog_compiler_c_o=no
9718   $rm -r conftest 2>/dev/null
9719   mkdir conftest
9720   cd conftest
9721   mkdir out
9722   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9723
9724   lt_compiler_flag="-o out/conftest2.$ac_objext"
9725   # Insert the option either (1) after the last *FLAGS variable, or
9726   # (2) before a word containing "conftest.", or (3) at the end.
9727   # Note that $ac_compile itself does not contain backslashes and begins
9728   # with a dollar sign (not a hyphen), so the echo should work correctly.
9729   lt_compile=`echo "$ac_compile" | $SED \
9730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732   -e 's:$: $lt_compiler_flag:'`
9733   (eval echo "\"\$as_me:9733: $lt_compile\"" >&5)
9734   (eval "$lt_compile" 2>out/conftest.err)
9735   ac_status=$?
9736   cat out/conftest.err >&5
9737   echo "$as_me:9737: \$? = $ac_status" >&5
9738   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9739   then
9740     # The compiler can only warn and ignore the option if not recognized
9741     # So say no if there are warnings
9742     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9743     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9744     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9745       lt_cv_prog_compiler_c_o=yes
9746     fi
9747   fi
9748   chmod u+w . 2>&5
9749   $rm conftest*
9750   # SGI C++ compiler will create directory out/ii_files/ for
9751   # template instantiation
9752   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9753   $rm out/* && rmdir out
9754   cd ..
9755   rmdir conftest
9756   $rm conftest*
9757
9758fi
9759echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9760echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9761
9762
9763hard_links="nottested"
9764if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9765  # do not overwrite the value of need_locks provided by the user
9766  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9767echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9768  hard_links=yes
9769  $rm conftest*
9770  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9771  touch conftest.a
9772  ln conftest.a conftest.b 2>&5 || hard_links=no
9773  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9774  echo "$as_me:$LINENO: result: $hard_links" >&5
9775echo "${ECHO_T}$hard_links" >&6
9776  if test "$hard_links" = no; then
9777    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9778echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9779    need_locks=warn
9780  fi
9781else
9782  need_locks=no
9783fi
9784
9785echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9786echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9787
9788  runpath_var=
9789  allow_undefined_flag=
9790  enable_shared_with_static_runtimes=no
9791  archive_cmds=
9792  archive_expsym_cmds=
9793  old_archive_From_new_cmds=
9794  old_archive_from_expsyms_cmds=
9795  export_dynamic_flag_spec=
9796  whole_archive_flag_spec=
9797  thread_safe_flag_spec=
9798  hardcode_libdir_flag_spec=
9799  hardcode_libdir_flag_spec_ld=
9800  hardcode_libdir_separator=
9801  hardcode_direct=no
9802  hardcode_minus_L=no
9803  hardcode_shlibpath_var=unsupported
9804  link_all_deplibs=unknown
9805  hardcode_automatic=no
9806  module_cmds=
9807  module_expsym_cmds=
9808  always_export_symbols=no
9809  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9810  # include_expsyms should be a list of space-separated symbols to be *always*
9811  # included in the symbol list
9812  include_expsyms=
9813  # exclude_expsyms can be an extended regexp of symbols to exclude
9814  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9815  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9816  # as well as any symbol that contains `d'.
9817  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9818  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9819  # platforms (ab)use it in PIC code, but their linkers get confused if
9820  # the symbol is explicitly referenced.  Since portable code cannot
9821  # rely on this symbol name, it's probably fine to never include it in
9822  # preloaded symbol tables.
9823  extract_expsyms_cmds=
9824  # Just being paranoid about ensuring that cc_basename is set.
9825  for cc_temp in $compiler""; do
9826  case $cc_temp in
9827    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9828    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9829    \-*) ;;
9830    *) break;;
9831  esac
9832done
9833cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9834
9835  case $host_os in
9836  cygwin* | mingw* | pw32*)
9837    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9838    # When not using gcc, we currently assume that we are using
9839    # Microsoft Visual C++.
9840    if test "$GCC" != yes; then
9841      with_gnu_ld=no
9842    fi
9843    ;;
9844  interix*)
9845    # we just hope/assume this is gcc and not c89 (= MSVC++)
9846    with_gnu_ld=yes
9847    ;;
9848  openbsd*)
9849    with_gnu_ld=no
9850    ;;
9851  esac
9852
9853  ld_shlibs=yes
9854  if test "$with_gnu_ld" = yes; then
9855    # If archive_cmds runs LD, not CC, wlarc should be empty
9856    wlarc='${wl}'
9857
9858    # Set some defaults for GNU ld with shared library support. These
9859    # are reset later if shared libraries are not supported. Putting them
9860    # here allows them to be overridden if necessary.
9861    runpath_var=LD_RUN_PATH
9862    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9863    export_dynamic_flag_spec='${wl}--export-dynamic'
9864    # ancient GNU ld didn't support --whole-archive et. al.
9865    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9866        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9867      else
9868        whole_archive_flag_spec=
9869    fi
9870    supports_anon_versioning=no
9871    case `$LD -v 2>/dev/null` in
9872      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9873      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9874      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9875      *\ 2.11.*) ;; # other 2.11 versions
9876      *) supports_anon_versioning=yes ;;
9877    esac
9878
9879    # See if GNU ld supports shared libraries.
9880    case $host_os in
9881    aix3* | aix4* | aix5*)
9882      # On AIX/PPC, the GNU linker is very broken
9883      if test "$host_cpu" != ia64; then
9884        ld_shlibs=no
9885        cat <<EOF 1>&2
9886
9887*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9888*** to be unable to reliably create shared libraries on AIX.
9889*** Therefore, libtool is disabling shared libraries support.  If you
9890*** really care for shared libraries, you may want to modify your PATH
9891*** so that a non-GNU linker is found, and then restart.
9892
9893EOF
9894      fi
9895      ;;
9896
9897    amigaos*)
9898      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)'
9899      hardcode_libdir_flag_spec='-L$libdir'
9900      hardcode_minus_L=yes
9901
9902      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9903      # that the semantics of dynamic libraries on AmigaOS, at least up
9904      # to version 4, is to share data among multiple programs linked
9905      # with the same dynamic library.  Since this doesn't match the
9906      # behavior of shared libraries on other platforms, we can't use
9907      # them.
9908      ld_shlibs=no
9909      ;;
9910
9911    beos*)
9912      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9913        allow_undefined_flag=unsupported
9914        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9915        # support --undefined.  This deserves some investigation.  FIXME
9916        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917      else
9918        ld_shlibs=no
9919      fi
9920      ;;
9921
9922    cygwin* | mingw* | pw32*)
9923      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9924      # as there is no search path for DLLs.
9925      hardcode_libdir_flag_spec='-L$libdir'
9926      allow_undefined_flag=unsupported
9927      always_export_symbols=no
9928      enable_shared_with_static_runtimes=yes
9929      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9930
9931      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9932        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9933        # If the export-symbols file already is a .def file (1st line
9934        # is EXPORTS), use it as is; otherwise, prepend...
9935        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9936          cp $export_symbols $output_objdir/$soname.def;
9937        else
9938          echo EXPORTS > $output_objdir/$soname.def;
9939          cat $export_symbols >> $output_objdir/$soname.def;
9940        fi~
9941        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9942      else
9943        ld_shlibs=no
9944      fi
9945      ;;
9946
9947    interix3*)
9948      hardcode_direct=no
9949      hardcode_shlibpath_var=no
9950      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9951      export_dynamic_flag_spec='${wl}-E'
9952      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9953      # Instead, shared libraries are loaded at an image base (0x10000000 by
9954      # default) and relocated if they conflict, which is a slow very memory
9955      # consuming and fragmenting process.  To avoid this, we pick a random,
9956      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9957      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9958      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9959      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'
9960      ;;
9961
9962    linux*)
9963      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9964        tmp_addflag=
9965        case $cc_basename,$host_cpu in
9966        pgcc*)                          # Portland Group C compiler
9967          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'
9968          tmp_addflag=' $pic_flag'
9969          ;;
9970        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9971          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'
9972          tmp_addflag=' $pic_flag -Mnomain' ;;
9973        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9974          tmp_addflag=' -i_dynamic' ;;
9975        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9976          tmp_addflag=' -i_dynamic -nofor_main' ;;
9977        ifc* | ifort*)                  # Intel Fortran compiler
9978          tmp_addflag=' -nofor_main' ;;
9979        esac
9980        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981
9982        if test $supports_anon_versioning = yes; then
9983          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9984  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9985  $echo "local: *; };" >> $output_objdir/$libname.ver~
9986          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9987        fi
9988      else
9989        ld_shlibs=no
9990      fi
9991      ;;
9992
9993    netbsd*)
9994      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9995        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9996        wlarc=
9997      else
9998        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10000      fi
10001      ;;
10002
10003    solaris*)
10004      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10005        ld_shlibs=no
10006        cat <<EOF 1>&2
10007
10008*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10009*** create shared libraries on Solaris systems.  Therefore, libtool
10010*** is disabling shared libraries support.  We urge you to upgrade GNU
10011*** binutils to release 2.9.1 or newer.  Another option is to modify
10012*** your PATH or compiler configuration so that the native linker is
10013*** used, and then restart.
10014
10015EOF
10016      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10017        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10018        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10019      else
10020        ld_shlibs=no
10021      fi
10022      ;;
10023
10024    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10025      case `$LD -v 2>&1` in
10026        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10027        ld_shlibs=no
10028        cat <<_LT_EOF 1>&2
10029
10030*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10031*** reliably create shared libraries on SCO systems.  Therefore, libtool
10032*** is disabling shared libraries support.  We urge you to upgrade GNU
10033*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10034*** your PATH or compiler configuration so that the native linker is
10035*** used, and then restart.
10036
10037_LT_EOF
10038        ;;
10039        *)
10040          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10041            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10042            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10043            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10044          else
10045            ld_shlibs=no
10046          fi
10047        ;;
10048      esac
10049      ;;
10050
10051    sunos4*)
10052      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053      wlarc=
10054      hardcode_direct=yes
10055      hardcode_shlibpath_var=no
10056      ;;
10057
10058    *)
10059      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10060        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10062      else
10063        ld_shlibs=no
10064      fi
10065      ;;
10066    esac
10067
10068    if test "$ld_shlibs" = no; then
10069      runpath_var=
10070      hardcode_libdir_flag_spec=
10071      export_dynamic_flag_spec=
10072      whole_archive_flag_spec=
10073    fi
10074  else
10075    # PORTME fill in a description of your system's linker (not GNU ld)
10076    case $host_os in
10077    aix3*)
10078      allow_undefined_flag=unsupported
10079      always_export_symbols=yes
10080      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'
10081      # Note: this linker hardcodes the directories in LIBPATH if there
10082      # are no directories specified by -L.
10083      hardcode_minus_L=yes
10084      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10085        # Neither direct hardcoding nor static linking is supported with a
10086        # broken collect2.
10087        hardcode_direct=unsupported
10088      fi
10089      ;;
10090
10091    aix4* | aix5*)
10092      if test "$host_cpu" = ia64; then
10093        # On IA64, the linker does run time linking by default, so we don't
10094        # have to do anything special.
10095        aix_use_runtimelinking=no
10096        exp_sym_flag='-Bexport'
10097        no_entry_flag=""
10098      else
10099        # If we're using GNU nm, then we don't want the "-C" option.
10100        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10101        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10102          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'
10103        else
10104          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'
10105        fi
10106        aix_use_runtimelinking=no
10107
10108        # Test if we are trying to use run time linking or normal
10109        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10110        # need to do runtime linking.
10111        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10112          for ld_flag in $LDFLAGS; do
10113          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10114            aix_use_runtimelinking=yes
10115            break
10116          fi
10117          done
10118          ;;
10119        esac
10120
10121        exp_sym_flag='-bexport'
10122        no_entry_flag='-bnoentry'
10123      fi
10124
10125      # When large executables or shared objects are built, AIX ld can
10126      # have problems creating the table of contents.  If linking a library
10127      # or program results in "error TOC overflow" add -mminimal-toc to
10128      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10129      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10130
10131      archive_cmds=''
10132      hardcode_direct=yes
10133      hardcode_libdir_separator=':'
10134      link_all_deplibs=yes
10135
10136      if test "$GCC" = yes; then
10137        case $host_os in aix4.[012]|aix4.[012].*)
10138        # We only want to do this on AIX 4.2 and lower, the check
10139        # below for broken collect2 doesn't work under 4.3+
10140          collect2name=`${CC} -print-prog-name=collect2`
10141          if test -f "$collect2name" && \
10142           strings "$collect2name" | grep resolve_lib_name >/dev/null
10143          then
10144          # We have reworked collect2
10145          hardcode_direct=yes
10146          else
10147          # We have old collect2
10148          hardcode_direct=unsupported
10149          # It fails to find uninstalled libraries when the uninstalled
10150          # path is not listed in the libpath.  Setting hardcode_minus_L
10151          # to unsupported forces relinking
10152          hardcode_minus_L=yes
10153          hardcode_libdir_flag_spec='-L$libdir'
10154          hardcode_libdir_separator=
10155          fi
10156          ;;
10157        esac
10158        shared_flag='-shared'
10159        if test "$aix_use_runtimelinking" = yes; then
10160          shared_flag="$shared_flag "'${wl}-G'
10161        fi
10162      else
10163        # not using gcc
10164        if test "$host_cpu" = ia64; then
10165        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10166        # chokes on -Wl,-G. The following line is correct:
10167          shared_flag='-G'
10168        else
10169          if test "$aix_use_runtimelinking" = yes; then
10170            shared_flag='${wl}-G'
10171          else
10172            shared_flag='${wl}-bM:SRE'
10173          fi
10174        fi
10175      fi
10176
10177      # It seems that -bexpall does not export symbols beginning with
10178      # underscore (_), so it is better to generate a list of symbols to export.
10179      always_export_symbols=yes
10180      if test "$aix_use_runtimelinking" = yes; then
10181        # Warning - without using the other runtime loading flags (-brtl),
10182        # -berok will link without error, but may produce a broken library.
10183        allow_undefined_flag='-berok'
10184       # Determine the default libpath from the value encoded in an empty executable.
10185       cat >conftest.$ac_ext <<_ACEOF
10186/* confdefs.h.  */
10187_ACEOF
10188cat confdefs.h >>conftest.$ac_ext
10189cat >>conftest.$ac_ext <<_ACEOF
10190/* end confdefs.h.  */
10191
10192#ifdef F77_DUMMY_MAIN
10193
10194#  ifdef __cplusplus
10195     extern "C"
10196#  endif
10197   int F77_DUMMY_MAIN() { return 1; }
10198
10199#endif
10200int
10201main ()
10202{
10203
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210  (eval $ac_link) 2>conftest.er1
10211  ac_status=$?
10212  grep -v '^ *+' conftest.er1 >conftest.err
10213  rm -f conftest.er1
10214  cat conftest.err >&5
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); } &&
10217         { ac_try='test -z "$ac_c_werror_flag"
10218                         || test ! -s conftest.err'
10219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220  (eval $ac_try) 2>&5
10221  ac_status=$?
10222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223  (exit $ac_status); }; } &&
10224         { ac_try='test -s conftest$ac_exeext'
10225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226  (eval $ac_try) 2>&5
10227  ac_status=$?
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); }; }; then
10230
10231aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10232}'`
10233# Check for a 64-bit object if we didn't find anything.
10234if 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; }
10235}'`; fi
10236else
10237  echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240fi
10241rm -f conftest.err conftest.$ac_objext \
10242      conftest$ac_exeext conftest.$ac_ext
10243if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10244
10245       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10246        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"
10247       else
10248        if test "$host_cpu" = ia64; then
10249          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10250          allow_undefined_flag="-z nodefs"
10251          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"
10252        else
10253         # Determine the default libpath from the value encoded in an empty executable.
10254         cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h.  */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h.  */
10260
10261#ifdef F77_DUMMY_MAIN
10262
10263#  ifdef __cplusplus
10264     extern "C"
10265#  endif
10266   int F77_DUMMY_MAIN() { return 1; }
10267
10268#endif
10269int
10270main ()
10271{
10272
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
10278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279  (eval $ac_link) 2>conftest.er1
10280  ac_status=$?
10281  grep -v '^ *+' conftest.er1 >conftest.err
10282  rm -f conftest.er1
10283  cat conftest.err >&5
10284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); } &&
10286         { ac_try='test -z "$ac_c_werror_flag"
10287                         || test ! -s conftest.err'
10288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289  (eval $ac_try) 2>&5
10290  ac_status=$?
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); }; } &&
10293         { ac_try='test -s conftest$ac_exeext'
10294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295  (eval $ac_try) 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); }; }; then
10299
10300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10301}'`
10302# Check for a 64-bit object if we didn't find anything.
10303if 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; }
10304}'`; fi
10305else
10306  echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309fi
10310rm -f conftest.err conftest.$ac_objext \
10311      conftest$ac_exeext conftest.$ac_ext
10312if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10313
10314         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10315          # Warning - without using the other run time loading flags,
10316          # -berok will link without error, but may produce a broken library.
10317          no_undefined_flag=' ${wl}-bernotok'
10318          allow_undefined_flag=' ${wl}-berok'
10319          # Exported symbols can be pulled into shared objects from archives
10320          whole_archive_flag_spec='$convenience'
10321          archive_cmds_need_lc=yes
10322          # This is similar to how AIX traditionally builds its shared libraries.
10323          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'
10324        fi
10325      fi
10326      ;;
10327
10328    amigaos*)
10329      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)'
10330      hardcode_libdir_flag_spec='-L$libdir'
10331      hardcode_minus_L=yes
10332      # see comment about different semantics on the GNU ld section
10333      ld_shlibs=no
10334      ;;
10335
10336    bsdi[45]*)
10337      export_dynamic_flag_spec=-rdynamic
10338      ;;
10339
10340    cygwin* | mingw* | pw32*)
10341      # When not using gcc, we currently assume that we are using
10342      # Microsoft Visual C++.
10343      # hardcode_libdir_flag_spec is actually meaningless, as there is
10344      # no search path for DLLs.
10345      hardcode_libdir_flag_spec=' '
10346      allow_undefined_flag=unsupported
10347      # Tell ltmain to make .lib files, not .a files.
10348      libext=lib
10349      # Tell ltmain to make .dll files, not .so files.
10350      shrext_cmds=".dll"
10351      # FIXME: Setting linknames here is a bad hack.
10352      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10353      # The linker will automatically build a .lib file if we build a DLL.
10354      old_archive_From_new_cmds='true'
10355      # FIXME: Should let the user specify the lib program.
10356      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10357      fix_srcfile_path='`cygpath -w "$srcfile"`'
10358      enable_shared_with_static_runtimes=yes
10359      ;;
10360
10361    darwin* | rhapsody*)
10362      case $host_os in
10363        rhapsody* | darwin1.[012])
10364         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10365         ;;
10366       *) # Darwin 1.3 on
10367         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10368           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10369         else
10370           case ${MACOSX_DEPLOYMENT_TARGET} in
10371             10.[012])
10372               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10373               ;;
10374             10.*)
10375               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10376               ;;
10377           esac
10378         fi
10379         ;;
10380      esac
10381      archive_cmds_need_lc=no
10382      hardcode_direct=no
10383      hardcode_automatic=yes
10384      hardcode_shlibpath_var=unsupported
10385      whole_archive_flag_spec=''
10386      link_all_deplibs=yes
10387    if test "$GCC" = yes ; then
10388        output_verbose_link_cmd='echo'
10389        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10390      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10391      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10392      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}'
10393      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}'
10394    else
10395      case $cc_basename in
10396        xlc*)
10397         output_verbose_link_cmd='echo'
10398         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10399         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10400          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10401         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}'
10402          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}'
10403          ;;
10404       *)
10405         ld_shlibs=no
10406          ;;
10407      esac
10408    fi
10409      ;;
10410
10411    dgux*)
10412      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413      hardcode_libdir_flag_spec='-L$libdir'
10414      hardcode_shlibpath_var=no
10415      ;;
10416
10417    freebsd1*)
10418      ld_shlibs=no
10419      ;;
10420
10421    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10422    # support.  Future versions do this automatically, but an explicit c++rt0.o
10423    # does not break anything, and helps significantly (at the cost of a little
10424    # extra space).
10425    freebsd2.2*)
10426      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10427      hardcode_libdir_flag_spec='-R$libdir'
10428      hardcode_direct=yes
10429      hardcode_shlibpath_var=no
10430      ;;
10431
10432    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10433    freebsd2*)
10434      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10435      hardcode_direct=yes
10436      hardcode_minus_L=yes
10437      hardcode_shlibpath_var=no
10438      ;;
10439
10440    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10441    freebsd* | kfreebsd*-gnu | dragonfly*)
10442      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10443      hardcode_libdir_flag_spec='-R$libdir'
10444      hardcode_direct=yes
10445      hardcode_shlibpath_var=no
10446      ;;
10447
10448    hpux9*)
10449      if test "$GCC" = yes; then
10450        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'
10451      else
10452        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'
10453      fi
10454      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10455      hardcode_libdir_separator=:
10456      hardcode_direct=yes
10457
10458      # hardcode_minus_L: Not really in the search PATH,
10459      # but as the default location of the library.
10460      hardcode_minus_L=yes
10461      export_dynamic_flag_spec='${wl}-E'
10462      ;;
10463
10464    hpux10*)
10465      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10466        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10467      else
10468        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10469      fi
10470      if test "$with_gnu_ld" = no; then
10471        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472        hardcode_libdir_separator=:
10473
10474        hardcode_direct=yes
10475        export_dynamic_flag_spec='${wl}-E'
10476
10477        # hardcode_minus_L: Not really in the search PATH,
10478        # but as the default location of the library.
10479        hardcode_minus_L=yes
10480      fi
10481      ;;
10482
10483    hpux11*)
10484      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10485        case $host_cpu in
10486        hppa*64*)
10487          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10488          ;;
10489        ia64*)
10490          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10491          ;;
10492        *)
10493          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10494          ;;
10495        esac
10496      else
10497        case $host_cpu in
10498        hppa*64*)
10499          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10500          ;;
10501        ia64*)
10502          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10503          ;;
10504        *)
10505          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10506          ;;
10507        esac
10508      fi
10509      if test "$with_gnu_ld" = no; then
10510        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10511        hardcode_libdir_separator=:
10512
10513        case $host_cpu in
10514        hppa*64*|ia64*)
10515          hardcode_libdir_flag_spec_ld='+b $libdir'
10516          hardcode_direct=no
10517          hardcode_shlibpath_var=no
10518          ;;
10519        *)
10520          hardcode_direct=yes
10521          export_dynamic_flag_spec='${wl}-E'
10522
10523          # hardcode_minus_L: Not really in the search PATH,
10524          # but as the default location of the library.
10525          hardcode_minus_L=yes
10526          ;;
10527        esac
10528      fi
10529      ;;
10530
10531    irix5* | irix6* | nonstopux*)
10532      if test "$GCC" = yes; then
10533        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'
10534      else
10535        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'
10536        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10537      fi
10538      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10539      hardcode_libdir_separator=:
10540      link_all_deplibs=yes
10541      ;;
10542
10543    netbsd*)
10544      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10545        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10546      else
10547        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10548      fi
10549      hardcode_libdir_flag_spec='-R$libdir'
10550      hardcode_direct=yes
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    newsos6)
10555      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556      hardcode_direct=yes
10557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558      hardcode_libdir_separator=:
10559      hardcode_shlibpath_var=no
10560      ;;
10561
10562    openbsd*)
10563      hardcode_direct=yes
10564      hardcode_shlibpath_var=no
10565      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10566        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10567        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10568        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10569        export_dynamic_flag_spec='${wl}-E'
10570      else
10571       case $host_os in
10572         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10573           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10574           hardcode_libdir_flag_spec='-R$libdir'
10575           ;;
10576         *)
10577           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10578           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10579           ;;
10580       esac
10581      fi
10582      ;;
10583
10584    os2*)
10585      hardcode_libdir_flag_spec='-L$libdir'
10586      hardcode_minus_L=yes
10587      allow_undefined_flag=unsupported
10588      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'
10589      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10590      ;;
10591
10592    osf3*)
10593      if test "$GCC" = yes; then
10594        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10595        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'
10596      else
10597        allow_undefined_flag=' -expect_unresolved \*'
10598        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'
10599      fi
10600      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601      hardcode_libdir_separator=:
10602      ;;
10603
10604    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10605      if test "$GCC" = yes; then
10606        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10607        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'
10608        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10609      else
10610        allow_undefined_flag=' -expect_unresolved \*'
10611        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'
10612        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10613        $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'
10614
10615        # Both c and cxx compiler support -rpath directly
10616        hardcode_libdir_flag_spec='-rpath $libdir'
10617      fi
10618      hardcode_libdir_separator=:
10619      ;;
10620
10621    solaris*)
10622      no_undefined_flag=' -z text'
10623      if test "$GCC" = yes; then
10624        wlarc='${wl}'
10625        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10626        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10627          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10628      else
10629        wlarc=''
10630        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10632        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10633      fi
10634      hardcode_libdir_flag_spec='-R$libdir'
10635      hardcode_shlibpath_var=no
10636      case $host_os in
10637      solaris2.[0-5] | solaris2.[0-5].*) ;;
10638      *)
10639        # The compiler driver will combine linker options so we
10640        # cannot just pass the convience library names through
10641        # without $wl, iff we do not link with $LD.
10642        # Luckily, gcc supports the same syntax we need for Sun Studio.
10643        # Supported since Solaris 2.6 (maybe 2.5.1?)
10644        case $wlarc in
10645        '')
10646          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10647        *)
10648          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' ;;
10649        esac ;;
10650      esac
10651      link_all_deplibs=yes
10652      ;;
10653
10654    sunos4*)
10655      if test "x$host_vendor" = xsequent; then
10656        # Use $CC to link under sequent, because it throws in some extra .o
10657        # files that make .init and .fini sections work.
10658        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10659      else
10660        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10661      fi
10662      hardcode_libdir_flag_spec='-L$libdir'
10663      hardcode_direct=yes
10664      hardcode_minus_L=yes
10665      hardcode_shlibpath_var=no
10666      ;;
10667
10668    sysv4)
10669      case $host_vendor in
10670        sni)
10671          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672          hardcode_direct=yes # is this really true???
10673        ;;
10674        siemens)
10675          ## LD is ld it makes a PLAMLIB
10676          ## CC just makes a GrossModule.
10677          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10678          reload_cmds='$CC -r -o $output$reload_objs'
10679          hardcode_direct=no
10680        ;;
10681        motorola)
10682          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10684        ;;
10685      esac
10686      runpath_var='LD_RUN_PATH'
10687      hardcode_shlibpath_var=no
10688      ;;
10689
10690    sysv4.3*)
10691      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692      hardcode_shlibpath_var=no
10693      export_dynamic_flag_spec='-Bexport'
10694      ;;
10695
10696    sysv4*MP*)
10697      if test -d /usr/nec; then
10698        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699        hardcode_shlibpath_var=no
10700        runpath_var=LD_RUN_PATH
10701        hardcode_runpath_var=yes
10702        ld_shlibs=yes
10703      fi
10704      ;;
10705
10706    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10707      no_undefined_flag='${wl}-z,text'
10708      archive_cmds_need_lc=no
10709      hardcode_shlibpath_var=no
10710      runpath_var='LD_RUN_PATH'
10711
10712      if test "$GCC" = yes; then
10713        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10714        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10715      else
10716        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10717        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10718      fi
10719      ;;
10720
10721    sysv5* | sco3.2v5* | sco5v6*)
10722      # Note: We can NOT use -z defs as we might desire, because we do not
10723      # link with -lc, and that would cause any symbols used from libc to
10724      # always be unresolved, which means just about no library would
10725      # ever link correctly.  If we're not using GNU ld we use -z text
10726      # though, which does catch some bad symbols but isn't as heavy-handed
10727      # as -z defs.
10728      no_undefined_flag='${wl}-z,text'
10729      allow_undefined_flag='${wl}-z,nodefs'
10730      archive_cmds_need_lc=no
10731      hardcode_shlibpath_var=no
10732      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10733      hardcode_libdir_separator=':'
10734      link_all_deplibs=yes
10735      export_dynamic_flag_spec='${wl}-Bexport'
10736      runpath_var='LD_RUN_PATH'
10737
10738      if test "$GCC" = yes; then
10739        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10740        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10741      else
10742        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10743        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10744      fi
10745      ;;
10746
10747    uts4*)
10748      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10749      hardcode_libdir_flag_spec='-L$libdir'
10750      hardcode_shlibpath_var=no
10751      ;;
10752
10753    *)
10754      ld_shlibs=no
10755      ;;
10756    esac
10757  fi
10758
10759echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10760echo "${ECHO_T}$ld_shlibs" >&6
10761test "$ld_shlibs" = no && can_build_shared=no
10762
10763#
10764# Do we need to explicitly link libc?
10765#
10766case "x$archive_cmds_need_lc" in
10767x|xyes)
10768  # Assume -lc should be added
10769  archive_cmds_need_lc=yes
10770
10771  if test "$enable_shared" = yes && test "$GCC" = yes; then
10772    case $archive_cmds in
10773    *'~'*)
10774      # FIXME: we may have to deal with multi-command sequences.
10775      ;;
10776    '$CC '*)
10777      # Test whether the compiler implicitly links with -lc since on some
10778      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10779      # to ld, don't add -lc before -lgcc.
10780      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10781echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10782      $rm conftest*
10783      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10784
10785      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786  (eval $ac_compile) 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); } 2>conftest.err; then
10790        soname=conftest
10791        lib=conftest
10792        libobjs=conftest.$ac_objext
10793        deplibs=
10794        wl=$lt_prog_compiler_wl
10795        pic_flag=$lt_prog_compiler_pic
10796        compiler_flags=-v
10797        linker_flags=-v
10798        verstring=
10799        output_objdir=.
10800        libname=conftest
10801        lt_save_allow_undefined_flag=$allow_undefined_flag
10802        allow_undefined_flag=
10803        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10804  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10805  ac_status=$?
10806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807  (exit $ac_status); }
10808        then
10809          archive_cmds_need_lc=no
10810        else
10811          archive_cmds_need_lc=yes
10812        fi
10813        allow_undefined_flag=$lt_save_allow_undef