source: ThirdParty/HSL/stable/1.2/configure @ 1973

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

restoring BuildTools/ThirdParty?/HSL/stable/1.2

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