source: ThirdParty/HSL/trunk/configure @ 1873

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

MA57 needs Metis

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