source: ThirdParty/HSL/trunk/configure @ 60

Last change on this file since 60 was 60, checked in by andreasw, 16 years ago

corrected VPATH links

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